/* ==========================================================================
   SUPER STORE JS — Perfumes Árabes
   Design: oud-black base, antique brass gold + deep wine accent,
   Marcellus (display) + Jost (ui/body). Mobile-first, minimal JS deps.
   ========================================================================== */

:root {
  /* Color tokens */
  --black:        #0e0b08;
  --black-2:      #161209;
  --black-3:      #201a13;
  --black-4:      #2a2117;
  --gold:         #b8904f;
  --gold-light:   #e8c983;
  --gold-dim:     #8a6d3f;
  --ivory:        #f3ead9;
  --sand:         #b6a789;
  --sand-dim:     #7d7160;
  --wine:         #7c2635;
  --wine-light:   #a8394d;
  --line:         rgba(232, 201, 131, 0.14);
  --line-strong:  rgba(232, 201, 131, 0.28);
  --shadow:       0 20px 60px rgba(0, 0, 0, 0.45);

  /* Type */
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --pad: 20px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* visually-hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 999;
  transition: top .2s ease;
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

/* Eyebrow / section labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 42px);
  color: var(--ivory);
  line-height: 1.15;
  max-width: 20ch;
}

.section-sub {
  color: var(--sand);
  font-size: 16px;
  max-width: 58ch;
  margin-top: 14px;
}

.section-head { margin-bottom: 44px; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  box-shadow: 0 10px 30px rgba(184, 144, 79, 0.25);
}
.btn-solid:hover { box-shadow: 0 14px 36px rgba(184, 144, 79, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(232,201,131,0.06); }

.btn-whatsapp {
  background: var(--black-3);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 14px;
}
.btn-whatsapp:hover { border-color: var(--gold); }

.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--black-2);
  border-bottom: 1px solid var(--line);
  color: var(--sand);
  font-size: 13px;
  overflow: hidden;
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
  flex-wrap: wrap;
}
.announce strong { color: var(--gold-light); font-weight: 500; }
.announce .dot { color: var(--gold-dim); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 11, 8, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.03em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo .mark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--sand);
  transition: color .2s ease;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.hamburger span, .hamburger::before, .hamburger::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ivory);
  position: relative;
}
.hamburger { flex-direction: column; gap: 4px; }
.hamburger span { margin: 0; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--black);
  z-index: 55;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { padding: 30px var(--pad); display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ivory);
}
.mobile-nav .mobile-extra { padding: 10px var(--pad) 30px; }

@media (min-width: 900px) {
  .site-header .container { height: 76px; }
  .logo { font-size: 21px; letter-spacing: 0.05em; }
  .main-nav { display: block; }
  .hamburger { display: none; }
  .mobile-nav { display: none; }
}

@media (max-width: 400px) {
  .btn-whatsapp span { display: none; }
  .btn-whatsapp { padding: 10px 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 70px;
  background:
    radial-gradient(ellipse 800px 500px at 85% 8%, rgba(184,144,79,0.16), transparent 60%),
    radial-gradient(ellipse 700px 600px at 8% 95%, rgba(124,38,53,0.22), transparent 60%),
    var(--black);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("../img/hero/pattern.svg");
  background-repeat: repeat;
  background-size: 220px;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero .container {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(184,144,79,0.08);
  font-size: 13px;
  color: var(--gold-light);
  margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.12;
  color: var(--ivory);
  max-width: 14ch;
}
.hero-sub {
  margin-top: 22px;
  color: var(--sand);
  font-size: 17px;
  max-width: 46ch;
  line-height: 1.65;
}
.hero-delivery {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ivory);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--black-2);
}
.hero-delivery svg { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }
.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .frame {
  position: relative;
  width: 82%;
  max-width: 340px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
}
.hero-visual .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-visual .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero-visual .cap {
  position: absolute;
  left: 18px; bottom: 18px; right: 18px;
  z-index: 2;
  font-size: 12.5px;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  background: rgba(14,11,8,0.55);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  width: fit-content;
}

@media (min-width: 900px) {
  .hero { padding: 88px 0 100px; }
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: 30px; }
  .hero-visual .frame { max-width: 400px; }
}

/* ---------- Benefits strip (near hero / products) ---------- */
.benefit-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-2);
}
.benefit-strip .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.benefit-strip .item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-strip .item:last-child { border-bottom: none; }
.benefit-strip .item svg { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; }
.benefit-strip .item strong { display: block; font-size: 14.5px; color: var(--ivory); font-weight: 500; }
.benefit-strip .item span { display: block; font-size: 13.5px; color: var(--sand-dim); margin-top: 2px; }

@media (min-width: 700px) {
  .benefit-strip .container { grid-template-columns: repeat(3, 1fr); }
  .benefit-strip .item { border-bottom: none; border-right: 1px solid var(--line); padding: 26px 24px; }
  .benefit-strip .item:last-child { border-right: none; }
}

/* ---------- Products ---------- */
.products { padding: 90px 0 70px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--black-3), var(--black-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-s);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06), transparent 60%),
    var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.product-media img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}
.badge-row {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10.5px;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,11,8,0.75);
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  backdrop-filter: blur(3px);
}
.tag.tag-ship { color: var(--ivory); }

.product-name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ivory);
  margin-bottom: 6px;
}
.product-price {
  font-size: 17px;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.product-price .old { display: none; } /* no "before" pricing per brief */

.product-card .btn {
  margin-top: auto;
  white-space: normal;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Catalog CTA ---------- */
.catalog-cta {
  padding: 70px 0;
  background: var(--black-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.catalog-cta .container {
  text-align: center;
  max-width: 640px;
}
.catalog-cta .section-sub { margin-left: auto; margin-right: auto; }
.catalog-cta .btn { margin-top: 28px; }

/* ---------- About ---------- */
.about { padding: 90px 0; }
.about .container {
  display: grid;
  gap: 30px;
}
.about-copy p + p { margin-top: 16px; }
.about-copy p { color: var(--sand); font-size: 16px; max-width: 62ch; }

@media (min-width: 900px) {
  .about .container { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* ---------- Delivery band ---------- */
.delivery-band {
  padding: 60px 0;
  background:
    radial-gradient(ellipse 600px 300px at 15% 30%, rgba(184,144,79,0.12), transparent 60%),
    var(--black-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.delivery-band .container { text-align: center; max-width: 560px; }
.delivery-band .icon-wrap {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.delivery-band svg { width: 24px; height: 24px; color: var(--gold-light); }
.delivery-band p { color: var(--sand); margin-top: 12px; font-size: 16px; }

/* ---------- Guarantee / refund ---------- */
.guarantee { padding: 90px 0; }
.guarantee-top { margin-bottom: 50px; }
.guarantee-callout {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--black-3), var(--black-2));
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 50px;
}
.guarantee-callout svg { width: 26px; height: 26px; color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.guarantee-callout p { color: var(--ivory); font-size: 15.5px; line-height: 1.6; }
.guarantee-callout strong { color: var(--gold-light); font-weight: 500; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-of-type { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  min-width: 34px;
}
.step h3 { font-size: 16.5px; color: var(--ivory); font-weight: 500; margin-bottom: 4px; }
.step p { font-size: 14.5px; color: var(--sand-dim); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; border-bottom: none; border-right: 1px solid var(--line); padding: 4px 22px; }
  .step:last-of-type { border-right: none; }
}

.guarantee-cta { margin-top: 44px; text-align: center; }

/* ---------- Refund policy ---------- */
.policy { padding: 0 0 90px; }
.policy-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  background: var(--black-2);
}
.policy-box p { color: var(--sand); font-size: 15px; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact {
  padding: 90px 0;
  background: var(--black-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact .container { text-align: center; max-width: 560px; }
.contact-phone {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
}
.contact .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 30px; }
.footer-grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--sand-dim); font-size: 14px; max-width: 34ch; }
.footer-col h4 {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--sand); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--sand-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- Reveal-on-scroll (subtle, respects reduced motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* WhatsApp floating button (mobile convenience) */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
}
.whatsapp-float svg { width: 24px; height: 24px; color: var(--black); }

/* Utility */
.center-text { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
