/* ═══════════════════════════════════════════════════════════
   DripAgent — AI-Curated Fashion Marketplace
   Amazon-style layout · Dark editorial theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0f0f0f;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --surface-raised: #1e1e1e;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --border-strong: #333;
  --text: #f0ece4;
  --text-secondary: #c8c4bc;
  --text-muted: #8a8680;
  --accent: #e8553d;
  --accent-hover: #d44a34;
  --accent-glow: rgba(232, 85, 61, 0.15);
  --warm: #f5c869;
  --green: #4ade80;
  --star: #fbbf24;
  --deal-red: #cc0c39;
  --deal-bg: rgba(204, 12, 57, 0.08);
  --radius: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --max-w: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.syne { font-family: 'Syne', sans-serif; }
.accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Top Banner ─────────────────────────────────────────── */
.top-banner {
  background: linear-gradient(90deg, #1a1410 0%, #1e1510 50%, #1a1410 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* ─── Main Navigation ────────────────────────────────────── */
.main-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-light);
  transition: border-color 0.2s;
  max-width: 700px;
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  background: var(--surface-raised);
  border: none;
  border-right: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  min-width: 130px;
}

.search-category option {
  background: var(--surface);
  color: var(--text);
}

.search-input {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  background: var(--bg);
  border: none;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 10px 18px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-action-link:hover, .nav-action-link.active {
  color: var(--text);
}

.cart-action {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count[data-count="0"] { opacity: 0; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ─── Category Bar ───────────────────────────────────────── */
.category-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar { height: 0; }

.category-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.cat-link {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  text-transform: capitalize;
}

.cat-link:hover {
  color: var(--text);
  background: var(--surface);
}

.cat-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.deal-link {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
  width: 100%;
}

.btn:active { transform: scale(0.97); }

/* ─── Hero Banner ────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1410 60%, #14100a 100%);
  border-bottom: 1px solid var(--border);
}

.hero-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.hero-img-1 {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 360px;
  width: 100%;
}

.hero-img-2, .hero-img-3 {
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 170px;
  width: 100%;
}

/* ─── Home Sections ──────────────────────────────────────── */
.home-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.see-all {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.see-all:hover { gap: 8px; }

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 32px;
  line-height: 1;
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Product Grid ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #111;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--deal-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-trending {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(245, 200, 105, 0.12);
  color: var(--warm);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(245, 200, 105, 0.25);
}

.product-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover .product-name {
  color: var(--accent);
}

/* Star ratings */
.stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.star {
  font-size: 14px;
  line-height: 1;
}

.star.full { color: var(--star); }
.star.half { color: var(--star); opacity: 0.6; }
.star.empty { color: var(--border-strong); }

.rating-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}

.review-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Product pricing */
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--deal-red);
}

.price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.price-was {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--deal-red);
  background: var(--deal-bg);
  padding: 2px 8px;
  border-radius: 3px;
  width: fit-content;
}

.product-shipping {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Deals Banner ───────────────────────────────────────── */
.deals-banner {
  background: linear-gradient(135deg, #1a0a0a 0%, #1a1410 50%, #0a1a10 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deals-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
}

.deals-text {
  max-width: 500px;
}

.deals-label {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.deals-text h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.deals-text p {
  margin-bottom: 24px;
  font-size: 16px;
}

/* ─── Shop Layout (sidebar + grid) ───────────────────────── */
.shop-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar */
.shop-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:first-child {
  padding-top: 0;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.15s;
  text-transform: capitalize;
}

.sidebar-cat:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-cat.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.cat-num {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-filter {
  display: block;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.sidebar-filter:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-filter.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

.rating-filter {
  color: var(--star);
  letter-spacing: 1px;
}

.rating-filter.active {
  background: var(--accent-glow);
}

/* Shop topbar */
.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.results-count {
  font-weight: 700;
  color: var(--text);
}

.results-query {
  color: var(--text-muted);
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
}

.sort-select:focus { border-color: var(--accent); }

.sort-select option {
  background: var(--surface);
  color: var(--text);
}

/* ─── Product Detail Page ────────────────────────────────── */
.pdp-breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.pdp-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.pdp-breadcrumb a:hover {
  color: var(--accent);
}

.pdp {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pdp-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111;
  position: sticky;
  top: 80px;
}

.pdp-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.pdp-discount {
  font-size: 16px;
  padding: 6px 14px;
  top: 16px;
  left: 16px;
}

.pdp-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.pdp-category-link {
  font-size: 13px;
  color: var(--accent);
  text-transform: capitalize;
  margin-bottom: 8px;
  display: inline-block;
}

.pdp-category-link:hover { text-decoration: underline; }

.pdp-rating {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pdp-rating .stars-row {
  font-size: 16px;
}

.pdp-rating .star { font-size: 18px; }

.pdp-price-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.pdp-savings {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.savings-pct {
  font-size: 24px;
  font-weight: 600;
  color: var(--deal-red);
}

.price-big {
  font-size: 32px;
  font-weight: 700;
}

.pdp-list-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pdp-list-price .price-was {
  text-decoration: line-through;
}

.pdp-you-save {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.pdp-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pdp-options {
  margin-bottom: 20px;
}

.option-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.size-grid {
  display: flex;
  gap: 8px;
}

.size-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.size-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.size-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.add-to-cart-btn {
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
}

.add-to-cart-btn.added {
  background: var(--green);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.15);
}

.pdp-trust {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.trust-item svg { flex-shrink: 0; margin-top: 2px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item .text-muted { font-size: 12px; }

.pdp-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(232, 85, 61, 0.2);
  font-weight: 500;
}

.related-section {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

/* ─── Cart Page ──────────────────────────────────────────── */
.cart-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

.cart-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-item:first-child { padding-top: 0; }

.cart-item-image {
  width: 100px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

.cart-item-name:hover { color: var(--accent); }

.cart-item-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.cart-item-price {
  font-weight: 700;
  font-size: 18px;
  margin-top: 4px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--surface-hover); }

.qty-num {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 36px;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0;
}

.remove-btn:hover { opacity: 0.7; }

/* Cart Summary */
.cart-sidebar {
  position: sticky;
  top: 80px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 10px;
}

.summary-total {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.shipping-note {
  font-size: 12px;
  margin-bottom: 6px;
}

.checkout-btn {
  margin-bottom: 12px;
  text-align: center;
  border-radius: var(--radius-xl);
}

.secure-note {
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cart-recs {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

/* ─── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty svg {
  margin: 0 auto 24px;
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state .text-muted {
  margin-bottom: 24px;
}

.empty-state a:not(.btn) {
  color: var(--accent);
}

/* ─── Success Page ───────────────────────────────────────── */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.success-card {
  text-align: center;
  max-width: 460px;
}

.success-icon { margin-bottom: 24px; }

.success-card h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.success-card p { margin-bottom: 8px; font-size: 15px; }

.success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo { margin-bottom: 8px; display: inline-block; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* ─── Toast Notification ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .product-grid-home {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-banner-inner {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-banner-inner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .hero-images { display: none; }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .sidebar-section {
    border-bottom: none;
    padding: 0;
    min-width: 150px;
  }

  .pdp {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-image {
    position: static;
    max-height: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    width: 100%;
    display: none;
  }

  .search-bar.mobile-open {
    display: flex;
  }

  .search-category {
    display: none;
  }

  .mobile-menu-btn { display: block; }

  .nav-actions {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px;
    flex-direction: row;
    justify-content: space-around;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-actions.open { display: flex; }

  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .category-card {
    padding: 16px 8px;
  }

  .cat-icon { font-size: 24px; }
  .cat-name { font-size: 12px; }

  .home-section {
    padding: 32px 16px;
  }

  .section-head h2 { font-size: 22px; }

  .hero-text h1 { font-size: 36px; }

  .hero-banner-inner {
    padding: 32px 16px;
  }

  .deals-inner {
    padding: 40px 16px;
  }

  .deals-text h2 { font-size: 28px; }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-sidebar {
    position: static;
  }

  .pdp {
    padding: 16px;
  }

  .pdp-title { font-size: 22px; }

  .price-big { font-size: 26px; }
  .savings-pct { font-size: 20px; }

  .success-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .shop-layout {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid,
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-info {
    padding: 10px 12px 14px;
  }

  .product-name { font-size: 13px; }
  .price-current { font-size: 17px; }
  .star { font-size: 12px; }

  .cart-item-image {
    width: 80px;
    height: 100px;
  }
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeInUp 0.35s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.04s; }
.product-card:nth-child(3) { animation-delay: 0.08s; }
.product-card:nth-child(4) { animation-delay: 0.12s; }
.product-card:nth-child(5) { animation-delay: 0.16s; }
.product-card:nth-child(6) { animation-delay: 0.2s; }
.product-card:nth-child(7) { animation-delay: 0.24s; }
.product-card:nth-child(8) { animation-delay: 0.28s; }

.category-card {
  animation: fadeInUp 0.3s ease forwards;
  opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0s; }
.category-card:nth-child(2) { animation-delay: 0.05s; }
.category-card:nth-child(3) { animation-delay: 0.1s; }
.category-card:nth-child(4) { animation-delay: 0.15s; }
.category-card:nth-child(5) { animation-delay: 0.2s; }
.category-card:nth-child(6) { animation-delay: 0.25s; }
.category-card:nth-child(7) { animation-delay: 0.3s; }
.category-card:nth-child(8) { animation-delay: 0.35s; }

/* ─── Section Subtitle ──────────────────────────────────── */
.section-subtitle {
  font-size: 15px;
  margin-top: -18px;
  margin-bottom: 24px;
}

/* ─── Ethnic Wear Section ───────────────────────────────── */
.ethnic-section {
  background: linear-gradient(135deg, rgba(232, 85, 61, 0.03) 0%, transparent 60%);
  border-radius: var(--radius-xl);
  margin-left: 8px;
  margin-right: 8px;
}
