/* assets/styles.css — AhamStree refined luxury redesign */

/* ── Import refined fonts ── */

:root{
  /* Fonts */
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
--header-offset: 120px; /* desktop default */
  /* Core palette — warm ivory luxury */
  --bg: #faf8f4;
  --bg-warm: #f5f0e8;
  --surface: #ffffff;
  --surface-warm: #fdfaf6;
  --text: #1e1a16;
  --text-light: #7a6e60;
  --muted: rgba(30,26,22,.60);
  --border: #e6dfd4;
  --border-light: #f0ece5;

  /* Brand — deep maroon + gold accent */
  --brand: #6e2236;
  --brand-hover: #7d2840;
  --brand-dark: #521929;
  --brand-light: rgba(110,34,54,0.08);
  --brand-lighter: rgba(110,34,54,0.04);
  --gold: #b8860b;
  --gold-light: rgba(184,134,11,0.12);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-brand: 0 8px 28px rgba(110,34,54,0.22);

  /* Header */
  --header-offset: 120px;
}

/* ═══════════════════════════
   BASE
═══════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--text);
}

img, video, canvas, svg { max-width: 100%; }
@media (max-width: 820px) {
  :root {
    --header-offset: 86px; /* mobile default — JS will fine-tune */
  }
}
/* ═══════════════════════════
   FIXED HEADER
═══════════════════════════ */
.site-header-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.04);
}

body { padding-top: var(--header-offset, 120px); }
body.no-scroll { overflow: hidden; }

header, footer { padding: 14px 16px; border-bottom: 1px solid var(--border); }
footer { border-top: 1px solid var(--border); border-bottom: none; margin-top: 24px; }

/* ═══════════════════════════
   LAYOUT
═══════════════════════════ */
.container { max-width: 1060px; margin: 0 auto; padding: 16px; }
nav a { margin-right: 12px; text-decoration: none; color: #111; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid { gap: var(--space-md); grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .grid { gap: 12px; grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════
   CARDS
═══════════════════════════ */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--bg-warm);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.card:hover img { transform: scale(1.06); }
.card .p { padding: var(--space-md); }

/* Product card */
.product-card { position: relative; }
.product-card .product-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 4px;
  color: var(--text);
}
.product-card .product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}

@media (max-width: 820px) {
  .card img { height: 180px; }
  .product-card .p { padding: 12px; }
  .product-card .product-title {
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
@media (max-width: 560px) { .card img { height: 160px; } }

/* ═══════════════════════════
   BUTTONS
═══════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(110,34,54,0.18);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
  pointer-events: none;
}
.btn:hover {
  background: linear-gradient(135deg, var(--brand-hover) 0%, var(--brand) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.btn.secondary::after { display: none; }
.btn.secondary:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  box-shadow: none;
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: var(--brand-light); }
.btn.is-disabled { opacity: .50; pointer-events: none; }

/* ═══════════════════════════
   FORM FIELDS
═══════════════════════════ */
.small { font-size: 12px; opacity: 0.75; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.input {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  width: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus {
  border-color: rgba(110,34,54,.50);
  box-shadow: 0 0 0 4px rgba(110,34,54,.09);
}
.input.is-invalid {
  border-color: rgba(220,20,60,.4) !important;
  box-shadow: 0 0 0 4px rgba(220,20,60,.08);
}
.input.is-valid {
  border-color: rgba(34,197,94,.35) !important;
  box-shadow: 0 0 0 4px rgba(34,197,94,.08);
}

.form-grid { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: rgba(0,0,0,0.45);
  pointer-events: none;
}
.input.has-icon { padding-left: 40px; }
.help-text { font-size: 12px; color: var(--text-light); }
.error-text { font-size: 12px; color: rgba(220,20,60,.9); }

hr { border: none; border-top: 1px solid var(--border-light); margin: 20px 0; }

/* ═══════════════════════════
   HEADER
═══════════════════════════ */
#header { min-height: 0 !important; background: transparent; }

.site-logo img { height: 56px; width: auto; display: block; }

/* Top bar */
.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 50%, var(--brand-dark));
  background-size: 200% 100%;
  animation: topbar-slide 10s ease-in-out infinite;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
}
@keyframes topbar-slide {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
}
.topbar a { text-decoration: none; color: rgba(255,255,255,0.82); margin-left: 10px; transition: color 0.15s; }
.topbar a:hover { color: #fff; }

/* Main header */
.header {
  border-bottom: 1px solid var(--border-light);
  background: transparent;
  padding: 0;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

/* Mobile header */
.header-mobile { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.header-mobile-left, .header-mobile-right { display: flex; align-items: center; gap: 6px; }
.mobile-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.mobile-logo img { height: 34px; width: auto; display: block; }

/* Icon buttons */
.icon-btn, .icon-link {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-xs);
}
.icon-btn:hover, .icon-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lighter);
  box-shadow: 0 2px 10px rgba(110,34,54,0.12);
}
.icon-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(110,34,54,0.30);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  display: none; z-index: 200;
  /* Force full visual viewport coverage: */
  min-height: 100dvh; /* dvh = dynamic viewport height, accounts for browser chrome */
  min-height: -webkit-fill-available;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  height: 100dvh; /* same here */
  min-height: -webkit-fill-available;
  width: 84%; max-width: 340px;
}
body.no-scroll {
  overflow: hidden;
  position: fixed; /* required for iOS Safari to actually stop scroll */
  width: 100%;
}
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.mobile-drawer-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 600;
}
.mobile-drawer-links a,
.mobile-drawer-section a {
  display: block;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.14s ease;
}
.mobile-drawer-links a:hover,
.mobile-drawer-section a:hover {
  background: var(--brand-light);
  color: var(--brand);
  padding-left: 14px;
}
.mobile-drawer-section { margin-top: 14px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.mobile-drawer-section-title {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); font-weight: 600;
  padding: 0 10px; margin-bottom: 6px;
}

/* Desktop nav */
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.82;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.15s, color 0.15s;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 0; height: 1.5px;
  background: var(--brand);
  transition: width 0.22s ease;
}
.nav a:hover { opacity: 1; color: var(--brand); }
.nav a:hover::after { width: 100%; }
.nav a.active { font-weight: 600; opacity: 1; }
.nav a.active::after { width: 100%; }

.header .nav { gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.header .nav a { font-size: 13.5px; }

.brand { text-decoration: none; color: inherit; display: flex; justify-content: center; align-items: center; }
.brand img { height: 52px; width: auto; display: block; }
.brand-text { font-weight: 900; font-size: 18px; letter-spacing: 0.4px; }

.utils { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.nav-desktop { grid-column: 1 / 3; }
.utils-desktop { grid-column: 3; justify-self: end; }

.util-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.80;
  font-size: 13.5px;
  font-weight: 400;
  transition: opacity 0.15s, color 0.15s;
}
.util-link:hover { opacity: 1; color: var(--brand); }
.util-link.active { font-weight: 600; opacity: 1; }

.subnav { border-bottom: 1px solid var(--border-light); background: var(--bg-warm); }
.subnav-inner { display: flex; gap: 12px; flex-wrap: wrap; padding: 9px 16px; }
.subnav a { text-decoration: none; color: var(--text); font-size: 13px; opacity: 0.80; transition: opacity 0.14s, color 0.14s; }
.subnav a:hover { opacity: 1; color: var(--brand); }

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.footer {
  border-top: 1px solid var(--border-light);
  margin-top: 40px;
  background: linear-gradient(180deg, var(--bg-warm) 0%, #ede8df 100%);
  padding: 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--gold), var(--brand), transparent);
  opacity: 0.45;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 24px;
  padding: 32px 16px 24px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.footer a {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  margin: 7px 0;
  font-size: 13.5px;
  transition: color 0.15s, padding-left 0.15s;
}
.footer a:hover { color: var(--brand); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Social icons — SVG based */
.social-links {
  display: flex; gap: 10px;
  justify-content: center; align-items: center;
  margin-bottom: 0;
}
.social-links a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
  margin: 0; padding: 0;
}
.social-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.social-links a.instagram:hover { background: #e1306c; border-color: #e1306c; color: #fff; }
.social-links a.facebook:hover  { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-links a.pinterest:hover { background: #e60023; border-color: #e60023; color: #fff; }
.social-links a.youtube:hover   { background: #ff0000; border-color: #ff0000; color: #fff; }
.social-links a.whatsapp:hover  { background: #25d366; border-color: #25d366; color: #fff; }

.social-links svg { width: 18px; height: 18px; flex-shrink: 0; display: block; }

/* Legacy PNG icon support */
.social-links img {
  width: 18px; height: 18px; opacity: 0.65; transition: opacity 0.2s;
  display: block;
}
.social-links a:hover img { opacity: 1; filter: brightness(10); }

.payments {
  display: flex; gap: 8px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  color: var(--text-light); font-size: 12px;
}
.payments .pay-chip {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-light);
}
.copyright { color: var(--text-light); font-size: 12px; text-align: center; }

/* ═══════════════════════════
   SECTIONS
═══════════════════════════ */
.section { margin: 32px 0; }
.section-head {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 26px; font-weight: 600;
  letter-spacing: 0.01em;
}
.section-title::after {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  margin-top: 5px;
  border-radius: 2px;
  opacity: 0.65;
}
.section-link {
  font-size: 13px; color: var(--brand);
  text-decoration: none; font-weight: 500;
  opacity: 0.85; letter-spacing: 0.02em;
  transition: opacity 0.15s; white-space: nowrap;
}
.section-link:hover { opacity: 1; text-decoration: underline; }

/* ═══════════════════════════
   HERO BANNER
═══════════════════════════ */
.hero-banner { width: 100%; margin: 0; }
.hero-track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hero-track::-webkit-scrollbar { height: 0; }

.hero-slide {
  scroll-snap-align: start;
  position: relative;
  width: 100%; flex: 0 0 100%;
  min-height: 460px;
  background: #1a0a0e;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.08) 100%);
  z-index: 1; pointer-events: none;
}
.hero-slide[data-slide='1'] { background: var(--brand-dark); }
.hero-slide[data-slide='2'] { background: #1a1520; }
.hero-slide[data-slide='3'] { background: #10150d; }

.hero-overlay {
  position: relative; z-index: 2;
  max-width: 1060px; margin: 0 auto;
  padding: 64px 20px; color: #fff;
}
.hero-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
  opacity: 0.90;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
  margin-bottom: 14px;
}
.hero-title {
  margin: 0 0 8px;
  font-size: 52px; font-weight: 600;
  line-height: 1.04;
  text-shadow: 0 2px 20px rgba(0,0,0,.28);
}
.hero-subtitle {
  opacity: 0.88; font-size: 15px;
  margin-bottom: 24px; letter-spacing: 0.03em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; opacity: 0.80; letter-spacing: 0.04em; }

/* Hero dots */
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 999px; border: none;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: all 0.3s ease; padding: 0;
}
.hero-dot[aria-current='true'] {
  background: var(--brand);
  width: 24px;
  box-shadow: 0 2px 8px rgba(110,34,54,0.35);
}

@media (max-width: 820px) {
  .hero-slide { min-height: 360px; }
  .hero-title { font-size: 34px; }
  .hero-overlay { padding: 44px 16px; }
}
@media (max-width: 768px) {
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,.18) 70%, rgba(0,0,0,.06));
  }
}
@media (max-width: 480px) {
  .hero-slide { min-height: 290px; }
  .hero-title { font-size: 28px; }
  .hero-overlay { padding: 30px 14px; }
}

/* Float badges */
.float-badges { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.float-badge {
  position: absolute; padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  font-size: 12px; font-weight: 600;
  backdrop-filter: blur(8px); color: var(--text);
  animation: floaty 6s ease-in-out infinite;
}
.float-badge.b1 { left: 18px; top: 22px; animation-delay: 0s; }
.float-badge.b2 { right: 18px; top: 64px; animation-delay: 1.2s; }
.float-badge.b3 { left: 26px; bottom: 26px; animation-delay: 2.1s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@media (max-width: 560px) { .float-badge { display: none; } }

/* ═══════════════════════════
   CATEGORY TILES
═══════════════════════════ */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) { .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .category-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { min-height: 70px; padding: 12px; }
}

.cat-tile {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--bg-warm) 100%);
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 88px;
  display: flex; flex-direction: column; justify-content: center;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  background: linear-gradient(145deg, #fff 0%, var(--brand-light) 100%);
}
.cat-title {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600; color: var(--text);
}
.cat-sub { margin-top: 5px; font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════
   FILTER TABS
═══════════════════════════ */
.filter-tabs {
  display: flex; gap: 8px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0 6px; border-bottom: 1px solid var(--border-light);
}
.filter-tabs::-webkit-scrollbar { height: 0; }
.filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: all 0.18s ease; color: var(--text);
}
.filter-tab:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }
.filter-tab.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 4px 12px rgba(110,34,54,0.25);
}

/* ═══════════════════════════
   FLOATING CTA
═══════════════════════════ */
.floating-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 999px;
  text-decoration: none; color: var(--text);
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.05);
  font-size: 13px; font-weight: 500;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}
.floating-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.16); }
.floating-cta-dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: #25d366; box-shadow: 0 0 0 5px rgba(37,211,102,0.15);
  flex-shrink: 0;
}

/* ═══════════════════════════
   LIGHTBOX
═══════════════════════════ */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  backdrop-filter: blur(4px);
}
#lightbox.open { display: flex; }
#lightboxInner { position: relative; max-width: 1000px; width: 100%; max-height: 90vh; }
#lightboxImg {
  width: 100%; height: auto; max-height: 90vh;
  object-fit: contain; border-radius: var(--radius-md); background: #111;
}
.lb-btn {
  position: absolute; top: 10px;
  padding: 10px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
  transition: background 0.15s;
}
.lb-btn:hover { background: rgba(0,0,0,0.75); }
#lbClose { right: 10px; }
#lbPrev { left: 10px; top: 50%; transform: translateY(-50%); }
#lbNext { right: 10px; top: 50%; transform: translateY(-50%); }
#mainImg { cursor: zoom-in; }

/* ═══════════════════════════
   PRODUCT PAGE
═══════════════════════════ */
.pd-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-top: 16px; }
@media (max-width: 980px) { .pd-wrap { grid-template-columns: 1fr; } }

.pd-gallery { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; }
.pd-thumbs {
  display: flex; flex-direction: column;
  gap: 10px; max-height: 520px; overflow: auto; padding-right: 2px;
}
.pd-thumb {
  border: 1.5px solid var(--border);
  background: #fff; border-radius: var(--radius-sm);
  overflow: hidden; width: 80px; height: 100px; cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.pd-thumb:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(110,34,54,0.15); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-main { border: 1.5px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-warm); }
#mainImg { width: 100%; height: 520px; object-fit: cover; display: block; cursor: zoom-in; background: var(--bg-warm); }

@media (max-width: 980px) {
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbs { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
  .pd-thumb { width: 90px; height: 110px; }
  #mainImg { height: 420px; }
}
@media (max-width: 560px) {
  .pd-thumb { width: 70px; height: 88px; }
  #mainImg { height: 320px; }
}

.pd-title { font-family: var(--font-heading); font-size: 24px; font-weight: 600; line-height: 1.2; }
.pd-meta { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; opacity: .72; font-size: 13px; }
.pd-price-row { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pd-price { font-size: 22px; font-weight: 700; color: var(--brand); }
.pd-price-mrp { margin-left: 8px; font-size: 14px; opacity: .55; text-decoration: line-through; }
.pd-price-sale { font-size: 22px; font-weight: 700; color: var(--brand); }
.pd-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 560px) {
  .pd-actions { flex-direction: column; align-items: stretch; }
  .pd-actions .btn, .pd-actions button { width: 100%; min-width: 0 !important; }
  .pd-qty { width: 100%; }
  .pd-qty-box { width: 100%; justify-content: center; }
}

.pd-qty { display: flex; flex-direction: column; gap: 6px; }
.pd-qty-box {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.pd-qty-btn {
  padding: 10px 16px; border: 0; background: transparent;
  cursor: pointer; font-size: 18px; line-height: 1; transition: background 0.15s;
}
.pd-qty-btn:hover { background: var(--brand-light); }
.pd-qty-input {
  width: 44px; border: 0; outline: none;
  text-align: center; padding: 10px 4px;
  font-size: 14px; font-weight: 600; background: transparent;
}
.pd-add { min-width: 180px; }
.pd-go { min-width: 140px; }
.pd-desc { margin-top: 14px; opacity: .88; line-height: 1.6; }

/* Specs */
.spec-grid { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.spec-k { font-weight: 600; opacity: .65; font-size: 13px; }
.spec-v { opacity: .92; font-size: 13px; }

/* Accordion */
.ac-item { border-top: 1px solid var(--border-light); padding: 14px 0; }
.ac-item:first-child { border-top: none; }
.ac-btn {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; background: transparent; border: 0;
  padding: 0; font-weight: 600; cursor: pointer;
  font-size: 14px; font-family: var(--font-body); color: var(--text);
}
.ac-content { display: none; margin-top: 10px; opacity: .90; line-height: 1.6; font-size: 14px; }
.ac-item.open .ac-content { display: block; }
.ac-chevron { transition: transform .22s ease; }
.ac-item.open .ac-chevron { transform: rotate(180deg); }
.bullets { padding-left: 18px; margin: 0; }
.bullets li { margin: 6px 0; }

/* ═══════════════════════════
   PRODUCTS LISTING
═══════════════════════════ */
.products-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; align-items: start; }
.filters {
  padding: 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--surface);
  position: sticky; top: 12px;
  box-shadow: var(--shadow-xs);
}
.filter-block { margin-top: 16px; }
.filter-title { font-weight: 600; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }
.filter-list { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 900px) { .products-layout { grid-template-columns: 1fr; } .filters { position: relative; top: 0; } }

/* Toolbar */
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 500; font-size: 14px;
  transition: all 0.18s ease;
}
.toolbar-btn:hover { border-color: var(--brand); color: var(--brand); }
.toolbar-btn-icon { display: inline-block; line-height: 1; font-size: 16px; }
.toolbar-count { flex: 1 1 auto; text-align: center; white-space: nowrap; opacity: .72; font-size: 14px; }
.toolbar-sort { width: auto; min-width: 180px; max-width: 260px; }

@media (max-width: 700px) {
  .listing-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .toolbar-count { grid-column: 1 / -1; text-align: left; padding-left: 2px; }
  .toolbar-sort { min-width: 0; max-width: none; width: 100%; }
}

/* Drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease; z-index: 1100;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.filter-drawer {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: 380px; max-width: 90vw;
  background: var(--surface);
  transform: translateX(-105%); transition: transform .26s ease;
  z-index: 1200; display: flex; flex-direction: column;
  box-shadow: 0 0 40px rgba(0,0,0,0.18);
}
.filter-drawer.open { transform: translateX(0); }
.filter-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px; border-bottom: 1px solid var(--border-light);
}
.filter-drawer-title { font-family: var(--font-heading); font-size: 20px; font-weight: 600; }
.filter-drawer-body { padding: 16px; overflow: auto; flex: 1 1 auto; }
.filter-drawer-foot { padding: 14px 16px; border-top: 1px solid var(--border-light); background: var(--surface); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.filter-option input { margin: 0; accent-color: var(--brand); }

/* ═══════════════════════════
   CHECKOUT
═══════════════════════════ */
.checkout-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════
   TESTIMONIALS
═══════════════════════════ */
.testimonial-card { padding: 16px; border-radius: var(--radius-md); }
.testimonial-quote { font-weight: 600; line-height: 1.5; }
.testimonial-meta { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; opacity: .85; }
.testimonial-name { font-weight: 700; }
.testimonial-stars { letter-spacing: 1px; color: #c49a2a; }
.testimonial-card.fancy {
  position: relative; padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); overflow: hidden;
}
.testimonial-corner { position: absolute; top: 10px; right: 12px; font-size: 26px; opacity: 0.07; line-height: 1; pointer-events: none; }
.testimonial-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.testimonial-avatar { width: 44px !important; height: 44px !important; border-radius: 14px !important; object-fit: cover !important; display: block !important; }
.testimonial-person { display: flex; flex-direction: column; gap: 2px; }
.testimonial-place { opacity: 0.75; }

.t-card { padding: 16px; border-radius: var(--radius-md); position: relative; }
.t-photo-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light); background: var(--bg-warm); }
.t-photo { width: 100%; height: 220px; object-fit: cover; display: block; }
.t-quote-icon {
  position: absolute; top: 10px; right: 12px;
  font-size: 28px; opacity: 0.18; line-height: 1; pointer-events: none;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px; padding: 6px 10px; backdrop-filter: blur(8px);
}
.t-head { margin-top: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.t-name { font-weight: 700; line-height: 1.1; }
.t-place { opacity: 0.65; margin-top: 2px; font-size: 13px; }
.t-stars { letter-spacing: 1px; opacity: 0.9; white-space: nowrap; color: #c49a2a; font-size: 14px; }
.t-quote { margin-top: 10px; font-weight: 500; line-height: 1.5; opacity: 0.92; font-size: 14px; }

@media (max-width: 860px) { .t-photo { height: 200px; } .t-quote-icon { font-size: 22px; padding: 5px 8px; } }
@media (max-width: 560px) { .t-photo { height: 160px; } }

/* ── Compact testimonial cards (used on homepage) ── */
.t-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) { .t-compact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .t-compact-grid { grid-template-columns: 1fr; } }

.t-compact-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.t-compact-stars {
  color: #c49a2a;
  font-size: 13px;
  letter-spacing: 1px;
}
.t-compact-quote {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 500;
  flex: 1;
}
.t-compact-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.t-compact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border-light);
}
.t-compact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
/* Show initial letter as fallback via data-initial attribute */
.t-compact-avatar[data-initial]::after {
  content: attr(data-initial);
  position: absolute;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.t-compact-avatar { position: relative; }
.t-compact-name {
  font-weight: 700;
  font-size: 13px;
}
.t-compact-place {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 1px;
}

/* ═══════════════════════════
   ABOUT PAGE
═══════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 24px; align-items: start; }
.about-aside { position: sticky; top: 16px; }
.about-photo {
  width: 100% !important; height: auto !important;
  max-height: 640px;
  object-fit: contain !important; object-position: center !important;
  border-radius: var(--radius-md) !important; display: block !important;
  background: #fff; box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light); padding: 6px;
}
.about-caption { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); background: rgba(255,255,255,0.65); backdrop-filter: blur(8px); }
.about-name { font-weight: 700; }
.about-role { opacity: .75; font-size: .95rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-height: 420px; padding: 4px; } .about-aside { position: relative; top: auto; order: -1; } }

/* ═══════════════════════════
   COMPREHENSIVE MOBILE FIXES
═══════════════════════════ */
@media (max-width: 820px) {
  .topbar-inner { justify-content: center; }
  .topbar-right { display: none; }
  .topbar-left { width: 100%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-inner { grid-template-columns: 1fr; padding: 10px 12px; }
  .header-mobile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
  .mobile-logo { justify-self: center; }
  .mobile-logo img { max-width: 160px; height: 34px; width: auto; }
  .nav-desktop, .utils-desktop { display: none; }
  .subnav { display: none; }
  .container { padding: 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .container > * { max-width: 100%; }
  img { max-width: 100%; }
  .header .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .header .nav::-webkit-scrollbar { height: 0; }
  .utils { flex-wrap: nowrap; overflow-x: auto; }
  .utils::-webkit-scrollbar { height: 0; }
}
@media (max-width: 480px) {
  .icon-btn, .icon-link { width: 36px; height: 36px; }
  .header-mobile-left, .header-mobile-right { gap: 4px; }
  .header-mobile-right a[href="wishlist.html"] { display: none; }
  .mobile-logo { max-width: 120px; }
  .mobile-logo img { max-width: 120px; height: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-grid .row { flex-direction: column; gap: 10px; }
  .form-grid .row > .field { min-width: 0 !important; width: 100%; flex: 1 1 100%; }
  #app { max-width: 100% !important; }
  .city-state-row { flex-direction: column; gap: 10px; }
  .city-state-row > div { width: 100%; flex: 1 1 100%; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header .btn { align-self: flex-start; }
}
@media (max-width: 560px) {
  .pd-actions .btn, form > .btn, .checkout-grid .btn[style*="width:100%"] { width: 100%; }
}
@media (max-width: 480px) {
  #couponBox .row { flex-direction: column; }
  #couponBox .row .input, #couponBox .row button { width: 100%; }
  #summary .row { flex-direction: column; gap: 8px; }
  #summary .row .btn, #summary .row a { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
  .input,
  input.input,
  select.input,
  textarea.input {
    font-size: 16px; /* prevents iOS Safari auto-zoom */
  }
}

/* ═══════════════════════════
   UTILITY
═══════════════════════════ */
.product-link { display: block; text-decoration: none; color: inherit; }
.img-placeholder { height: 280px; background: var(--bg-warm); }
.hidden { display: none !important; }
