/* ============================================================
   LUNA — SEPETv2  ·  Ultra Premium Cart
   Sade · Zarif · VIP · Karışıklık sıfır
   ============================================================ */

/* ── Layout ─────────────────────────────── */
.cart-page {
  width: min(1100px, calc(100% - 32px));
  margin: calc(var(--nav-h) * 2 + 40px) auto 80px;
}
.cart-shell { display: grid; gap: 0; }

/* ── Shared card base ───────────────────── */
.cart-header,
.cart-box,
.summary-card,
.checkout-note {
  background:
    radial-gradient(ellipse 80% 60% at 90% -20%, rgba(228,194,122,0.10), transparent 60%),
    linear-gradient(160deg, rgba(22,10,16,0.97) 0%, rgba(12,6,10,0.99) 100%);
  border: 1px solid rgba(228,194,122,0.18);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

/* Top shimmer line */
.cart-header::before,
.cart-box::before,
.summary-card::before,
.checkout-note::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(228,194,122,0.55) 30%, rgba(255,240,190,0.8) 50%, rgba(228,194,122,0.55) 70%, transparent 100%);
  pointer-events: none;
}

/* ── Cart Header ────────────────────────── */
.cart-header {
  padding: 44px 48px 40px;
  margin-bottom: 16px;
}

.cart-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: 4px;
  color: rgba(228,194,122,0.55);
  text-transform: uppercase;
  font-weight: 600;
}
.cart-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228,194,122,0.5));
}

.cart-header h1 {
  margin: 0 0 10px;
  font-family: "Didot","Bodoni MT","Playfair Display","Times New Roman",serif;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  background-image: linear-gradient(160deg, #f9e8c0 0%, #e5c37f 56%, #c59a57 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.cart-header > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(228,194,122,0.5);
  max-width: 62ch;
}

.cart-badges {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(228,194,122,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(228,194,122,0.65);
  background: rgba(228,194,122,0.04);
}
.cart-badges span::before { content: '✦'; font-size: 7px; color: rgba(228,194,122,0.4); }

/* ── Layout grid ────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 380px;
  gap: 16px;
  align-items: start;
}
.cart-main, .cart-right {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* ── Box sections ───────────────────────── */
.cart-box, .summary-card, .checkout-note { padding: 32px 36px; }

.box-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(228,194,122,0.10);
}
.box-head h2, .summary-card h2, .checkout-note h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display",Georgia,serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(228,194,122,0.9);
  letter-spacing: 0.5px;
}
.box-head p, .checkout-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(228,194,122,0.38);
}

/* ── Cart Items ─────────────────────────── */
.cart-items { display: grid; gap: 10px; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(228,194,122,0.12);
  border-radius: 16px;
  background: rgba(228,194,122,0.025);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.25s ease;
}
.cart-item:hover {
  border-color: rgba(228,194,122,0.28);
  background: rgba(228,194,122,0.05);
  transform: translateX(4px);
}

.item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(228,194,122,0.18);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-thumb.placeholder {
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(228,194,122,0.25);
  text-align: center;
  padding: 6px;
  line-height: 1.3;
}

.item-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-main h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(235,210,155,0.95);
  font-family: "Playfair Display",Georgia,serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-main p { margin: 0; font-size: 12px; color: rgba(228,194,122,0.38); letter-spacing: 0.5px; }

.item-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.item-line-total {
  min-width: 80px;
  text-align: right;
  font-weight: 700;
  font-size: 15px;
  color: rgba(228,194,122,0.9);
  font-family: "Playfair Display",Georgia,serif;
}

.qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(228,194,122,0.22);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.mini-btn {
  border: none;
  width: 30px;
  height: 30px;
  background: transparent;
  color: rgba(228,194,122,0.75);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.mini-btn:hover { background: rgba(228,194,122,0.12); color: rgba(228,194,122,1); }
.item-qty { min-width: 28px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(228,194,122,0.9); }

.remove-btn {
  border: 1px solid rgba(255,120,120,0.18);
  background: rgba(100,20,20,0.12);
  color: rgba(255,150,150,0.65);
  border-radius: 999px;
  height: 30px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.remove-btn:hover { background: rgba(140,30,30,0.28); border-color: rgba(255,120,120,0.4); color: rgba(255,180,180,1); }

/* Empty state */
.cart-empty {
  padding: 52px 24px;
  text-align: center;
  border: 1px dashed rgba(228,194,122,0.18);
  border-radius: 16px;
}
.cart-empty p { margin: 0 0 16px; font-size: 14px; color: rgba(228,194,122,0.45); line-height: 1.7; }
.cart-empty a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(228,194,122,0.8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(228,194,122,0.28);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.cart-empty a:hover { color: rgba(228,194,122,1); border-color: rgba(228,194,122,0.65); }

/* ── Extra Services ─────────────────────── */
.options-grid { display: grid; gap: 8px; }

.option-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(228,194,122,0.12);
  border-radius: 14px;
  background: rgba(228,194,122,0.02);
  color: rgba(228,194,122,0.75);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.option-row:hover { border-color: rgba(228,194,122,0.28); background: rgba(228,194,122,0.055); }

.option-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(228,194,122,0.35);
  border-radius: 5px;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg,#e4c27a,#c9963e);
  border-color: #e4c27a;
}
.option-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #0a0508;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.option-row strong { font-size: 12px; font-weight: 700; color: rgba(228,194,122,0.6); white-space: nowrap; }

/* ── Field / form grids ─────────────────── */
.field-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(228,194,122,0.45);
  font-weight: 600;
}
.field-grid select,
.field-grid textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(228,194,122,0.2);
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  color: rgba(228,194,122,0.85);
  padding: 0 16px;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-grid textarea { padding: 14px 16px; min-height: 110px; resize: vertical; cursor: text; }

.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(228,194,122,0.42);
  font-weight: 600;
}
.form-grid input,
.form-grid select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(228,194,122,0.2);
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  color: rgba(228,194,122,0.9);
  padding: 0 16px;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field-grid select:focus,
.field-grid textarea:focus,
.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  border-color: rgba(228,194,122,0.5);
  box-shadow: 0 0 0 3px rgba(228,194,122,0.07), 0 0 20px rgba(228,194,122,0.05);
}
.form-grid input::placeholder, .field-grid textarea::placeholder { color: rgba(228,194,122,0.2); }

/* ── Summary Card ───────────────────────── */
.summary-card {
  position: sticky;
  top: calc(var(--nav-h) * 2 + 16px);
  padding: 32px 30px 28px;
}
.summary-card h2 {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(228,194,122,0.10);
}

.ship-progress-wrap {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(228,194,122,0.12);
  border-radius: 14px;
  background: rgba(228,194,122,0.025);
}
.ship-progress-label { font-size: 11.5px; line-height: 1.5; color: rgba(228,194,122,0.55); margin-bottom: 10px; }
.ship-progress-track { width: 100%; height: 4px; border-radius: 999px; background: rgba(228,194,122,0.08); overflow: hidden; }
#freeShipProgress {
  display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, #c99e58, #f6dda5, #e4c27a);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(228,194,122,0.06);
  color: rgba(228,194,122,0.6);
  font-size: 13px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row strong { font-weight: 600; color: rgba(228,194,122,0.85); }

.summary-row.total {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(228,194,122,0.18);
  border-bottom: none;
  font-size: 16px;
  font-weight: 700;
  color: rgba(228,194,122,0.95);
}
.summary-row.total strong {
  font-size: 21px;
  font-family: "Playfair Display",Georgia,serif;
  background: linear-gradient(135deg, #f9e8c0, #e4c27a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.summary-row.points { font-size: 11px; color: rgba(228,194,122,0.42); border-bottom: none; padding-top: 4px; }

/* Checkout button */
.checkout-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(132deg, #f6dda5 0%, #debc7a 46%, #c99e58 100%);
  color: #0a0508;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,248,223,0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.checkout-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.checkout-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 38px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,248,223,0.7); }
.checkout-btn:hover::before { transform: translateX(100%); }
.checkout-btn:active { transform: translateY(0) scale(0.98); }

.summary-foot { margin-top: 14px; font-size: 11px; line-height: 1.65; color: rgba(228,194,122,0.3); text-align: center; }

/* ── Checkout note ──────────────────────── */
.checkout-note { padding: 22px 28px; }
.checkout-note h3 { font-size: 14px; margin-bottom: 8px; }
.checkout-note::after {
  content: '✦  Kalite Kontrol  ·  Beyaz Eldiven Teslimat  ·  Tazelik Garantisi  ✦';
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(228,194,122,0.08);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: rgba(228,194,122,0.25);
  text-align: center;
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1020px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .cart-header { padding: 32px 28px 28px; }
}

@media (max-width: 768px) {
  .cart-page { width: calc(100% - 24px); margin-top: calc(var(--nav-h) * 2 + 20px); margin-bottom: 48px; }
  .cart-header { padding: 24px 20px 22px; border-radius: 18px; margin-bottom: 12px; }
  .cart-box, .summary-card, .checkout-note { padding: 22px 18px; border-radius: 18px; }
  .cart-layout, .cart-main, .cart-right { gap: 12px; }
  .cart-item { grid-template-columns: 60px 1fr; gap: 12px; }
  .item-controls { grid-column: 1 / -1; justify-content: space-between; }
  .item-thumb { width: 60px; height: 60px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cart-badges span { font-size: 10px; padding: 5px 10px; }
  .option-row { grid-template-columns: 20px 1fr auto; gap: 10px; padding: 12px 14px; }
}
