/* ============================================================
   Saree Store — Complete Stylesheet
   Brand: Warm Ivory, Deep Wine, Antique Gold
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --ivory: #FAF7F1;
  --wine: #70283E;
  --wine-dark: #5b2033;
  --wine-light: #8a3d55;
  --gold: #BE985B;
  --gold-light: #d4b47a;
  --charcoal: #252525;
  --beige: #EFE6DB;
  --beige-dark: #e0d4c4;
  --white: #FFFFFF;
  --grey-50: #f8f6f2;
  --grey-100: #ece7e0;
  --grey-300: #b8b0a6;
  --grey-500: #6b6b6b;
  --grey-700: #3d3d3d;
  --success: #2e7d32;
  --danger: #c62828;
  --warning: #ef6c00;
  --info: #1565c0;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Lato, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(37, 37, 37, 0.06);
  --shadow: 0 2px 10px rgba(37, 37, 37, 0.08);
  --shadow-lg: 0 12px 32px rgba(37, 37, 37, 0.12);

  --header-h: 72px;
  --container: 1280px;
  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--wine-dark); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--charcoal);
  margin: 0 0 var(--space-3);
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
h4 { font-size: 17px; }
p { margin: 0 0 var(--space-4); }
hr { border: 0; border-top: 1px solid var(--beige-dark); margin: var(--space-5) 0; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--space-5); }
.text-center { text-align: center; }
.text-muted { color: var(--grey-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--space-3); } .mb-3 { margin-bottom: var(--space-3); }
.mt-5 { margin-top: var(--space-5); } .mb-5 { margin-bottom: var(--space-5); }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--wine); color: var(--white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn:hover { background: var(--wine-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-secondary { background: var(--beige); color: var(--wine); }
.btn-secondary:hover { background: var(--beige-dark); color: var(--wine-dark); }

.btn-outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: var(--white); }

.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-ghost:hover { background: var(--beige); color: var(--wine); }

.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a01e1e; }

.btn-block { width: 100%; display: flex; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--space-4); }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(190, 152, 91, 0.15);
}
.form-control:disabled { background: var(--grey-50); cursor: not-allowed; }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { padding-right: 32px; }
.form-hint { display: block; font-size: 12px; color: var(--grey-500); margin-top: 4px; }
.form-error { display: block; font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.checkbox, .radio {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer;
}
.checkbox input, .radio input {
  width: 16px; height: 16px;
  accent-color: var(--wine);
  cursor: pointer;
}

/* ---------- Flash messages ---------- */
.flash {
  padding: 12px 16px;
  margin: 0 0 var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 14px;
  border-left: 4px solid;
}
.flash-success { background: #e8f5e9; color: var(--success); border-color: var(--success); }
.flash-error { background: #fdecea; color: var(--danger); border-color: var(--danger); }
.flash-warning { background: #fff3e0; color: var(--warning); border-color: var(--warning); }
.flash-info { background: #e3f2fd; color: var(--info); border-color: var(--info); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--wine);
  color: var(--white);
  padding: 8px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.announcement-bar a { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.brand-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--wine);
  font-weight: 400;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand-logo img { height: 40px; width: auto; }
.brand-logo:hover { color: var(--wine-dark); }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active { background: var(--beige); color: var(--wine); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.header-icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%;
  color: var(--charcoal);
  position: relative;
  transition: background var(--transition);
}
.header-icon-btn:hover { background: var(--beige); color: var(--wine); }
.header-icon-btn svg { width: 20px; height: 20px; }
.header-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--wine); color: var(--white);
  border-radius: 9px;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* Search drawer */
.search-drawer {
  display: none;
  background: var(--beige);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--beige-dark);
}
.search-drawer.open { display: block; }
.search-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  font-size: 14px;
  background: transparent;
}
.search-form input:focus { outline: none; }
.search-form button {
  padding: 0 20px;
  background: var(--wine); color: var(--white);
  border: 0; font-size: 14px; font-weight: 600;
}

/* Mobile menu toggle */
.mobile-menu-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
  .site-header-inner { gap: var(--space-3); }
  .brand-logo { font-size: 18px; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity var(--transition);
}
.mobile-drawer.open .mobile-drawer-backdrop { opacity: 1; }
.mobile-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 280ms ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--beige);
}
.mobile-drawer-nav { padding: var(--space-4) 0; overflow-y: auto; flex: 1; }
.mobile-drawer-nav a {
  display: block;
  padding: 12px var(--space-5);
  font-size: 15px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--grey-50);
}
.mobile-drawer-nav a:hover { background: var(--beige); color: var(--wine); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: var(--beige);
  overflow: hidden;
}
.hero-picture {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-picture::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(37,37,37,0.55) 0%, rgba(37,37,37,0.15) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  color: var(--white);
  width: 100%;
}
.hero-content > * { max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero p {
  font-size: 16px;
  opacity: 0.92;
  margin-bottom: var(--space-6);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 28px; font-size: 14px; }
.hero-actions .btn-secondary { background: rgba(255,255,255,0.95); color: var(--wine); }
.hero-actions .btn-secondary:hover { background: var(--white); }

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero-picture::after { background: linear-gradient(0deg, rgba(37,37,37,0.65) 0%, rgba(37,37,37,0.2) 80%); }
  .hero-content { padding: var(--space-6) var(--space-5); }
}

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-6) 0; }
.section-alt { background: var(--white); }
.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h2 { margin-bottom: var(--space-2); }
.section-header .subtitle {
  font-size: 15px;
  color: var(--grey-500);
  margin: 0;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
  font-weight: 600;
}

/* ============================================================
   CATEGORY & FABRIC GRIDS
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--beige);
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.category-card:hover img { transform: scale(1.04); }
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(37,37,37,0.72) 0%, rgba(37,37,37,0.05) 55%, transparent 100%);
}
.category-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-4);
  z-index: 2;
  color: var(--white);
}
.category-card-label h3 {
  color: var(--white);
  font-size: 17px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
}
.category-card-label span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.fabric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.fabric-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--beige);
}
.fabric-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.fabric-card:hover img { transform: scale(1.05); }
.fabric-card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(37,37,37,0.55) 0%, transparent 60%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .category-grid, .fabric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .category-card-label h3 { font-size: 14px; }
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5) var(--space-4);
}
.product-grid.is-3-col { grid-template-columns: repeat(3, 1fr); }

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--beige);
}
.product-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-badges {
  position: absolute;
  top: var(--space-3); left: var(--space-3);
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.product-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  background: var(--wine);
  color: var(--white);
}
.product-badge.sale { background: var(--gold); color: var(--charcoal); }
.product-badge.new { background: var(--charcoal); }
.product-badge.out { background: var(--grey-500); }

.wishlist-btn {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.95);
  border: 0;
  border-radius: 50%;
  color: var(--charcoal);
  z-index: 2;
  transition: background var(--transition), color var(--transition);
}
.wishlist-btn:hover { background: var(--white); color: var(--wine); }
.wishlist-btn.is-active { background: var(--wine); color: var(--white); }
.wishlist-btn svg { width: 18px; height: 18px; }

.product-card-hover-actions {
  position: absolute;
  bottom: var(--space-3); left: var(--space-3); right: var(--space-3);
  display: flex; gap: var(--space-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-hover-actions { opacity: 1; transform: translateY(0); }
.product-card-hover-actions .btn {
  padding: 10px 14px;
  font-size: 12px;
  flex: 1;
}
.product-card-hover-actions .btn-icon {
  flex: 0 0 auto;
  padding: 10px 12px;
}

.product-card-body { padding: var(--space-3) var(--space-3) var(--space-4); }
.product-card-category {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 4px;
}
.product-card-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a { color: inherit; }
.product-card-price {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}
.price-current { font-weight: 600; color: var(--charcoal); }
.price-old { color: var(--grey-500); text-decoration: line-through; font-size: 12px; }
.price-off { color: var(--success); font-size: 12px; font-weight: 600; }

.rating {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--grey-500);
}
.rating-stars { color: var(--gold); letter-spacing: 1px; }

@media (max-width: 1024px) {
  .product-grid, .product-grid.is-3-col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-grid, .product-grid.is-3-col { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
  .product-card-hover-actions { opacity: 1; transform: none; }
  .product-card-hover-actions .btn { font-size: 11px; padding: 8px; }
  .product-card-hover-actions .btn-text { display: none; }
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.page-header {
  background: var(--beige);
  padding: var(--space-6) 0;
  text-align: center;
}
.page-header h1 { margin: 0; }
.page-header .subtitle { color: var(--grey-500); margin: var(--space-2) 0 0; font-size: 15px; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
}
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  align-self: start;
  max-height: calc(100vh - var(--header-h) - var(--space-6));
  overflow-y: auto;
}
.filter-group {
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
}
.filter-group h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3);
  color: var(--charcoal);
}
.filter-list li { margin-bottom: 6px; font-size: 14px; }
.filter-list label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--beige);
  flex-wrap: wrap;
}
.shop-toolbar .result-count { font-size: 13px; color: var(--grey-500); }
.shop-toolbar select { padding: 8px 32px 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--beige-dark); font-size: 13px; background: var(--white); }

.filter-toggle-btn { display: none; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    inset: 0;
    max-height: none;
    background: var(--white);
    z-index: 80;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 300ms ease;
    padding: var(--space-5);
    display: flex; flex-direction: column;
  }
  .shop-sidebar.open { transform: translateX(0); }
  .filter-toggle-btn { display: inline-flex; }
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding: var(--space-6) 0 var(--space-8);
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: var(--space-5); } }

.pdp-gallery {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  align-self: start;
}
@media (max-width: 900px) { .pdp-gallery { position: static; } }

.pdp-main-image {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.pdp-thumb {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--beige);
  transition: border-color var(--transition);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.is-active { border-color: var(--wine); }

.pdp-info h1 { margin-bottom: var(--space-2); }
.pdp-sku { font-size: 12px; color: var(--grey-500); margin-bottom: var(--space-3); }
.pdp-price-block {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: 24px;
}
.pdp-price-block .price-old { font-size: 16px; }
.pdp-price-block .price-off { font-size: 14px; }
.pdp-short-desc {
  color: var(--grey-700);
  font-size: 15px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--beige);
}
.pdp-stock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--success);
  margin-bottom: var(--space-4);
}
.pdp-stock.low { color: var(--warning); }
.pdp-stock.out { color: var(--danger); }

.pdp-actions {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.pdp-actions .btn { flex: 1; min-width: 140px; }

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.qty-selector button {
  width: 40px; height: 44px;
  border: 0;
  background: transparent;
  font-size: 18px;
  color: var(--charcoal);
  transition: background var(--transition);
}
.qty-selector button:hover { background: var(--beige); }
.qty-selector input {
  width: 48px;
  height: 44px;
  border: 0;
  text-align: center;
  font-size: 14px;
  background: transparent;
}
.qty-selector input:focus { outline: none; }

.pdp-pincode {
  display: flex; gap: var(--space-2);
  margin-bottom: var(--space-4);
  max-width: 320px;
}
.pdp-pincode input { flex: 1; }
.pdp-pincode-result { font-size: 13px; margin-top: 6px; }

/* Tabs */
.pdp-tabs { margin-top: var(--space-6); }
.pdp-tabs-list {
  display: flex;
  gap: var(--space-4);
  border-bottom: 1px solid var(--beige);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pdp-tabs-list button {
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-500);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}
.pdp-tabs-list button.active { color: var(--wine); border-bottom-color: var(--wine); }
.pdp-tab-panel { padding: var(--space-5) 0; display: none; font-size: 14px; line-height: 1.7; }
.pdp-tab-panel.active { display: block; }
.pdp-tab-panel h4 { margin-top: var(--space-4); font-family: var(--font-body); font-weight: 600; font-size: 14px; }
.pdp-specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pdp-specs-table th, .pdp-specs-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--beige);
  vertical-align: top;
}
.pdp-specs-table th { width: 40%; color: var(--grey-500); font-weight: 500; }

/* Reviews */
.review-list { margin-top: var(--space-4); }
.review-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--beige);
}
.review-meta {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 12px; color: var(--grey-500);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.review-author { font-weight: 600; color: var(--charcoal); font-size: 14px; }
.review-verified {
  display: inline-block;
  padding: 2px 6px;
  background: #e8f5e9; color: var(--success);
  border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.review-body p { font-size: 14px; line-height: 1.65; margin: var(--space-2) 0 0; }

/* ============================================================
   CART
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-8);
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--beige);
}
.cart-item-image {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--beige);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.cart-item-info .meta { font-size: 13px; color: var(--grey-500); }
.cart-item-price { text-align: right; font-weight: 600; white-space: nowrap; }
.cart-item-remove {
  background: transparent; border: 0;
  color: var(--grey-500); font-size: 13px;
  padding: 4px 0;
  margin-top: var(--space-2);
  text-decoration: underline;
}
.cart-item-remove:hover { color: var(--danger); }

.summary-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}
.summary-card h3 { font-family: var(--font-heading); margin-top: 0; margin-bottom: var(--space-4); font-size: 20px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--beige);
}
.summary-row.total {
  border: 0;
  font-size: 17px;
  font-weight: 600;
  padding-top: var(--space-3);
  border-top: 2px solid var(--charcoal);
  margin-top: var(--space-2);
}
.summary-row.discount { color: var(--success); }

.coupon-form { display: flex; gap: var(--space-2); margin: var(--space-4) 0; }
.coupon-form input { flex: 1; }

.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--grey-500);
}
.empty-state svg { width: 80px; height: 80px; margin: 0 auto var(--space-4); color: var(--grey-300); }
.empty-state h2 { margin-bottom: var(--space-2); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-8);
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.checkout-section h2 { font-size: 20px; margin-top: 0; }
.payment-option {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.payment-option:hover { border-color: var(--gold); }
.payment-option.is-selected { border-color: var(--wine); background: var(--grey-50); }
.payment-option input { margin-top: 3px; }
.payment-option-content { flex: 1; }
.payment-option-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.payment-option-desc { font-size: 13px; color: var(--grey-500); }

/* ============================================================
   ACCOUNT / AUTH
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6) var(--space-4);
  background: var(--ivory);
}
.auth-card {
  max-width: 460px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-6);
}
.auth-card h1 { font-size: 26px; margin-bottom: var(--space-2); text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--grey-500); margin-bottom: var(--space-5); font-size: 14px; }
.auth-divider {
  display: flex; align-items: center; gap: var(--space-3);
  margin: var(--space-4) 0;
  color: var(--grey-500); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--beige);
}
.btn-google {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--beige-dark);
  width: 100%;
}
.btn-google:hover { background: var(--grey-50); color: var(--charcoal); }
.btn-google svg { width: 18px; height: 18px; }

/* Account dashboard */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-8);
}
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.account-nav a {
  display: block;
  padding: 14px var(--space-4);
  font-size: 14px;
  color: var(--charcoal);
  border-bottom: 1px solid var(--grey-50);
}
.account-nav a:last-child { border: 0; }
.account-nav a:hover, .account-nav a.active { background: var(--beige); color: var(--wine); }

.order-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid var(--beige);
}
.order-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-3); flex-wrap: wrap;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--beige);
  margin-bottom: var(--space-3);
}
.order-number { font-weight: 600; font-size: 14px; }
.order-date { font-size: 12px; color: var(--grey-500); }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--beige);
  color: var(--charcoal);
}
.status-badge.status-paid,
.status-badge.status-delivered { background: #e8f5e9; color: var(--success); }
.status-badge.status-processing,
.status-badge.status-packed,
.status-badge.status-shipped,
.status-badge.status-out_for_delivery { background: #e3f2fd; color: var(--info); }
.status-badge.status-pending,
.status-badge.status-awaiting_payment { background: #fff3e0; color: var(--warning); }
.status-badge.status-cancelled,
.status-badge.status-payment_failed { background: #fdecea; color: var(--danger); }
.status-badge.status-return_requested,
.status-badge.status-returned,
.status-badge.status-refunded { background: var(--beige-dark); color: var(--grey-700); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--grey-100);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-3);
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--grey-300);
  line-height: 1.9;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col li { margin-bottom: 6px; }

.footer-brand {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--white);
}
.footer-social a:hover { background: var(--wine); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-4);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); flex-wrap: wrap;
  font-size: 12px;
  color: var(--grey-300);
}
.footer-payments { display: flex; gap: var(--space-2); align-items: center; }
.footer-payments span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--beige);
  padding: var(--space-7) var(--space-4);
  text-align: center;
}
.newsletter h2 { margin-bottom: var(--space-2); }
.newsletter p { color: var(--grey-500); margin-bottom: var(--space-4); }
.newsletter-form {
  display: flex; gap: var(--space-2);
  max-width: 480px; margin: 0 auto;
}
.newsletter-form input { flex: 1; }
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding: var(--space-3) 0;
  font-size: 13px;
  color: var(--grey-500);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumbs a { color: var(--grey-500); }
.breadcrumbs a:hover { color: var(--wine); }
.breadcrumbs .sep { color: var(--grey-300); margin: 0 4px; }
.breadcrumbs span[aria-current] { color: var(--charcoal); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 4px;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--charcoal);
  border: 1px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.pagination .page-link:hover { border-color: var(--wine); color: var(--wine); }
.pagination .page-link.is-active {
  background: var(--wine); border-color: var(--wine); color: var(--white);
}
.pagination .page-ellipsis { padding: 0 4px; color: var(--grey-500); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  max-width: 320px;
  pointer-events: auto;
  animation: toastIn 240ms ease;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  color: var(--white);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px; left: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: var(--white); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (max-width: 500px) { .whatsapp-float { width: 48px; height: 48px; bottom: 16px; left: 16px; } }

/* ============================================================
   MISC / HELPERS
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--beige) 0%, var(--beige-dark) 50%, var(--beige) 100%);
  background-size: 200% 100%;
  animation: skeleton 1.4s ease infinite;
}
@keyframes skeleton { to { background-position: -200% 0; } }

.tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--beige);
  color: var(--charcoal);
  font-size: 11px;
  letter-spacing: 0.04em;
  border-radius: 20px;
  text-transform: uppercase;
}

.divider { height: 1px; background: var(--beige); margin: var(--space-5) 0; }

/* Print styles (for order invoice) */
@media print {
  .site-header, .site-footer, .announcement-bar, .whatsapp-float,
  .header-actions, .mobile-drawer, .pdp-tabs-list { display: none !important; }
  body { background: var(--white); color: black; font-size: 12pt; }
  .container, .container-narrow { max-width: none; padding: 0; }
  a { color: black; text-decoration: none; }
}