/* Paavaiyar Luxury Apparel — Design System v2 */
:root {
  --burgundy: #4A1525;
  --burgundy-dark: #3a0f1c;
  --burgundy-light: #6b2238;
  --rose-gold: #C5A059;
  --rose-gold-light: #d4b575;
  --ivory: #FDF6F0;
  --ivory-deep: #FAF0E8;
  --white: #FFFFFF;
  --charcoal: #1E1E1E;
  --muted: #666666;
  --line: #E8DDD5;
  --danger: #b3261e;
  --ok: #1a6b37;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --radius-s: 8px;
  --radius-m: 10px;
  --radius-l: 12px;
  --shadow: 0 4px 20px -2px rgba(74, 21, 37, 0.08);
  --shadow-hover: 0 8px 32px -4px rgba(74, 21, 37, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--charcoal); background: var(--ivory); font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-dark); }
:focus-visible { outline: 2px solid var(--rose-gold); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; color: var(--burgundy); }
h2 { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; color: var(--burgundy); }
h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--burgundy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === ANNOUNCEMENT BAR === */
.announcement-bar {
  background: var(--burgundy);
  color: #fff;
  text-align: center;
  padding: 9px 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === HEADER === */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--burgundy); text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; line-height: 1.25; }
.logo .logo-sub { display: block; font-family: var(--font-sans); font-size: .5rem; letter-spacing: 0.22em; font-weight: 600; color: var(--rose-gold); text-transform: uppercase; margin-top: 2px; }
.search { flex: 1; display: flex; max-width: 480px; }
.search input { flex: 1; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s); padding: 10px 16px; font: inherit; background: var(--ivory); color: var(--charcoal); font-size: .88rem; transition: border-color .15s; }
.search input:focus { border-color: var(--rose-gold); outline: none; background: #fff; }
.search button { border-radius: 0 var(--radius-s) var(--radius-s) 0; border: 1.5px solid var(--burgundy); border-left: 0; background: var(--burgundy); color: #fff; padding: 10px 18px; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: 0.06em; transition: background .15s; }
.search button:hover { background: var(--burgundy-dark); }
.header-actions { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.header-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; background: none; border: none; cursor: pointer; color: var(--charcoal); font: inherit; font-size: .68rem; font-weight: 700; text-decoration: none; border-radius: var(--radius-s); position: relative; transition: color .15s, background .15s; letter-spacing: 0.04em; text-transform: uppercase; }
.header-btn:hover { color: var(--burgundy); background: var(--ivory); }
.header-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.header-btn .badge { position: absolute; top: 2px; right: 6px; background: var(--burgundy); color: #fff; border-radius: 999px; font-size: .58rem; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }
.cat-nav { background: var(--ivory-deep); border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; margin: 0 auto; padding: 0 24px; display: flex; overflow-x: auto; max-width: var(--wrap); scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 11px 18px; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 700; font-size: .73rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.cat-nav a:hover, .cat-nav a[aria-current=page] { color: var(--burgundy); border-bottom-color: var(--rose-gold); }

/* === CART DRAWER === */
.drawer-overlay { position: fixed; inset: 0; background: rgba(30,8,14,.45); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 100vw; background: var(--white); z-index: 201; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -8px 0 40px rgba(74,21,37,.15); }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 0; font-size: 1.1rem; }
.drawer-close { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 50%; color: var(--muted); transition: background .15s; }
.drawer-close:hover { background: var(--ivory); color: var(--charcoal); }
.drawer-close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-empty { text-align: center; padding: 48px 0; color: var(--muted); }
.drawer-empty svg { width: 52px; height: 52px; margin: 0 auto 16px; stroke: var(--line); fill: none; stroke-width: 1.5; }
.drawer-empty p { font-size: .9rem; margin-bottom: 20px; }
.shipping-progress { margin-bottom: 20px; padding: 14px 16px; background: var(--ivory); border-radius: var(--radius-m); border: 1px solid var(--line); }
.shipping-progress p { font-size: .8rem; margin: 0 0 8px; font-weight: 600; }
.progress-bar { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--rose-gold), var(--burgundy)); border-radius: 999px; transition: width .4s ease; }
.drawer-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.drawer-line-img { width: 80px; height: 100px; object-fit: cover; border-radius: var(--radius-s); background: var(--ivory); flex-shrink: 0; }
.drawer-line-info { flex: 1; min-width: 0; }
.drawer-line-name { font-weight: 700; font-size: .88rem; margin-bottom: 3px; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-line-size { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.drawer-line-meta { display: flex; justify-content: space-between; align-items: center; }
.drawer-line-qty { font-size: .78rem; color: var(--muted); }
.drawer-line-price { font-weight: 800; color: var(--burgundy); font-size: .9rem; }
.drawer-footer { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--ivory); }
.drawer-totals { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-totals span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.drawer-totals strong { font-family: var(--font-serif); font-size: 1.3rem; color: var(--burgundy); }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; }

/* === TOAST NOTIFICATIONS === */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--charcoal); color: #fff; padding: 12px 18px; border-radius: var(--radius-m); font-size: .85rem; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 10px; max-width: 320px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: all; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ok { background: var(--burgundy); border-left: 4px solid var(--rose-gold); }
.toast-err { background: #7a1a1a; border-left: 4px solid var(--danger); }
.toast svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--burgundy); color: #fff; font: inherit; font-weight: 700; font-size: .82rem; padding: 12px 24px; border-radius: var(--radius-s); text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--burgundy-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,21,37,.25); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: .9rem; width: 100%; }
.btn-gold { background: var(--rose-gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--rose-gold-light); color: var(--charcoal); box-shadow: 0 4px 12px rgba(197,160,89,.3); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--ivory); color: var(--burgundy); border-color: var(--burgundy); box-shadow: none; transform: none; }
.btn-link { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; font-size: inherit; }
.btn:disabled, .btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

/* === FORMS === */
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .82rem; letter-spacing: 0.03em; color: var(--charcoal); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 11px 14px; font: inherit; background: #fff; color: var(--charcoal); transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--rose-gold); outline: none; box-shadow: 0 0 0 3px rgba(197,160,89,.15); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.error { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; font-size: .88rem; }
.check input { accent-color: var(--burgundy); width: 16px; height: 16px; }

/* === FLASH === */
.flash { padding: 13px 18px; border-radius: var(--radius-s); margin: 16px 0; font-size: .88rem; }
.flash-ok { background: #e7f4ea; color: var(--ok); border-left: 3px solid var(--ok); }
.flash-error { background: #fbeaea; color: var(--danger); border-left: 3px solid var(--danger); }

/* === HOMEPAGE SLIDER === */
.hero-slider { position: relative; overflow: hidden; background: var(--burgundy); color: #fff; min-height: 520px; display: flex; align-items: stretch; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(74,21,37,.82) 0%, rgba(30,10,18,.45) 100%); }
.hero-slide-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, var(--burgundy) 0%, #5c1a2e 100%); }
.hero-slide-fallback::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C5A059' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-inner { position: relative; max-width: 620px; padding: 88px 0; }
.hero-eyebrow { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--rose-gold); }
.hero-inner h1 { font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 600; color: #fff; margin-bottom: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.hero-inner p { font-size: 1rem; color: rgba(255,255,255,.78); max-width: 44ch; margin-bottom: 40px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn { min-width: 160px; width: auto; }
/* Slider controls */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; backdrop-filter: blur(4px); }
.slider-arrow:hover { background: rgba(255,255,255,.28); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.slider-dot.active { background: var(--rose-gold); transform: scale(1.3); }
/* Admin slide cards */
.slide-card { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 12px; background: var(--ivory); }
.slide-card img { width: 140px; height: 88px; object-fit: cover; border-radius: 4px; }

/* Section */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--burgundy); border-bottom: 1.5px solid var(--rose-gold); padding-bottom: 2px; }
.section-divider { text-align: center; margin-bottom: 48px; }
.section-divider .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 10px; }
.section-divider h2 { margin: 0; }

/* Category tiles */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-tile { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 3/4; position: relative; background: var(--burgundy); text-decoration: none; display: block; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.category-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .4s ease, opacity .3s; }
.category-tile:hover img { transform: scale(1.05); opacity: .85; }
.category-tile-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 20px 22px; background: linear-gradient(to top, rgba(74,21,37,.88) 0%, transparent 100%); }
.category-tile-label span { color: #fff; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.03em; display: block; margin-bottom: 4px; }
.category-tile-label small { color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Brand story */
.brand-story { background: var(--charcoal); color: #fff; padding: 88px 0; }
.brand-story-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.brand-story .eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 18px; }
.brand-story h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 22px; }
.brand-story p { color: rgba(255,255,255,.7); line-height: 1.9; margin-bottom: 36px; font-size: 1.02rem; }
.brand-story hr { width: 64px; height: 2px; background: linear-gradient(90deg, var(--rose-gold), transparent); border: none; margin: 0 auto 36px; }

/* === PRODUCT GRID === */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }

/* Product Card */
.card { text-decoration: none; color: inherit; display: block; border-radius: var(--radius-l); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 4/5; background: var(--ivory); overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 14px 16px 18px; }
.card-category { font-size: .68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 5px; }
.card-name { font-weight: 700; font-size: .9rem; color: var(--charcoal); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.card-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: .98rem; color: var(--burgundy); }
.mrp { color: var(--muted); text-decoration: line-through; font-size: .82rem; font-weight: 400; }
.off { background: var(--rose-gold); color: var(--charcoal); font-weight: 800; font-size: .68rem; padding: 3px 8px; border-radius: 4px; position: absolute; top: 12px; left: 12px; letter-spacing: 0.05em; text-transform: uppercase; z-index: 1; }
.oos { color: var(--danger); font-size: .78rem; font-weight: 700; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.card-wishlist { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s, transform .15s; z-index: 1; }
.card-wishlist:hover { background: #fff; transform: scale(1.1); }
.card-wishlist svg { width: 16px; height: 16px; stroke: var(--burgundy); fill: none; stroke-width: 2; pointer-events: none; }
.card-wishlist.active svg { fill: var(--burgundy); }
.card-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.card-stars .stars { color: var(--rose-gold); font-size: .82rem; letter-spacing: -1px; }
.card-stars .count { font-size: .72rem; color: var(--muted); }

/* === PRODUCT LISTING === */
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; padding: 36px 0 72px; }
.filter-sidebar { background: var(--white); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.filter-sidebar > h3 { font-size: .82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 800; color: var(--burgundy); display: flex; justify-content: space-between; align-items: center; }
.filter-reset { font-size: .72rem; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer; background: none; border: none; font: inherit; }
.filter-reset:hover { color: var(--burgundy); }
.filter-section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.filter-section h4 { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: .86rem; font-weight: 500; }
.filter-option input { accent-color: var(--burgundy); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.size-filter-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.size-chip { padding: 5px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font-size: .75rem; font-weight: 700; cursor: pointer; transition: all .15s; background: var(--white); color: var(--charcoal); user-select: none; }
.size-chip:hover, .size-chip.active { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.price-inputs input { padding: 8px 10px; font-size: .82rem; }
.listing-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.listing-count { font-size: .85rem; color: var(--muted); font-weight: 500; }
.sort-select { width: auto; padding: 9px 14px; font-size: .82rem; border-radius: var(--radius-s); }

/* Breadcrumb */
.crumbs { font-size: .8rem; color: var(--muted); padding: 20px 0 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); transition: color .15s; }
.crumbs a:hover { color: var(--burgundy); }

/* === PRODUCT DETAIL PAGE === */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0 80px; }
.pdp-gallery { position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 4/5; background: var(--ivory); border-radius: var(--radius-l); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-main:hover img { transform: scale(1.05); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { width: 72px; height: 90px; flex-shrink: 0; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; background: var(--ivory); transition: border-color .15s; }
.thumbs button[aria-current=true] { border-color: var(--burgundy); }
.thumbs button:hover { border-color: var(--rose-gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { }
.pdp-category { font-size: .7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-gold); margin-bottom: 10px; }
.pdp-title { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--burgundy); margin-bottom: 12px; line-height: 1.2; font-weight: 600; }
.pdp-stars { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.pdp-stars .stars { color: var(--rose-gold); font-size: 1rem; }
.pdp-stars .count { font-size: .82rem; color: var(--muted); }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 5px; flex-wrap: wrap; }
.pdp-price .price { font-size: 1.9rem; font-weight: 800; }
.pdp-price .mrp { font-size: 1.05rem; }
.pdp-price .off { position: static; font-size: .78rem; }
.pdp-tax { font-size: .78rem; color: var(--muted); margin-bottom: 26px; }
.pdp-divider { height: 1px; background: var(--line); margin: 24px 0; }

/* Size Selector */
.size-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.size-header label { margin: 0; font-size: .85rem; font-weight: 800; letter-spacing: 0.04em; }
.size-guide-btn { background: none; border: none; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; color: var(--burgundy); text-decoration: underline; padding: 0; letter-spacing: 0.03em; }
.sizes-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.size-btn { width: 56px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: all .15s; color: var(--charcoal); }
.size-btn:hover:not(:disabled) { border-color: var(--burgundy); color: var(--burgundy); }
.size-btn.selected { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }
.size-btn:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; opacity: .45; }
.size-error { color: var(--danger); font-size: .8rem; margin-top: 6px; display: none; }
.size-error.show { display: block; }
.pdp-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.pdp-actions .btn { width: 100%; }

/* Pincode estimator */
.pincode-section { background: var(--ivory); border-radius: var(--radius-m); padding: 18px; margin-bottom: 24px; border: 1px solid var(--line); }
.pincode-section h4 { font-size: .85rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pincode-section h4 svg { width: 16px; height: 16px; stroke: var(--burgundy); fill: none; stroke-width: 2; }
.pincode-form { display: flex; gap: 10px; }
.pincode-form input { flex: 1; }
.pincode-form .btn { width: auto; padding: 10px 18px; }
.pincode-result { font-size: .82rem; margin-top: 10px; }
.pincode-result.ok { color: var(--ok); }
.pincode-result.err { color: var(--danger); }

/* Accordions */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-btn { width: 100%; background: none; border: none; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; font: inherit; font-size: .88rem; font-weight: 800; color: var(--charcoal); cursor: pointer; text-align: left; letter-spacing: 0.02em; }
.accordion-btn svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .25s; flex-shrink: 0; }
.accordion-btn.open svg { transform: rotate(180deg); stroke: var(--burgundy); }
.accordion-body { padding-bottom: 16px; font-size: .86rem; color: var(--muted); line-height: 1.8; display: none; }
.accordion-body.open { display: block; }

/* Size Guide Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,8,14,.5); z-index: 250; display: none; place-items: center; padding: 24px; }
.modal-overlay.open { display: grid; }
.modal { background: var(--white); border-radius: var(--radius-l); padding: 36px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(74,21,37,.25); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; cursor: pointer; padding: 6px; color: var(--muted); border-radius: 6px; transition: background .15s; }
.modal-close:hover { background: var(--ivory); color: var(--charcoal); }
.modal-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; display: block; }
.size-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.size-table th { background: var(--burgundy); color: #fff; padding: 10px 14px; text-align: left; font-size: .74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.size-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.size-table tr:nth-child(even) td { background: var(--ivory); }
.size-table tr:last-child td { border-bottom: none; }

/* === CART PAGE === */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; padding: 40px 0 80px; }
.cart-heading { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--burgundy); margin-bottom: 8px; }
.cart-count { font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.line { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img, .line .ph { width: 100px; height: 125px; object-fit: cover; border-radius: var(--radius-s); background: var(--ivory); }
.line form { display: inline; }
.line-name { font-weight: 700; font-size: .92rem; color: var(--charcoal); margin-bottom: 4px; }
.line-size { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.line-unit { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.qty-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.qty-form select { width: 72px; padding: 7px 8px; }
.line-total { font-weight: 800; color: var(--burgundy); font-size: 1rem; white-space: nowrap; }

/* Summary */
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; position: sticky; top: 90px; box-shadow: var(--shadow); }
.summary h2 { margin-bottom: 22px; font-size: 1.15rem; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 8px; margin: 0 0 20px; align-items: center; }
.summary dd { margin: 0; text-align: right; font-size: .9rem; }
.summary dt { font-size: .88rem; color: var(--muted); }
.summary .total dt, .summary .total dd { font-weight: 800; font-size: 1.1rem; color: var(--burgundy); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.free-ship-bar { margin-bottom: 20px; background: var(--ivory); border-radius: var(--radius-s); padding: 12px 14px; border: 1px solid var(--line); }
.free-ship-bar p { font-size: .8rem; margin: 0 0 8px; font-weight: 600; color: var(--charcoal); }
.address-option { display: flex; gap: 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-m); margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.address-option:has(input:checked) { border-color: var(--burgundy); background: #fcf4f6; }
.address-option input { margin-top: 3px; accent-color: var(--burgundy); }
details.add-address summary { cursor: pointer; font-weight: 700; color: var(--burgundy); padding: 10px 0; font-size: .88rem; letter-spacing: 0.04em; }
.empty { text-align: center; padding: 80px 20px; }
.empty h1 { margin-bottom: 12px; }
.empty p { color: var(--muted); margin-bottom: 28px; }

/* === AUTH === */
.auth-wrap { display: flex; justify-content: center; padding: 56px 20px 80px; }
.auth-card { background: var(--white); border-radius: var(--radius-l); padding: 44px 40px; box-shadow: var(--shadow); width: 100%; max-width: 420px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--burgundy); display: block; }
.auth-logo .sub { font-size: .65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose-gold); display: block; margin-top: 3px; }
.auth-card h1 { font-size: 1.35rem; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 30px; line-height: 1.6; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; }

/* === ACCOUNT === */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 40px 0 80px; align-items: start; }
.account-sidebar { background: var(--white); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.account-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--burgundy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 14px; }
.account-user-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--burgundy); margin-bottom: 2px; font-weight: 600; }
.account-user-phone { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.account-nav a { display: block; padding: 9px 12px; border-radius: var(--radius-s); font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 3px; transition: all .15s; border-left: 3px solid transparent; }
.account-nav a:hover, .account-nav a.active { background: var(--ivory); color: var(--burgundy); border-left-color: var(--rose-gold); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow); }
.panel h2 { margin-bottom: 22px; font-size: 1.15rem; }
.panel h3 { margin-bottom: 14px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .86rem; }
.table th { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ivory); }
.table tbody tr:hover td { background: rgba(253,246,240,.5); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-s); border: 1px solid var(--line); overflow: hidden; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--ivory); letter-spacing: 0.06em; text-transform: uppercase; }
.status-paid, .status-processing { background: #e5f0fb; color: #1b4f86; }
.status-shipped { background: #fff4e0; color: #8a5300; }
.status-delivered { background: #e7f4ea; color: var(--ok); }
.status-cancelled { background: #fbeaea; color: var(--danger); }
.status-pending_payment { background: #fff8e1; color: #856404; }

/* === FOOTER === */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,.6); padding: 60px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: #fff; font-size: 1.1rem; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .83rem; line-height: 1.75; max-width: 26ch; }
.footer-col h4 { color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: .83rem; margin-bottom: 10px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--rose-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.4); }

/* === ADMIN === */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-nav { background: var(--burgundy); padding: 0; display: flex; flex-direction: column; }
.admin-nav-brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-nav-brand .logo { color: #fff; font-size: .95rem; display: block; margin-bottom: 3px; }
.admin-nav-brand .admin-nav-sub { font-size: .6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.admin-nav-links { padding: 16px 12px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.65); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-s); font-weight: 500; font-size: .88rem; margin-bottom: 3px; transition: all .15s; }
.admin-nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; opacity: .75; }
.admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a[aria-current=page] { background: rgba(255,255,255,.15); color: #fff; font-weight: 700; padding-left: 9px; border-left: 3px solid var(--rose-gold); }
.admin-nav a[aria-current=page] svg { opacity: 1; }
.admin-main { padding: 36px 44px; background: var(--ivory); min-width: 0; min-height: 100vh; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.admin-page-head h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--burgundy); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 36px; }
.stat { background: var(--white); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--burgundy); }
.stat .stat-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.stat strong { display: block; font-size: 1.7rem; color: var(--burgundy); font-family: var(--font-serif); }
.stat-warn { border-left-color: var(--rose-gold); }
.stat-warn strong { color: #8a5300; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar h1 { margin: 0; margin-right: auto; }
.toolbar form { display: flex; gap: 8px; }
.thumb-sm { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; background: var(--ivory); }
.image-list { display: flex; gap: 14px; flex-wrap: wrap; }
.image-list figure { margin: 0; width: 120px; text-align: center; }
.image-list img { width: 120px; height: 150px; object-fit: cover; border-radius: var(--radius-s); margin-bottom: 6px; }
.sizes-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sizes-picker label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; margin: 0; cursor: pointer; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); transition: all .15s; }
.sizes-picker label:has(input:checked) { border-color: var(--burgundy); background: #fcf4f6; color: var(--burgundy); }
.sizes-picker input { accent-color: var(--burgundy); }

/* === NEW PRODUCTS BANNER === */
.new-products-banner { background: linear-gradient(90deg, var(--burgundy) 0%, var(--burgundy-light) 100%); color: #fff; padding: 12px 20px; position: relative; overflow: hidden; }
.banner-content { display: flex; align-items: center; gap: 20px; max-width: var(--wrap); margin: 0 auto; }
.banner-label { font-weight: 700; font-size: .78rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.scrolling-text { flex: 1; overflow: hidden; min-width: 0; }
.scroll-inner { display: flex; gap: 40px; animation: scroll 25s linear infinite; }
.product-item { white-space: nowrap; font-size: .85rem; font-weight: 500; letter-spacing: 0.02em; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.scrolling-text:hover .scroll-inner { animation-play-state: paused; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 220px 1fr; gap: 24px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pdp { gap: 40px; }
}
@media (max-width: 860px) {
  .hero-slider { min-height: 420px; }
  .hero-inner { padding: 60px 0; }
  .slide-card { grid-template-columns: 100px 1fr auto; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .pdp-gallery { position: static; }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .listing-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .bar { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .admin { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
  .admin-nav-brand { display: none; }
  .admin-nav-links { display: flex; padding: 6px 10px; flex-direction: row; gap: 2px; }
  .admin-nav a { white-space: nowrap; font-size: .82rem; }
  .admin-main { padding: 20px; }
  .cart-drawer { width: 100vw; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
