/* ============================================================
   SHREEMAY — Fine Jewellery e-commerce (plain HTML/CSS/JS)
   Hand-authored replacement for Tailwind utilities + app styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; border: 0 solid rgba(123, 91, 154, 0.15); margin: 0; padding: 0; }

:root {
  --font-size: 15px;
  --background: #EDE0F2;
  --foreground: #2D1F50;
  --card: #ffffff;
  --primary: #7B5B9A;
  --secondary: #F3ECF8;
  --muted: #F3ECF8;
  --muted-foreground: #9880B2;
  --accent: #D4AF37;
  --border: rgba(123, 91, 154, 0.15);
  --ring: #7B5B9A;
  --plum: #7B5B9A;
  --gold: #D4AF37;
}

html { font-size: var(--font-size); }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, label { line-height: 1.5; }

button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123, 91, 154, 0.3); }
img { display: block; max-width: 100%; }

/* ── Display ─────────────────────────────────────────── */
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-x-0 { left: 0; right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.h-fit { height: fit-content; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ── Grid helpers ─────────────────────────────────────── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }

/* ── Sizes (w/h) ──────────────────────────────────────── */
.w-1\.5, .w-2, .w-2\.5, .w-3, .w-4, .w-5, .w-6, .w-7, .w-8, .w-9, .w-16, .w-20, .w-24, .w-40 { flex-shrink: 0; }
.w-1\.5 { width: 6px; } .h-1\.5 { height: 6px; }
.w-2 { width: 8px; } .h-2 { height: 8px; }
.w-2\.5 { width: 10px; } .h-2\.5 { height: 10px; }
.w-3 { width: 12px; } .h-3 { height: 12px; }
.w-4 { width: 16px; } .h-4 { height: 16px; }
.w-5 { width: 20px; } .h-5 { height: 20px; }
.w-6 { width: 24px; } .h-6 { height: 24px; }
.w-7 { width: 28px; } .h-7 { height: 28px; }
.w-8 { width: 32px; } .h-8 { height: 32px; }
.w-9 { width: 36px; } .h-9 { height: 36px; }
.w-16 { width: 64px; } .h-16 { height: 64px; }
.w-20 { width: 80px; } .h-20 { height: 80px; }
.w-24 { width: 96px; } .h-24 { height: 96px; }
.w-40 { width: 160px; } .h-40 { height: 160px; }
.h-10 { height: 40px; }
.h-32 { height: 128px; }
.h-40 { height: 160px; }
.h-44 { height: 176px; }
.h-72 { height: 288px; }
.h-96 { height: 384px; }
.w-48 { width: 192px; }
.w-52 { width: 208px; }

/* ── Spacing (padding / margin) ───────────────────────── */
.p-0 { padding: 0; } .p-2 { padding: 8px; } .p-3 { padding: 12px; }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-12 { padding-left: 48px; padding-right: 48px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.p-1 { padding: 4px; }
.p-1\.5 { padding: 6px; }
.bottom-20 { bottom: 80px; }
.pb-2 { padding-bottom: 8px; }
.pb-16 { padding-bottom: 64px; }
.mb-0\.5 { margin-bottom: 2px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-10 { margin-top: 40px; }
.ml-1 { margin-left: 4px; } .ml-2 { margin-left: 8px; } .ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.space-y-1\.5 > * + * { margin-top: 6px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.gap-0\.5 { gap: 2px; }
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-2\.5 { gap: 10px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }

/* ── Widths ───────────────────────────────────────────── */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }

/* ── Typography ───────────────────────────────────────── */
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-base { font-size: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[9px\] { font-size: 9px; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Colors ───────────────────────────────────────────── */
.text-white { color: #fff; }
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-purple-700 { color: #7e22ce; }
.text-yellow-700 { color: #a16207; }
.text-indigo-700 { color: #4338ca; }
.text-orange-500 { color: #f97316; }
.text-gray-300 { color: #d1d5db; }

.bg-white { background: #fff; }
.bg-secondary { background: var(--secondary); }
.bg-green-50 { background: #f0fdf4; }
.bg-green-100 { background: #dcfce7; }
.bg-red-50 { background: #fef2f2; }
.bg-red-100 { background: #fee2e2; }
.bg-blue-100 { background: #dbeafe; }
.bg-purple-100 { background: #f3e8ff; }
.bg-yellow-100 { background: #fef9c3; }
.bg-indigo-100 { background: #e0e7ff; }
.bg-gray-100 { background: #f3f4f6; }
.bg-gray-300 { background: #d1d5db; }

/* ── Borders ──────────────────────────────────────────── */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-r { border-right-width: 1px; }
.border-transparent { border-color: transparent; }
.border-primary { border-color: var(--primary); }
.border-border { border-color: var(--border); }

/* ── Radius / shadow ──────────────────────────────────── */
.rounded { border-radius: 0.25rem; }
.rounded-sm { border-radius: 0.125rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-sm { border-top-left-radius: 0.125rem; border-top-right-radius: 0.125rem; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* ── Transitions ──────────────────────────────────────── */
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.transition-opacity { transition: opacity 0.15s ease; }
.transition-all { transition: all 0.15s ease; }
.transition-transform { transition: transform 0.15s ease; }
.transition-shadow { transition: box-shadow 0.15s ease; }
.transition-shadow + .row-hover { transition: box-shadow 0.15s ease, background-color 0.15s ease; }

/* ── Hover states ─────────────────────────────────────── */
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-white:hover { background: #fff; }
.hover\:bg-secondary:hover { background: var(--secondary); }
.hover\:bg-red-50:hover { background: #fef2f2; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.hover\:text-red-500:hover { color: #ef4444; }

.group { position: relative; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:border-primary { border-color: var(--primary); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

/* Table row hover */
.row-hover:hover { background: rgba(243, 236, 248, 0.4); }

/* ── Responsive (md = 768px) ──────────────────────────── */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2; }
  .md\:col-span-3 { grid-column: span 3; }
  .md\:col-span-1 { grid-column: span 1; }
  .md\:p-12 { padding: 48px; }
  .md\:py-16 { padding-top: 64px; padding-bottom: 64px; }
  .md\:py-20 { padding-top: 80px; padding-bottom: 80px; }
  .md\:py-24 { padding-top: 96px; padding-bottom: 96px; }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:bottom-5 { bottom: 20px; }
}

/* Status chip colors (background variants used in tables) */
.chip-green { background: #dcfce7; color: #15803d; }
.chip-blue { background: #dbeafe; color: #1d4ed8; }
.chip-purple { background: #f3e8ff; color: #7e22ce; }
.chip-red { background: #fee2e2; color: #b91c1c; }
.chip-yellow { background: #fef9c3; color: #a16207; }
.chip-indigo { background: #e0e7ff; color: #4338ca; }
.chip-gray { background: #f3f4f6; color: #4b5563; }

/* ── Landing page animations ──────────────────────────── */
@keyframes floatUp {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
  50% { transform: translateY(-18px) scale(1.3); opacity: 1; }
}
@keyframes spin4 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes revealWidth {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(123,91,154,0.3), 0 0 60px rgba(123,91,154,0.1); }
  50% { box-shadow: 0 0 60px rgba(123,91,154,0.5), 0 0 100px rgba(123,91,154,0.2); }
}
@keyframes borderTrace {
  from { stroke-dashoffset: 400; }
  to { stroke-dashoffset: 0; }
}
@keyframes pageOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.04); }
}

.particle-float { animation: floatUp var(--dur, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.diamond-twinkle { animation: twinkle 3s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.landing-wrap { animation: none; }
.landing-wrap.leaving { animation: pageOut 0.8s ease forwards; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: linear-gradient(180deg, #3C276A 0%, #2A173F 100%); color: #D9C9EF; }
.footer-head { color: #fff; font-family: "Playfair Display", serif; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-link { display: block; color: #C5B3E0; font-size: 13px; padding: 3px 0; transition: color 0.2s ease, transform 0.2s ease; width: fit-content; }
.footer-link:hover { color: #fff; transform: translateX(3px); }
.footer-sub { color: #C5B3E0; font-size: 13px; line-height: 1.8; }
.news-input { width: 100%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 9999px; color: #fff; font-size: 13px; padding: 10px 16px; }
.news-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.news-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }
.news-btn { border-radius: 9999px; color: #2A173F; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; background: linear-gradient(135deg, #E5C458, #D4AF37); padding: 10px 18px; transition: opacity 0.2s ease, transform 0.2s ease; white-space: nowrap; }
.news-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.social-ic { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; color: #D9C9EF; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.social-ic:hover { background: var(--accent); color: #2A173F; transform: translateY(-2px); }
.footer-trust { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; }
.footer-trust span { color: #C5B3E0; }

/* ── Shared page hero (About / Contact) ──────────────── */
.page-hero { background: linear-gradient(135deg, #3C276A 0%, #5A3E7A 55%, #7B5B9A 100%); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.18), transparent 55%); pointer-events: none; }

/* ── Home landing extras ─────────────────────────────── */
.service-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(123, 91, 154, 0.35); }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05)); }
.insta-tile { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insta-tile:hover img { transform: scale(1.08); }
.insta-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(123, 91, 154, 0.55); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.3s ease; }
.insta-tile:hover .insta-overlay { opacity: 1; }
.story-banner { background: linear-gradient(135deg, #EDE0F0 0%, #F7F0F8 60%, #E4D2EC 100%); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 22s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.divider-diamond { width: 46px; align-items: center; display: flex; justify-content: center; }

/* ── Extra spacing / grid utilities ──────────────────── */
.p-8 { padding: 32px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-14 { padding-top: 56px; padding-bottom: 56px; }
.pt-12 { padding-top: 48px; }
.pb-6 { padding-bottom: 24px; }
.pb-14 { padding-bottom: 56px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-1\.5 { margin-top: 6px; }
.my-3 { margin-top: 12px; margin-bottom: 12px; }
.my-4 { margin-top: 16px; margin-bottom: 16px; }
.mb-1\.5 { margin-bottom: 6px; }
.mb-10 { margin-bottom: 40px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.hover\:text-white:hover { color: #fff; }

.zoom-hover img { transition: transform 0.5s ease; }
.zoom-hover:hover img { transform: scale(1.05); }

/* ══ Modern theme polish ═══════════════════════════════ */
html { scroll-behavior: smooth; }
::selection { background: rgba(123, 91, 154, 0.25); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F3ECF8; }
::-webkit-scrollbar-thumb { background: #C9B3DC; border-radius: 8px; border: 2px solid #F3ECF8; }
::-webkit-scrollbar-thumb:hover { background: #7B5B9A; }

/* Page transition (replays on every navigation render) */
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-anim { animation: pageIn 0.5s cubic-bezier(.22, 1, .36, 1) both; }

/* Glassy sticky navbar — now handled by .nav-bar.scrolled / .at-top */
/* .nav-glass kept as alias for compatibility */
.nav-glass { /* no-op: styles moved to .nav-bar */ }

/* Nav link hover underline + active state */
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--plum); border-radius: 2px; transition: width 0.25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--plum); font-weight: 600; }

/* Shine sweep on primary buttons */
.btn-shine { position: relative; overflow: hidden; z-index: 0; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.6s ease; z-index: 1; }
.btn-shine:hover::after { left: 150%; }
.btn-shine > * { position: relative; z-index: 2; }

/* Hero ambient orbs */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; pointer-events: none; }

/* Product card modernisation */
.pcard { transition: box-shadow 0.25s ease, transform 0.25s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -14px rgba(123, 91, 154, 0.42); }
.pcard img { transition: transform 0.5s ease; }
.pcard:hover img { transform: scale(1.06); }
.card-quick { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity 0.25s ease, transform 0.25s ease; }
.pcard:hover .card-quick { opacity: 1; transform: none; }
.qbtn { flex: 1; border-radius: 10px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 600; padding: 9px 0; display: flex; align-items: center; justify-content: center; gap: 5px; transition: opacity 0.2s ease, transform 0.2s ease; }
.qbtn:hover { opacity: 0.9; transform: translateY(-1px); }
.qbtn-ic { width: 36px; flex: 0 0 36px; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(42, 23, 63, 0.14); display: flex; align-items: center; justify-content: center; color: var(--plum); transition: transform 0.2s ease, color 0.2s ease; }
.qbtn-ic:hover { transform: scale(1.1); color: #e11d48; }
.btn-add-card { background: var(--plum); color: #fff; font-size: 11px; font-weight: 600; border-radius: 9999px; padding: 6px 12px; transition: opacity 0.2s ease, transform 0.2s ease; }
.btn-add-card:hover { opacity: 0.9; transform: translateY(-1px); }

/* Category circle interaction */
.cat-circle { border: 2px solid transparent; transition: transform 0.3s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s ease, border-color 0.3s ease; }
.cat-circle:hover { transform: translateY(-5px) scale(1.06); box-shadow: 0 14px 26px -12px rgba(123, 91, 154, 0.5); border-color: var(--plum); }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.22, 1, .36, 1), transform 0.7s cubic-bezier(.22, 1, .36, 1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .page-anim { opacity: 1; transform: none; animation: none; transition: none; }
}

/* Toasts */
#toasts { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
@media (min-width: 768px) { #toasts { bottom: 28px; } }
.toast { background: #2A173F; color: #fff; padding: 11px 20px; border-radius: 9999px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 34px rgba(42, 23, 63, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2); animation: toastIn 0.3s cubic-bezier(.22, 1, .36, 1) both; }
.toast svg { color: #D4AF37; }
.toast.out { animation: toastOut 0.3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }

/* Back to top */
#toTop { position: fixed; right: 20px; bottom: 150px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(123, 91, 154, 0.45); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease; }
@media (min-width: 768px) { #toTop { bottom: 28px; } }
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }
#toTop:hover { background: #5A3E7A; transform: translateY(-3px); }

/* Cart badge pop */
@keyframes badgePop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.badge-pop { animation: badgePop 0.35s ease; }

/* Search box */
.search-wrap { position: relative; width: 100%; max-width: 260px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search-input { width: 100%; border: 1px solid var(--border); border-radius: 9999px; background: #fff; padding: 9px 14px 9px 36px; font-size: 13px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.search-input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(123, 91, 154, 0.18); }

/* Breadcrumb */
.crumb { font-size: 12px; color: var(--muted-foreground); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--muted-foreground); transition: color 0.2s ease; }
.crumb a:hover { color: var(--plum); }
.crumb .now { color: var(--plum); font-weight: 600; }
.crumb .sep { opacity: 0.5; }

/* ══ Modern Navbar — complete rewrite ═══════════════════ */

/* ── Core nav bar ─────────────────────────────────────── */
.nav-bar {
  position: fixed;
  top: 30px; /* sits below announcement bar by default; JS moves it */
  left: 0; right: 0;
  z-index: 200;
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 rgba(123,91,154,0.06);
  transition: top .3s ease, background .3s ease, box-shadow .3s ease;
}
/* Once scrolled — stronger glass effect */
.nav-bar.scrolled {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: saturate(200%) blur(18px);
  -webkit-backdrop-filter: saturate(200%) blur(18px);
  box-shadow: 0 1px 0 rgba(123,91,154,0.1), 0 8px 28px -10px rgba(42,23,63,0.2);
}
/* Compact height when scrolled */
.nav-bar.scrolled .nav-inner { height: 58px; }
.nav-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 0 20px;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: height .3s ease;
}
.nav-admin-label {
  display: none; font-weight: 600; font-size: 14px; color: var(--plum);
}
@media (min-width: 768px) { .nav-admin-label { display: flex; } }

/* ── Logo ─────────────────────────────────────────────── */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; background: none; border: none; cursor: pointer;
}
.nav-logo-mark {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(123, 91, 154, 0.12);
  border-radius: 50%;
  transition: transform .25s ease;
}
.nav-logo-mark img {
  height: 28px; width: auto; object-fit: contain;
}
.nav-logo:hover .nav-logo-mark { transform: scale(1.08) rotate(-4deg); }
.nav-logo-text { text-align: left; line-height: 1.2; }
.nav-brand {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; color: var(--plum);
  letter-spacing: .12em;
}
.nav-sub {
  display: block; font-size: 8px; letter-spacing: .18em;
  color: var(--muted-foreground); text-transform: uppercase;
}

/* ── Desktop links container ──────────────────────────── */
.nav-links {
  display: none;
  align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 500; color: rgba(45,31,80,.82);
}
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Base nav link */
.nav-link {
  position: relative; padding: 6px 10px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  font-size: inherit; font-weight: inherit; color: inherit;
  display: flex; align-items: center; gap: 3px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--plum);
  transform: scaleX(0); transform-origin: center;
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: var(--plum); background: rgba(123,91,154,.06); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--plum); font-weight: 600; }

/* Arrow icon inside dropdown trigger */
.nav-dd-arrow {
  display: flex; align-items: center;
  transition: transform .25s ease;
  color: currentColor; opacity: .7;
}

/* ── Dropdown group (trigger + panel) ─────────────────── */
.nav-dd-group {
  position: relative;
}

/* Show panel on group hover */
.nav-dd-group:hover .nav-mega-panel,
.nav-dd-group:focus-within .nav-mega-panel {
  opacity: 1; visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Rotate arrow when open */
.nav-dd-group:hover .nav-dd-arrow,
.nav-dd-group:focus-within .nav-dd-arrow {
  transform: rotate(180deg);
}
.nav-dd-group:hover .nav-dd-trigger,
.nav-dd-group:focus-within .nav-dd-trigger {
  color: var(--plum); background: rgba(123,91,154,.06);
}

/* ── Mega panel ───────────────────────────────────────── */
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%; transform: translateX(-50%) translateY(-8px);
  width: 560px;
  background: #fff;
  border: 1px solid rgba(123,91,154,.12);
  border-radius: 18px;
  box-shadow: 0 24px 64px -12px rgba(42,23,63,.22), 0 4px 16px -4px rgba(42,23,63,.1);
  padding: 24px 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1), visibility .22s;
  z-index: 300;
}
/* Bridge: invisible area to cover gap between trigger and panel */
.nav-mega-panel::before {
  content: ""; position: absolute;
  top: -14px; left: 0; right: 0; height: 14px;
}
.nav-mega-inner {
  display: flex; align-items: flex-start; gap: 34px;
}

/* Column */
.nav-dd-col { flex: 1; min-width: 0; }
.nav-dd-heading {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-foreground);
  margin-bottom: 10px; padding-left: 6px;
}

/* Item row */
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 6px 8px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  text-align: left; transition: background .15s;
  margin-bottom: 2px;
}
.nav-dd-item:hover { background: #F3E9F6; }
.nav-dd-dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: #F3E9F6; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--plum);
  transition: background .15s;
}
.nav-dd-item:hover .nav-dd-dot { background: var(--plum); color: #fff; }
.nav-dd-item-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--foreground);
  transition: color .15s;
}
.nav-dd-item:hover .nav-dd-item-label { color: var(--plum); }
.nav-dd-item-sub {
  display: block; font-size: 11px; color: var(--muted-foreground); margin-top: 1px;
}

/* Featured card */
.nav-dd-feat { flex-shrink: 0; width: 176px; }
.nav-dd-feat-card {
  position: relative; display: block; width: 100%;
  border-radius: 14px; overflow: hidden;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-dd-feat-card img {
  width: 100%; height: 140px; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.nav-dd-feat-card:hover img { transform: scale(1.06); }
.nav-dd-feat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,23,63,.68), transparent 55%);
  pointer-events: none;
}
.nav-dd-feat-text {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  text-align: left; pointer-events: none;
}
.nav-dd-feat-text strong { display: block; font-size: 12px; font-weight: 700; color: #fff; }
.nav-dd-feat-text span  { display: block; font-size: 10px; color: rgba(255,255,255,.8); margin-top: 2px; }
.nav-dd-shop-btn {
  margin-top: 10px; width: 100%;
  border-radius: 9999px; background: var(--plum); color: #fff;
  font-size: 12px; font-weight: 600; padding: 9px 0;
  border: none; cursor: pointer;
  transition: opacity .18s, transform .18s;
}
.nav-dd-shop-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Nav actions (icons + hamburger) ──────────────────── */
.nav-actions {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}

/* Icon button */
.nav-icon-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  color: rgba(45,31,80,.75);
  transition: background .18s, color .18s;
}
.nav-icon-btn:hover { background: var(--secondary); color: var(--plum); }

/* Hide on mobile / show on desktop */
.nd-hide { display: none; }
@media (min-width: 768px) { .nd-hide { display: flex; } }
/* Show only on mobile */
.nd-show { display: flex; }
@media (min-width: 768px) { .nd-show { display: none; } }

/* Badge */
.nav-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 9999px; background: var(--plum); color: #fff;
  font-size: 9px; font-weight: 700; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ── Mobile drawer ────────────────────────────────────── */
.mob-menu {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 8px 20px 16px;
  max-height: 82vh; overflow-y: auto;
  box-shadow: 0 12px 30px -8px rgba(42,23,63,.14);
  animation: slideDown .22s cubic-bezier(.22,1,.36,1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (min-width: 768px) { .mob-menu { display: none !important; } }

.mob-section { border-bottom: 1px solid var(--border); }
.mob-row {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; font-size: 14px; font-weight: 600; color: var(--foreground);
  text-align: left;
}
.mob-row:hover { color: var(--plum); }
.mob-arrow { display: flex; transition: transform .22s; }
.mob-arrow.open { transform: rotate(180deg); }

.mob-items { padding-bottom: 8px; }
.mob-item {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 8px 10px; border-radius: 9px;
  font-size: 13px; text-align: left; color: var(--foreground);
  transition: background .15s;
}
.mob-item:hover { background: #F3E9F6; }
.mob-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--plum); flex-shrink: 0; margin-top: 5px;
}

.mob-cta {
  display: flex; gap: 8px; margin-top: 14px;
}
.mob-cta-cart, .mob-cta-wish {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px; border-radius: 11px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; transition: opacity .18s;
}
.mob-cta-cart { background: var(--plum); color: #fff; }
.mob-cta-wish { background: #F3E9F6; color: var(--plum); border: 2px solid var(--plum); }
.mob-cta-cart:hover, .mob-cta-wish:hover { opacity: .88; }
.mob-cta-badge {
  background: #fff; color: var(--plum);
  font-size: 10px; font-weight: 800; border-radius: 9999px;
  padding: 1px 6px;
}

/* ── Search overlay ───────────────────────────────────── */
.srch-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(42,23,63,.48);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 72px;
  animation: fadeIn .18s ease;
}
.srch-box {
  background: #fff; border-radius: 16px;
  padding: 12px 14px;
  width: min(580px, 94vw);
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 28px 64px -12px rgba(42,23,63,.32);
  animation: dropUp .22s cubic-bezier(.22,1,.36,1);
}
@keyframes dropUp {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.srch-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground); pointer-events: none;
}
.srch-input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 11px;
  background: #fff; padding: 10px 14px 10px 40px;
  font-size: 14px; font-family: inherit; color: var(--foreground);
  transition: border-color .18s, box-shadow .18s;
}
.srch-input:focus {
  outline: none; border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(123,91,154,.18);
}
.srch-close {
  padding: 7px; border-radius: 8px; color: var(--muted-foreground);
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.srch-close:hover { background: #F3E9F6; color: var(--plum); }
.srch-results {
  width: min(580px, 94vw);
  background: #fff; border-radius: 14px;
  margin-top: 8px; overflow: hidden;
  box-shadow: 0 14px 44px -8px rgba(42,23,63,.2);
  animation: dropUp .2s cubic-bezier(.22,1,.36,1);
}
/* ── Fixed nav page offset ───────────────────────────── */
/* Nav is position:fixed at top:0, so page content needs offset.
   The offset is applied via JS to #app-body. */
#app-body {
  padding-top: 66px; /* nav height default */
  transition: padding-top .3s ease;
}
#app-body.nav-compact {
  padding-top: 58px; /* compact scroll height */
}

/* ══ Footer — 4-column responsive ══════════════════════ */
.ft-wrap {
  max-width: 80rem; margin: 0 auto; padding: 0 20px;
}
/* Footer brand logo — aligned badge + wordmark */
.footer-logo-badge {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(123, 91, 154, 0.12);
  border-radius: 50%;
}
.footer-logo-badge img {
  height: 32px; width: auto; object-fit: contain;
}
.footer-logo-text { display: flex; flex-direction: column; justify-content: center; }
.footer-logo-tag {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(217,201,239,.65);
}

/* 4-column grid */
.ft-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-top: 44px;
  padding-bottom: 44px;
}
@media (max-width: 900px) {
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 520px) {
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
}

.ft-col {}
.ft-brand { /* wider brand col — handled by grid ratio */ }

/* Trust bar */
.ft-trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 8px;
}
.ft-trust-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #C5B3E0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ft-trust { justify-content: center; }
  .ft-trust-item { flex: 1 1 calc(50% - 12px); justify-content: center; }
}

/* Bottom bar */
.ft-bottom-wrap {
  border-top: 1px solid rgba(255,255,255,.12);
}
.ft-bottom {
  max-width: 80rem; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(217,201,239,.7);
}
@media (max-width: 640px) {
  .ft-bottom { flex-direction: column; text-align: center; }
}

/* ══ Listing page — responsive layout ══════════════════ */
.listing-page {
  max-width: 80rem; margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex; align-items: flex-start; gap: 24px;
}
/* Sidebar — hidden on mobile, shown on md+ */
.listing-sidebar {
  width: 210px; flex-shrink: 0;
}
.filter-panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; position: sticky; top: 84px; box-shadow: 0 4px 16px rgba(42,23,63,.04); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--foreground); }
.filter-heading button { border: 0; background: none; color: var(--plum); font-size: 11px; cursor: pointer; padding: 0; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: 0; padding-bottom: 2px; }
.filter-title { margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); }
.category-filter { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--foreground); font-size: 13px; cursor: pointer; }
.category-filter:focus { outline: 2px solid rgba(123,91,154,.25); border-color: var(--plum); }
.filter-category { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; margin: 2px 0; border: 0; border-radius: 9px; background: transparent; color: var(--foreground); text-align: left; font-size: 13px; cursor: pointer; }
.filter-category:hover { background: #f3e9f6; }
.filter-category.is-selected { background: var(--plum); color: #fff; font-weight: 600; }
.filter-count { font-size: 11px; color: #9b7bb8; }
.filter-category.is-selected .filter-count { color: rgba(255,255,255,.75); }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 12px; color: var(--foreground); cursor: pointer; }
.filter-option input { accent-color: var(--plum); }
@media (max-width: 767px) {
  .listing-sidebar { display: none; }
  .listing-page { flex-direction: column; padding: 16px 14px 32px; }
}
.listing-main { flex: 1; min-width: 0; }

/* Mobile category pills row */
.listing-pills {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.listing-pills::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .listing-pills { display: flex; } }

/* Header row with search + sort */
.listing-hdr {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
}
.listing-controls {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .listing-controls { width: 100%; }
  .listing-controls .search-wrap { flex: 1; max-width: 100%; }
}

/* Product grid — 2 cols mobile, 3 cols tablet+ */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 600px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .listing-grid { gap: 22px; }
}

/* ══ Page-level responsive grids (no Tailwind dependency) ══ */

/* Product grid used on New Arrivals, Best Sellers, Wishlist, Home */
.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 560px) { .pg-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 900px) { .pg-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Collections 3-col grid */
.coll-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) { .coll-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .coll-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* Category circles grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(8, 1fr); } }
.cat-btn {
  display: flex; flex-direction: column; align-items: center;
  background: none; border: none; cursor: pointer; gap: 6px;
}

/* Immersive home hero */
.hero-banner { position: relative; overflow: hidden; background: linear-gradient(135deg,#f3e9f6 0%,#f7f3f9 50%,#ede0f0 100%); }
.hero-slides { position: relative; height: min(38vw, 535px); min-height: 440px; }
.hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s ease; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(249,243,251,.98) 0%, rgba(249,243,251,.92) 34%, rgba(249,243,251,.18) 61%, rgba(42,23,63,.08) 100%); }
.hero-slide-one { background-image: url('https://images.unsplash.com/photo-1727947074642-0bd47ef70b58?w=1800&q=88'); }
.hero-slide-two { background-image: url('https://images.unsplash.com/photo-1721103418939-5112f0ccfac8?w=1800&q=88'); }
.hero-slide-three { background-image: url('https://images.unsplash.com/photo-1653227907864-560dce4c252d?w=1800&q=88'); }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-copy { position: relative; z-index: 1; width: min(54%, 640px); height: 100%; display: flex; flex-direction: column; justify-content: center; margin: 0 auto 0 max(20px, calc((100% - 80rem) / 2 + 20px)); padding: 34px 20px 52px 0; }
.hero-kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d4af37; margin-bottom: 10px; }
.hero-text h1 { font-family: 'Playfair Display',serif; font-size: clamp(2rem,5vw,3rem); font-weight: 700; line-height: 1.15; color: #7b5b9a; margin-bottom: 16px; }
.hero-copy h1 { font-family: 'Playfair Display',serif; font-size: clamp(2.4rem,5vw,4.4rem); font-weight: 700; line-height: 1.08; color: #43236e; margin-bottom: 22px; }
.hero-description { color: var(--muted-foreground); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-actions a { padding: 12px 24px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #fff; background: #7b5b9a; border: 2px solid #7b5b9a; border-radius: 8px; cursor: pointer; text-decoration: none; }
.hero-actions a + a { padding: 11px 24px; color: #7b5b9a; background: transparent; }
.hero-actions a span { font-size: 18px; margin-left: 7px; line-height: 0; }
.hero-trust-strip { background: #f7f0f8; border-bottom: 1px solid var(--border); }
.product-card-price { display: inline-flex; align-items: baseline; gap: 7px; }
.product-card-price strong { font-size: 15px; color: var(--plum); }
.product-card-price del { font-size: 11px; color: var(--muted-foreground); font-weight: 400; }
.google-config-button { width: 320px; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #dadce0; border-radius: 4px; color: #3c4043; font: 500 14px Arial,sans-serif; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.google-config-button:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.hero-trust { max-width: 80rem; margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.hero-slider-controls { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; }
.hero-slider-arrow { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: rgba(42,23,63,.45); cursor: pointer; font-size: 16px; line-height: 1; }
.hero-slider-arrow:hover, .hero-slider-arrow:focus-visible { background: #d4af37; color: #2a173f; border-color: #d4af37; }
.hero-slider-dots { display: flex; gap: 5px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.hero-dot.is-active { width: 22px; border-radius: 5px; background: #d4af37; }
@media (max-width: 767px) { .hero-slides { height: 610px; min-height: 610px; } .hero-slide::before { background: linear-gradient(180deg, rgba(249,243,251,.96) 0%, rgba(249,243,251,.88) 48%, rgba(249,243,251,.16) 100%); } .hero-copy { width: auto; margin: 0; padding: 45px 20px 90px; justify-content: flex-start; } .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.25rem); } .hero-description { max-width: 28rem; } .hero-trust { grid-template-columns: repeat(2, 1fr); padding: 22px 14px; gap: 16px 8px; } .hero-slider-controls { right: 20px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* Story row */
.story-row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .story-row { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Occasion banners */
.occ-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .occ-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* Services strip */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

/* Testimonials slider */
.testi-slider { position: relative; overflow: hidden; padding: 0 42px; }
.testi-track { display: flex; gap: 20px; overflow: hidden; scroll-behavior: smooth; }
.testi-track .testimonial-card { flex: 0 0 100%; min-width: 0; }
.testi-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--plum); cursor: pointer; font-size: 16px; box-shadow: 0 4px 12px rgba(42,23,63,.12); }
.testi-arrow:hover, .testi-arrow:focus-visible { background: var(--plum); color: #fff; }
.testi-prev { left: 0; }
.testi-next { right: 0; }
.testi-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.testi-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #cbb8d8; cursor: pointer; }
.testi-dot.is-active { width: 22px; border-radius: 5px; background: var(--plum); }
@media (min-width: 640px) { .testi-slider { padding: 0 42px; } .testi-track .testimonial-card { flex-basis: calc((100% - 40px) / 3); } }
@media (prefers-reduced-motion: reduce) { .testi-track { scroll-behavior: auto; } }

/* Instagram gallery */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .insta-grid { grid-template-columns: repeat(6, 1fr); } }

/* Global: prevent any child from causing horizontal overflow */
body { overflow-x: hidden; }
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ══ Multipage Edition — additional fixes ══════════════ */

/* Nav links as <a> tags */
a.nav-link {
  text-decoration: none;
  color: rgba(45,31,80,.82);
}
a.nav-link:hover { color: var(--plum); }
a.nav-link.active { color: var(--plum); font-weight: 600; }

/* Nav dropdown items as <a> tags */
a.nav-dd-item {
  text-decoration: none;
}
a.nav-dd-shop-btn {
  display: block;
  text-decoration: none;
  text-align: center;
}

/* Mobile menu rows as <a> */
a.mob-row {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a.mob-row:hover { color: var(--plum); }
a.mob-cta-cart, a.mob-cta-wish {
  text-decoration: none;
}

/* Footer links — already .footer-link but ensure <a> is styled */
.footer-link { text-decoration: none; }

/* Stat grid responsive */
@media (min-width: 768px) {
  #statsGrid { grid-template-columns: repeat(4,1fr) !important; }
}

/* About values grid responsive */
@media (min-width: 768px) {
  #valuesGrid { grid-template-columns: repeat(4,1fr) !important; }
}

/* Contact grid responsive */
@media (min-width: 768px) {
  #infoCards    { grid-template-columns: repeat(4,1fr) !important; }
  #contactGrid  { grid-template-columns: 3fr 2fr !important; }
}

/* Detail grid responsive */
@media (min-width: 768px) {
  #detailGrid { grid-template-columns: 1fr 1fr !important; }
}

/* Bridal banner responsive */
@media (min-width: 768px) {
  #bridalBanner { grid-template-columns: 1fr 1fr !important; }
}

/* Back-to-top for multipage (no bottom-nav offset needed) */
#toTop { bottom: 32px !important; }

/* Ensure page-hero z-index is below nav */
.page-hero { position: relative; z-index: 1; }

/* Sub-page product card links */
.pcard a { text-decoration: none; color: inherit; }

/* ─── Cart Drawer & Account Panel ───────────────────── */

/* Smooth scroll lock when drawer is open */
body.drawer-open { overflow: hidden; }

/* Drawer overlay — already styled inline, just ensure pointer events */
#sm-drawer-overlay { pointer-events: auto; }

/* Drawer scrollbar styling */
#cart-items::-webkit-scrollbar,
#acct-body::-webkit-scrollbar { width: 4px; }
#cart-items::-webkit-scrollbar-thumb,
#acct-body::-webkit-scrollbar-thumb { background: #e8d8f8; border-radius: 4px; }

/* Cart qty button hover */
#cart-items button:hover { opacity: .75; }

/* Account panel input focus ring */
#acct-body input:focus { outline: none; border-color: #7B5B9A !important; box-shadow: 0 0 0 3px rgba(123,91,154,.12); }

/* Nav badge for account — green dot */
.nav-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  background: #7B5B9A;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
}

/* Mobile cart button visible on small screens */
@media (max-width: 768px) {
  #sm-cart-drawer, #sm-acct-panel { width: 100vw; }
}
