/* ============================================================
   HAYYAKUM PERFUMES — Shared Stylesheet
   ------------------------------------------------------------
   Styled to match the live Shopify storefront:
   clean white, near-black text, gold accents, luxury minimalism.
   Edit the variables in :root below to re-theme the whole site.
   ============================================================ */

/* ----------  1. THEME VARIABLES  ---------- */
:root {
  /* Colour palette (dark luxury) */
  --bg:         #0d0b08;   /* page background — near black */
  --bg-soft:    #15110c;   /* alternating section bg       */
  --ink:        #f4efe6;   /* primary text — warm off-white*/
  --ink-soft:   #ab9f8b;   /* secondary text               */
  --gold:       #d4af52;   /* premium gold accent          */
  --gold-deep:  #b8923f;   /* gold hover / darker accent   */
  --line:       #2c261f;   /* hairline borders             */
  --promo:      #000000;   /* announcement bar — pure black */

  /* Typography */
  --font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1240px;
  --radius: 2px;
  --transition: 0.35s ease;
}

/* ----------  2. RESET & BASE  ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* Reusable layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Section spacing — lots of breathing room */
.section { padding: 88px 0; }
.section-soft { background-color: var(--bg-soft); }

/* Compact page header for sub-pages (Catalog, Contact) */
.page-head {
  text-align: center;
  padding: 70px 0 6px;
}
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 12px;
}
.page-head .sparkle { font-size: 0.6em; }
.page-head p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; }

/* Decorative gold sparkle used beside headings (✦) */
.sparkle { color: var(--gold); font-size: 0.7em; vertical-align: middle; }

/* Centered section heading block */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); }

.text-center { text-align: center; }

/* ----------  3. BUTTONS  ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #16120b;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #16120b; }

/* Light variant (e.g. on dark hero image) */
.btn-light {
  background: #f4efe6;
  color: #16120b;
  border-color: #f4efe6;
}
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: #16120b; }

/* Outline variant — light hairline on dark background */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-soft);
}
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: #16120b; }

/* ----------  4. ANNOUNCEMENT / PROMO BAR  ---------- */
.promo-bar {
  background: var(--promo);
  color: #f1e8d8;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  padding: 10px 16px;
}

/* ----------  5. NAVIGATION BAR  ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 11, 8, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
}
.nav-logo .sparkle { font-size: 0.55em; margin: 0 2px; }
/* Brand logo image in the nav */
.nav-logo img { height: 50px; width: auto; display: block; }

/* Centered nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-deep); }

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 25px; height: 1.6px;
  background: var(--ink);
  transition: var(--transition);
}

/* ----------  6. HERO  ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Hero image lives in the images/ folder — swap the file to change it.
     Overlay is a touch darker so the gold heading stays readable. */
  background:
    linear-gradient(rgba(18, 13, 8, 0.5), rgba(18, 13, 8, 0.62)),
    url('../images/hero.png')
    center/cover no-repeat;
}
.hero-content { max-width: 760px; padding: 0 24px; }
.hero h1 {
  /* Warm gold gradient text for a premium look */
  color: var(--gold);
  background: linear-gradient(180deg, #f0d27a 0%, #d4af52 55%, #b8923f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: 1px;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero p {
  font-style: italic;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  margin-bottom: 34px;
  color: #f0e4cb;
}

/* ----------  7. PRODUCT GRID & CARDS  ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 38px 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
/* Image sits in a soft frame; zooms slightly on hover */
.product-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  margin-bottom: 16px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-price {
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ----------  7b. BEST-SELLERS CAROUSEL (horizontal scroller)  ---------- */
/* Header row: title on the left, "View all" link on the right. */
.carousel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.carousel-head h2 { font-size: 2.5rem; }
.carousel-viewall {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  transition: var(--transition);
}
.carousel-viewall:hover { color: var(--ink); }

/* The viewport. It is a NATIVE horizontal scroll container — JS drifts it
   automatically (see main.js). We deliberately do NOT use a CSS transform
   animation here: animating a ~4000px-wide row forces iOS Safari to allocate
   one GPU texture (×3 on retina ≈ 12000px) that exceeds its max size and
   renders BLACK mid-scroll. A scroll container only ever paints the visible
   slice, so it never blacks out — and it lets people swipe the row by hand. */
.carousel {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  /* NOTE: deliberately NO `-webkit-overflow-scrolling: touch` — it puts iOS
     scrolling on a momentum layer that ignores/lags programmatic scrollLeft
     writes, which broke the auto-scroll loop (it drifted to the empty end). */
  scrollbar-width: none;       /* Firefox: hide scrollbar */
  -ms-overflow-style: none;    /* legacy Edge */
}
.carousel::-webkit-scrollbar { display: none; } /* Chrome / Safari */

/* The row of cards. JS duplicates the set once so the auto-scroll can loop
   seamlessly (when it reaches the halfway point it jumps back by one set). */
.marquee {
  display: flex;
  width: max-content;
}

/* Each card is a fixed-width slide; margin (not gap) keeps the loop exact */
.marquee .product-card {
  flex: 0 0 clamp(220px, 24vw, 290px);
  margin-right: 26px;
}

/* Accessibility: no motion for users who ask for none — JS skips the
   auto-scroll; the row stays a simple, manually-swipeable strip. */
@media (prefers-reduced-motion: reduce) {
  .marquee .product-card:last-child { margin-right: 0; }
}

@media (max-width: 560px) {
  .carousel-head h2 { font-size: 1.9rem; }
}

/* ----------  8. COLLECTION TILES  ---------- */
.collection-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.collection-card {
  flex: 0 1 calc((100% - 72px) / 4);
  min-width: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.collection-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.collection-card:hover img { transform: scale(1.06); }
.collection-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.55));
}
.collection-card span {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.9rem;
  letter-spacing: 2px;
}

/* ----------  9. OUR STORY  ---------- */
.story { max-width: 760px; margin: 0 auto; text-align: center; }
.story p {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

/* ----------  10. FORMS (Contact page)  ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  margin-bottom: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

/* ----------  CHECKOUT  ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
.checkout-heading {
  font-size: 1.5rem;
  margin: 0 0 18px;
}
.checkout-form .checkout-heading:not(:first-child) { margin-top: 38px; }

.checkout-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  margin-bottom: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--gold); }
.checkout-form textarea { resize: vertical; }

/* two fields side by side */
.co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Sold-out products (build.js swaps the buy buttons for this). */
.product-soldout {
  margin: 10px 0 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9a9a;
}

/* find-my-location */
.co-locate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 22px;
}
.co-locate .btn { padding: 11px 20px; }
.co-pin { color: var(--gold); margin-right: 4px; }
.co-loc-status { font-size: 14px; color: var(--ink-soft); }
.co-loc-status.ok  { color: var(--gold); }
.co-loc-status.err { color: #e0816b; }
.co-loc-status a { color: var(--gold); text-decoration: underline; }

/* payment method options */
.co-pay {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.co-pay:has(input:checked) { border-color: var(--gold); }
.co-pay input { width: auto; margin: 3px 0 0; accent-color: var(--gold); }
.co-pay-body { display: flex; flex-direction: column; gap: 3px; }
.co-pay-title { font-size: 1.05rem; color: var(--ink); }
.co-pay-sub   { font-size: 13px; color: var(--ink-soft); }

.checkout-submit { width: 100%; margin-top: 12px; }
.co-msg { margin-top: 14px; font-size: 14px; min-height: 1em; }
.co-msg.ok  { color: var(--gold); }
.co-msg.err { color: #e0816b; }

/* order summary */
.checkout-summary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: sticky;
  top: 100px;
}
.co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.co-item img {
  width: 52px; height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex: 0 0 auto;
}
.co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.co-item-name { font-size: 0.95rem; line-height: 1.3; }
.co-item-qty  { font-size: 12px; color: var(--ink-soft); }
.co-item-line { font-size: 0.95rem; color: var(--gold); white-space: nowrap; }

.co-totals { margin-top: 18px; }
.co-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.co-line.co-grand {
  font-size: 1.2rem;
  color: var(--ink);
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.co-summary-note { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* success page check mark */
.order-check {
  width: 76px; height: 76px;
  margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.contact-detail { margin-bottom: 28px; }
.contact-detail h4 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-detail p { color: var(--ink-soft); }

.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }

/* ----------  10b. CART SYSTEM (buttons, icon, drawer)  ---------- */

/* Two action buttons under each product (Add to Cart + Order, stacked) */
.product-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.product-actions .btn {
  width: 82%;
  min-width: 150px;
  padding: 11px 18px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* Nav cart icon + count badge */
.nav-icons { display: flex; align-items: center; gap: 22px; }
.nav-icons svg {
  width: 22px; height: 22px;
  stroke: var(--ink); fill: none; stroke-width: 1.4;
  transition: var(--transition);
}
.cart-link { position: relative; display: inline-flex; }
.cart-link:hover svg { stroke: var(--gold-deep); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--gold); color: #16120b;
  font-size: 11px; font-weight: 500; line-height: 18px; text-align: center;
}
.cart-link.bump { animation: cart-bump 0.45s ease; }
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Image that flies from a product into the cart icon */
.fly-img {
  position: fixed; z-index: 2000;
  border-radius: 6px; object-fit: cover; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.85s cubic-bezier(0.5, -0.2, 0.3, 1), opacity 0.85s ease;
}

/* Product search: nav icon + full-screen overlay */
.search-link {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center;
}
.search-link svg {
  width: 22px; height: 22px;
  stroke: var(--ink); fill: none; stroke-width: 1.4;
  transition: var(--transition);
}
.search-link:hover svg { stroke: var(--gold-deep); }

.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1550;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 84px 20px 40px;
}
.search-overlay.open { opacity: 1; visibility: visible; }

.search-panel { max-width: 900px; margin: 0 auto; }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.search-bar-icon { display: inline-flex; flex: none; }
.search-bar-icon svg {
  width: 21px; height: 21px;
  stroke: var(--ink-soft); fill: none; stroke-width: 1.4;
}
.search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--ink); font-family: inherit;
  font-size: 1.05rem; letter-spacing: 0.3px;
}
.search-input::placeholder { color: var(--ink-soft); }
.search-close {
  background: none; border: none; color: var(--ink-soft);
  font-size: 28px; line-height: 1; cursor: pointer; flex: none;
  transition: var(--transition);
}
.search-close:hover { color: var(--gold); }

.search-results { margin-top: 28px; }
.search-hint { text-align: center; color: var(--ink-soft); padding: 44px 0; }
.search-results .product-grid { gap: 30px 24px; }

/* Slide-out cart drawer */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1500;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 390px; max-width: 88vw;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 1600;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -12px 0 34px rgba(0, 0, 0, 0.45);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h3 { font-size: 1.7rem; }
.cart-close {
  background: none; border: none; color: var(--ink);
  font-size: 32px; line-height: 1; cursor: pointer;
  transition: var(--transition);
}
.cart-close:hover { color: var(--gold); }

.cart-items { flex: 1; overflow-y: auto; padding: 6px 26px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 56px 0; }

.cart-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item img {
  width: 66px; height: 84px; object-fit: cover;
  border-radius: 3px; background: var(--bg-soft); flex: 0 0 auto;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-size: 0.85rem; margin-bottom: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.qty button {
  width: 30px; height: 30px;
  background: none; border: none; color: var(--ink);
  font-size: 16px; cursor: pointer; transition: var(--transition);
}
.qty button:hover { color: var(--gold); }
.qty span { min-width: 30px; text-align: center; font-size: 0.9rem; }

.cart-item-remove {
  display: block; background: none; border: none; color: var(--ink-soft);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; margin-top: 10px; padding: 0;
  transition: var(--transition);
}
.cart-item-remove:hover { color: var(--gold); }

.cart-foot { padding: 22px 26px 28px; border-top: 1px solid var(--line); }
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.15rem; margin-bottom: 18px;
}
.cart-subtotal span:last-child { color: var(--gold); font-family: var(--font-head); font-size: 1.4rem; }
.cart-checkout { width: 100%; }
.cart-note { text-align: center; font-size: 12.5px; color: var(--gold); margin-top: 12px; min-height: 1em; }
.cart-continue {
  width: 100%; margin-top: 8px;
  background: none; border: none; color: var(--ink-soft);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; padding: 10px;
  transition: var(--transition);
}
.cart-continue:hover { color: var(--ink); }

/* ----------  11. FOOTER  ---------- */
.footer {
  background: var(--promo);
  color: #e8ddca;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 44px;
  margin-bottom: 44px;
}
.footer h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.footer h3 .sparkle { color: var(--gold); }
.footer p, .footer a {
  color: #cdbfa6;
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer a:hover { color: var(--gold); }
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.social-links { display: flex; gap: 14px; margin-top: 6px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid #4a4136;
  border-radius: 50%;
  margin: 0;
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); }
.social-links svg { width: 17px; height: 17px; fill: #e8ddca; }
.social-links a:hover svg { fill: #fff; }

.footer-bottom {
  border-top: 1px solid #3a322a;
  padding-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: #a99c84;
}

/* ----------  12. SCROLL REVEAL ANIMATION  ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ----------  13. RESPONSIVE  ---------- */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .collection-grid { gap: 18px; }
  .collection-card { flex-basis: calc((100% - 18px) / 2); }
  .checkout-grid { grid-template-columns: 1fr; gap: 36px; }
  .checkout-summary { position: static; order: -1; }

  /* Mobile nav */
  .nav-toggle { display: flex; order: 3; }
  .nav-icons { order: 2; }
  .nav-links {
    position: absolute;
    top: 80px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; text-align: center; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 18px 0; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 2rem; }
  .hero { min-height: 78vh; }
  .collection-card { flex-basis: 100%; }
  /* Checkout's paired fields (Name+Phone, Emirate+Area, Flat+Landmark)
     are far too narrow side-by-side on a phone — stack them. */
  .co-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ORDER SUMMARY CARD + TRACK ORDER PAGE
   (success.html, track-order.html — rendered by js/order-view.js)
   ============================================================ */
.order-box {
  background: var(--bg-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.order-id-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.order-id {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 4px 0 2px;
}
.order-meta { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }
.order-pills { margin-bottom: 18px; }
.order-pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 4px 6px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.order-pill.pay-card { border-color: var(--gold); color: var(--gold); }
.order-pill.pay-cod  { border-color: var(--ink-soft); }
.order-pill.st-done  { border-color: #7dba7d; color: #7dba7d; }
.order-pill.st-prep  { border-color: var(--ink-soft); }
.order-items { border-top: 1px solid var(--line); text-align: left; }
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.order-item-qty { color: var(--ink-soft); }
.order-item-amount { white-space: nowrap; }
.order-totals { padding-top: 12px; text-align: left; }
.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 3px 0;
}
.order-grand {
  font-size: 17px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
}
.order-grand span:last-child { color: var(--gold); }
.order-dest {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* WhatsApp confirm button on the success page */
.wa-confirm {
  display: inline-block;
  margin-top: 26px;
  font-size: 15px;
  padding: 15px 34px;
}

/* Track-order form */
.track-form { max-width: 560px; margin: 0 auto; text-align: center; }
.track-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  text-align: left;
}
.track-form input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  margin-bottom: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}
.track-form input:focus { outline: none; border-color: var(--gold); }
.track-form .btn { width: 100%; }
@media (min-width: 700px) {
  .track-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
  .track-form .btn { grid-column: 1 / -1; width: auto; justify-self: center; padding: 14px 46px; }
  .track-form .co-msg { grid-column: 1 / -1; }
}

/* ----------  14. PERFUME PAGE (product/<id>.html) + CATALOG SORT  ---------- */

/* Card photo + name link through to the perfume's own page. */
.product-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-link:hover .product-name { color: var(--gold); }

/* Home / Catalog / This perfume */
.breadcrumb {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 34px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }
.breadcrumb span[aria-current] { color: var(--ink); margin-left: 0; }

.pdp-section { padding-top: 48px; }

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* The product photos are 600px wide. Capping the frame stops the browser
   upscaling them into a blurry mess on a wide screen, and `contain`
   (not the card's `cover`) keeps tall bottle shots from being cropped. */
.pdp-media {
  aspect-ratio: 3 / 4;
  max-width: 600px;
  margin-bottom: 0;
}
.pdp-media img { object-fit: contain; }
.pdp-media:hover img { transform: none; }

.pdp-thumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 0;
}
.pdp-thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--transition);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover,
.pdp-thumb.active { border-color: var(--gold); }

/* Small chips above the name — collection, longevity, best seller. */
.pdp-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin-bottom: 18px;
}
.pdp-badges li {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.pdp-info { text-align: left; }
.pdp-name {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.pdp-price {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.pdp-desc {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 26px;
  max-width: 52ch;
}

/* Size / Lasts */
.pdp-specs { margin-bottom: 28px; }
.pdp-specs > div {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.pdp-specs > div:last-child { border-bottom: 1px solid var(--line); }
.pdp-specs dt {
  min-width: 110px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-specs dd { margin: 0; }

/* Quantity + buy buttons */
.pdp-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
/* Deliberately NOT called .qty — the cart drawer already owns that class
   and its `.qty button` rule (higher specificity than a .qty-btn class)
   would shrink these to the drawer's 30px buttons. */
.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qty-btn {
  width: 42px;
  height: 46px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.qty-btn:hover { color: var(--gold); }
.qty-input {
  width: 52px;
  height: 46px;
  text-align: center;
  background: none;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }

/* Side by side here, unlike the stacked buttons on a card. */
.pdp-actions {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.pdp-actions .btn { width: auto; min-width: 168px; }
.pdp-soldout { text-align: left; margin-bottom: 22px; }

.pdp-help { font-size: 0.9rem; color: var(--ink-soft); }
.pdp-help a { color: var(--gold); }

/* Fragrance notes — these sit INSIDE .pdp-info (the right column), not as a
   full-width band under the grid. They fill the height left over beside the
   tall 3/4 bottle photo, which is what keeps the two columns balanced. */
.pdp-notes {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.pdp-notes h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 26px;
}
.note-row { margin-bottom: 22px; }
.note-row h3 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 12px;
}
.note-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}
.note-chips li {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

/* Sort dropdown above the catalog grid (injected by js/main.js) */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.sort-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sort-select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--gold); }
.sort-count {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .pdp-media { max-width: 100%; }
  .pdp-name { font-size: 2rem; }
}

@media (max-width: 560px) {
  .pdp-section { padding-top: 30px; }
  .breadcrumb { margin-bottom: 22px; }
  .pdp-actions { width: 100%; flex-direction: column; }
  .pdp-actions .btn { width: 100%; }
  .pdp-buy { gap: 12px; }
  .sort-count { display: none; }
  .sort-select { flex: 1; }
}
