@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2dd4a0;
  --primary-dim: rgba(45, 212, 160, 0.15);
  --accent: #facc15;
  --bg: #0f172a;
  --bg-2: #0a0f1a;
  --card: rgba(30, 41, 59, 0.6);
  --card-solid: #1e293b;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --border: rgba(45, 212, 160, 0.25);
  --border-soft: rgba(255, 255, 255, 0.08);
  --danger: #f87171;
  --warn: #facc15;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(ellipse at top, #1e293b 0%, var(--bg) 50%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  line-height: 1.55;
}

button { font-family: inherit; }

/* ───────── TOPNAV ───────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.back-btn {
  background: var(--primary-dim);
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.back-btn:hover {
  background: var(--primary);
  color: #0f172a;
  transform: translateX(-3px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}

.brand-mark { font-size: 1.6rem; }

.brand-name span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-bar {
  flex: 1;
  max-width: 520px;
}

.search-bar input,
.mobile-search input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text);
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.search-bar input:focus,
.mobile-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.85);
}

.topnav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-search { display: none; padding: 0.8rem 1.5rem; }

/* ───────── HERO ───────── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(250, 204, 21, 0.3);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 0 0 1.8rem;
  max-width: 460px;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product {
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s;
}

.hero-product:hover { transform: scale(1.02); }

.hero-product-img {
  height: 220px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-product-info {
  text-align: center;
}

.hero-product-name { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.3rem; }
.hero-product-price { color: var(--primary); font-size: 1.4rem; font-weight: 800; }
.hero-product-price .was { color: var(--text-faint); font-size: 0.9rem; text-decoration: line-through; margin-right: 0.5rem; font-weight: 500; }

/* ───────── BUTTONS ───────── */
.btn-primary, .btn-ghost, .btn-block {
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #22b387);
  color: #0f172a;
  padding: 0.8rem 1.8rem;
  box-shadow: 0 6px 20px rgba(45, 212, 160, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(45, 212, 160, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.btn-ghost:hover { background: var(--primary-dim); }

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ───────── CATEGORIES ───────── */
.categories {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.categories h2 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cat-chip {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cat-chip:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.cat-chip.active {
  background: var(--primary);
  color: #0f172a;
  border-color: var(--primary);
  font-weight: 600;
}

/* ───────── PRODUCTS SECTION ───────── */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
}

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.products-head h2 { margin: 0 0 0.2rem; font-size: 1.5rem; }
.result-count { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

.sort-wrap select {
  background: var(--card);
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  color: var(--text);
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.sort-wrap select:focus { outline: none; border-color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover .product-img { font-size: 5rem; }

.product-img-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1), transparent 60%);
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--danger);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-soft);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.wish-btn:hover { transform: scale(1.1); border-color: var(--danger); }
.wish-btn.active { background: var(--danger); border-color: var(--danger); }

.product-body { padding: 1rem; }

.product-cat {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.product-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.product-rating .stars { color: var(--accent); }

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.product-price { color: var(--primary); font-weight: 800; font-size: 1.15rem; }
.product-price .was { color: var(--text-faint); font-size: 0.85rem; text-decoration: line-through; margin-right: 0.3rem; font-weight: 500; }

.add-btn {
  background: var(--primary);
  color: #0f172a;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s;
  width: 100%;
  font-family: inherit;
}

.add-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.add-btn:disabled {
  background: var(--text-faint);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ───────── EMPTY STATE ───────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-dim);
}

.empty-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ───────── WHY US ───────── */
.why-us {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.why-us h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.9rem;
}

/* ───────── DRAWER (Cart/Wishlist/Orders) ───────── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.drawer[hidden] { display: none; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--card-solid);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.drawer-head h2 { margin: 0; font-size: 1.3rem; }

.drawer-close, .modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  transition: all 0.2s;
}

.drawer-close:hover, .modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.drawer-foot {
  border-top: 1px solid var(--border-soft);
  padding: 1.2rem 1.5rem;
}

/* ───────── CART ITEMS ───────── */
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-info { min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.95rem; }

.qty-controls {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  margin-top: 0.5rem;
}

.qty-controls button {
  background: none;
  border: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1rem;
}

.qty-controls button:hover { color: var(--primary); }
.qty-controls .qty { padding: 0 0.5rem; font-size: 0.88rem; font-weight: 600; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.cart-item-remove:hover { color: var(--danger); background: rgba(248, 113, 113, 0.1); }

.cart-totals {
  margin-bottom: 1rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--text-dim);
}

.cart-row.total {
  border-top: 1px solid var(--border-soft);
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-row.total span:last-child { color: var(--primary); }

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}

.empty-cart .emoji { font-size: 3rem; margin-bottom: 0.8rem; opacity: 0.5; }

/* ───────── ORDERS ───────── */
.order-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-num { font-weight: 700; color: var(--primary); }
.order-date { font-size: 0.78rem; color: var(--text-dim); }

.order-status {
  display: inline-block;
  background: var(--primary-dim);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.order-summary {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 0.5rem 0;
}

.order-total { font-weight: 700; color: var(--text); }

/* ───────── MODAL ───────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal-content {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: zoomIn 0.3s ease;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-content.modal-lg { max-width: 820px; }

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
  margin: 0 0 1.3rem;
  color: var(--primary);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
}

/* ───────── PRODUCT DETAIL ───────── */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pd-img {
  height: 320px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9rem;
  position: relative;
  overflow: hidden;
}

.pd-cat {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pd-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.pd-rating .stars { color: var(--accent); }

.pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.pd-price .was { color: var(--text-faint); font-size: 1.1rem; text-decoration: line-through; margin-right: 0.5rem; font-weight: 500; }

.pd-discount {
  background: var(--accent);
  color: #0f172a;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 0.5rem;
}

.pd-desc {
  color: var(--text-dim);
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.pd-features {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.pd-features h4 { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text); }
.pd-features ul { margin: 0; padding-left: 1.2rem; color: var(--text-dim); font-size: 0.88rem; }
.pd-features li { padding: 0.2rem 0; }

.pd-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.pd-stock { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1rem; }
.pd-stock.low { color: var(--accent); }
.pd-stock.out { color: var(--danger); }

/* ───────── CHECKOUT ───────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.checkout-grid h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.1rem;
}

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  color: var(--text);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.payment-option input { display: none; }

.po-card {
  display: block;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
}

.payment-option input:checked + .po-card {
  background: var(--primary-dim);
  border-color: var(--primary);
  color: var(--primary);
}

.checkout-items {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  max-height: 220px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.88rem;
}

.checkout-item:last-child { border-bottom: none; }
.checkout-item .name { color: var(--text); }
.checkout-item .qty { color: var(--text-dim); font-size: 0.8rem; }
.checkout-item .price { color: var(--primary); font-weight: 600; }

/* ───────── SUCCESS ───────── */
.success-content {
  text-align: center;
  padding: 1rem;
}

.success-emoji {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.success-content h2 {
  color: var(--primary) !important;
  text-align: center;
}

.success-content p {
  color: var(--text-dim);
  margin: 0.5rem 0 1.5rem;
}

.success-order {
  background: rgba(45, 212, 160, 0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.success-order .row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: var(--text-dim);
}

.success-order .row strong { color: var(--text); }

/* ───────── TOAST ───────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-solid);
  border: 1px solid var(--primary);
  color: var(--text);
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: toastIn 0.3s ease;
  font-weight: 500;
  max-width: 360px;
}

.toast[hidden] { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ───────── FOOTER ───────── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-faint);
  font-size: 0.88rem;
  border-top: 1px solid var(--border-soft);
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .pd-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pd-img { height: 240px; font-size: 7rem; }
  .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topnav { padding: 0.8rem 1rem; gap: 0.6rem; }
  .search-bar { display: none; }
  .mobile-search { display: block; }
  .mobile-toggle { display: none; }
  .back-btn { padding: 0.4rem 0.8rem; font-size: 0.78rem; }
  .brand-name span { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .hero h1 { font-size: 2rem; }
  .categories, .products-section, .why-us { padding-left: 1rem; padding-right: 1rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  .product-img { height: 130px; font-size: 3.5rem; }
  .product-body { padding: 0.8rem; }
  .modal-content { padding: 1.4rem; }
  .toast { left: 1rem; right: 1rem; bottom: 1rem; }
  .payment-options { grid-template-columns: 1fr; }
}
