/* Standalone detailed cart / checkout page */
.page-cart {
  background: #f3f0eb;
}

.cart-page {
  padding: 28px 0 72px;
}

.cart-page--full {
  min-height: calc(100vh - 180px);
}

.cart-page__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.cart-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.cart-page__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c41e3a;
}

.cart-page__title {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: #1a1a1a;
}

.cart-page__lead {
  margin: 8px 0 0;
  color: #666;
  font-size: 0.95rem;
  max-width: 48ch;
}

.cart-page__continue {
  flex-shrink: 0;
  color: #c41e3a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cart-page__continue:hover {
  border-bottom-color: #c41e3a;
}

.cart-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #fff8f8;
  border: 1px solid #f0c9cf;
}

.cart-banner--bayi {
  background: #f7fbfd;
  border-color: #cfe3ea;
}

.cart-banner--error {
  background: #fdecea;
  border-color: #f5c6cb;
}

.cart-banner strong {
  color: #c41e3a;
  font-size: 0.95rem;
}

.cart-banner span {
  color: #444;
  font-size: 0.92rem;
}

.cart-banner em {
  font-style: normal;
  font-weight: 800;
  color: #1a1a1a;
}

.cart-empty {
  background: #fff;
  border: 1px dashed #d8d0c8;
  padding: 48px 24px;
  text-align: center;
}

.cart-empty h2 {
  margin: 0 0 8px;
  font-family: Poppins, sans-serif;
}

.cart-empty p {
  margin: 0 0 20px;
  color: #666;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.cart-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cart-section-head h2 {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
  color: #1a1a1a;
}

.cart-section-head span {
  font-size: 13px;
  color: #777;
}

.cart-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid #e8e2da;
  padding: 18px;
  margin-bottom: 14px;
}

.cart-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f3eee8;
  display: block;
}

.cart-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cart-card__brand {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
}

.cart-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-family: Poppins, sans-serif;
  color: #1a1a1a;
  line-height: 1.3;
}

.cart-card__meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: #777;
}

.cart-card__prices {
  text-align: right;
  flex-shrink: 0;
}

.cart-card__list {
  display: block;
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.cart-card__price {
  display: block;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.cart-card__badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #c41e3a;
}

.cart-card__desc {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.cart-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.cart-card__unit {
  font-size: 12px;
  color: #888;
}

.cart-card__link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: #c41e3a;
  text-decoration: none;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  background: #fff;
}

.cart-qty__btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.cart-qty__value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-summary {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #e8e2da;
  padding: 22px;
}

.cart-summary__title {
  margin: 0 0 16px;
  font-family: Poppins, sans-serif;
  font-size: 1.15rem;
}

.cart-summary__dl {
  margin: 0;
}

.cart-summary__dl > div,
.cart-invoice dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0ebe4;
  font-size: 14px;
}

.cart-summary__dl dt,
.cart-invoice dt {
  color: #666;
}

.cart-summary__dl dd,
.cart-invoice dd {
  margin: 0;
  font-weight: 700;
  color: #1a1a1a;
}

.cart-summary__dl .is-discount dd {
  color: #c41e3a;
}

.cart-ship {
  margin-top: 18px;
  padding: 14px;
  background: #faf7f3;
  border: 1px solid #ece4da;
}

.cart-ship__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.cart-ship__ok {
  margin: 0 0 10px;
  color: #1b5e20;
  font-weight: 700;
}

.cart-ship__hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.cart-ship__bar {
  height: 8px;
  background: #e8e0d6;
  margin-bottom: 12px;
  overflow: hidden;
}

.cart-ship__bar span {
  display: block;
  height: 100%;
  background: #c41e3a;
}

.cart-ship__stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-ship__stats li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #ebe3d9;
  font-size: 13px;
}

.cart-ship__stats span {
  color: #666;
}

.cart-ship__stats strong {
  color: #1a1a1a;
}

.cart-ship__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #888;
}

.cart-invoice {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.cart-invoice h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.cart-invoice .is-total dt,
.cart-invoice .is-total dd {
  font-size: 16px;
  color: #c41e3a;
}

.cart-summary__cta {
  display: block;
  margin-top: 18px;
  padding: 14px 18px;
  text-align: center;
  background: #c41e3a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.cart-summary__cta:hover {
  background: #a81930;
}

.cart-summary__secure {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #888;
}

@media (max-width: 920px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .cart-page__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .cart-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .cart-card__top {
    flex-direction: column;
  }

  .cart-card__prices {
    text-align: left;
  }

  .cart-card__link {
    margin-left: 0;
  }
}

/* Sipariş formu (odeme.php) */
.checkout-guest-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e8e2da;
  border-left: 3px solid #c41e3a;
  font-size: 14px;
  color: #444;
}

.checkout-guest-note a {
  color: #c41e3a;
  font-weight: 700;
  text-decoration: none;
}

.checkout-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkout-layout .cart-layout__products {
  display: grid;
  gap: 18px;
}

.checkout-card {
  background: #fff;
  border: 1px solid #e8e2da;
  padding: 22px;
}

.checkout-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.checkout-card__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #c41e3a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.checkout-field--full {
  grid-column: 1 / -1;
}

.checkout-field > span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5cb;
  background: #fff;
  font-family: Barlow, sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.checkout-field textarea {
  resize: vertical;
  min-height: 84px;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.checkout-field select:disabled {
  background: #f6f3ef;
  color: #999;
}

.checkout-field.has-error input,
.checkout-field.has-error select,
.checkout-field.has-error textarea {
  border-color: #c41e3a;
  background: #fff8f8;
}

.checkout-field__error {
  font-size: 12px;
  font-weight: 600;
  color: #c41e3a;
}

.checkout-phone {
  display: flex;
  align-items: stretch;
}

.checkout-phone__prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #ddd5cb;
  border-right: 0;
  background: #f6f3ef;
  font-weight: 700;
  color: #555;
}

.checkout-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkout-saved__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid #ddd5cb;
  background: #faf7f3;
  font-family: Barlow, sans-serif;
  cursor: pointer;
  text-align: left;
}

.checkout-saved__item strong {
  font-size: 14px;
  color: #1a1a1a;
}

.checkout-saved__item span {
  font-size: 12px;
  color: #777;
}

.checkout-saved__item:hover,
.checkout-saved__item.is-active {
  border-color: #c41e3a;
  background: #fff5f6;
}

.checkout-lines {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.checkout-lines li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ebe4;
  font-size: 14px;
}

.checkout-lines img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid #efe9e1;
  background: var(--shop-product-bg, #f3f3f3);
}

.checkout-lines__name {
  color: #333;
  line-height: 1.35;
}

.checkout-lines__name em {
  font-style: normal;
  font-weight: 700;
  color: #888;
  white-space: nowrap;
}

.checkout-lines strong {
  white-space: nowrap;
  color: #1a1a1a;
}

.checkout-coupon {
  margin-bottom: 12px;
}

.cart-summary__dl .checkout-total {
  border-bottom: 0;
  padding-top: 12px;
}

.cart-summary__dl .checkout-total dt {
  font-weight: 800;
  color: #1a1a1a;
}

.cart-summary__dl .checkout-total dd {
  font-size: 1.25rem;
  font-weight: 800;
  color: #c41e3a;
}

.checkout-submit {
  width: 100%;
  border: 0;
  font-family: Barlow, sans-serif;
  font-size: 16px;
  cursor: pointer;
}

.checkout-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.checkout-info {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #faf7f3;
  border: 1px solid #ece4da;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

/* Sipariş alındı (siparis-alindi.php) */
.order-done__hero {
  max-width: 680px;
  margin: 12px auto 28px;
  padding: 40px 28px 34px;
  background: #fff;
  border: 1px solid #e8e2da;
  border-top: 4px solid #c41e3a;
  text-align: center;
}

.order-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e9f7ee;
  color: #1f8a4c;
  animation: orderDonePop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.order-done__icon svg {
  width: 38px;
  height: 38px;
}

@keyframes orderDonePop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.order-done__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c41e3a;
}

.order-done__title {
  margin: 0 0 12px;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #1a1a1a;
}

.order-done__lead {
  margin: 0 auto 22px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.order-done__no {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 14px 18px;
  background: #faf7f3;
  border: 1px dashed #d8cdbf;
}

.order-done__no span {
  font-size: 13px;
  font-weight: 600;
  color: #777;
}

.order-done__no strong {
  font-family: Poppins, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.order-done__copy {
  padding: 6px 12px;
  border: 1px solid #c41e3a;
  background: #fff;
  color: #c41e3a;
  font-family: Barlow, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.order-done__copy:hover {
  background: #c41e3a;
  color: #fff;
}

.order-done__hint {
  margin: 10px 0 24px;
  font-size: 13px;
  color: #888;
}

.order-done__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.order-done__btn {
  padding: 13px 22px;
  border: 1px solid #ddd5cb;
  background: #fff;
  color: #333;
  font-weight: 700;
  text-decoration: none;
}

.order-done__btn:hover {
  border-color: #c41e3a;
  color: #c41e3a;
}

.order-done__btn--primary {
  border-color: #c41e3a;
  background: #c41e3a;
  color: #fff;
}

.order-done__btn--primary:hover {
  background: #a81930;
  color: #fff;
}

.order-done__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.order-done__address {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.order-done__note {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #faf7f3;
  font-size: 13px;
  color: #555;
}

.order-done__note span {
  font-weight: 700;
}

/* Sipariş takibi (siparis-takip.php) */
.order-track__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.order-track__submit {
  margin: 0;
  padding: 12px 28px;
  border: 0;
  font-family: Barlow, sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.order-track__result {
  display: grid;
  gap: 18px;
}

.order-track__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-track__head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-track__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.order-track__no {
  font-family: Poppins, sans-serif;
  font-size: 1.3rem;
  color: #1a1a1a;
}

.order-track__date {
  font-size: 13px;
  color: #777;
}

.order-track__badge {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  background: #eee;
  color: #555;
  white-space: nowrap;
}

.order-track__badge--onay_bekliyor { background: #fff3cd; color: #856404; }
.order-track__badge--hazirlaniyor { background: #e3f0ff; color: #1d4f91; }
.order-track__badge--kargoda { background: #d1ecf1; color: #0c5460; }
.order-track__badge--teslim_edildi { background: #d4edda; color: #155724; }
.order-track__badge--iptal { background: #f8d7da; color: #721c24; }

.order-track__note {
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e8e2da;
  border-left: 3px solid #c9a227;
  font-size: 14px;
  color: #444;
}

.order-track__note--hazirlaniyor { border-left-color: #1d4f91; }
.order-track__note--kargoda { border-left-color: #0c5460; }
.order-track__note--teslim_edildi { border-left-color: #1f8a4c; }
.order-track__note--iptal { border-left-color: #c41e3a; }

@media (max-width: 920px) {
  .order-done__summary,
  .order-track__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    padding: 16px;
  }

  .order-done__hero {
    padding: 30px 18px 26px;
  }

  .order-track__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
