/* Aziz Banarsi — demo store
   60-30-10: 60% warm ivory surfaces, 30% deep maroon structure, 10% gold accent.
   Mobile-first: base styles target 360px, desktop is layered on top. */

:root {
  --ivory: #FAF6EF;
  --ivory-2: #F2E9DA;
  --ivory-3: #EADFC9;
  --maroon: #4A0E18;
  --maroon-2: #5E1420;
  --maroon-dark: #380A12;
  --gold: #C9A227;
  --gold-dark: #9A7B1A;
  --ink: #2B2320;
  --muted: #6E5F55;
  --line: #E0D3BC;
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-weight: 500;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--maroon-dark);
  color: var(--ivory-3);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.top-strip p { margin: 0; padding: 8px 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(74, 14, 24, 0.12); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { text-decoration: none; line-height: 1.05; margin-right: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--maroon);
  display: block;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.main-nav { display: none; }
.header-cta { display: none; }

.menu-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 0 0 auto;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--maroon);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 90;
  background: rgba(56, 10, 18, 0.45);
}
.mobile-menu nav {
  background: var(--ivory);
  margin-top: 104px;
  margin-left: 16px;
  margin-right: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(56, 10, 18, 0.3);
}
.mobile-menu nav a {
  padding: 13px 12px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 10px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.35;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { display: block; text-align: center; width: 100%; }

.btn-gold { background: var(--gold); color: #2E2000; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--ivory); }

.btn-light { background: var(--ivory); color: var(--maroon); border-color: var(--ivory); }
.btn-light:hover { background: var(--ivory-3); border-color: var(--ivory-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 11vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 16px;
}
.hero-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 24px;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { text-align: center; }
.hero-note {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(74, 14, 24, 0.18);
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--maroon); color: var(--ivory); }
.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust-item {
  padding: 18px 12px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.trust-item span { font-size: 12.5px; color: var(--ivory-3); }

/* ---------- Sections ---------- */
.section { padding: 56px 16px; max-width: 1200px; margin: 0 auto; }
.section-alt {
  background: var(--ivory-2);
  max-width: none;
}
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 8px;
  line-height: 1.15;
}
.section-head p { color: var(--muted); margin: 0 auto; max-width: 36em; }

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 1px solid var(--line);
}
.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img { transform: scale(1.04); }
.category-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(56, 10, 18, 0.88), rgba(56, 10, 18, 0));
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
.category-label small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ivory-3);
  margin-top: 2px;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-media { position: relative; }
.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.price-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--maroon);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 6px;
}
.product-body { padding: 20px; }
.product-cat {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.product-body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 6px;
  line-height: 1.2;
}
.product-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.price {
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon);
  margin: 0 0 14px;
}
.price s { color: var(--muted); font-weight: 400; font-size: 16px; margin-left: 6px; }

/* ---------- Story ---------- */
.story { background: var(--maroon); color: var(--ivory); }
.story-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.story-media { margin: 0; }
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
}
.story-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
  color: #fff;
}
.story-copy p { color: var(--ivory-3); margin: 0 0 16px; max-width: 38em; }
.story-copy .btn { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
  min-height: 48px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-dark);
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- Visit ---------- */
.visit { background: var(--ivory-2); border-top: 1px solid var(--line); }
.visit-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 16px;
  text-align: center;
}
.visit h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 16px;
}
.visit address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 12px;
}
.visit p { color: var(--muted); margin: 0 auto 24px; max-width: 34em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: var(--ivory-3); }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.footer-brand p { margin: 0; font-size: 14.5px; }
.footer-col h3 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--ivory-3);
  text-decoration: none;
  padding: 6px 0;
  font-size: 15px;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-followers { font-size: 13px; color: var(--ivory-3); opacity: 0.75; margin: 4px 0 0; }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 239, 0.16);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-bottom p { margin: 0; }
.demo-note { opacity: 0.7; font-size: 12.5px; }

/* ---------- Floating actions ---------- */
.float-order {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #2E2000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(56, 10, 18, 0.35);
  text-decoration: none;
}
.float-order:hover { background: var(--gold-dark); color: #fff; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 84px;
  z-index: 80;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--maroon);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(56, 10, 18, 0.18);
}
.back-to-top[hidden] { display: none; }

/* ---------- 404 ---------- */
.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 16px;
  text-align: center;
}
.notfound h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 56px);
  color: var(--maroon);
  margin: 0 0 12px;
}
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .header-inner { padding: 14px 24px; }
  .main-nav { display: flex; gap: 28px; margin: 0 auto; }
  .main-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 2px;
  }
  .main-nav a:hover { color: var(--maroon); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--gold); }
  .header-cta { display: inline-block; margin-left: 8px; }
  .brand { margin-right: 0; }
  .menu-toggle { display: none; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    padding: 72px 24px 80px;
    gap: 56px;
  }
  .hero-copy { flex: 1 1 52%; }
  .hero-media { flex: 1 1 40%; }
  .hero-media img { max-height: 600px; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); padding: 8px 24px; }
  .trust-item { padding: 24px 12px; }

  .section { padding: 88px 24px; }
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .story-inner {
    flex-direction: row;
    align-items: center;
    padding: 88px 24px;
    gap: 56px;
  }
  .story-media { flex: 1 1 42%; }
  .story-media img { aspect-ratio: 4 / 5; }
  .story-copy { flex: 1 1 50%; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding: 64px 24px 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; padding: 20px 24px 28px; }
  .float-order { display: none; }
  .back-to-top { bottom: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card img { transition: none; }
  .category-card:hover img { transform: none; }
  .btn, .menu-toggle span { transition: none; }
}
