/* ═══════════════════════════════════════════════════════
   LUXEHOME — SEPET DRAWER & CHECKOUT MODAL
═══════════════════════════════════════════════════════ */

/* ── Overlay ── */
#lh-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 8000;
  pointer-events: none;
  transition: background 0.35s ease;
}
#lh-overlay.show {
  background: rgba(0,0,0,0.55);
  pointer-events: all;
  backdrop-filter: blur(3px);
}

/* ══════════════════════════════════════
   CART DRAWER
══════════════════════════════════════ */
#lh-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px; max-width: 95vw;
  height: 100dvh;
  background: #0a0a0a;
  z-index: 9000;
  transform: translateX(110%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
#lh-cart-drawer.open { transform: translateX(0); }

/* Header */
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #1a1a1a;
}
.drawer-title {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
}
.drawer-close {
  width: 36px; height: 36px;
  background: #161616; border: 1px solid #222; border-radius: 50%;
  color: #888; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.drawer-close:hover { background: #222; color: #fff; }

/* Body */
.drawer-body {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: thin; scrollbar-color: #222 transparent;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

/* Empty */
.drawer-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding: 60px 20px;
  text-align: center;
}
.empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.4; }
.drawer-empty p { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.drawer-empty span { color: #555; font-size: 13px; }

/* Drawer Item */
.drawer-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px;
  background: #111; border: 1px solid #1a1a1a; border-radius: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  position: relative;
}
.drawer-item:hover { border-color: #2a2a2a; }

.di-img {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden; background: #1a1a1a;
}
.di-img img { width: 100%; height: 100%; object-fit: cover; }

.di-info { flex: 1; min-width: 0; }
.di-name {
  color: #fff; font-size: 13px; font-weight: 600;
  margin: 0 0 5px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.di-price { color: #b35900; font-size: 15px; font-weight: 700; margin: 0 0 10px; }

.di-qty {
  display: flex; align-items: center; gap: 10px;
}
.qty-btn {
  width: 26px; height: 26px;
  background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 8px;
  color: #fff; font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; line-height: 1;
  transition: all 0.15s ease; padding: 0;
}
.qty-btn:hover { background: #b35900; border-color: #b35900; }
.di-qty span { color: #fff; font-size: 14px; font-weight: 700; min-width: 16px; text-align: center; }

.di-remove {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: transparent; border: none;
  color: #444; cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all 0.15s ease;
}
.di-remove:hover { color: #ff4444; background: rgba(255,68,68,0.1); }

/* Footer */
.drawer-footer {
  padding: 16px;
  border-top: 1px solid #1a1a1a;
  background: #0a0a0a;
}
.drawer-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px; padding: 14px 16px;
  background: #111; border-radius: 12px; border: 1px solid #1e1e1e;
}
.drawer-total span { color: #888; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.drawer-total strong { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

.checkout-btn {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #b35900, #8e4700);
  color: #fff; border: none; border-radius: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.checkout-btn:hover {
  background: linear-gradient(135deg, #cc6600, #b35900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179,89,0,0.4);
}

.clear-btn {
  width: 100%; padding: 10px;
  background: transparent; border: 1px solid #1e1e1e; border-radius: 10px;
  color: #555; font-size: 12px; cursor: pointer;
  transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase;
}
.clear-btn:hover { border-color: #ff4444; color: #ff4444; background: rgba(255,68,68,0.04); }


/* ══════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════ */
#lh-checkout-modal {
  position: fixed; inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
#lh-checkout-modal.open { opacity: 1; pointer-events: all; }

.co-inner {
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-radius: 24px;
  width: 100%; max-width: 960px;
  padding: 40px;
  margin: auto;
  position: relative;
  animation: coSlideIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes coSlideIn {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.co-back {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: none; color: #666;
  font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 32px;
  transition: color 0.2s;
}
.co-back:hover { color: #fff; }

.co-title {
  color: #fff; font-size: 26px; font-weight: 800;
  letter-spacing: -0.8px; margin: 0 0 28px;
}

/* Layout */
.co-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
}
@media (max-width: 768px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary-col { order: -1; }
  .co-inner { padding: 24px; }
}

/* Form */
.co-section-label {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: #b35900; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.co-section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, #b35900, transparent);
}

.co-row { display: flex; gap: 14px; margin-bottom: 14px; }
.co-field { display: flex; flex-direction: column; flex: 1; margin-bottom: 14px; }
.co-field label { font-size: 11px; color: #666; margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.co-field input,
.co-field select {
  padding: 12px 14px;
  background: #161616; border: 1px solid #222; border-radius: 10px;
  color: #fff; font-size: 14px; outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.co-field input:focus,
.co-field select:focus { border-color: #b35900; }
.co-field input.error,
.co-field select.error { border-color: #ff4444; }
.co-field select { appearance: none; cursor: pointer; }
.co-field select option { background: #1a1a1a; }

/* Payment */
.co-payment-opts {
  display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap;
}
.pay-opt {
  flex: 1; min-width: 120px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #161616; border: 1.5px solid #222; border-radius: 12px;
  color: #888; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease; user-select: none;
}
.pay-opt input { display: none; }
.pay-opt.active {
  border-color: #b35900; color: #fff;
  background: linear-gradient(135deg, rgba(179,89,0,0.12), rgba(179,89,0,0.03));
}
.pay-opt:hover { border-color: #333; color: #ccc; }

/* Submit */
.co-submit-btn {
  width: 100%; padding: 18px;
  background: linear-gradient(135deg, #b35900, #8e4700);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}
.co-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(179,89,0,0.4);
}

/* Summary */
.co-summary-col {
  background: #111; border: 1px solid #1e1e1e;
  border-radius: 18px; padding: 24px;
  align-self: flex-start; position: sticky; top: 20px;
}
.co-summary-title {
  color: #fff; font-size: 16px; font-weight: 700;
  margin: 0 0 20px; letter-spacing: -0.3px;
}
.co-sum-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #1a1a1a;
  font-size: 13px; color: #aaa;
}
.co-sum-row em { color: #555; font-style: normal; font-size: 11px; margin-left: 4px; }
.co-sum-row span:last-child { color: #fff; font-weight: 600; }
.co-sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding: 16px;
  background: #0a0a0a; border-radius: 12px;
}
.co-sum-total span { color: #888; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.co-sum-total strong { color: #b35900; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

/* ── Başarı Ekranı ── */
.co-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 60px 40px;
}
.success-ring {
  width: 100px; height: 100px; margin-bottom: 32px;
}
.success-ring svg { width: 100%; height: 100%; }
.ring-anim {
  animation: drawRing 0.8s ease forwards 0.1s;
}
.check-anim {
  animation: drawCheck 0.5s ease forwards 0.8s;
}
@keyframes drawRing {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.co-success h2 { color: #fff; font-size: 32px; font-weight: 800; margin: 0 0 16px; letter-spacing: -1px; }
.co-success p { color: #888; font-size: 15px; line-height: 1.7; margin: 0 0 36px; }
.co-close-success {
  padding: 14px 40px;
  background: linear-gradient(135deg, #b35900, #8e4700);
  color: #fff; border: none; border-radius: 50px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.25s ease;
}
.co-close-success:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(179,89,0,0.4); }