/* ===========================================================================
   AV Fragrances — Design System  (porcelain-and-umber, one oxidized-gold accent)
   Loaded last (priority 99) so it tops Woostify / WooCommerce / Elementor.
   =========================================================================== */

:root {
  /* Palette — Pure Black / Gold / White */
  --av-bg:        #0E0E0E;   /* Deep Black */
  --av-surface:   #161616;   /* Raised Black */
  --av-surface-2: #1A1A1A;   /* Surface, one step lighter (hover/lines) */
  --av-ink:       #F5EFE3;   /* Warm Cream Text */
  --av-brand:     #0E0E0E;   /* Deep Black (primary) */
  --av-brand-700: #0A0A0A;   /* Black, deeper */
  --av-gold:      #C9A24B;   /* Refined Gold (ONLY accent color) */
  --av-gold-300:  #C9A24B;   /* Gold, lighter (secondary accent) */
  --av-muted:     #888888;   /* Neutral Gray */
  --av-on-brand:  #F5EFE3;   /* Cream text on black */
  --av-ink-dark:  #211c15;   /* Umber ink — text on porcelain cards / light drawers */
  --av-muted-dark:#6b6459;   /* Muted on light (≥4.5:1 on #fff) */
  --av-line:      rgba(245,239,227,.15);

  /* Type */
  --av-font-display: "Bricolage Grotesque", "El Messiri", system-ui, sans-serif;
  --av-font-body:    "Hanken Grotesk", "Tajawal", system-ui, sans-serif;
  --av-font-ar-display: "El Messiri", "Bricolage Grotesque", sans-serif;
  --av-font-ar-body:    "Tajawal", "Hanken Grotesk", sans-serif;

  /* Radii / shadow / spacing */
  --av-r-sm: 8px; --av-r: 12px; --av-r-lg: 18px; --av-r-pill: 999px;
  --av-shadow: 0 1px 2px rgba(14,14,14,.12), 0 8px 24px rgba(14,14,14,.18);
  --av-shadow-lg: 0 2px 6px rgba(14,14,14,.18), 0 18px 48px rgba(14,14,14,.24);
  --av-ease: cubic-bezier(.22,1,.36,1);

  /* z-index scale */
  --z-dropdown:100; --z-sticky:200; --z-header:300; --z-fab:400; --z-sticky-atc:450; --z-modal:600; --z-toast:800;

  /* Remap Elementor global colors so demo content inherits the brand */
  --e-global-color-primary: #0E0E0E;
  --e-global-color-secondary: #F5EFE3;
  --e-global-color-text: #F5EFE3;
  --e-global-color-accent: #C9A24B;
}

/* ----------------------------- Base ------------------------------------- */
body.av-storefront,
.av-storefront {
  background: var(--av-bg);
  color: var(--av-ink);
  font-family: var(--av-font-body);
  -webkit-font-smoothing: antialiased;
}
.av-storefront h1,
.av-storefront h2,
.av-storefront h3,
.av-storefront h4,
.av-storefront.woocommerce-loop-product__title,
.av-storefront .woocommerce-loop-product__title,
.av-storefront .product_title,
.av-storefront .entry-title{
  font-family: var(--av-font-display);
  color: var(--av-ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-weight: 600;
}
.av-storefront a { color: var(--av-ink); }
.av-storefront a:hover { color: var(--av-gold); }
.av-storefront ::selection { background: var(--av-gold); color: #fff; }

/* Arabic typography */
:lang(ar), [dir="rtl"] .av-en + .av-ar, .av-ar { font-family: var(--av-font-ar-body); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, .av-ar.av-display { font-family: var(--av-font-ar-display); line-height: 1.5; }

/* bilingual inline spans: show both by default, separated cleanly */
.av-ar { display: inline; }
.av-en { display: inline; opacity: .82; }
/* English snippets always read LTR so Latin punctuation/dashes don't break inside RTL */
.av-en, [lang="en"] { unicode-bidi: isolate; }
html[dir="rtl"] .av-en { direction: ltr; text-align: inherit; }
.av-ar + .av-en::before { content: " · "; opacity: .55; }
.av-sep { padding: 0 .35em; opacity: .5; }
/* lang toggle states */
body.av-lang-ar .av-en, body.av-lang-ar .av-ar + .av-en::before { display: none; }
body.av-lang-en .av-ar, body.av-lang-en .av-ar + .av-en::before { display: none; }
body.av-lang-en .av-en { opacity: 1; }

/* --------------------------- Buttons (one system) ----------------------- */
.av-storefront .button,
.av-storefront button.button,
.av-storefront .wp-element-button,
.av-storefront.woocommerce a.button,
.av-storefront .woocommerce a.button,
.av-storefront.woocommerce button.button,
.av-storefront .woocommerce button.button,
.av-storefront.woocommerce #respond input#submit,
.av-storefront .woocommerce #respond input#submit,
.av-storefront .single_add_to_cart_button,
.av-storefront .elementor-button{
  background: var(--av-brand);
  color: var(--av-on-brand);
  border: 1px solid var(--av-brand);
  border-radius: var(--av-r-pill);
  font-family: var(--av-font-body);
  font-weight: 600;
  letter-spacing: .01em;
  padding: .8em 1.6em;
  line-height: 1.2;
  transition: background .35s var(--av-ease), color .35s var(--av-ease), transform .2s var(--av-ease), box-shadow .35s var(--av-ease);
}
.av-storefront .button:hover,
.av-storefront.woocommerce a.button:hover,
.av-storefront .woocommerce a.button:hover,
.av-storefront.woocommerce button.button:hover,
.av-storefront .woocommerce button.button:hover,
.av-storefront .single_add_to_cart_button:hover,
.av-storefront .elementor-button:hover{
  background: var(--av-gold);
  border-color: var(--av-gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--av-shadow);
}
/* ghost / secondary */
.av-storefront .button.alt.added,
.av-storefront.woocommerce a.added_to_cart,
.av-storefront .woocommerce a.added_to_cart,
.av-storefront .av-wa-ask{
  background: transparent;
  color: var(--av-brand);
  border: 1px solid var(--av-brand);
}
.av-storefront .av-wa-ask:hover { background: var(--av-brand); color: var(--av-on-brand); }
.av-storefront .av-wa-ask { display:inline-flex; align-items:center; gap:.5em; margin-top:.6rem; }
.av-storefront .av-wa-ask svg { color: #1FA855; }
.av-storefront .av-wa-ask:hover svg { color: #fff; }

/* --------------------------- Top trust bar ------------------------------ */
.av-topbar {
  background: var(--av-brand);
  color: var(--av-on-brand);
  font-size: .8rem;
  border-bottom: 1px solid rgba(201,169,94,.28);
  position: relative; z-index: var(--z-sticky);
}
.av-topbar__inner {
  max-width: 1280px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem clamp(1rem, 4vw, 2rem);
}
.av-topbar__list { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.av-topbar__item { display: flex; align-items: center; gap: .4em; white-space: nowrap; opacity: .92; }
.av-topbar__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--av-gold-300); display: inline-block; }
.av-topbar__tools { display: flex; align-items: center; gap: .8rem; }
.av-topbar__wa { display: inline-flex; align-items: center; gap: .4em; color: var(--av-on-brand); font-weight: 600; }
.av-topbar__wa svg { color: #2bd56a; }
.av-topbar__wa:hover { color: var(--av-gold-300); }
/* language switch: quiet, not dominant — small hairline pill */
.av-lang { display: inline-flex; border: 1px solid rgba(243,239,231,.28); border-radius: var(--av-r-pill); overflow: hidden; }
.av-lang__btn { background: transparent; color: var(--av-on-brand); border: 0; padding: .2em .6em; font-size: .72rem; letter-spacing: .02em; cursor: pointer; font-family: var(--av-font-body); opacity: .72; transition: opacity .25s var(--av-ease), background .25s var(--av-ease); }
.av-lang__btn:hover { opacity: 1; }
.av-lang__btn.is-active { background: var(--av-gold); color: #fff; opacity: 1; }

/* --------------------------- Search band -------------------------------- */
/* Tight band that reads as part of the header (no heavy stone slab, thin gold hairline). */
.av-searchband {
  background: linear-gradient(var(--av-surface), color-mix(in oklab, var(--av-surface) 70%, var(--av-bg)));
  border-bottom: 1px solid var(--av-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  padding: .55rem clamp(1rem,4vw,2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.av-searchband .av-search {
  flex: 1;
}
.av-searchband .av-lang {
  flex: none;
}
.av-search {
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-r-pill);
  padding: .25rem .25rem .25rem .9rem; box-shadow: var(--av-shadow);
  transition: border-color .25s var(--av-ease), box-shadow .25s var(--av-ease);
}
.av-search:focus-within { border-color: rgba(156,122,46,.55); box-shadow: 0 1px 2px rgba(23,20,17,.05), 0 6px 18px rgba(23,20,17,.08); }
.av-search__icon { color: #333333; display: flex; }
.av-search__icon svg { width: 18px; height: 18px; }
.av-search__field { flex: 1; border: 0; outline: 0; background: transparent; font-family: var(--av-font-body); font-size: .95rem; color: #1a1a1a; min-width: 0; padding-block: .5em; }
.av-search__field::placeholder { color: #666666; }
.av-search__submit { border-radius: var(--av-r-pill); background: var(--av-brand); color: var(--av-on-brand); border: 0; padding: .55em 1.3em; font-weight: 600; cursor: pointer; transition: background .25s var(--av-ease); }
.av-search__submit:hover { background: var(--av-gold); color: #0E0E0E; }

/* ------------------------- Authenticity seal mark ----------------------- */
.av-seal-mini {
  width: 1.05em; height: 1.05em; flex: none; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, transparent 52%, var(--av-gold) 53%, var(--av-gold) 60%, transparent 61%),
    var(--av-gold);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent) ; /* keeps disc crisp */
  position: relative; box-shadow: inset 0 1px 1px rgba(255,255,255,.35), inset 0 -1px 2px rgba(0,0,0,.25);
}
.av-seal-mini::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .62em; font-weight: 800; }

/* --------------------------- Product cards (FIXED DIMENSIONS) ----------- */
.av-storefront.woocommerce ul.products,
.av-storefront.woocommerce ul.products,
.av-storefront .woocommerce ul.products{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  max-width: 1200px;
}
.av-storefront.woocommerce ul.products li.product,
.av-storefront.woocommerce ul.products li.product,
.av-storefront .woocommerce ul.products li.product{
  display: flex; flex-direction: column;
  width: 280px; height: auto;
  background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-r-lg);
  padding: 0.7rem; margin: 0; position: relative;
  transition: transform .35s var(--av-ease), box-shadow .35s var(--av-ease), border-color .35s var(--av-ease);
}
/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .av-storefront.woocommerce ul.products,
  .av-storefront.woocommerce ul.products,
  .av-storefront .woocommerce ul.products{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .av-storefront.woocommerce ul.products li.product,
  .av-storefront.woocommerce ul.products li.product,
  .av-storefront .woocommerce ul.products li.product{
    width: 100%;
  }
}
/* Mobile: 1 column */
@media (max-width: 640px) {
  .av-storefront.woocommerce ul.products,
  .av-storefront.woocommerce ul.products,
  .av-storefront .woocommerce ul.products{
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .av-storefront.woocommerce ul.products li.product,
  .av-storefront.woocommerce ul.products li.product,
  .av-storefront .woocommerce ul.products li.product{
    width: 100%;
    height: auto;
  }
}
.av-storefront.woocommerce ul.products li.product:hover,
.av-storefront .woocommerce ul.products li.product:hover{ transform: translateY(-3px); box-shadow: var(--av-shadow-lg); border-color: rgba(156,122,46,.4); }
/* equal photo frame on every card */
.av-storefront.woocommerce ul.products li.product a img,
/* equal photo frame on every card */
.av-storefront .woocommerce ul.products li.product a img,
.av-storefront.woocommerce ul.products li.product img,
.av-storefront .woocommerce ul.products li.product img{
  border-radius: var(--av-r); background: var(--av-surface);
  width: 100%; height: 280px; object-fit: contain;
  mix-blend-mode: multiply; padding: 0.4rem; margin: 0 0 0.6rem;
  flex-shrink: 0;
}
/* brand → name → price structure */
.av-storefront.woocommerce ul.products li.product .av-card__brand,
/* brand → name → price structure */
.av-storefront .woocommerce ul.products li.product .av-card__brand{
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--av-muted-dark); margin: 0; line-height: 1.3;
}
.av-storefront.woocommerce ul.products li.product .woocommerce-loop-product__title,
.av-storefront .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 16px; padding: 0.4rem 0 0.6rem; line-height: 1.35; font-weight: 600;
  color: var(--av-ink-dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: 2.7em;
}
/* title can be wrapped in a link that forces the theme gray — pin to ink */
.av-storefront.woocommerce ul.products li.product a .woocommerce-loop-product__title,
.av-storefront .woocommerce ul.products li.product a .woocommerce-loop-product__title,
.av-storefront.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.av-storefront .woocommerce ul.products li.product .woocommerce-loop-product__title a{ color: var(--av-ink-dark); }
.av-storefront.woocommerce ul.products li.product .price,
.av-storefront .woocommerce ul.products li.product .price{ color: var(--av-ink-dark); font-weight: 700; font-family: var(--av-font-body); font-size: 16px; display: block; margin-bottom: 0.4rem; margin-top: auto; }
.av-storefront.woocommerce ul.products li.product .price del,
.av-storefront .woocommerce ul.products li.product .price del{ color: var(--av-muted); font-weight: 400; }
.av-storefront.woocommerce ul.products li.product .price ins,
.av-storefront .woocommerce ul.products li.product .price ins{ text-decoration: none; }
.av-price-dash { color: var(--av-muted); padding: 0 .15em; }

/* Product card enrichment data (ratings, votes) */
/* Product card rating display - static font sizes */
.av-card__rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 11px;
  color: var(--av-ink-dark);
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.av-card__stars {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--av-gold);
  font-weight: 600;
}
.av-card__rating-text {
  font-size: 11px;
  color: var(--av-muted-dark);
  font-weight: 500;
}
/* actions pinned to the bottom so every card is the same height */
.av-storefront.woocommerce ul.products li.product .button,
/* actions pinned to the bottom so every card is the same height */
.av-storefront .woocommerce ul.products li.product .button{ width: 100%; text-align: center; margin-top: auto; }
/* Removed from cards: the per-card WhatsApp-ask button and TI Wishlist's duplicate BODY button.
   Hidden defensively here too (PHP already unhooks them) so nothing leaks into the card body. */
.av-storefront.woocommerce ul.products li.product .av-card__wa,
.av-storefront .woocommerce ul.products li.product .av-card__wa,
.av-storefront.woocommerce ul.products li.product .tinvwl-loop-button-wrapper,
.av-storefront .woocommerce ul.products li.product .tinvwl-loop-button-wrapper{ display: none !important; }

/* Favourite = a single heart icon floated over the product photo (top-start corner, RTL-aware).
   The theme nests the wishlist inside .product-loop-image-wrapper as .loop-wrapper-wishlist;
   we pin it, drop its text label, and render the heart as a round glass chip. */
.av-storefront.woocommerce ul.products li.product .product-loop-image-wrapper,
.av-storefront .woocommerce ul.products li.product .product-loop-image-wrapper{ position: relative; }
.av-storefront .woocommerce ul.products li.product .loop-wrapper-wishlist,
.av-storefront.woocommerce ul.products li.product .loop-wrapper-wishlist{
  position: absolute; inset-block-start: .55rem; inset-inline-start: .55rem; inset-inline-end: auto;
  z-index: 3; margin: 0; width: auto;
}
.loop-wrapper-wishlist .tinv-wishlist,
.loop-wrapper-wishlist .tinv-wraper{ margin: 0; }
.loop-wrapper-wishlist .tinvwl_add_to_wishlist-text{ display: none !important; } /* icon only */
.loop-wrapper-wishlist .tinvwl_add_to_wishlist_button{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; margin: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--av-line);
  box-shadow: 0 2px 8px rgba(26,22,16,.12); color: var(--av-brand);
  font-size: 16px; line-height: 1; cursor: pointer;
  transition: transform .22s var(--av-ease), background .22s var(--av-ease),
              color .22s var(--av-ease), box-shadow .22s var(--av-ease);
}
.loop-wrapper-wishlist .tinvwl_add_to_wishlist_button::before{ margin: 0; } /* center the heart glyph */
.loop-wrapper-wishlist .tinvwl_add_to_wishlist_button:hover{
  transform: scale(1.09); background: #fff; color: var(--av-brand);
  box-shadow: 0 4px 14px rgba(26,22,16,.18);
}
/* already-saved state → filled rose heart */
.loop-wrapper-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-already-in,
.loop-wrapper-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list{ color: #d4356b; }
@media (prefers-reduced-motion: reduce){
  .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button{ transition: none; }
  .loop-wrapper-wishlist .tinvwl_add_to_wishlist_button:hover{ transform: none; }
}

/* Original badge */
.av-badge { position: absolute; inset-block-start: 1.1rem; inset-inline-start: 1.1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .35em;
  background: var(--av-brand); color: var(--av-on-brand);
  font-size: .68rem; font-weight: 600; letter-spacing: .02em;
  padding: .3em .6em; border-radius: var(--av-r-pill);
}
.av-badge .av-en { opacity: .85; }
/* tame WooCommerce default sale flash to the system */
.av-storefront.woocommerce span.onsale,
/* tame WooCommerce default sale flash to the system */
.av-storefront .woocommerce span.onsale{
  background: var(--av-gold); color: #fff; border-radius: var(--av-r-pill);
  inset-inline-end: 1.1rem; inset-inline-start: auto; inset-block-start: 1.1rem; min-height: 0; min-width: 0; padding: .3em .6em; line-height: 1.2; font-weight: 600;
}

/* --------------------------- Single product ----------------------------- */
.av-storefront .product_title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.av-trust-row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; list-style: none; margin: .4rem 0 1rem; padding: .7rem 0; border-block: 1px solid var(--av-line); }
.av-trust-row li { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; color: var(--av-ink); }
.av-assure { background: var(--av-surface); border: 1px solid var(--av-line); border-radius: var(--av-r); padding: .9rem 1.1rem; margin-top: 1rem; }
.av-assure__line { margin: 0 0 .4rem; font-size: .9rem; line-height: 1.6; }
.av-assure__line .av-en { display: block; color: var(--av-muted); font-size: .82rem; }
.av-assure__ship { margin: 0; font-weight: 600; color: var(--av-gold); font-size: .85rem; }

/* --------------------------- WhatsApp FAB ------------------------------- */
.av-wa-fab {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: var(--z-fab);
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #1FA855; color: #fff; box-shadow: 0 8px 24px rgba(31,168,85,.4);
  transition: transform .3s var(--av-ease), box-shadow .3s var(--av-ease);
}
.av-wa-fab:hover { transform: scale(1.06); color: #fff; box-shadow: 0 10px 30px rgba(31,168,85,.55); }
/* hide the conflicting Chaty widget (we provide our own) */
#chaty-widget-0, .chaty-widget, div[id^="chaty-widget"], .wc_chaty { display: none !important; }

/* --------------------- Mobile sticky add-to-cart ------------------------ */
.av-sticky-atc {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: var(--z-sticky-atc);
  display: none; align-items: center; gap: .8rem;
  background: rgba(250,248,244,.96); backdrop-filter: saturate(1.1) blur(8px);
  border-block-start: 1px solid var(--av-line); box-shadow: 0 -8px 24px rgba(23,20,17,.1);
  padding: .6rem clamp(.8rem, 3vw, 1.2rem); transform: translateY(100%); transition: transform .4s var(--av-ease);
}
.av-sticky-atc.is-visible { transform: translateY(0); }
.av-sticky-atc__info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.av-sticky-atc__name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-sticky-atc__price { color: var(--av-gold); font-weight: 700; font-size: .9rem; }
.av-sticky-atc__btn { flex: none; background: var(--av-brand); color: var(--av-on-brand); border: 0; border-radius: var(--av-r-pill); padding: .8em 1.4em; font-weight: 700; cursor: pointer; }
.av-sticky-atc__btn:hover { background: var(--av-gold); }

/* ------------------------------ Footer ---------------------------------- */
.av-storefront .site-footer, .av-storefront footer.site-footer, .av-storefront .footer-widgets {
  background: var(--av-brand); color: var(--av-on-brand);
}
.av-storefront .site-footer a { color: var(--av-on-brand); }
.av-storefront .site-footer a:hover { color: var(--av-gold-300); }
.av-storefront .site-footer .widget-title, .av-storefront .site-footer h1, .av-storefront .site-footer h2, .av-storefront .site-footer h3, .av-storefront .site-footer h4 { color: #fff; }

/* --------------- Legacy Elementor neon-yellow colour cleanup -------------- */
/* The old Elementor homepage is gone (front page is now the custom [av_home]
   dark cover). The former porcelain-bg + ink-heading !important overrides were
   REMOVED here — they fought the dark cover (porcelain body behind dark sections,
   black-on-black hero title). We keep ONLY the neon-yellow→gold conversion, and
   only for internal pages (NOT the dark storefront home). */
body.home:not(.av-storefront) [style*="color: #ffdd00"],
body.home:not(.av-storefront) [style*="color:#ffdd00"],
body.home:not(.av-storefront) [style*="color: #f2c437"] { color: var(--av-gold) !important; }

/* ------------------------------- RTL ------------------------------------ */
[dir="rtl"] .av-search { padding: .25rem .9rem .25rem .25rem; }
[dir="rtl"] .av-topbar__inner, [dir="rtl"] .av-search { direction: rtl; }
[dir="rtl"] .av-wa-fab { inset-inline-end: 20px; }

/* --------------------------- Responsive --------------------------------- */
@media (max-width: 782px) {
  .av-topbar__list .av-topbar__item:nth-child(n+3) { display: none; } /* keep 2 key assurances on mobile */
  .av-topbar__inner { gap: .5rem; }
  .av-searchband { padding: .5rem .8rem; }
  .av-search__submit { padding: .55em 1.1em; }
  .av-sticky-atc { display: flex; }            /* sticky cart shows on mobile */
  .av-wa-fab { inset-block-end: 84px; }         /* clear the sticky bar */
}
@media (min-width: 783px) { .av-sticky-atc { display: none !important; } }


/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .av-storefront *,
.av-sticky-atc,
.av-wa-fab,
.av-storefront.woocommerce ul.products li.product,
.av-storefront .woocommerce ul.products li.product{ transition: none !important; animation: none !important; }
}

/* ===========================================================================
   ARABIC-FIRST single-language  +  RTL  +  top-bar contrast  (override layer)
   Class set on <html>: .av-lang-ar (default) / .av-lang-en
   =========================================================================== */
/* default = Arabic only; English hidden until chosen */
.av-ar { display: inline; opacity: 1; }
.av-en { display: none; opacity: 1; }
.av-sep { display: none; }
.av-ar + .av-en::before { content: none; }
.av-lang-en .av-en { display: inline; }
.av-lang-en .av-ar { display: none; }

/* hero title/sub: ONE language at a time (Arabic default) */
.av-hero__title .av-ar { display: block; font-family: var(--av-font-ar-display); font-weight: 700; line-height: 1.18; font-size: clamp(2.1rem, 5.5vw, 3.9rem); }
.av-hero__title .av-en { display: none; font-family: var(--av-font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; font-size: clamp(1.8rem, 4.6vw, 3.2rem); color: var(--av-ink); }
.av-lang-en .av-hero__title .av-ar { display: none; }
.av-lang-en .av-hero__title .av-en { display: block; }
.av-hero__sub .av-ar { display: block; color: var(--av-ink); }
.av-hero__sub .av-en { display: none; color: var(--av-ink); }
.av-lang-en .av-hero__sub .av-ar { display: none; }
.av-lang-en .av-hero__sub .av-en { display: block; }
.av-hero__en { display: none; } /* legacy class no longer emitted */

/* one-language-at-a-time for every block-level bilingual line (Arabic default).
   These rebeat the earlier `.av-..__en { display:block }` rules so EN shows only on toggle. */
.av-hero__mission .av-ar { display: inline; }
.av-hero__mission .av-en { display: none; }
.av-lang-en .av-hero__mission .av-ar { display: none; }
.av-lang-en .av-hero__mission .av-en { display: inline; }
.av-section__sub .av-ar { display: inline; }
.av-section__sub .av-en { display: none; }
.av-lang-en .av-section__sub .av-ar { display: none; }
.av-lang-en .av-section__sub .av-en { display: inline; }
.av-tile__sub .av-ar, .av-badges__lead .av-ar { display: inline; }
.av-tile__sub .av-en, .av-badges__lead .av-en { display: none; }
.av-lang-en .av-tile__sub .av-ar, .av-lang-en .av-badges__lead .av-ar { display: none; }
.av-lang-en .av-tile__sub .av-en, .av-lang-en .av-badges__lead .av-en { display: inline; }
.av-why__item h3 .av-ar, .av-why__item p .av-ar { display: block; }
.av-why__item h3 .av-en, .av-why__item p .av-en { display: none; }
.av-lang-en .av-why__item h3 .av-ar, .av-lang-en .av-why__item p .av-ar { display: none; }
.av-lang-en .av-why__item h3 .av-en, .av-lang-en .av-why__item p .av-en { display: block; }

/* tiles / notes / chips: one switchable label (font handled by .av-tile__title / .av-note__label) */
.av-tile--gift .av-ar, .av-tile--gift .av-en { color: var(--av-on-brand); }
.av-note__label .av-ar, .av-note__label .av-en { font-family: var(--av-font-ar-display); font-size: clamp(1.02rem, 1.9vw, 1.3rem); font-weight: 600; }
.av-lang-en .av-note__label .av-en { font-family: var(--av-font-display); }
.av-chip .av-ar, .av-chip .av-en { font-weight: 600; }
.av-why__item h3 .av-ar, .av-why__item h3 .av-en { font-size: 1.05rem; }
.av-why__item p .av-ar, .av-why__item p .av-en { color: var(--av-ink); }

/* TOP BAR contrast fix: force light text on umber (was losing to .av-storefront a) */
.av-topbar, .av-topbar a, .av-topbar a span, .av-topbar__wa, .av-topbar__wa span,
.av-topbar__item, .av-topbar__list li, .av-lang__btn { color: var(--av-on-brand) !important; }
.av-topbar a:hover, .av-topbar__wa:hover, .av-topbar__wa:hover span { color: var(--av-gold-300) !important; }
.av-topbar__wa svg { color: #2bd56a !important; }
.av-lang__btn.is-active { background: var(--av-gold); color: #fff !important; }

/* RTL (dir set on <html> by inline boot script) */
html[dir="rtl"] .av-hero__copy, html[dir="rtl"] .av-find__inner, html[dir="rtl"] .av-faqpage { text-align: right; }
html[dir="rtl"] .av-find__inner, html[dir="rtl"] .av-gift__inner { text-align: center; }
html[dir="rtl"] .av-search__field { text-align: right; }
html[dir="ltr"] .av-search__field { text-align: left; }
html[dir="rtl"] .av-faq__item summary { flex-direction: row; }
html[dir="rtl"] .av-badge { inset-inline-start: 1.1rem; }

/* FAQ dedicated page */
/* Generic .av-wrap (the homepage one is scoped to body.home; standalone pages
   using [av_faq] need their own centered container). */
.av-faqpage .av-wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.av-faqpage { padding-block: clamp(2rem, 5vw, 4rem); }
.av-faqpage .av-faq__inner { max-width: 820px; margin-inline: auto; }
.av-faqpage__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 1.6rem; text-align: center; }
.av-faqpage__cta { margin-top: 1.6rem; text-align: center; }
.av-faq__item summary .av-ar, .av-faq__item summary .av-en { font-family: var(--av-font-ar-display); }

/* product-card add-to-cart: never a blank/empty pill (variable "Select options" / icon-only) */
.av-storefront.woocommerce ul.products li.product .button,
/* product-card add-to-cart: never a blank/empty pill (variable "Select options" / icon-only) */
.av-storefront .woocommerce ul.products li.product .button{
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 2.7em; font-size: .9rem;
  width: 100%; white-space: nowrap;
}

/* A11Y FIX: keep screen-reader text hidden (was leaking "This product has multiple variants…" onto cards) */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; clip-path: none; margin: 0; }

/* Loop add-to-cart label — keep WooCommerce/Woostify text intact (it feeds title="" and
   the on-image icon button) but render a clean,
language-switchable visible label.
   We zero the raw text run and inject the localized label via ::after. The icon span
   keeps its own font-size so it stays visible. */
/* owner spec: always-visible,
44px,
umber fill,
white label,
gold hover,
Arabic labels */
.av-loop-atc,
.av-storefront.woocommerce ul.products li.product a.loop-add-to-cart-btn.add_to_cart_button,
.av-storefront .woocommerce ul.products li.product a.loop-add-to-cart-btn.add_to_cart_button{
  display: flex !important; align-items: center; justify-content: center; gap: .5em;
  width: 100% !important; min-height: 44px !important; margin-top: .55rem !important;
  background: var(--av-brand) !important; border: 1px solid var(--av-brand) !important;
  border-radius: var(--av-r-pill) !important; color: #fff !important;
  font-size: 0 !important; font-weight: 700 !important;
  opacity: 1 !important; visibility: visible !important; overflow: hidden;
  transition: background .3s var(--av-ease), border-color .3s var(--av-ease), transform .2s var(--av-ease), box-shadow .3s var(--av-ease);
}
.av-loop-atc:hover,
.av-storefront.woocommerce ul.products li.product a.loop-add-to-cart-btn.add_to_cart_button:hover,
.av-storefront .woocommerce ul.products li.product a.loop-add-to-cart-btn.add_to_cart_button:hover{
  background: var(--av-gold) !important; border-color: var(--av-gold) !important; color: #fff !important;
  transform: translateY(-1px); box-shadow: var(--av-shadow);
}
.av-loop-atc .woostify-svg-icon, .av-loop-atc svg { font-size: 1rem; width: 18px; height: 18px; color: #fff !important; }
.av-loop-atc::after { font-size: .95rem !important; font-weight: 700; white-space: nowrap; color: #fff !important; }
.av-loop-atc--add::after    { content: "أضف للسلة"; }
.av-loop-atc--choose::after { content: "اختار المقاس"; }
.av-loop-atc--read::after   { content: "عرض المنتج"; }
.av-lang-en .av-loop-atc--add::after    { content: "Add to cart"; }
.av-lang-en .av-loop-atc--choose::after { content: "Select size"; }
.av-lang-en .av-loop-atc--read::after   { content: "Read more"; }
/* while loading / after add, don't show a stale label */
.av-loop-atc.loading::after, .av-loop-atc.added::after { content: ""; }
.av-loop-atc.loading, .av-loop-atc.added { font-size: .85rem !important; }

/* topbar promo line (gold highlight) */
.av-promo { font-weight: 700; }
.av-topbar .av-promo .av-ar, .av-topbar .av-promo .av-en { color: var(--av-gold-300) !important; }
.av-topbar__list .av-topbar__item:first-child { order: -1; }
@media (max-width: 782px) { .av-topbar__list .av-topbar__item:first-child { display: flex; } }

/* footer brand band (logo + wordmark + tagline) */
.av-footer-brand { background: var(--av-brand-700); border-top: 1px solid rgba(201,169,94,.25); }
.av-footer-brand__inner { max-width: 1200px; margin-inline: auto; padding: 1.6rem clamp(1rem,4vw,2rem); display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; text-align: center; }
.av-footer-brand__seal { width: 48px; height: 48px; flex: none; }
.av-footer-brand__name { font-family: var(--av-font-display); font-size: 1.4rem; font-weight: 700; color: var(--av-on-brand); letter-spacing: -0.01em; }
.av-footer-brand__tag { color: var(--av-gold-300); font-size: .9rem; }

/* ===========================================================================
   PRODUCT-CARD PRIMARY ACTION — owner spec: always visible (never hover-only),
44px,
umber fill,
white readable label,
premium gold hover,
Arabic labels.
   (Appended override — wins the cascade.)
   =========================================================================== */
.av-storefront.woocommerce ul.products li.product a.button.add_to_cart_button,
Arabic labels.
   (Appended override — wins the cascade.)
   =========================================================================== */
.av-storefront .woocommerce ul.products li.product a.button.add_to_cart_button,
.av-storefront.woocommerce ul.products li.product a.button.loop-add-to-cart-btn,
.av-storefront .woocommerce ul.products li.product a.button.loop-add-to-cart-btn,
.av-storefront.woocommerce ul.products li.product .add_to_cart_button,
.av-storefront .woocommerce ul.products li.product .add_to_cart_button{
  display: flex !important;
  align-items: center; justify-content: center; gap: .5em;
  width: 100%; min-height: 44px; margin-top: .55rem;
  background: var(--av-brand) !important;
  border: 1px solid var(--av-brand) !important;
  border-radius: var(--av-r-pill) !important;
  color: #fff !important;
  font-weight: 700 !important;
  white-space: nowrap; overflow: hidden;
  opacity: 1 !important; visibility: visible !important;
  transition: background .3s var(--av-ease), border-color .3s var(--av-ease), transform .2s var(--av-ease), box-shadow .3s var(--av-ease);
}
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button:hover,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button:hover,
.av-storefront.woocommerce ul.products li.product a.loop-add-to-cart-btn:hover,
.av-storefront .woocommerce ul.products li.product a.loop-add-to-cart-btn:hover{
  background: var(--av-gold) !important; border-color: var(--av-gold) !important;
  color: #fff !important; transform: translateY(-1px); box-shadow: var(--av-shadow);
}
/* collapse the theme's broken/invisible inner label; show ONE clean language-aware label */
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button,
/* collapse the theme's broken/invisible inner label; show ONE clean language-aware label */
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button{ font-size: 0 !important; }
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button::after,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button::after{ font-size: .92rem; color: #fff; font-weight: 700; }
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.product_type_simple::after,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.product_type_simple::after{ content: "أضف للسلة"; }
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.product_type_variable::after,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.product_type_variable::after{ content: "اختار المقاس"; }
.av-lang-en .woocommerce ul.products li.product a.add_to_cart_button.product_type_simple::after   { content: "Add to cart"; }
.av-lang-en .woocommerce ul.products li.product a.add_to_cart_button.product_type_variable::after { content: "Select size"; }
/* keep WooCommerce ajax state text legible (don't hide it behind ::after) */
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.added,
/* keep WooCommerce ajax state text legible (don't hide it behind ::after) */
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.added,
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.loading,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.loading{ font-size: .92rem !important; }
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.added::after,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.added::after,
.av-storefront.woocommerce ul.products li.product a.add_to_cart_button.loading::after,
.av-storefront .woocommerce ul.products li.product a.add_to_cart_button.loading::after{ content: ""; }
/* card WhatsApp action: clear secondary style,
never hover-gated */
.av-storefront.woocommerce ul.products li.product .av-card__wa,
never hover-gated */
.av-storefront .woocommerce ul.products li.product .av-card__wa{
  display: flex !important; align-items: center; justify-content: center; gap: .4em;
  width: 100%; min-height: 40px; margin-top: .4rem;
  background: transparent; border: 1px solid var(--av-brand);
  border-radius: var(--av-r-pill); color: var(--av-brand) !important; font-weight: 600; font-size: .85rem;
}
.av-storefront.woocommerce ul.products li.product .av-card__wa svg,
.av-storefront .woocommerce ul.products li.product .av-card__wa svg{ color: #1FA855; }
.av-storefront.woocommerce ul.products li.product .av-card__wa:hover,
.av-storefront .woocommerce ul.products li.product .av-card__wa:hover{ background: var(--av-brand); color: #fff !important; }
.av-storefront.woocommerce ul.products li.product .av-card__wa:hover svg,
.av-storefront .woocommerce ul.products li.product .av-card__wa:hover svg{ color: #fff; }
/* hide the legacy English category alias only */
.av-storefront.woocommerce ul.products li.product .woocommerce-loop-category,
/* hide the legacy English category alias only */
.av-storefront .woocommerce ul.products li.product .woocommerce-loop-category,
.av-storefront.woocommerce ul.products li.product .product-category-loop,
.av-storefront .woocommerce ul.products li.product .product-category-loop{ display: none; }

/* ===========================================================================
   FIX (the real bug): Woostify's DESKTOP hover-reveal. In theme style.css
   @media (min-width:992px) it sets:
       .product-loop-meta:not(.no-transform){ height:30px; line-height:30px; overflow:hidden }
       .products .product:hover …animated-meta{ transform: translateY(-24px) }
   i.e. the meta is clamped to the price line (30px) and the add-to-cart only
   peeks out 24px ON HOVER — so on desktop our always-visible button is CUT OFF
   ("bugged in big sizes"). We override with matching/higher specificity + the
   SAME media query so it wins the cascade: never clip,
never hover-slide.
   =========================================================================== */
.av-storefront.woocommerce ul.products li.product .product-loop-wrapper,
never hover-slide.
   =========================================================================== */
.av-storefront .woocommerce ul.products li.product .product-loop-wrapper,
.av-storefront.woocommerce ul.products li.product .product-loop-content,
.av-storefront .woocommerce ul.products li.product .product-loop-content,
.av-storefront.woocommerce ul.products li.product .product-loop-meta,
.av-storefront .woocommerce ul.products li.product .product-loop-meta,
.av-storefront.woocommerce ul.products li.product .product-loop-meta:not(.no-transform),
.av-storefront .woocommerce ul.products li.product .product-loop-meta:not(.no-transform),
.av-storefront.woocommerce ul.products li.product .animated-meta,
.av-storefront .woocommerce ul.products li.product .animated-meta{
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  line-height: 1.4 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  clip-path: none !important;
}
.av-storefront.woocommerce ul.products li.product .product-loop-meta,
.av-storefront .woocommerce ul.products li.product .product-loop-meta,
.av-storefront.woocommerce ul.products li.product .product-loop-meta:not(.no-transform),
.av-storefront .woocommerce ul.products li.product .product-loop-meta:not(.no-transform),
.av-storefront.woocommerce ul.products li.product .animated-meta,
.av-storefront .woocommerce ul.products li.product .animated-meta{
  display: flex !important; flex-direction: column; gap: .45rem; align-items: stretch; position: static !important;
}
/* Re-state inside the SAME breakpoint Woostify uses, so the desktop clip can
   never win on cascade order. (Belt-and-suspenders with the !important above.) */
@media (min-width: 992px) {
  .av-storefront.woocommerce ul.products li.product .product-loop-meta:not(.no-transform),
.av-storefront .woocommerce ul.products li.product .product-loop-meta:not(.no-transform){
    height: auto !important; line-height: 1.4 !important; overflow: visible !important;
  }
  .av-storefront.woocommerce ul.products li.product .product-loop-meta:not(.no-transform) .animated-meta,
.av-storefront .woocommerce ul.products li.product .product-loop-meta:not(.no-transform) .animated-meta,
.av-storefront.woocommerce ul.products li.product .product:hover .product-loop-meta:not(.no-transform) .animated-meta,
.av-storefront .woocommerce ul.products li.product .product:hover .product-loop-meta:not(.no-transform) .animated-meta,
.av-storefront.woocommerce ul.products li.product:hover .product-loop-meta:not(.no-transform) .animated-meta,
.av-storefront .woocommerce ul.products li.product:hover .product-loop-meta:not(.no-transform) .animated-meta{
    transform: none !important; transition: none !important;
  }
}
/* drop Woostify's empty image hover-overlay box (we put actions in the content) */
.av-storefront.woocommerce ul.products li.product .product-loop-action,
/* drop Woostify's empty image hover-overlay box (we put actions in the content) */
.av-storefront .woocommerce ul.products li.product .product-loop-action{ display: none !important; }
/* portrait perfume bottles (e.g. 300x400) fill a portrait-friendly frame,
consistent height */
.av-storefront.woocommerce ul.products li.product img.product-loop-image,
consistent height */
.av-storefront .woocommerce ul.products li.product img.product-loop-image{
  aspect-ratio: 4 / 5 !important; object-fit: contain; width: 100%;
}
/* keep the now-Arabic category eyebrow,
small + muted */
.av-storefront.woocommerce ul.products li.product .woocommerce-loop-product__category,
small + muted */
.av-storefront .woocommerce ul.products li.product .woocommerce-loop-product__category{
  display: block !important; font-size: .72rem; color: var(--av-muted); margin-bottom: .2rem;
}
.av-storefront.woocommerce ul.products li.product .woocommerce-loop-product__category a,
.av-storefront .woocommerce ul.products li.product .woocommerce-loop-product__category a{ color: var(--av-muted); }

/* ===========================================================================
   v0.8 OWNER-NOTE FIXES  (appended last — wins the cascade)
   NOTE: <body> carries BOTH .av-storefront AND .woocommerce, so the descendant
   combinator ".av-storefront .woocommerce" can NEVER match on shop/archive (they
   are the same element). Use the COMPOUND ".av-storefront.woocommerce" for body,
   and a plain ".woocommerce" descendant for single-product (where .woocommerce
   sits on a nested div). Both are included below.
   =========================================================================== */

/* ---- SINGLE PRODUCT: tame the summary (not too tall/loose on desktop) ----- */
/* The product short description pastes its own headings (Arabic name +
   "عطر للجنسين"); we demote them to <h2> in PHP for a single H1, and here we
   keep them as a calm, left-sized subtitle instead of a 36px centered slab. */
.single-product div.product .woocommerce-product-details__short-description h2,
.single-product div.product .summary h2 {
  font-size: 1.05rem !important; line-height: 1.5 !important; margin: .15rem 0 !important;
  font-weight: 600; text-align: start !important;
}
.single-product div.product .woocommerce-product-details__short-description h2 strong,
.single-product div.product .summary h2 strong { font-weight: 600; }
.single-product div.product .woocommerce-product-details__short-description {
  margin: .2rem 0 .6rem; color: var(--av-muted);
}
/* trim oversized vertical rhythm inside the summary on desktop */
@media (min-width: 783px) {
  .single-product div.product .summary.entry-summary > * { margin-block: .55rem; }
  .single-product div.product .summary.entry-summary { padding-block: 0; }
}
.single-product div.product .product_title.entry-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem) !important; line-height: 1.2; margin-bottom: .4rem;
}

/* ---- SINGLE PRODUCT: add-to-cart + variations clearly styled ------------- */
.single-product .single_add_to_cart_button,
.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 48px !important; display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--av-brand) !important; color: #fff !important; border: 1px solid var(--av-brand) !important;
  border-radius: var(--av-r-pill) !important; font-weight: 700 !important; padding: .7em 1.8em !important;
  opacity: 1 !important;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--av-gold) !important; border-color: var(--av-gold) !important; color: #fff !important;
}
/* WhatsApp ask button: same height, clear secondary (ghost) styling */
.single-product .av-wa-ask {
  min-height: 48px; padding: .7em 1.4em; border-radius: var(--av-r-pill); font-weight: 700;
}
/* lay the cart row out tidily: variations on top, buttons in a clean row */
.single-product div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.single-product div.product form.cart .variations { width: 100%; margin-bottom: .2rem; }
.single-product div.product form.cart .variations td,
.single-product div.product form.cart .variations th { padding: .35rem .4rem; }
.single-product div.product form.cart .variations select {
  border: 1px solid var(--av-line); border-radius: var(--av-r-sm); padding: .5em .8em; background: #fff; min-height: 44px;
}
.single-product div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; width: 100%; }
.single-product div.product .quantity .qty { min-height: 44px; border-radius: var(--av-r-sm); }
/* the third-party "Continue Shopping" link: quiet, in-flow, not a heavy button */
.single-product a.wcz-continue, .single-product a.av-continue-shopping {
  display: inline-flex !important; align-items: center; background: transparent !important;
  color: var(--av-muted) !important; border: 0 !important; padding: .3em 0 !important; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; box-shadow: none !important;
}
.single-product a.wcz-continue:hover, .single-product a.av-continue-shopping:hover { color: var(--av-gold) !important; }

/* ---- KILL the 0x0 sticky-atc ghost on desktop (only show bar on mobile) --- */
/* Parent is already display:none ≥783px; also collapse the children so no
   element reports a phantom 0x0 box on desktop. Bar is rebuilt for mobile. */
@media (min-width: 783px) {
  .av-sticky-atc,
  .av-sticky-atc__info, .av-sticky-atc__name, .av-sticky-atc__price, .av-sticky-atc__btn {
    display: none !important;
  }
}

/* ---- ARCHIVE / CATEGORY: Arabic H1 + intro --------------------------------- */
.av-archive-head { margin: .2rem 0 1.1rem; }
.av-archive-head__title {
  font-family: var(--av-font-ar-display); font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 700; color: var(--av-ink); margin: 0 0 .35rem; line-height: 1.2;
}
.av-lang-en .av-archive-head__title { font-family: var(--av-font-display); }
.av-archive-head__intro { color: var(--av-muted); font-size: clamp(.95rem, 1.4vw, 1.05rem); margin: 0; max-width: 60ch; line-height: 1.6; }
html[dir="rtl"] .av-archive-head { text-align: right; }
/* sorting / result-count row: readable, aligned */
.av-storefront .woostify-sorting, .av-storefront .woocommerce-result-count, .av-storefront .woocommerce-ordering { color: var(--av-ink); }
.av-storefront .woocommerce-ordering select.orderby {
  border: 1px solid var(--av-line); border-radius: var(--av-r-pill); padding: .45em 1.6em .45em .9em; background: #fff; color: var(--av-ink-dark); min-height: 40px;
}

/* ---- CATEGORY SIDEBAR contrast (Woostify filter sidebar reads dark-on-dark) */
.av-storefront #secondary, .av-storefront .sidebar-content,
.av-storefront .widget-area, .av-storefront .toggle-sidebar-menu-content {
  background: var(--av-bg) !important; color: var(--av-ink) !important;
}
.av-storefront #secondary .widget, .av-storefront .sidebar-content .widget {
  background: #fff; border: 1px solid var(--av-line); border-radius: var(--av-r); padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.av-storefront #secondary .widget-title, .av-storefront #secondary .widgettitle {
  color: var(--av-ink) !important; font-family: var(--av-font-display); font-weight: 600; font-size: 1.05rem;
}
.av-storefront #secondary a, .av-storefront #secondary li, .av-storefront #secondary label,
.av-storefront #secondary .widget a { color: var(--av-ink) !important; }
.av-storefront #secondary a:hover, .av-storefront #secondary .widget a:hover { color: var(--av-gold) !important; }

/* ===========================================================================
   NAV BAR fix — declutter, no wrap/overflow, correct RTL, mobile hamburger
   =========================================================================== */
.av-storefront .main-navigation .primary-navigation {
  display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(.3rem, .9vw, .8rem);
  margin: 0; padding: 0; justify-content: flex-end;
}
.av-storefront .main-navigation .primary-navigation > li.menu-item { white-space: nowrap; }
.av-storefront .main-navigation .primary-navigation > li > a {
  font-family: var(--av-font-body); font-weight: 600; font-size: clamp(.8rem, .85vw, .9rem);
  color: var(--av-ink); line-height: 1.3; padding: .35em .35em; letter-spacing: 0;
}
.av-storefront .main-navigation .primary-navigation > li > a:hover { color: var(--av-gold); }
.av-storefront .main-navigation .primary-navigation > li.current-menu-item > a { color: var(--av-gold); }
/* RTL: rely on dir=rtl for correct right-to-left order; DO NOT row-reverse (double-flip = reversed menu) */
html[dir="rtl"] .av-storefront .main-navigation .primary-navigation { flex-direction: row; justify-content: flex-start; }
html[dir="ltr"] .av-storefront .main-navigation .primary-navigation { flex-direction: row; justify-content: flex-end; }
/* keep one tidy row up to the desktop breakpoint; below it Woostify shows the
   off-canvas (hamburger) menu, which we leave to the theme. */
@media (max-width: 1100px) and (min-width: 992px) {
  .av-storefront .main-navigation .primary-navigation { gap: .5rem; }
  .av-storefront .main-navigation .primary-navigation > li > a { font-size: .8rem; }
}
/* hamburger / toggle visible + tappable on mobile */
.av-storefront .toggle-sidebar-menu-btn { cursor: pointer; }
@media (max-width: 991px) {
  /* desktop header nav hidden; off-canvas takes over. EXCLUDE the off-canvas
     drawer's own nav (.sidebar-menu …) or we'd hide the whole mobile menu. */
  .av-storefront .site-header .site-navigation .main-navigation { display: none; }
  .av-storefront .sidebar-menu .site-navigation .main-navigation,
  .av-storefront .sidebar-menu .main-navigation { display: block !important; }
}

/* ===========================================================================
   v0.10 — PREMIUM DROPDOWN NAV + COMPACT HEADER SYSTEM
   <body> carries BOTH .av-storefront AND .woocommerce. The header chrome is NOT
   inside a .woocommerce ancestor (it's the theme header), so scope with the
   single class `.av-storefront` here.
   =========================================================================== */

/* ---- 1) DON'T CLIP THE DROPDOWN ----------------------------------------- */
/* Any ancestor with overflow:hidden/clip would cut off an absolutely-positioned
   submenu. Force the whole header chain to overflow:visible so dropdowns escape. */
.av-storefront .site-header,
.av-storefront .site-header-inner,
.av-storefront .site-header .woostify-container,
.av-storefront .site-navigation,
.av-storefront .main-navigation,
.av-storefront .main-navigation .primary-navigation,
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children {
  overflow: visible !important;
}
/* the nav row must let an absolutely-positioned child anchor to a parent <li> */
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children { position: relative; }

/* ---- ▾ arrow after parents that have children --------------------------- */
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children > a {
  display: inline-flex; align-items: center; gap: .28em;
}
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children > a::after {
  content: ""; width: .42em; height: .42em; flex: none; margin-block-start: -.12em;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .6;
  transition: transform .25s var(--av-ease), opacity .25s var(--av-ease);
}
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children:hover > a::after,
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(45deg) translate(1px,1px); opacity: 1;
}

/* ---- THE SUB-MENU (dropdown) -------------------------------------------- */
.av-storefront .main-navigation .primary-navigation .sub-menu {
  position: absolute; inset-block-start: calc(100% + .55rem); inset-inline-start: 0;
  z-index: calc(var(--z-header) + 10);
  min-width: 14rem; max-width: 18rem;
  margin: 0; padding: .5rem; list-style: none;
  display: flex; flex-direction: column; gap: .1rem;
  background: #fff;
  border: 1px solid rgba(156,122,46,.35);     /* gold hairline */
  border-radius: var(--av-r);
  box-shadow: var(--av-shadow-lg);
  /* hidden until hover/focus */
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s var(--av-ease), transform .22s var(--av-ease), visibility .22s var(--av-ease);
}
/* a small invisible bridge so the cursor can travel from parent to submenu */
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children > .sub-menu::before {
  content: ""; position: absolute; inset-block-start: -.6rem; inset-inline: 0; height: .6rem;
}
/* SHOW on hover AND focus-within (keyboard a11y) */
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children:hover > .sub-menu,
.av-storefront .main-navigation .primary-navigation > li.menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
/* submenu links: umber text, generous padding, premium hover */
.av-storefront .main-navigation .primary-navigation .sub-menu li { margin: 0; white-space: nowrap; }
.av-storefront .main-navigation .primary-navigation .sub-menu li > a {
  display: block; padding: .6em .85em; border-radius: var(--av-r-sm);
  font-family: var(--av-font-body); font-weight: 600; font-size: .9rem; line-height: 1.35;
  color: var(--av-brand); letter-spacing: 0;
  transition: background .2s var(--av-ease), color .2s var(--av-ease);
}
.av-storefront .main-navigation .primary-navigation .sub-menu li > a:hover,
.av-storefront .main-navigation .primary-navigation .sub-menu li > a:focus-visible {
  background: var(--av-surface); color: var(--av-gold);
}
.av-lang-en .av-storefront .main-navigation .primary-navigation .sub-menu li > a,
.av-lang-en.av-storefront .main-navigation .primary-navigation .sub-menu li > a { letter-spacing: .005em; }
/* RTL alignment: anchor the dropdown to the start edge (right in RTL) under its parent */
html[dir="rtl"] .av-storefront .main-navigation .primary-navigation .sub-menu { inset-inline-start: 0; inset-inline-end: auto; text-align: right; }
html[dir="ltr"] .av-storefront .main-navigation .primary-navigation .sub-menu { inset-inline-start: 0; text-align: left; }

/* ---- 2) COMPACT HEADER SYSTEM (trust bar + header + search = one unit) --- */
/* Trust bar: tighten vertical padding. */
.av-storefront .av-topbar__inner { padding-block: .4rem; }
/* Main header row: trim Woostify's tall default padding, center items vertically. */
.av-storefront .site-header .site-header-inner { padding-block: 0; }
.av-storefront .site-header .site-header-inner .woostify-container,
.av-storefront .site-header.header-layout-1 .site-header-inner > .woostify-container {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .5rem; min-height: 0;
}
.av-storefront .site-header .site-branding { margin-block: 0; display: flex; align-items: center; }
.av-storefront .site-header .site-branding .custom-logo {
  height: clamp(40px, 4.6vw, 54px); width: auto; display: block;
}
.av-storefront .site-header .site-navigation { display: flex; align-items: center; }
/* Search band: align to the SAME max-width container as topbar/header, hug the header */
.av-storefront .av-searchband { padding-block: .5rem; }
.av-storefront .av-search { max-width: 1280px; }
/* collapse the empty gap between search band and the hero / page content */
.av-storefront .av-searchband + #content,
.av-storefront .av-searchband + div,
.av-storefront #content { margin-block-start: 0; }
.av-storefront.home #content .woostify-container > .entry-content,
.av-storefront.home .site-content { padding-block-start: 0; }
.av-home > .av-hero { padding-block-start: clamp(1.1rem, 2.4vw, 2rem); }

/* ---- site-tools: vertically center icons + fix cart badge ---------------- */
.av-storefront .site-header .site-tools { display: flex; align-items: center; gap: .6rem; }
.av-storefront .site-header .site-tools .tools-icon { display: inline-flex; align-items: center; justify-content: center; }
.av-storefront .site-header .site-tools .shopping-cart { position: relative; }
/* cart count badge: a clean gold disc that sits on the icon corner (not touching it awkwardly) */
.av-storefront .site-header .site-tools .shop-cart-count {
  position: absolute; inset-block-start: -.55em; inset-inline-end: -.6em;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--av-gold); color: #fff;
  font-family: var(--av-font-body); font-size: .66rem; font-weight: 700; line-height: 1;
  border-radius: var(--av-r-pill); box-shadow: 0 0 0 2px var(--av-bg);
}

/* ---- 3) MOBILE / OFF-CANVAS DRAWER: show dropdown children inline -------- */
@media (max-width: 991px) {
  /* the off-canvas search stays at the top of the drawer (Woostify renders it there). */
  .av-storefront .sidebar-menu .site-search { margin-bottom: .8rem; }
  .av-storefront .sidebar-menu .site-search input.search-field {
    border: 1px solid var(--av-line); border-radius: var(--av-r-pill); background: #fff;
  }
  /* drawer nav can scroll; never clip the inline children */
  .av-storefront .sidebar-menu,
  .av-storefront .sidebar-menu .site-navigation,
  .av-storefront .sidebar-menu .main-navigation,
  .av-storefront .sidebar-menu .primary-navigation { overflow: visible; }
  /* the desktop nav is a horizontal flex row; the DRAWER must be a vertical list.
     Re-state with higher specificity so the header rules don't leak in. */
  .av-storefront .sidebar-menu .main-navigation .primary-navigation {
    display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
    align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
    width: 100%;
  }
  .av-storefront .sidebar-menu .main-navigation .primary-navigation > li.menu-item {
    white-space: normal; width: 100%; position: static;
  }
  .av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a {
    display: flex; align-items: center; width: 100%;
    padding: .7em .2em; font-size: 1rem; font-weight: 700; color: var(--av-ink);
    border-bottom: 1px solid var(--av-line);
  }
  .av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a:hover { color: var(--av-gold); }
  /* show children inline (accordion-free, always reachable) */
  .av-storefront .sidebar-menu .primary-navigation .sub-menu {
    position: static !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; pointer-events: auto !important;
    display: flex !important; flex-direction: column !important;
    box-shadow: none; border: 0; background: transparent;
    min-width: 0; max-width: none; padding: .2rem 0 .5rem; gap: 0;
    margin-inline-start: .9rem; border-inline-start: 1px solid var(--av-line);
  }
  .av-storefront .sidebar-menu .primary-navigation .sub-menu li { width: 100%; }
  .av-storefront .sidebar-menu .primary-navigation .sub-menu li > a {
    color: var(--av-muted); font-weight: 600; font-size: .92rem; padding: .5em .8em;
  }
  .av-storefront .sidebar-menu .primary-navigation .sub-menu li > a:hover { color: var(--av-gold); background: var(--av-surface); }
  /* parent arrow: point down inline so it reads as a group header */
  .av-storefront .sidebar-menu .primary-navigation > li.menu-item-has-children > a::after {
    margin-inline-start: auto; opacity: .7;
  }
}

/* ---- reduced motion: no slide, just crossfade ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .av-storefront .main-navigation .primary-navigation .sub-menu { transition: opacity .12s linear, visibility .12s linear; transform: none !important; }
  .av-storefront .main-navigation .primary-navigation > li.menu-item-has-children > a::after { transition: none; }
}

/* ===========================================================================
   ORDER RECEIPT — AV LOGO header on the thank-you / order-received page.
   (Body carries .woocommerce on this page; header chrome is the theme's, so
   scope with .av-storefront.)
   =========================================================================== */
.av-storefront .av-receipt-brand {
  text-align: center;
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.2rem, 3vw, 2rem) 1rem clamp(1rem, 2.4vw, 1.5rem);
  border-bottom: 1px solid rgba(156,122,46,.35);   /* gold hairline */
}
.av-storefront .av-receipt-brand__logo {
  display: block; margin: 0 auto .8rem; height: auto;
  width: auto; max-width: 180px; max-height: 84px; object-fit: contain;
}
.av-storefront .av-receipt-brand__name {
  display: block; font-family: var(--av-font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem); color: var(--av-ink); margin-bottom: .6rem;
}
.av-storefront .av-receipt-brand__msg {
  margin: 0; font-family: var(--av-font-ar-display); font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--av-ink); line-height: 1.3;
}
.av-lang-en .av-storefront .av-receipt-brand__msg,
.av-lang-en.av-storefront .av-receipt-brand__msg { font-family: var(--av-font-display); }
.av-storefront .av-receipt-brand__sub {
  margin: .45rem 0 0; color: var(--av-gold); font-weight: 600;
  font-size: clamp(.85rem, 1.4vw, .98rem);
}

/* ---- SCENT SECTION: reduce empty vertical space, keep cards uniform ------- */
.av-home > .av-notes { padding-block: clamp(1.6rem, 3.4vw, 2.6rem); }
.av-notes .av-section__head { margin-bottom: clamp(.9rem, 2vw, 1.4rem); }
.av-notes__grid { row-gap: clamp(.6rem, 1.4vw, 1rem); }
.av-note { min-height: 6.6rem; padding-block: .95rem; gap: .45rem; }   /* tighter, equal height */
.av-note__icon { width: 2.85rem; height: 2.85rem; flex: none; }        /* consistent icon size */

/* ===========================================================================
   DARK CINEMATIC HOMEPAGE  ([av_home] on body.home)
   "The cover and the book": the homepage is a dark, art-directed cover; internal
   shopping pages stay porcelain. Everything here is scoped to body.home so it
   never leaks into the store. Appended last → wins the cascade over the light
   homepage residue in the Arabic-override block above.
   =========================================================================== */
body.home.av-storefront {
  /* Dark palette — warm charcoal tinted toward the umber hue, never pure black */
  --avd-bg:       #15120E;   /* espresso charcoal */
  --avd-bg-2:     #161616;   /* surface, one step up */
  --avd-bg-3:     #1A1A1A;   /* raised / hover */
  --avd-ink:      #F5EFE3;   /* warm cream */
  --avd-muted:    #888888;   /* neutral gray */
  --avd-gold:     #C9A24B;   /* refined gold */
  --avd-gold-dp:  #C9A24B;   /* deeper gold */
  --avd-line:     rgba(201,162,75,.15);  /* gold hairline */
  --avd-line-2:   rgba(245,239,227,.10); /* cream hairline */
  background: var(--avd-bg) !important;  /* beat any theme/Woostify body bg */
  color: var(--avd-ink);
}
/* Dark cover headings: ivory, NOT the global ink (the old body.home ink rule is gone). */
body.home.av-storefront .av-home h1,
body.home.av-storefront .av-home h2,
body.home.av-storefront .av-home h3 { color: var(--avd-ink); }
/* Defensive: the theme content wrappers must not paint porcelain behind the cover. */
body.home.av-storefront #page,
body.home.av-storefront #content,
body.home.av-storefront .site-content,
body.home.av-storefront #primary,
body.home.av-storefront .woostify-container,
body.home.av-storefront .entry-content { background: transparent; }

/* ---- Shared chrome goes dark on the cover ------------------------------- */
/* Top trust bar: deepen to charcoal with a gold hairline */
body.home.av-storefront .av-topbar {
  background: #110E0B; border-bottom: 1px solid var(--avd-line);
}
/* Search band: dissolve into the dark header (no porcelain slab) */
body.home.av-storefront .av-searchband {
  background: linear-gradient(180deg, #110E0B, var(--avd-bg)); border-bottom: 1px solid var(--avd-line-2);
  box-shadow: none;
}
body.home.av-storefront .av-search {
  background: rgba(244,239,229,.05); border-color: var(--avd-line-2);
}
body.home.av-storefront .av-search__field { color: var(--avd-ink); }
body.home.av-storefront .av-search__field::placeholder { color: var(--avd-muted); }
body.home.av-storefront .av-search__icon { color: var(--avd-muted); }
body.home.av-storefront .av-search__submit { background: var(--avd-gold); color: #15120E; }
body.home.av-storefront .av-search__submit:hover { background: #d8b86e; }
/* Theme header: dark, with a hairline under it */
body.home.av-storefront .site-header,
body.home.av-storefront .site-header .site-header-inner,
body.home.av-storefront .site-header.header-layout-1 .site-header-inner {
  background: var(--avd-bg) !important; border-bottom: 1px solid var(--avd-line-2);
}
/* Logo is a black+gold monogram — brighten it so it reads on charcoal */
body.home.av-storefront .site-header .custom-logo {
  filter: brightness(0) invert(1) sepia(.35) saturate(1.2) brightness(1.05);
}
/* Nav + tool icons → ivory, gold on hover */
body.home.av-storefront .main-navigation .primary-navigation > li > a,
body.home.av-storefront .site-header .site-tools a,
body.home.av-storefront .site-header .tools-icon svg,
body.home.av-storefront .site-header .site-tools .tools-icon { color: var(--avd-ink); fill: currentColor; }
body.home.av-storefront .main-navigation .primary-navigation > li > a:hover,
body.home.av-storefront .main-navigation .primary-navigation > li.current-menu-item > a { color: var(--avd-gold); }
body.home.av-storefront .site-header .shop-cart-count { box-shadow: 0 0 0 2px var(--avd-bg); }
/* Dropdown submenu stays a light card (readability) even on the dark cover */

/* ---- Layout scaffolding ------------------------------------------------- */
body.home.av-storefront .av-home .av-wrap { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
body.home.av-storefront .av-home > section { position: relative; padding-block: clamp(3rem, 7vw, 6rem); }
/* full-bleed bands */
body.home.av-storefront .av-hero,
body.home.av-storefront .av-collections,
body.home.av-storefront .av-notes,
body.home.av-storefront .av-find,
body.home.av-storefront .av-gift,
body.home.av-storefront .av-ship,
body.home.av-storefront .av-closer { width: 100vw; margin-inline: calc(50% - 50vw); }
/* kill the porcelain gaps the theme leaves above content on home */
body.home.av-storefront #content,
body.home.av-storefront .site-content,
body.home.av-storefront #content .woostify-container > .entry-content { background: var(--avd-bg); padding-block-start: 0; margin-block-start: 0; }

/* ---- Section heads (ivory on dark) ------------------------------------- */
body.home.av-storefront .av-home h2 { color: var(--avd-ink); font-family: var(--av-font-display); letter-spacing: -0.02em; }
html.av-lang-ar body.home.av-storefront .av-home h2 { font-family: var(--av-font-ar-display); letter-spacing: 0; }
body.home.av-storefront .av-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
body.home.av-storefront .av-section__head--center { flex-direction: column; align-items: center; text-align: center; }
body.home.av-storefront .av-section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 0; line-height: 1.12; }
body.home.av-storefront .av-section__heading { display: flex; flex-direction: column; gap: .5rem; }
body.home.av-storefront .av-section__sub { margin: 0; color: var(--avd-muted); font-size: clamp(.95rem, 1.4vw, 1.05rem); line-height: 1.6; max-width: 54ch; }
body.home.av-storefront .av-section__head--center .av-section__sub { margin-inline: auto; }
body.home.av-storefront .av-section__more { font-weight: 600; color: var(--avd-gold); white-space: nowrap; display: inline-flex; align-items: center; gap: .4em; }
body.home.av-storefront .av-section__arrow { transition: transform .3s var(--av-ease); display: inline-block; }
html[dir="rtl"] body.home.av-storefront .av-section__arrow { scale: -1 1; }
body.home.av-storefront .av-section__more:hover .av-section__arrow { transform: translateX(4px); }

/* ---- Buttons on the dark cover ----------------------------------------- */
body.home.av-storefront .button.av-btn-gold {
  background: var(--avd-gold); color: #14110D;
  border: 1px solid var(--avd-gold); border-radius: var(--av-r-pill);
  font-weight: 700; padding: .82em 1.9em;
  box-shadow: 0 10px 30px -12px rgba(203,167,92,.6);
  transition: transform .25s var(--av-ease), box-shadow .3s var(--av-ease), background .3s var(--av-ease);
}
body.home.av-storefront .button.av-btn-gold:hover { background: #C9A24B; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201,162,75,.75); color: #0E0E0E; }
body.home.av-storefront .button.av-btn-ghost-dark {
  background: rgba(244,239,229,.04); color: var(--avd-ink);
  border: 1px solid var(--avd-line); border-radius: var(--av-r-pill); font-weight: 600; padding: .82em 1.7em;
  transition: background .3s var(--av-ease), border-color .3s var(--av-ease), color .3s var(--av-ease), transform .25s var(--av-ease);
}
body.home.av-storefront .button.av-btn-ghost-dark:hover { background: rgba(203,167,92,.12); border-color: var(--avd-gold); color: var(--avd-ink); transform: translateY(-2px); }

/* =============================== HERO =================================== */
body.home.av-storefront .av-hero {
  padding-block: clamp(2.4rem, 5vw, 4.5rem) clamp(2.6rem, 6vw, 5rem);
  background:
    radial-gradient(130% 90% at 78% 22%, rgba(203,167,92,.12) 0%, transparent 55%),
    radial-gradient(120% 120% at 50% 120%, rgba(203,167,92,.06) 0%, transparent 60%),
    linear-gradient(180deg, #110E0B 0%, var(--avd-bg) 40%, var(--avd-bg) 100%);
  overflow: hidden;
}
/* fine film grain so the flat dark never looks like a plastic gradient */
body.home.av-storefront .av-hero__grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
body.home.av-storefront .av-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center;
}
body.home.av-storefront .av-hero__copy { max-width: 36rem; }
body.home.av-storefront .av-hero__kicker {
  display: inline-block; font-family: var(--av-font-display); font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; font-size: .72rem; color: var(--avd-gold); margin-bottom: 1.1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--avd-line);
}
body.home.av-storefront .av-hero__title { margin: 0 0 1rem; line-height: 1.04; text-wrap: balance; }
body.home.av-storefront .av-hero__title .av-ar { display: block; font-family: var(--av-font-ar-display); font-weight: 700; line-height: 1.18; font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--avd-ink); letter-spacing: 0; }
body.home.av-storefront .av-hero__title .av-en { display: none; font-family: var(--av-font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; font-size: clamp(2.2rem, 5.4vw, 4rem); color: var(--avd-ink); }
html.av-lang-en body.home.av-storefront .av-hero__title .av-ar { display: none; }
html.av-lang-en body.home.av-storefront .av-hero__title .av-en { display: block; }
body.home.av-storefront .av-hero__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.7; max-width: 42ch; margin: 0 0 1.8rem; }
body.home.av-storefront .av-hero__sub .av-ar,
body.home.av-storefront .av-hero__sub .av-en { color: var(--avd-muted); }
body.home.av-storefront .av-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Spotlit product on a dark stage: a warm light pool + the photo feathered so
   its white studio background melts into the glow (no white rectangle). */
body.home.av-storefront .av-hero__media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: clamp(340px, 46vw, 560px); }
body.home.av-storefront .av-hero__pool {
  position: absolute; z-index: 0; inset: 0; margin: auto;
  width: clamp(300px, 40vw, 520px); aspect-ratio: 1/1.08; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(244,239,229,.22) 0%, rgba(203,167,92,.14) 34%, transparent 68%);
  filter: blur(6px);
}
body.home.av-storefront .av-hero__stage { position: relative; z-index: 1; display: block; line-height: 0; }
body.home.av-storefront .av-hero__img {
  max-width: 100%; height: auto; max-height: clamp(320px, 44vw, 520px); object-fit: contain; display: block;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.65)) drop-shadow(0 4px 14px rgba(203,167,92,.18)) contrast(1.05) saturate(1.04);
  animation: av-hero-float 7s ease-in-out infinite;
}
/* pre-cut (transparent) hero asset: no mask, just the lit drop-shadow above.
   Fallback (uncut JPG thumbnail) gets a soft feather so a stray white box
   still melts rather than showing a hard rectangle. */
body.home.av-storefront .av-hero__img:not(.av-hero__img--cut) {
  -webkit-mask: radial-gradient(ellipse 64% 84% at 50% 48%, #000 54%, rgba(0,0,0,.55) 74%, transparent 100%);
          mask: radial-gradient(ellipse 64% 84% at 50% 48%, #000 54%, rgba(0,0,0,.55) 74%, transparent 100%);
}
@keyframes av-hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* soft floor reflection under the bottle */
body.home.av-storefront .av-hero__stage::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -6%; transform: translateX(-50%);
  width: 58%; height: 10%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  filter: blur(7px);
}
body.home.av-storefront .av-hero__caption {
  position: relative; z-index: 1; margin-top: 1.4rem; text-align: center;
  display: flex; flex-direction: column; gap: .2rem;
}
body.home.av-storefront .av-hero__caption-eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--avd-gold); }
body.home.av-storefront .av-hero__caption-name { font-family: var(--av-font-display); font-size: 1rem; color: var(--avd-ink); font-weight: 600; }
/* scroll cue */
body.home.av-storefront .av-hero__scroll { position: absolute; z-index: 2; left: 50%; bottom: 1.1rem; transform: translateX(-50%); display: flex; }
body.home.av-storefront .av-hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--avd-gold), transparent); position: relative; overflow: hidden; }
body.home.av-storefront .av-hero__scroll-line::after { content: ""; position: absolute; top: -40px; left: 0; width: 1px; height: 40px; background: linear-gradient(transparent, var(--avd-ink)); animation: av-scrolldot 2.4s var(--av-ease) infinite; }
@keyframes av-scrolldot { 0% { transform: translateY(0); } 100% { transform: translateY(80px); } }

/* =========================== COLLECTIONS =============================== */
body.home.av-storefront .av-collections { background: var(--avd-bg); border-top: 1px solid var(--avd-line-2); }
body.home.av-storefront .av-collections__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(.9rem, 1.8vw, 1.3rem); }
body.home.av-storefront .av-coll {
  position: relative; display: flex; flex-direction: column; gap: .4rem; justify-content: flex-end;
  min-height: clamp(190px, 22vw, 260px); padding: clamp(1.2rem, 2.4vw, 1.7rem);
  background: linear-gradient(165deg, var(--avd-bg-3) 0%, var(--avd-bg-2) 100%);
  border: 1px solid var(--avd-line-2); border-radius: var(--av-r-lg); overflow: hidden; color: var(--avd-ink);
  transition: transform .4s var(--av-ease), border-color .4s var(--av-ease), box-shadow .4s var(--av-ease);
}
body.home.av-storefront .av-coll::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(203,167,92,.16), transparent 60%);
  transition: opacity .4s var(--av-ease);
}
body.home.av-storefront .av-coll:hover { transform: translateY(-4px); border-color: var(--avd-line); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); color: var(--avd-ink); }
body.home.av-storefront .av-coll:hover::before { opacity: 1; }
body.home.av-storefront .av-coll__index { position: relative; z-index: 1; font-family: var(--av-font-display); font-size: 1rem; font-weight: 600; color: var(--avd-gold); opacity: .7; letter-spacing: .05em; }
body.home.av-storefront .av-coll__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3rem; margin-top: auto; }
body.home.av-storefront .av-coll__title { font-family: var(--av-font-ar-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.15; color: var(--avd-ink); }
html.av-lang-en body.home.av-storefront .av-coll__title { font-family: var(--av-font-display); }
body.home.av-storefront .av-coll__sub { font-size: .86rem; color: var(--avd-muted); line-height: 1.4; }
body.home.av-storefront .av-coll__cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4em; margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--avd-gold); }
body.home.av-storefront .av-coll__arrow { transition: transform .3s var(--av-ease); }
html[dir="rtl"] body.home.av-storefront .av-coll__arrow { scale: -1 1; }
body.home.av-storefront .av-coll:hover .av-coll__arrow { transform: translateX(4px); }
body.home.av-storefront .av-coll--gift { background: linear-gradient(165deg, #2a2114, var(--avd-bg-2)); border-color: var(--avd-line); }

/* ======================= CURATED PRODUCTS (dark section) =============== */
body.home.av-storefront .av-curated { background: var(--avd-bg); padding-block: clamp(3rem, 7vw, 6rem); }
/* the white product cards pop beautifully on the dark stage — reuse the card
   system, only raise the shadow so they feel lifted off the dark bg */
body.home.av-storefront .av-curated ul.products li.product { box-shadow: 0 18px 40px -26px rgba(0,0,0,.9); }
body.home.av-storefront .av-curated ul.products li.product:hover { box-shadow: 0 30px 60px -28px rgba(0,0,0,.95); }

/* ============================= NOTES (dark) =========================== */
body.home.av-storefront .av-notes { background: linear-gradient(180deg, var(--avd-bg), #110E0B); border-block: 1px solid var(--avd-line-2); }
body.home.av-storefront .av-notes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.7rem, 1.4vw, 1rem); }
body.home.av-storefront .av-note {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  background: rgba(244,239,229,.03); border: 1px solid var(--avd-line-2); border-radius: var(--av-r); padding: 1.3rem .6rem; min-height: 8rem; color: var(--avd-ink);
  transition: transform .35s var(--av-ease), border-color .35s var(--av-ease), background .35s var(--av-ease);
}
body.home.av-storefront .av-note:hover { transform: translateY(-4px); border-color: var(--avd-gold); background: rgba(203,167,92,.07); color: var(--avd-ink); }
body.home.av-storefront .av-note__icon { display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(203,167,92,.1); color: var(--avd-gold); transition: background .35s var(--av-ease), transform .35s var(--av-ease); }
body.home.av-storefront .av-note:hover .av-note__icon { background: var(--avd-gold); color: #14110D; transform: scale(1.06); }
body.home.av-storefront .av-note__label { font-family: var(--av-font-ar-display); font-size: clamp(1.05rem, 1.9vw, 1.3rem); font-weight: 600; line-height: 1.2; color: var(--avd-ink); }
html.av-lang-en body.home.av-storefront .av-note__label { font-family: var(--av-font-display); }

/* ============================ FIND MY SCENT =========================== */
body.home.av-storefront .av-find { background: radial-gradient(90% 120% at 50% 0%, rgba(203,167,92,.08), transparent 55%), var(--avd-bg); text-align: center; border-bottom: 1px solid var(--avd-line-2); }
body.home.av-storefront .av-find__inner h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 .7rem; }
body.home.av-storefront .av-find__inner p { color: var(--avd-muted); max-width: 54ch; margin: 0 auto 1.8rem; line-height: 1.6; }
body.home.av-storefront .av-find__opts { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; align-items: center; }
body.home.av-storefront .av-find__expert { display: inline-flex; align-items: center; gap: .5em; background: #1FA855; border: 1px solid #1FA855; color: #fff; border-radius: var(--av-r-pill); font-weight: 700; padding: .82em 1.7em; transition: background .3s var(--av-ease), transform .25s var(--av-ease); }
body.home.av-storefront .av-find__expert:hover { background: #17914a; color: #fff; transform: translateY(-2px); }
body.home.av-storefront .av-find__expert svg { color: #fff; }

/* ============================ GIFT CONCIERGE ========================== */
body.home.av-storefront .av-gift { background: linear-gradient(160deg, #241c11 0%, #140f0a 100%); text-align: center; position: relative; overflow: hidden; }
body.home.av-storefront .av-gift__seal { position: absolute; inset-block-start: -50px; inset-inline-start: -50px; width: 240px; height: 240px; background: url('av-seal.svg') center/contain no-repeat; opacity: .06; z-index: 0; pointer-events: none; }
body.home.av-storefront .av-gift__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
body.home.av-storefront .av-gift__inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 .8rem; color: var(--avd-ink); }
body.home.av-storefront .av-gift__inner p { color: var(--avd-muted); max-width: 52ch; margin: 0 auto 1.8rem; line-height: 1.7; font-size: clamp(1rem, 1.5vw, 1.12rem); }

/* ============================ SHIPPING BAND =========================== */
body.home.av-storefront .av-ship { background: var(--avd-bg); border-block: 1px solid var(--avd-line-2); padding-block: clamp(2rem, 4vw, 3rem); }
body.home.av-storefront .av-ship__inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); justify-content: center; flex-wrap: wrap; text-align: start; }
body.home.av-storefront .av-ship__icon { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; flex: none; border-radius: 50%; background: rgba(203,167,92,.1); color: var(--avd-gold); }
body.home.av-storefront .av-ship__text { display: flex; flex-direction: column; gap: .2rem; }
body.home.av-storefront .av-ship__head { font-family: var(--av-font-ar-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--avd-ink); }
html.av-lang-en body.home.av-storefront .av-ship__head { font-family: var(--av-font-display); }
body.home.av-storefront .av-ship__sub { color: var(--avd-muted); font-size: .95rem; }
body.home.av-storefront .av-ship__cta { margin-inline-start: auto; }
html[dir="rtl"] body.home.av-storefront .av-ship__cta { margin-inline-start: auto; }

/* ============================== CLOSER ================================ */
body.home.av-storefront .av-closer { background: radial-gradient(100% 140% at 50% 100%, rgba(203,167,92,.1), transparent 60%), #110E0B; text-align: center; }
body.home.av-storefront .av-closer__inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
body.home.av-storefront .av-closer__title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0; line-height: 1.1; }

/* ======================= Footer stays on brand (umber) ================ */
/* The shared footer brand band + widgets already render umber; no change. */

/* ============================ SCROLL REVEALS ========================== */
body.home.av-storefront [data-av-reveal] { opacity: 1; } /* visible by default (reveal enhances) */
body.home.av-storefront.av-js [data-av-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--av-ease), transform .8s var(--av-ease); }
body.home.av-storefront.av-js [data-av-reveal].is-in { opacity: 1; transform: none; }
/* stagger children of grids a touch */
body.home.av-storefront.av-js .av-collections__grid.is-in .av-coll,
body.home.av-storefront.av-js .av-notes__grid.is-in .av-note { animation: av-rise .7s var(--av-ease) both; }

@keyframes av-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================ RESPONSIVE ============================== */
@media (max-width: 920px) {
  body.home.av-storefront .av-hero__grid { grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  body.home.av-storefront .av-hero__copy { max-width: none; margin-inline: auto; }
  body.home.av-storefront .av-hero__kicker { margin-inline: auto; }
  body.home.av-storefront .av-hero__sub { margin-inline: auto; }
  body.home.av-storefront .av-hero__cta { justify-content: center; }
  body.home.av-storefront .av-hero__media { order: -1; min-height: clamp(260px, 60vw, 380px); }
  body.home.av-storefront .av-notes__grid { grid-template-columns: repeat(3, 1fr); }
  body.home.av-storefront .av-section__head { flex-direction: column; align-items: flex-start; }
  body.home.av-storefront .av-section__head--center { align-items: center; }
  body.home.av-storefront .av-ship__cta { margin-inline: auto; }
}
/* Narrow phones: stack the hero CTAs into one centered column so the two
   pills read as a clear, balanced pair instead of two cramped chips. */
@media (max-width: 560px) {
  body.home.av-storefront .av-hero__cta { flex-direction: column; align-items: center; gap: .7rem; }
  body.home.av-storefront .av-hero__cta .button {
    width: 100%; max-width: 300px;
    display: inline-flex; align-items: center; justify-content: center; text-align: center;
  }
}
@media (max-width: 540px) {
  body.home.av-storefront .av-notes__grid { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  body.home.av-storefront .av-note { min-height: 6.6rem; padding: .9rem .4rem; }
  body.home.av-storefront .av-note__icon { width: 2.6rem; height: 2.6rem; }
  body.home.av-storefront .av-hero__title .av-ar { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  body.home.av-storefront .av-collections__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  body.home.av-storefront .av-collections__grid { grid-template-columns: 1fr; }
}

/* ============================ RTL ==================================== */
html[dir="rtl"] body.home.av-storefront .av-hero__copy { text-align: right; }
@media (max-width: 920px) { html[dir="rtl"] body.home.av-storefront .av-hero__copy { text-align: center; } }
html[dir="rtl"] body.home.av-storefront .av-hero__kicker { letter-spacing: 0; }

/* ======================= REDUCED MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  body.home.av-storefront.av-js [data-av-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  body.home.av-storefront.av-js .av-collections__grid.is-in .av-coll,
  body.home.av-storefront.av-js .av-notes__grid.is-in .av-note { animation: none !important; }
  body.home.av-storefront .av-hero__scroll-line::after { animation: none; }
  body.home.av-storefront .av-hero__img { animation: none !important; }
}

/* ===========================================================================
   RTL PRICE DIRECTION — show price RANGES left-to-right (min – max) even in
   Arabic, the convention for Egyptian e-commerce. Each amount is already a
   <bdi>; forcing the container to LTR keeps "600 – 1,100" reading naturally
   instead of visually flipping in the RTL flow. Scoped to WooCommerce prices.
   =========================================================================== */
html[dir="rtl"] .av-storefront.woocommerce .price,
html[dir="rtl"] .av-storefront .woocommerce .price,
html[dir="rtl"] .av-storefront.woocommerce ul.products li.product .price,
html[dir="rtl"] .av-storefront .woocommerce ul.products li.product .price,
html[dir="rtl"] .av-storefront.single-product .summary .price,
html[dir="rtl"] .av-storefront.single-product div.product .price,
html[dir="rtl"] .av-storefront .av-sticky-atc__price {
  direction: ltr;
  unicode-bidi: isolate;
}
/* In RTL card/summary, the LTR price should still sit on the start (right) edge. */
html[dir="rtl"] .av-storefront.woocommerce ul.products li.product .price,
html[dir="rtl"] .av-storefront .woocommerce ul.products li.product .price { text-align: right; }

/* ===========================================================================
   v0.14 — CINEMATIC PRODUCT CARDS + DROPDOWN-FREE VARIATION TILES + 3D
   Real photos presented with depth & lighting (no fabricated 3D models).
   =========================================================================== */

/* ------------------------------------------------------------------ *
 * 1) PREMIUM VARIATION SWATCHES (the store's .swatch tiles — NOT a
 *    dropdown). Give them a clear, branded, obviously-selectable look
 *    with a strong selected state and disabled treatment. Works on the
 *    woocustomizer `.swatch.swatch-type-label` markup.
 * ------------------------------------------------------------------ */
.av-storefront .swatches-wrapper,
.av-storefront .swatches,
.av-storefront .swatch-wrapper { display: flex; flex-wrap: wrap; gap: .55rem; margin: .2rem 0 .4rem; padding: 0; }
.av-storefront .swatch.swatch-label,
.av-storefront .swatch.swatch-type-label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.4rem; min-height: 44px; padding: .5em 1em;
  border: 1.5px solid var(--av-line); border-radius: var(--av-r-sm);
  background: #fff; color: var(--av-ink);
  font-family: var(--av-font-body); font-weight: 600; font-size: .9rem; line-height: 1;
  cursor: pointer; width: auto; height: auto;
  transition: border-color .2s var(--av-ease), background .2s var(--av-ease), color .2s var(--av-ease), transform .15s var(--av-ease), box-shadow .2s var(--av-ease);
}
.av-storefront .swatch.swatch-label .text,
.av-storefront .swatch.swatch-type-label .text { direction: ltr; unicode-bidi: isolate; }
.av-storefront .swatch.swatch-label:hover:not(.disabled),
.av-storefront .swatch.swatch-type-label:hover:not(.disabled) {
  border-color: var(--av-gold); color: var(--av-brand); transform: translateY(-1px); box-shadow: var(--av-shadow);
}
/* SELECTED — unmistakable: umber fill, gold ring */
.av-storefront .swatch.selected,
.av-storefront .swatch.swatch-label.selected,
.av-storefront .swatch.swatch-type-label.selected {
  background: var(--av-brand); color: #fff; border-color: var(--av-brand);
  box-shadow: 0 0 0 2px rgba(156,122,46,.5); transform: none;
}
/* DISABLED / unavailable — clearly non-interactive (more than color: strike) */
.av-storefront .swatch.disabled,
.av-storefront .swatch.swatch-label.disabled,
.av-storefront .swatch.swatch-type-label.disabled {
  opacity: .4; cursor: not-allowed; position: relative; color: var(--av-muted); background: var(--av-surface);
}
.av-storefront .swatch.disabled::after {
  content: ""; position: absolute; inset-inline: 10%; top: 50%; height: 1.5px; background: currentColor; transform: rotate(-12deg); opacity: .7;
}
.av-storefront .swatch.disabled:hover { transform: none; border-color: var(--av-line); box-shadow: none; }
/* keyboard focus */
.av-storefront .swatch:focus-visible { outline: 2px solid var(--av-gold); outline-offset: 2px; }
/* the attribute label row (الحجم) */
.av-storefront div.product form.cart .variations .label,
.av-storefront div.product form.cart .variations th.label {
  font-weight: 700; color: var(--av-ink); padding-block: .4rem; vertical-align: middle;
}
.av-storefront div.product form.cart .variations td { padding-block: .3rem; }
/* reset/clear link under the tiles: quiet */
.av-storefront .reset_variations { color: var(--av-muted); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.av-storefront .reset_variations:hover { color: var(--av-gold); }

/* ------------------------------------------------------------------ *
 * 2) CINEMATIC PRODUCT CARDS — subtle depth + lighting on real photos.
 *    Pointer-tilt is added by JS on fine-pointer (desktop) devices only;
 *    CSS here provides the lift, the lit frame, and the image hover.
 * ------------------------------------------------------------------ */
.av-storefront.woocommerce ul.products li.product,
.av-storefront .woocommerce ul.products li.product {
  transform-style: preserve-3d; will-change: transform;
}
/* lit photo frame: a soft radial glow behind the bottle so it reads as lit, not flat */
.av-storefront.woocommerce ul.products li.product .product-loop-image-wrapper,
.av-storefront .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.av-storefront.woocommerce ul.products li.product > a:first-of-type,
.av-storefront .woocommerce ul.products li.product > a:first-of-type {
  position: relative; display: block;
}
.av-storefront.woocommerce ul.products li.product img.product-loop-image,
.av-storefront .woocommerce ul.products li.product img.product-loop-image,
.av-storefront.woocommerce ul.products li.product img,
.av-storefront .woocommerce ul.products li.product img {
  transition: transform .5s var(--av-ease), filter .5s var(--av-ease);
  transform: translateZ(0);
}
.av-storefront.woocommerce ul.products li.product:hover img.product-loop-image,
.av-storefront .woocommerce ul.products li.product:hover img.product-loop-image,
.av-storefront.woocommerce ul.products li.product:hover img,
.av-storefront .woocommerce ul.products li.product:hover img {
  transform: scale(1.055) translateZ(30px); filter: drop-shadow(0 18px 26px rgba(23,20,17,.22)) contrast(1.03);
}
/* JS tilt container var; the glow follows the pointer */
.av-storefront .woocommerce ul.products li.product.av-tilt,
.av-storefront.woocommerce ul.products li.product.av-tilt {
  transition: transform .18s var(--av-ease), box-shadow .35s var(--av-ease), border-color .35s var(--av-ease);
}

/* ------------------------------------------------------------------ *
 * 3) PRODUCT-PAGE CINEMATIC STAGE — lit background behind the gallery,
 *    refined gallery, clear hierarchy. Porcelain (internal page) but
 *    with a deliberate product "stage".
 * ------------------------------------------------------------------ */
.av-storefront.single-product div.product .woocommerce-product-gallery {
  position: relative; border-radius: var(--av-r-lg); overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 18%, #fff 0%, var(--av-surface) 60%, var(--av-surface-2) 100%);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), var(--av-shadow);
}
.av-storefront.single-product div.product .woocommerce-product-gallery__image img {
  mix-blend-mode: multiply;
  filter: drop-shadow(0 26px 38px rgba(23,20,17,.22));
  transition: transform .6s var(--av-ease);
  will-change: transform;
}
/* floor shadow under the bottle on the stage */
.av-storefront.single-product div.product .woocommerce-product-gallery__wrapper { position: relative; z-index: 1; }
.av-storefront.single-product div.product .woocommerce-product-gallery::after {
  content: ""; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 56%; height: 7%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23,20,17,.22), transparent 72%);
  filter: blur(8px); z-index: 0;
}
/* gallery thumbnails: tidy, branded */
.av-storefront.single-product div.product .flex-control-thumbs li img { border-radius: var(--av-r-sm); border: 1.5px solid transparent; transition: border-color .2s var(--av-ease), opacity .2s var(--av-ease); opacity: .7; }
.av-storefront.single-product div.product .flex-control-thumbs li img.flex-active,
.av-storefront.single-product div.product .flex-control-thumbs li img:hover { border-color: var(--av-gold); opacity: 1; }

/* purchase hierarchy: price prominent, gold */
.av-storefront.single-product div.product .summary .price,
.av-storefront.single-product div.product p.price {
  font-family: var(--av-font-body); font-weight: 800; color: var(--av-ink);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-block: .2rem .6rem;
}
.av-storefront.single-product div.product .summary .price del { color: var(--av-muted); font-weight: 500; font-size: .7em; }
.av-storefront.single-product div.product .summary .price ins { text-decoration: none; color: var(--av-gold); }

/* ------------------------------------------------------------------ *
 * 4) REDUCED MOTION — disable tilt + heavy image transforms.
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .av-storefront .woocommerce ul.products li.product.av-tilt,
  .av-storefront.woocommerce ul.products li.product.av-tilt { transform: none !important; }
  .av-storefront.woocommerce ul.products li.product:hover img,
  .av-storefront .woocommerce ul.products li.product:hover img { transform: none !important; }
  .av-storefront.single-product div.product .woocommerce-product-gallery__image img { transition: none !important; }
}
/* touch devices: never tilt (hover-free), keep tap targets clean */
@media (hover: none), (pointer: coarse) {
  .av-storefront .woocommerce ul.products li.product.av-tilt,
  .av-storefront.woocommerce ul.products li.product.av-tilt { transform: none !important; }
}

/* ------------------------------------------------------------------ *
 * SWATCH SHAPE OVERRIDE — the swatch plugin forces .swatch-shape-circle
 * (border-radius:50%, fixed 48x44) which crams "250ml" into a circle and
 * out-specifies the tile styling above. Re-assert a readable pill tile with
 * matching/higher specificity, scoped to the product summary so we don't
 * touch any legitimate color/image circle swatches elsewhere.
 * ------------------------------------------------------------------ */
/* Match the tawcvs plugin's own chain (.woocommerce div.product .cart.variations_form
   .tawcvs-swatches .swatch…) + .av-storefront prefix so we decisively out-specify its
   forced circle shape / fixed size. Label swatches only (text like "150ml"). */
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label,
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label {
  border-radius: var(--av-r-sm) !important;
  width: auto !important; min-width: 3.6rem; height: auto !important; min-height: 44px !important;
  padding: .5em 1.05em !important; margin: 0 !important;
  background: #fff !important; border: 1.5px solid var(--av-line) !important; color: var(--av-ink) !important;
  font-family: var(--av-font-body) !important; font-weight: 600 !important; font-size: .9rem !important;
  display: inline-flex !important; align-items: center; justify-content: center;
}
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:hover:not(.disabled),
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:hover:not(.disabled) {
  border-color: var(--av-gold) !important; color: var(--av-brand) !important; background: #fff !important; transform: translateY(-1px);
}
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected,
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected {
  background: var(--av-brand) !important; color: #fff !important; border-color: var(--av-brand) !important;
  box-shadow: 0 0 0 2px rgba(156,122,46,.55) !important;
}
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.disabled,
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.disabled {
  background: var(--av-surface) !important; color: var(--av-muted) !important; opacity: .45 !important; cursor: not-allowed;
}
/* the swatch inner text must flow LTR (e.g. "150ml") */
.av-storefront .tawcvs-swatches .swatch.swatch-label .text { direction: ltr; unicode-bidi: isolate; }

/* ------------------------------------------------------------------ *
 * SWATCH :before IS THE VISIBLE SHAPE. The tawcvs plugin draws each
 * swatch's ring/fill via an absolutely-positioned ::before (inset -4px,
 * 1px #ddd border) — so the element's own background/border never shows.
 * Style the ::before to render our branded pill, and the selected/hover
 * states on it. Scoped to label swatches on the product summary.
 * ------------------------------------------------------------------ */
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:before,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:before {
  border-radius: var(--av-r-sm) !important;
  border: 1.5px solid var(--av-line) !important;
  background: #fff !important;
  left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important;
  transition: border-color .2s var(--av-ease), background .2s var(--av-ease), box-shadow .2s var(--av-ease) !important;
}
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:hover:not(.disabled):before,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label:hover:not(.disabled):before {
  border-color: var(--av-gold) !important;
}
/* selected: umber fill via the ::before, gold ring, white text on the element */
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected:before,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected:before {
  background: var(--av-brand) !important;
  border-color: var(--av-brand) !important;
  box-shadow: 0 0 0 2px rgba(156,122,46,.55) !important;
}
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected { color: #fff !important; }
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected .text,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.selected .text { color: #fff !important; position: relative; z-index: 1; }
/* disabled: muted fill */
.av-storefront .woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.disabled:before,
.av-storefront.woocommerce div.product .cart.variations_form .tawcvs-swatches .swatch.swatch-label.disabled:before {
  background: var(--av-surface) !important; border-color: var(--av-line) !important;
}
/* make sure the label text sits above the ::before */
.av-storefront .tawcvs-swatches .swatch.swatch-label .text { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ *
 * CARD PRODUCT LIGHTING — a soft radial light-pool behind each bottle
 * so it reads as lit/grounded, not floating on flat white. Subtle on the
 * porcelain shop; gives the "depth between image and background" the
 * cinematic cards call for, cheaply (no per-card canvas).
 * ------------------------------------------------------------------ */
.av-storefront.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.av-storefront .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  position: relative; display: block; border-radius: var(--av-r); overflow: hidden;
  background:
    radial-gradient(85% 70% at 50% 42%, #fff 0%, var(--av-surface) 72%, var(--av-surface-2) 100%);
}
.av-storefront.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img,
.av-storefront .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  position: relative; z-index: 1; mix-blend-mode: multiply;
}
/* floor shadow grounding the bottle in the card */
.av-storefront.woocommerce ul.products li.product a.woocommerce-LoopProduct-link::after,
.av-storefront .woocommerce ul.products li.product a.woocommerce-LoopProduct-link::after {
  content: ""; position: absolute; z-index: 0; left: 50%; bottom: 7%; transform: translateX(-50%);
  width: 52%; height: 6%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23,20,17,.16), transparent 72%);
  filter: blur(5px); opacity: 0; transition: opacity .4s var(--av-ease);
}
.av-storefront.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link::after,
.av-storefront .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link::after { opacity: 1; }
/* On the DARK home curated grid, the pool is warm charcoal, not porcelain */
body.home.av-storefront .av-curated ul.products li.product a.woocommerce-LoopProduct-link {
  background: radial-gradient(85% 70% at 50% 42%, #fff 0%, #f8f6f2 78%, #F5EFE3 100%);
}

/* ===========================================================================
   v0.15 — A11Y PASS (from /impeccable audit): visible keyboard focus + 44px
   touch targets. Focus was outline:none everywhere (P1); lang toggle + a few
   controls were under 44px (P2).
   =========================================================================== */
/* Visible, on-brand focus ring on every interactive control (keyboard only). */
.av-storefront a:focus-visible,
.av-storefront button:focus-visible,
.av-storefront input:focus-visible,
.av-storefront select:focus-visible,
.av-storefront textarea:focus-visible,
.av-storefront .button:focus-visible,
.av-storefront .add_to_cart_button:focus-visible,
.av-storefront .single_add_to_cart_button:focus-visible,
.av-storefront .swatch:focus-visible,
.av-storefront .av-lang__btn:focus-visible {
  outline: 2px solid var(--av-gold) !important;
  outline-offset: 2px !important;
  border-radius: var(--av-r-sm);
}
/* On the dark homepage, the gold ring needs a touch more offset to read. */
body.home.av-storefront a:focus-visible,
body.home.av-storefront button:focus-visible,
body.home.av-storefront .button:focus-visible {
  outline-color: var(--avd-gold) !important; outline-offset: 3px !important;
}

/* Touch targets ≥ 44px. Lang toggle was 26–34 × 32. */
.av-storefront .av-lang__btn { min-height: 44px; min-width: 44px; padding-inline: .7em; }
.av-storefront .av-search__submit { min-height: 44px; }
/* keep the compact topbar from growing too tall on desktop — the 44px target is
   satisfied via padding; the visual pill stays slim via line-height */
@media (min-width: 783px) {
  .av-storefront .av-lang { align-items: stretch; }
}

/* ===========================================================================
   v0.16 — BOLD 3D CARDS. The tilt is now pronounced (JS: 14deg + image pops
   toward the viewer on a real 3D plane + a glass light-sheen that tracks the
   pointer). This CSS enables the 3D context, the sheen, and the lift shadow,
   and gives cards a subtle at-rest depth so they read as 3D even before hover.
   =========================================================================== */
.av-storefront.woocommerce ul.products li.product.av-tilt,
.av-storefront .woocommerce ul.products li.product.av-tilt {
  transform-style: preserve-3d;                 /* let the image translateZ pop */
  transition: transform .25s var(--av-ease), box-shadow .35s var(--av-ease), border-color .35s var(--av-ease);
  will-change: transform;
}
/* the image itself needs its own 3D transition + preserved depth */
.av-storefront ul.products li.product.av-tilt img.product-loop-image,
.av-storefront ul.products li.product.av-tilt a img {
  transition: transform .25s var(--av-ease), filter .35s var(--av-ease);
  transform-style: preserve-3d;
}
/* deeper lift shadow while tilting so the card clearly floats */
.av-storefront ul.products li.product.av-tilt:hover {
  box-shadow: 0 34px 60px -24px rgba(23,20,17,.45), 0 10px 24px -12px rgba(23,20,17,.3) !important;
  border-color: rgba(156,122,46,.5) !important;
  z-index: 2;
}
/* GLASS LIGHT-SHEEN — a soft highlight that sweeps across the card following
   the pointer (set by JS via --av-sheen-x/y/o). Reads as light on glass. */
.av-storefront ul.products li.product.av-tilt .woocommerce-LoopProduct-link::before,
.av-storefront ul.products li.product.av-tilt > a:first-of-type::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at var(--av-sheen-x,50%) var(--av-sheen-y,50%),
    rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 22%, transparent 45%);
  opacity: var(--av-sheen-o, 0);
  transition: opacity .3s var(--av-ease);
  mix-blend-mode: soft-light;
}
/* on the DARK home curated grid, warm the sheen (gold glass glint) */
body.home.av-storefront .av-curated ul.products li.product.av-tilt .woocommerce-LoopProduct-link::before {
  background: radial-gradient(circle at var(--av-sheen-x,50%) var(--av-sheen-y,50%),
    rgba(203,167,92,.5) 0%, rgba(203,167,92,.14) 24%, transparent 48%);
}
/* at-rest dimensionality: a faint bottom-weighted shadow so cards aren't flat
   even before hover (cheap, no JS) */
.av-storefront.woocommerce ul.products li.product,
.av-storefront .woocommerce ul.products li.product { box-shadow: 0 6px 18px -12px rgba(23,20,17,.25); }

@media (prefers-reduced-motion: reduce) {
  .av-storefront ul.products li.product.av-tilt,
  .av-storefront ul.products li.product.av-tilt img { transition: none !important; transform: none !important; }
  .av-storefront ul.products li.product.av-tilt .woocommerce-LoopProduct-link::before { display: none; }
}
@media (hover: none), (pointer: coarse) {
  /* touch: no tilt/sheen, but keep the at-rest depth shadow */
  .av-storefront ul.products li.product.av-tilt .woocommerce-LoopProduct-link::before { display: none; }
}

/* ===========================================================================
   v0.17 — HOMEPAGE "FRAGRANCE BOOK" DIRECTION (walnut / open book / ribbon)
   Shifts the home hero to the walnut+cream book world (spec). Scoped to body.home.
   =========================================================================== */
body.home.av-storefront {
  --avw-walnut:#0E0E0E; --avw-walnut-dark:#0A0A0A; --avw-leather:#0E0E0E;
  --avw-paper:#F5EFE3; --avw-paper-shade:#F0EBE3; --avw-gold:#C9A24B;
  --avw-champagne:#F5EFE3; --avw-brass:#C9A24B; --avw-gold-ink:#C9A24B;
  --avw-ink:#0E0E0E; --avw-ink-soft:#666666; --avw-ivory:#F5EFE3;
}
/* the whole home becomes a dark walnut table */
body.home.av-storefront { background: var(--avw-walnut) !important; }
body.home.av-storefront .av-hero--book {
  background:
    radial-gradient(130% 110% at 50% 30%, transparent 45%, rgba(0,0,0,.5) 100%),
    repeating-linear-gradient(94deg, rgba(0,0,0,.12) 0 2px, transparent 2px 8px),
    linear-gradient(160deg, var(--avw-walnut) 0%, var(--avw-walnut-dark) 100%);
}
/* ---- OPEN BOOK in the hero ---- */
body.home.av-storefront .av-herobook {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  aspect-ratio: 16/11; width: 100%; max-width: 640px; margin-inline: auto;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(201,162,75,.25);
  background: var(--avw-leather);
}
body.home.av-storefront .av-herobook__spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 34px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.35) 45%, rgba(0,0,0,.35) 55%, transparent); }
body.home.av-storefront .av-herobook__page {
  position: relative; padding: clamp(1rem,2.5vw,1.8rem);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.4), transparent 60%), linear-gradient(160deg, var(--avw-paper), var(--avw-paper-shade));
  display: flex; flex-direction: column;
}
body.home.av-storefront .av-herobook__page--left { align-items: flex-start; justify-content: center; gap: .5rem; border-inline-end: 1px solid rgba(138,106,47,.25); }
body.home.av-storefront .av-herobook__kicker { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--avw-gold-ink); }
body.home.av-storefront .av-herobook__name { font-family: var(--av-font-display); font-size: clamp(1.2rem,2.2vw,1.7rem); color: var(--avw-ink); font-weight: 600; line-height: 1.15; }
body.home.av-storefront .av-herobook__rule { width: 2.4rem; height: 1px; background: var(--avw-brass); }
body.home.av-storefront .av-herobook__note { font-size: .8rem; color: var(--avw-ink-soft); font-style: italic; }
body.home.av-storefront .av-herobook__page--right { align-items: center; justify-content: center; }
body.home.av-storefront .av-hero--book .av-hero__stage { position: relative; z-index: 1; display: flex; }
body.home.av-storefront .av-hero--book .av-hero__img { max-height: clamp(180px,26vw,320px); width: auto; filter: drop-shadow(0 20px 30px rgba(40,25,12,.45)); mix-blend-mode: multiply; animation: none; -webkit-mask: none; mask: none; }
body.home.av-storefront .av-hero--book .av-hero__pool { position: absolute; inset: 0; margin: auto; width: 80%; aspect-ratio: 1/1.1; border-radius: 50%; background: radial-gradient(circle at 50% 46%, rgba(255,255,255,.5), transparent 68%); }
/* hero title now ink-on-nothing (dark) stays ivory — keep readable on walnut */
body.home.av-storefront .av-hero--book .av-hero__title .av-ar,
body.home.av-storefront .av-hero--book .av-hero__title .av-en { color: var(--avw-ivory); }

/* ---- CATEGORY RIBBON ---- */
body.home.av-storefront .av-ribbon { background: var(--avw-walnut-dark); border-block: 1px solid rgba(201,162,75,.18); padding-block: clamp(1rem,2.4vw,1.6rem); }
body.home.av-storefront .av-ribbon__row { display: flex; gap: clamp(1rem,3vw,2.6rem); align-items: flex-start; justify-content: center; flex-wrap: wrap; }
body.home.av-storefront .av-ribbon__item { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--avw-champagne); text-decoration: none; min-width: 72px; transition: color .25s var(--av-ease), transform .25s var(--av-ease); }
body.home.av-storefront .av-ribbon__item:hover { color: var(--avw-gold); transform: translateY(-3px); }
body.home.av-storefront .av-ribbon__icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(201,162,75,.35); display: flex; align-items: center; justify-content: center; color: var(--avw-gold); }
body.home.av-storefront .av-ribbon__label { font-size: .82rem; font-weight: 600; }
@media (max-width: 600px) {
  body.home.av-storefront .av-ribbon__row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-inline: .5rem; }
  body.home.av-storefront .av-ribbon__item { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  body.home.av-storefront .av-herobook { max-width: 420px; }
}

/* ===========================================================================
   v0.18 — HOMEPAGE book-feature + compare/gift panels + service strip
   =========================================================================== */
/* book feature section just inherits avfb styles; give it walnut breathing room */
body.home.av-storefront .av-bookfeature { background: var(--avw-walnut); padding-block: clamp(2.4rem,5vw,4.5rem); }
body.home.av-storefront .av-bookfeature .av-section__head h2 { color: var(--avw-ivory); }

/* ---- COMPARE + GIFT twin panels ---- */
body.home.av-storefront .av-panels { background: var(--avw-walnut); padding-block: clamp(2rem,4vw,3.5rem); }
body.home.av-storefront .av-panels__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,2.4vw,1.6rem); }
body.home.av-storefront .av-panel { position: relative; min-height: clamp(200px,24vw,280px); border-radius: var(--av-r-lg); overflow: hidden;
  border: 1px solid rgba(201,162,75,.25); display: flex; align-items: center;
  background: linear-gradient(160deg, var(--avd-bg-3,#262019), var(--avd-bg-2,#1D1915)); }
body.home.av-storefront .av-panel--compare { background: linear-gradient(135deg, #241c13, #15110b); }
body.home.av-storefront .av-panel--gift { background: linear-gradient(135deg, #2a2114, #15110b); }
body.home.av-storefront .av-panel::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 90% at 85% 10%, rgba(201,162,75,.14), transparent 55%); pointer-events:none; }
body.home.av-storefront .av-panel__body { position: relative; z-index: 1; padding: clamp(1.4rem,3vw,2.4rem); display: flex; flex-direction: column; gap: .5rem; max-width: 30ch; }
body.home.av-storefront .av-panel__kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--avw-gold); }
body.home.av-storefront .av-panel__title { font-family: var(--av-font-display); font-size: clamp(1.4rem,2.6vw,2rem); color: var(--avw-ivory); margin: 0; }
body.home.av-storefront.av-lang-ar .av-panel__title { font-family: var(--av-font-ar-display); }
body.home.av-storefront .av-panel__sub { color: var(--avd-muted,#888888); margin: 0 0 .6rem; }
@media (max-width: 760px) { body.home.av-storefront .av-panels__grid { grid-template-columns: 1fr; } }

/* ---- SERVICE STRIP ---- */
body.home.av-storefront .av-service { background: var(--avw-walnut-dark); border-block: 1px solid rgba(201,162,75,.18); padding-block: clamp(1.4rem,3vw,2rem); }
body.home.av-storefront .av-service__row { display: flex; align-items: center; justify-content: center; gap: clamp(1rem,3vw,2.4rem); flex-wrap: wrap; }
body.home.av-storefront .av-service__item { display: flex; align-items: center; gap: .7rem; }
body.home.av-storefront .av-service__icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(201,162,75,.35); display: flex; align-items: center; justify-content: center; color: var(--avw-gold); flex: none; }
body.home.av-storefront .av-service__text { display: flex; flex-direction: column; }
body.home.av-storefront .av-service__text strong { color: var(--avw-ivory); font-size: .95rem; }
body.home.av-storefront .av-service__text .av-service__sub { color: var(--avd-muted,#888888); font-size: .8rem; }
body.home.av-storefront .av-service__sep { width: 1px; height: 36px; background: rgba(201,162,75,.2); }
@media (max-width: 680px) { body.home.av-storefront .av-service__sep { display: none; } body.home.av-storefront .av-service__row { gap: 1.1rem; } }

/* ===========================================================================
   v0.28 — DARK CINEMATIC, SITE-WIDE  (store pages, not just the cover)
   The homepage was dark; every store page was left on the theme's porcelain
   #content band with cream text → invisible nav, page titles and card copy.
   This carries the same espresso-and-gold treatment onto all store pages so
   the site is one continuous dark gallery; porcelain is reserved for the
   product cards and the book's reading page (where it earns its contrast).
   Scoped to :not(.home) so the richer homepage block above stays untouched.
   =========================================================================== */
body.av-storefront:not(.home) {
  background: #15120E !important;          /* espresso charcoal — matches the cover */
  color: var(--av-ink);
}
/* dissolve the theme's porcelain content band so the espresso body shows through */
body.av-storefront:not(.home) #page,
body.av-storefront:not(.home) #content,
body.av-storefront:not(.home) .site-content,
body.av-storefront:not(.home) #primary,
body.av-storefront:not(.home) .content-area,
body.av-storefront:not(.home) .entry-content { background: transparent !important; }

/* --- Trust bar + search band go dark (same unit as the cover) --- */
body.av-storefront:not(.home) .av-topbar { background: #110E0B; border-bottom: 1px solid rgba(201,162,75,.15); }
body.av-storefront:not(.home) .av-searchband {
  background: linear-gradient(180deg, #110E0B, #15120E);
  border-bottom: 1px solid rgba(245,239,227,.10);
  box-shadow: none;
}
body.av-storefront:not(.home) .av-search { background: rgba(244,239,229,.05); border-color: rgba(245,239,227,.12); box-shadow: none; }
body.av-storefront:not(.home) .av-search__field { color: var(--av-ink); }
body.av-storefront:not(.home) .av-search__field::placeholder { color: var(--av-muted); }
body.av-storefront:not(.home) .av-search__icon { color: var(--av-muted); }
body.av-storefront:not(.home) .av-search__submit { background: var(--av-gold); color: #15120E; }
body.av-storefront:not(.home) .av-search__submit:hover { background: #d8b86e; color: #15120E; }

/* --- Theme header → dark with a cream hairline; nav + tool icons ivory/gold --- */
body.av-storefront:not(.home) .site-header,
body.av-storefront:not(.home) .site-header .site-header-inner,
body.av-storefront:not(.home) .site-header.header-layout-1 .site-header-inner {
  background: #15120E !important; border-bottom: 1px solid rgba(245,239,227,.10);
}
body.av-storefront:not(.home) .site-header .custom-logo {
  filter: brightness(0) invert(1) sepia(.35) saturate(1.2) brightness(1.05);
}
body.av-storefront:not(.home) .main-navigation .primary-navigation > li > a,
body.av-storefront:not(.home) .site-header .site-tools a,
body.av-storefront:not(.home) .site-header .tools-icon svg,
body.av-storefront:not(.home) .site-header .site-tools .tools-icon { color: var(--av-ink); fill: currentColor; }
body.av-storefront:not(.home) .main-navigation .primary-navigation > li > a:hover,
body.av-storefront:not(.home) .main-navigation .primary-navigation > li.current-menu-item > a { color: var(--av-gold); }
body.av-storefront:not(.home) .site-header .shop-cart-count { box-shadow: 0 0 0 2px #15120E; }

/* --- Archive heading + sorting controls read on dark --- */
body.av-storefront:not(.home) .woocommerce-products-header__title,
body.av-storefront:not(.home) .page-title { color: var(--av-ink); }

/* ===========================================================================
   OFF-CANVAS (mobile) MENU — keep the clean white drawer, but its top-level
   items inherited cream (invisible on white). Pin them to umber so the whole
   drawer reads (submenu items were already umber). Global + last so it wins
   on the homepage too, where the drawer is also white.
   =========================================================================== */
body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a {
  color: var(--av-ink-dark);
}
body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a:hover,
body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li.current-menu-item > a {
  color: var(--av-gold);
}
body.av-storefront .sidebar-menu .search-field { color: var(--av-ink-dark); }
body.av-storefront .sidebar-menu .search-field::placeholder { color: var(--av-muted-dark); }

/* ===========================================================================
   MINI-CART DRAWER — white panel; force its text to umber so it never inherits
   the dark-theme cream (which would vanish on the white drawer).
   =========================================================================== */
body.av-storefront #shop-cart-sidebar,
body.av-storefront #shop-cart-sidebar a,
body.av-storefront #shop-cart-sidebar p,
body.av-storefront #shop-cart-sidebar .amount,
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__total { color: var(--av-ink-dark); }
body.av-storefront #shop-cart-sidebar a:hover { color: var(--av-gold); }

/* ===========================================================================
   v0.28 — PRODUCT-CARD SCENT COLOUR
   Each porcelain card wears its fragrance's dominant-accord colour (--av-scent,
   set per card from PHP). A quiet accord pool sits behind the bottle; on hover
   the whole card lifts into that scent's own glow. Decorative only (never on
   text), so card contrast is untouched. Gold is the fallback when a card has no
   accord data, or the browser lacks color-mix().
   =========================================================================== */
.av-storefront.woocommerce ul.products li.product { --scent: var(--av-scent, var(--av-gold)); }
/* fallback (no color-mix): a soft gold pool behind the bottle */
.av-storefront.woocommerce ul.products li.product {
  background:
    radial-gradient(92% 56% at 50% 28%, rgba(201,162,75,.10), transparent 72%),
    #fff;
}
.av-storefront.woocommerce ul.products li.product:hover {
  border-color: rgba(201,162,75,.55);
  box-shadow: 0 18px 42px -20px rgba(201,162,75,.45), 0 6px 18px rgba(14,14,14,.18);
}
/* with color-mix: tint the pool + hover glow toward THIS fragrance's accord */
@supports (color: color-mix(in oklab, red, blue)) {
  .av-storefront.woocommerce ul.products li.product {
    background:
      radial-gradient(92% 56% at 50% 28%, color-mix(in oklab, var(--scent) 13%, transparent), transparent 72%),
      #fff;
  }
  .av-storefront.woocommerce ul.products li.product:hover {
    background:
      radial-gradient(96% 60% at 50% 28%, color-mix(in oklab, var(--scent) 22%, transparent), transparent 74%),
      #fff;
    border-color: color-mix(in oklab, var(--scent) 55%, var(--av-line));
    box-shadow: 0 18px 44px -20px color-mix(in oklab, var(--scent) 48%, rgba(14,14,14,.4)),
                0 6px 18px rgba(14,14,14,.16);
  }
}

/* ===========================================================================
   AUDIT PASS — FAVOURITES (brief P6): header entry · card hearts · bottom nav
   Reuses TI WooCommerce Wishlist; this is styling only.
   =========================================================================== */

/* ---- Header favourites icon (relocated into .site-tools) ----------------- */
.av-storefront .site-tools .av-fav {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  color: var(--av-ink); line-height: 0; cursor: pointer;
  transition: color .25s var(--av-ease);
}
.av-storefront .site-tools .av-fav:hover { color: var(--av-gold); }
.av-fav__count {
  position: absolute; top: -6px; inset-inline-end: -8px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--av-gold); color: #17120a;
  font: 700 10px/16px var(--av-font-body); text-align: center; pointer-events: none;
}
/* TI leaves the span empty at 0 — hide the pill until it has a value. */
.av-fav__count:empty { display: none; }

/* ---- Product-card hearts (TI button restyled to a compact disc) ---------- */
.avfb-wish-wrap { position: absolute; top: .7rem; inset-inline-end: .7rem; z-index: 4; }
.avfb-wish-wrap .tinv-wraper,
.avfb-wish-wrap .tinv-wishlist-clear { margin: 0; padding: 0; }
.avfb-wish-wrap .tinvwl-tooltip { display: none !important; }
.avfb-wish-wrap .tinvwl_add_to_wishlist_button {
  width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); border: 1px solid var(--av-line);
  color: var(--av-ink-dark); box-shadow: 0 2px 8px rgba(14,14,14,.14);
  transition: background .2s var(--av-ease), color .2s var(--av-ease), transform .2s var(--av-ease);
}
.avfb-wish-wrap .tinvwl_add_to_wishlist_button:hover { transform: translateY(-1px); color: var(--av-gold); }
/* Saved state: filled gold heart. */
.avfb-wish-wrap .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { background: var(--av-gold); color: #fff; border-color: var(--av-gold); }
/* Icon-only — the <a> keeps its aria-label, so the visible text can go.
   TI draws the heart as the button's ::before glyph (filled when saved). */
.avfb-wish-wrap .tinvwl_add_to_wishlist-text { display: none; }
.avfb-wish-wrap .tinvwl_add_to_wishlist_button::before {
  margin: 0 !important; font-size: 18px; vertical-align: middle;
}

/* ---- Mobile bottom navigation — "obsidian glass dock" -------------------
   A frosted leather-glass bar floating above the safe area, with a gold
   "spotlight" that glides to the active tab. Reskin of the glassy nav-bar
   pattern onto the AV leather / porcelain / gold palette. */
:root { --av-botnav-h: 58px; --av-botnav-gap: 10px; }
.av-botnav {
  position: fixed; z-index: var(--av-z-sticky, 80);
  left: 50%; transform: translateX(-50%);
  width: calc(100% - var(--av-botnav-gap) * 2); max-width: 600px;
  bottom: calc(var(--av-botnav-gap) + env(safe-area-inset-bottom, 0px));
  display: none; /* shown on small screens only */
  grid-template-columns: repeat(var(--av-botnav-n, 4), 1fr); align-items: stretch;
  height: var(--av-botnav-h); border-radius: 20px; overflow: hidden;
  background: rgba(20, 17, 13, .85);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(201, 162, 75, .22);
  box-shadow:
    inset 0 1px 0 rgba(201, 162, 75, .14),
    0 14px 34px -10px rgba(0, 0, 0, .66);
}
/* Opaque leather fallback where the browser can't frost the backdrop. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .av-botnav { background: #171310; }
}

/* The gold spotlight: a cap on the top edge + a soft downward light cone,
   one tab wide, sliding to the active index (--av-botnav-x). */
.av-botnav__spot {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 0; pointer-events: none;
  width: calc(100% / var(--av-botnav-n, 4)); height: 100%;
  transform: translateX(calc(var(--av-botnav-x, 0) * 100%));
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
}
html[dir="rtl"] .av-botnav__spot { transform: translateX(calc(var(--av-botnav-x, 0) * -100%)); }
.av-botnav--noactive .av-botnav__spot { opacity: 0; }
.av-botnav__spot::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 30px; height: 3px; margin-left: -15px;
  border-radius: 0 0 4px 4px; background: var(--av-gold); box-shadow: 0 0 10px 1px rgba(201, 162, 75, .7);
}
.av-botnav__spot::after {
  content: ""; position: absolute; top: 0; left: 50%; width: 60px; height: 100%; margin-left: -30px;
  background: linear-gradient(180deg, rgba(201, 162, 75, .20), rgba(201, 162, 75, 0) 72%);
}

.av-botnav__i {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 4px; min-height: var(--av-botnav-h);
  color: #CFC6B4; text-decoration: none; opacity: .8;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s var(--av-ease), opacity .3s var(--av-ease);
}
.av-botnav__i:hover { opacity: 1; }
.av-botnav__i.is-active { color: var(--av-gold); opacity: 1; }
.av-botnav__ic { position: relative; line-height: 0; transition: transform .35s var(--av-ease); }
.av-botnav__i.is-active .av-botnav__ic { transform: translateY(-1px); }
.av-botnav__i:active .av-botnav__ic { transform: scale(.9); }
.av-botnav__t { font: 600 10.5px/1 var(--av-font-body); letter-spacing: .01em; }
.av-botnav__i.is-active .av-botnav__t { font-weight: 700; }
.av-botnav__t .av-en { display: none; }
html.av-lang-en .av-botnav__t .av-ar { display: none; }
html.av-lang-en .av-botnav__t .av-en { display: inline; }
.av-botnav__badge {
  position: absolute; top: -7px; inset-inline-end: -9px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--av-gold); color: #17120a;
  font: 700 10px/16px var(--av-font-body); text-align: center;
  box-shadow: 0 0 0 2px rgba(20, 17, 13, .9);
}
.av-botnav__badge:empty, .av-botnav__badge[hidden] { display: none; }

@media (max-width: 991px) {
  .av-botnav { display: grid; }
  /* reserve room so content and the floating WhatsApp / sticky bar clear the dock */
  body.av-storefront { padding-bottom: calc(var(--av-botnav-h) + var(--av-botnav-gap) * 2 + env(safe-area-inset-bottom, 0px)); }
  .av-wa-fab { bottom: calc(var(--av-botnav-h) + var(--av-botnav-gap) * 2 + 14px + env(safe-area-inset-bottom, 0px)); }
  .av-sticky-atc { bottom: calc(var(--av-botnav-h) + var(--av-botnav-gap) * 2 + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .av-botnav__spot, .av-botnav__ic { transition: none; }
}

/* ===========================================================================
   AUDIT PASS — SAFETY NETS (brief P1 / P10): these elements aren't all present
   today, but pin them to brand so they never regress to theme defaults.
   =========================================================================== */
/* Out-of-stock: muted oxblood, never bright red. */
.av-storefront .stock.out-of-stock,
.av-storefront p.stock.out-of-stock { color: #8E2B2B; font-weight: 600; }
/* Price filter slider → gold (was theme blue). */
.av-storefront .price_slider .ui-slider-range,
.av-storefront .ui-slider .ui-slider-range { background: var(--av-gold) !important; }
.av-storefront .price_slider .ui-slider-handle,
.av-storefront .ui-slider .ui-slider-handle { background: var(--av-gold) !important; border-color: var(--av-gold) !important; }
.av-storefront .price_slider_wrapper .price_slider { background: rgba(245,239,227,.18); }
/* Review / count links were default blue — tie them to ink/gold. */
.av-storefront .woocommerce-review-link,
.av-storefront .count,
.av-storefront .product_meta a { color: inherit; }
.av-storefront .woocommerce-review-link:hover,
.av-storefront .product_meta a:hover { color: var(--av-gold); }
/* ---- Category/archive sidebar (brief P1) --------------------------------
   The WooCommerce widgets ship with WHITE card backgrounds; with the global
   cream text that made "Categories / Filter By / Product Tags" invisible
   (cream-on-white ≈1.15:1). Re-cast them as dark surface cards. */
.av-storefront #secondary .widget,
.av-storefront .widget-area .widget {
  background: var(--av-surface) !important;
  border: 1px solid var(--av-line);
  border-radius: var(--av-r);
  padding: 1.1rem 1.15rem;
  color: var(--av-ink);
  margin-bottom: 1.25rem;
}
.av-storefront #secondary .widget-title,
.av-storefront #secondary .widgettitle,
.av-storefront #secondary h2.widget-title,
.av-storefront .widget-area .widget-title {
  color: var(--av-ink);
  border: 0;
}
.av-storefront #secondary .widget a,
.av-storefront .widget-area .widget a { color: var(--av-ink); opacity: .82; }
.av-storefront #secondary .widget a:hover,
.av-storefront .widget-area .widget a:hover { color: var(--av-gold); opacity: 1; }
.av-storefront #secondary .widget li { border-color: var(--av-line); }
.av-storefront #secondary .widget .count { color: var(--av-gold-300); opacity: .8; }
.av-storefront #secondary .widget_product_search input[type="search"],
.av-storefront #secondary .search-field,
.av-storefront #secondary .widget_product_search .search-field {
  background: #0E0E0E; color: var(--av-ink); border: 1px solid var(--av-line); border-radius: var(--av-r-sm);
}
.av-storefront #secondary .widget_product_search input[type="search"]::placeholder { color: var(--av-muted); }
/* price filter amounts + reset text on the dark card */
.av-storefront #secondary .widget_price_filter .price_label,
.av-storefront #secondary .widget_price_filter .price_slider_amount { color: var(--av-ink); }

/* Hide an empty Product Tags widget entirely (brief P1 sidebar). */
.av-storefront .widget_product_tag_cloud:not(:has(.tagcloud)),
.av-storefront .widget_product_tag_cloud:not(:has(a)) { display: none; }

/* ---- Favourites page (TI) + WooCommerce notices → brand, never theme blue -- */
.av-storefront .woocommerce-info,
.av-storefront .tinv-wishlist .woocommerce-info {
  background: var(--av-surface); color: var(--av-ink);
  border-top: 2px solid var(--av-gold); border-radius: var(--av-r);
}
.av-storefront .woocommerce-info::before,
.av-storefront .tinv-wishlist .woocommerce-info::before { color: var(--av-gold); }
.av-storefront .woocommerce-info a { color: var(--av-gold); }
.av-storefront .tinv-wishlist table.tinvwl-table,
.av-storefront .tinv-wishlist .tinvwl-table,
.av-storefront .tinv-wishlist table th,
.av-storefront .tinv-wishlist table td { color: var(--av-ink); border-color: var(--av-line); }
.av-storefront .tinv-wishlist .product-name a { color: var(--av-ink); }
.av-storefront .tinv-wishlist .product-name a:hover,
.av-storefront .tinv-wishlist .product-price,
.av-storefront .tinv-wishlist .amount { color: var(--av-gold); }
.av-storefront .tinv-wishlist .tinvwl-remove,
.av-storefront .tinv-wishlist .product-remove a { color: var(--av-muted); }
.av-storefront .tinv-wishlist .tinvwl-remove:hover,
.av-storefront .tinv-wishlist .product-remove a:hover { color: var(--av-danger, #8E2B2B); }
.av-storefront .tinv-wishlist .button,
.av-storefront .tinv-wishlist button.button {
  background: var(--av-brand); color: var(--av-on-brand);
  border: 1px solid var(--av-brand); border-radius: var(--av-r-pill);
}
.av-storefront .tinv-wishlist .button:hover,
.av-storefront .tinv-wishlist button.button:hover { background: var(--av-gold); color: #0E0E0E; border-color: var(--av-gold); }

/* ---- Mobile RTL overflow safety net + gold (never pink) UI accents (P4) --- */
@media (max-width: 991px) {
  html.av-lang-ar body.av-storefront,
  body.av-storefront.single-product { overflow-x: clip; }
}
/* Native radios/checkboxes (size pickers, filters) resolve to gold, not blue/pink. */
.av-storefront input[type="radio"],
.av-storefront input[type="checkbox"],
.av-storefront input[type="range"] { accent-color: var(--av-gold); }
/* Any stray pink accent on the single-product summary → gold (accord BARS keep
   their own colours; those are set inline per-note and are untouched here). */
.av-storefront .single-product .summary .selected,
.av-storefront .single-product .summary .active { border-color: var(--av-gold); }

/* ===========================================================================
   POLISH PASS (v0.31) — cart cross-sell cards join the porcelain system.
   The empty-cart "وصل حديثًا" row renders WooCommerce *block-grid* cards
   (.wc-block-grid__product) with transparent backgrounds, so the studio-white
   bottle PNGs floated as bare white boxes on the espresso page while their
   titles sat cream-on-dark. Give them the same porcelain card + white photo
   well + umber ink + leather/gold button as the shop grid, so product cards
   read as ONE material on every page.
   =========================================================================== */
.av-storefront .wc-block-grid__products { gap: 24px; }
.av-storefront .wc-block-grid__product {
  background: #F5EFE3;
  border: 1px solid rgba(201,162,75,.22);
  border-radius: 18px;
  padding: .75rem .8rem 1rem;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset,
              0 12px 30px -16px rgba(14,11,8,.60);
  transition: transform .5s cubic-bezier(.22,1,.36,1),
              box-shadow .5s cubic-bezier(.22,1,.36,1),
              border-color .4s ease;
}
.av-storefront .wc-block-grid__product:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,75,.52);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset,
              0 22px 46px -18px rgba(14,11,8,.74);
}
.av-storefront .wc-block-grid__product-image {
  background: #fff; border-radius: 13px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23,20,17,.06);
  margin-bottom: .7rem;
}
/* Umber ink on porcelain — the titles/prices were cream (dark-page default). */
.av-storefront .wc-block-grid__product-title,
.av-storefront .wc-block-grid__product-price,
.av-storefront .wc-block-grid__product-price .amount,
.av-storefront .wc-block-grid__product-price .woocommerce-Price-currencySymbol {
  color: var(--av-ink-dark) !important;
}
.av-storefront .wc-block-grid__product-title { font-weight: 600; }
.av-storefront .wc-block-grid__product-price,
.av-storefront .wc-block-grid__product-price .amount { font-weight: 700; }
/* Primary button -> leather fill + gold text (matches the grid "اختار المقاس"). */
.av-storefront .wc-block-grid__product .wp-block-button__link {
  background: #0E0E0E !important; color: var(--av-gold) !important;
  border: 0; border-radius: 999px; padding: .62em 1.3em;
  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .82rem;
  transition: filter .2s ease, transform .2s ease;
}
.av-storefront .wc-block-grid__product .wp-block-button__link:hover {
  filter: brightness(1.1); transform: translateY(-1px);
}
/* Wishlist "أضف للمفضلة" link -> umber on porcelain. */
.av-storefront .wc-block-grid__product .tinvwl_add_to_wishlist-text,
.av-storefront .wc-block-grid__product .tinvwl_add_to_wishlist_button {
  color: var(--av-ink-dark) !important;
}

/* The empty-cart dots separator was near-invisible on espresso — make it a
   deliberate muted-gold divider instead of an apparent rendering artifact. */
.av-storefront .wp-block-separator.is-style-dots { color: rgba(201,162,75,.55); }
.av-storefront .wp-block-separator.is-style-dots::before {
  color: rgba(201,162,75,.55); letter-spacing: 1.2em; font-size: 1.1rem;
}

/* ---- Add-to-cart instant-feedback states (single-product Store-API add) ---- */
.av-add-to-cart-form { position: relative; }
.av-add-to-cart-form .av-btn.is-loading { opacity: .72; pointer-events: none; }
.av-add-to-cart-form .av-btn.is-added { background: var(--av-gold, #C9A24B); color: #14110D; }
.av-size-hint { color: var(--av-danger, #8E2B2B); font-weight: 600; font-size: .85rem; margin-top: .5rem; }

/* ===========================================================================
   MOBILE DRAWER — "obsidian glass sidebar" (v0.36)
   Reskin of the frosted-glass sidebar pattern onto AV leather / porcelain /
   gold, matched to the bottom glass dock. Overrides the earlier white drawer.
   Scoped to Woostify's off-canvas .sidebar-menu on small screens; !important
   is needed to beat the theme's own white panel + cream inheritance.
   =========================================================================== */
@media (max-width: 991px) {
  body.av-storefront .sidebar-menu {
    background: rgba(18, 15, 12, .86) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(201, 162, 75, .16);
    box-shadow: 0 0 60px -12px rgba(0, 0, 0, .7);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.av-storefront .sidebar-menu { background: #15110D !important; }
  }

  /* Search → dark glass pill with a gold submit + gold magnifier */
  body.av-storefront .sidebar-menu .site-search { margin-bottom: 1rem; }
  body.av-storefront .sidebar-menu .site-search input.search-field {
    background: rgba(0, 0, 0, .3) !important;
    border: 1px solid rgba(201, 162, 75, .26) !important;
    border-radius: 999px !important;
    color: #F0EADC !important; padding: .8em 1.1em !important;
  }
  body.av-storefront .sidebar-menu .site-search input.search-field::placeholder { color: rgba(240, 234, 220, .5) !important; }
  body.av-storefront .sidebar-menu .site-search button[type="submit"] {
    background: var(--av-gold) !important; color: #14110D !important; border: 0 !important;
    border-radius: 999px !important; font-weight: 700 !important;
  }
  body.av-storefront .sidebar-menu .site-search .search-form-icon .icon-search svg path { fill: var(--av-gold) !important; }

  /* Top-level items → porcelain on glass; current item gets a gold wipe + edge */
  body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a {
    color: #EDE7DB !important;
    border-bottom: 1px solid rgba(201, 162, 75, .1);
    border-radius: 12px; padding-inline: .7em;
    transition: color .25s var(--av-ease), background .25s var(--av-ease);
  }
  body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li > a:hover {
    color: var(--av-gold) !important; background: rgba(255, 255, 255, .05);
  }
  body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li.current-menu-item > a,
  body.av-storefront .sidebar-menu .main-navigation .primary-navigation > li.current-menu-ancestor > a {
    color: var(--av-gold) !important;
    background: linear-gradient(90deg, rgba(201, 162, 75, .20), rgba(201, 162, 75, .04));
    box-shadow: inset 3px 0 0 var(--av-gold);
  }

  /* Submenu → champagne, gold on hover, gold guide rule */
  body.av-storefront .sidebar-menu .primary-navigation .sub-menu { border-inline-start: 1px solid rgba(201, 162, 75, .22) !important; }
  body.av-storefront .sidebar-menu .primary-navigation .sub-menu li > a {
    color: #B9AF9C !important; border-radius: 10px;
    transition: color .2s var(--av-ease), background .2s var(--av-ease);
  }
  body.av-storefront .sidebar-menu .primary-navigation .sub-menu li > a:hover {
    color: var(--av-gold) !important; background: rgba(255, 255, 255, .05) !important;
  }

  /* Accordion arrow + any dividers read as champagne, not ink */
  body.av-storefront .sidebar-menu .primary-navigation > li.menu-item-has-children > a::after { color: rgba(240, 234, 220, .6); }
  body.av-storefront .sidebar-menu .search-field { color: #F0EADC !important; }
  body.av-storefront .sidebar-menu .search-field::placeholder { color: rgba(240, 234, 220, .5) !important; }
}
/* Off-canvas close (×): Woostify renders it as a bare .woostify-svg-icon
   .icon-close inside a classless <div> directly under <body>, only while
   html.sidebar-menu-open. Its svg path has a hardcoded fill, so force gold. */
html.sidebar-menu-open body.av-storefront > div > .woostify-svg-icon.icon-close,
html.sidebar-menu-open body.av-storefront > div > .woostify-svg-icon.icon-close svg,
html.sidebar-menu-open body.av-storefront > div > .woostify-svg-icon.icon-close svg path {
  color: var(--av-gold) !important; fill: var(--av-gold) !important;
}

/* ===========================================================================
 * MINI-CART DRAWER (#shop-cart-sidebar) — v0.37
 * Woostify engine kept intact (fragments + nonce'd AJAX qty + WC remove), this
 * is presentation only. Semantic --cart-* tokens point at the --av-* system so
 * the drawer follows whatever final palette is approved (not hard-locked).
 * Defect fixed: drawer was #fff while its title inherited cream → 1.1:1.
 * ======================================================================== */
body.av-storefront #shop-cart-sidebar {
  --cart-bg:        var(--av-surface, #161616);
  --cart-raised:    color-mix(in oklab, var(--cart-bg) 92%, #fff);
  --cart-line:      rgba(255, 255, 255, .12);
  --cart-line-ui:   #6E6E6E;               /* ≥3:1 for control boundaries */
  --cart-text:      #F2F2F2;               /* 16.9:1 on --cart-bg */
  --cart-muted:     #B3B3B3;               /* 9.2:1 */
  --cart-accent:    var(--av-gold, #C9A24B); /* 7.9:1 */
  --cart-on-accent: #121212;               /* 8.4:1 on accent */
  --cart-danger:    #F07075;               /* 6.3:1 */
  --cart-pad:       clamp(16px, 4vw, 24px);
  width: min(420px, 100vw);
  padding: 0;
  background: var(--cart-bg);
  color: var(--cart-text);
  display: flex; flex-direction: column; flex-wrap: nowrap;
  box-shadow: 0 0 48px rgba(0, 0, 0, .55);
}
@media (max-width: 599px) { body.av-storefront #shop-cart-sidebar { width: min(380px, 92vw); padding: 0; } }
body.av-storefront #shop-cart-sidebar,
body.av-storefront #shop-cart-sidebar p,
body.av-storefront #shop-cart-sidebar a,
body.av-storefront #shop-cart-sidebar .amount { color: var(--cart-text); }

/* Header: title + count pill + close, one row, no overlap */
body.av-storefront #shop-cart-sidebar .cart-sidebar-head {
  flex: 0 0 auto; height: auto; min-height: 64px;
  padding: 12px var(--cart-pad);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--cart-line);
  background: var(--cart-bg);
}
body.av-storefront #shop-cart-sidebar .cart-sidebar-title {
  margin: 0; font-family: var(--av-font-display); font-size: 1.15rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; color: var(--cart-text); line-height: 1.3;
}
body.av-storefront #shop-cart-sidebar .cart-sidebar-head .shop-cart-count {
  position: static; margin: 0; transform: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--cart-accent); color: var(--cart-on-accent);
  font-size: .78rem; font-weight: 700; line-height: 1; box-shadow: none;
}
body.av-storefront #shop-cart-sidebar #close-cart-sidebar-btn {
  position: static; transform: none; margin-inline-start: auto;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cart-text); background: transparent;
  transition: background-color .2s var(--av-ease), color .2s var(--av-ease);
}
body.av-storefront #shop-cart-sidebar #close-cart-sidebar-btn:hover { transform: none; background: var(--cart-raised); color: var(--cart-accent); }
body.av-storefront #shop-cart-sidebar #close-cart-sidebar-btn svg { width: 16px; height: 16px; fill: currentColor; }
body.av-storefront #shop-cart-sidebar #close-cart-sidebar-btn svg path { fill: currentColor; }

/* Body: scrollable item region + anchored footer */
body.av-storefront #shop-cart-sidebar .cart-sidebar-content {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; flex-wrap: nowrap;
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px var(--cart-pad); margin: 0;
  scrollbar-width: thin; scrollbar-color: var(--cart-line-ui) transparent;
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart::-webkit-scrollbar-track { background: transparent; }
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart::-webkit-scrollbar-thumb { background: var(--cart-line-ui); border-radius: 4px; }

/* Item row: image | name/size/qty+price | remove (logical props → RTL + LTR) */
body.av-storefront #shop-cart-sidebar .mini_cart_item {
  position: relative; min-height: 0;
  padding-block: 16px; padding-inline: 88px 40px;
  border-bottom: 1px solid var(--cart-line);
  line-height: 1.45;
}
body.av-storefront #shop-cart-sidebar .mini_cart_item:last-of-type { border-bottom: 0; }
body.av-storefront #shop-cart-sidebar .mini_cart_item img {
  position: absolute; left: auto; right: auto; inset-inline-start: 0; top: 16px;
  width: 72px; height: 72px; max-width: none; max-height: none;
  object-fit: contain; padding: 4px; box-sizing: border-box;
  background: #fff; border-radius: var(--av-r-sm, 8px); margin: 0;
}
body.av-storefront #shop-cart-sidebar .mini_cart_item > a:not(.remove) {
  display: block; min-height: 0; font-weight: 600; font-size: .95rem; line-height: 1.4;
  color: var(--cart-text); overflow-wrap: break-word; text-wrap: pretty;
}
body.av-storefront #shop-cart-sidebar .mini_cart_item > a:not(.remove):hover { color: var(--cart-accent); }
body.av-storefront #shop-cart-sidebar .mini_cart_item dl.variation {
  display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 4px 0 0; padding: 0; border: 0;
  font-size: .82rem; color: var(--cart-muted);
}
body.av-storefront #shop-cart-sidebar .mini_cart_item dl.variation dt,
body.av-storefront #shop-cart-sidebar .mini_cart_item dl.variation dd,
body.av-storefront #shop-cart-sidebar .mini_cart_item dl.variation p { margin: 0; padding: 0; float: none; color: var(--cart-muted); font-weight: 400; }
body.av-storefront #shop-cart-sidebar .mini_cart_item .mini-cart-product-infor {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px;
}
body.av-storefront #shop-cart-sidebar .mini-cart-product-price,
body.av-storefront #shop-cart-sidebar .mini-cart-product-price .amount { color: var(--cart-accent); font-weight: 700; white-space: nowrap; }

/* Quantity stepper — 36px controls in a 1px outlined pill */
body.av-storefront #shop-cart-sidebar .mini-cart-quantity {
  display: inline-flex; align-items: center; height: 36px;
  border: 1px solid var(--cart-line-ui); border-radius: 999px; overflow: hidden;
}
body.av-storefront #shop-cart-sidebar .mini-cart-product-qty {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--cart-text); transition: background-color .15s var(--av-ease);
}
body.av-storefront #shop-cart-sidebar .mini-cart-product-qty:hover { background: var(--cart-raised); color: var(--cart-accent); }
body.av-storefront #shop-cart-sidebar .mini-cart-product-qty[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
body.av-storefront #shop-cart-sidebar .mini-cart-product-qty svg { width: 10px; height: 10px; fill: currentColor; }
body.av-storefront #shop-cart-sidebar .mini-cart-quantity input.qty {
  width: 36px; height: 34px; padding: 0; margin: 0; border: 0; background: transparent;
  color: var(--cart-text); text-align: center; font-weight: 600; -moz-appearance: textfield;
}
body.av-storefront #shop-cart-sidebar .mini-cart-quantity input.qty::-webkit-inner-spin-button,
body.av-storefront #shop-cart-sidebar .mini-cart-quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Remove — 32px target at the inline end */
body.av-storefront #shop-cart-sidebar .mini_cart_item .remove_from_cart_button {
  position: absolute; left: auto; right: auto; inset-inline-end: 0; top: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; color: var(--cart-muted); background: transparent;
}
body.av-storefront #shop-cart-sidebar .mini_cart_item .remove_from_cart_button:hover { color: var(--cart-danger); background: var(--cart-raised); transform: none; }

/* Footer anchored: subtotal + actions */
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__bottom {
  flex: 0 0 auto; padding: 16px var(--cart-pad) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cart-line); background: var(--cart-bg);
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  height: auto; margin: 0 0 14px; padding: 0; border: 0;
  text-transform: none; font-size: .95rem; color: var(--cart-muted);
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__total strong { font-weight: 500; color: var(--cart-muted); }
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__total .amount { font-size: 1.25rem; font-weight: 700; color: var(--cart-text); }
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__buttons {
  display: flex; flex-direction: column; gap: 10px; margin: 0;
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__buttons a.button {
  width: 100%; min-height: 48px; margin: 0; padding: 12px 16px; border-radius: var(--av-r-pill, 999px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; text-transform: none; letter-spacing: 0; text-align: center;
  border: 1px solid var(--cart-line-ui); background: transparent; color: var(--cart-text);
  transition: background-color .2s var(--av-ease), color .2s var(--av-ease), border-color .2s var(--av-ease);
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__buttons a.button:hover { border-color: var(--cart-accent); color: var(--cart-accent); background: transparent; }
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__buttons a.button.checkout {
  order: -1; border: 1px solid var(--cart-accent); border-inline-start: 1px solid var(--cart-accent);
  background: var(--cart-accent); color: var(--cart-on-accent);
}
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__buttons a.button.checkout:hover { background: color-mix(in oklab, var(--cart-accent) 85%, #fff); color: var(--cart-on-accent); }
body.av-storefront #shop-cart-sidebar a:focus-visible,
body.av-storefront #shop-cart-sidebar button:focus-visible,
body.av-storefront #shop-cart-sidebar [role="button"]:focus-visible,
body.av-storefront #shop-cart-sidebar input:focus-visible { outline: 2px solid var(--cart-accent); outline-offset: 2px; }

/* Empty state */
body.av-storefront #shop-cart-sidebar .cart-sidebar-content.is-cart-empty { justify-content: center; align-items: center; padding: 32px var(--cart-pad); text-align: center; }
body.av-storefront #shop-cart-sidebar .woocommerce-mini-cart__empty-message { color: var(--cart-muted); font-size: 1rem; margin: 0 0 16px; }
body.av-storefront #shop-cart-sidebar .is-cart-empty a.button,
body.av-storefront #shop-cart-sidebar .av-cart-empty-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
  border-radius: 999px; background: var(--cart-accent); color: var(--cart-on-accent); font-weight: 700; text-decoration: none;
}

/* Loading (Woostify toggles body.updating-cart during AJAX) + error */
body.av-storefront.updating-cart #shop-cart-sidebar .woocommerce-mini-cart,
body.av-storefront.updating-cart #shop-cart-sidebar .woocommerce-mini-cart__bottom { opacity: .55; pointer-events: none; transition: opacity .2s; }
body.av-storefront #shop-cart-sidebar .av-cart-msg {
  margin: 10px var(--cart-pad) 0; padding: 10px 12px; border-radius: 10px; font-size: .88rem;
  border: 1px solid var(--cart-line-ui); color: var(--cart-text); background: var(--cart-raised);
}
body.av-storefront #shop-cart-sidebar .av-cart-msg[data-type="error"] { border-color: var(--cart-danger); color: var(--cart-danger); }
@media (prefers-reduced-motion: reduce) {
  body.av-storefront #shop-cart-sidebar, body.av-storefront #shop-cart-sidebar * { transition: none !important; }
}

/* ===========================================================================
 * CHECKOUT — colour + contrast pass (owner token spec), scoped to checkout.
 * Contrast (WCAG): text #F2F2F2 16.8:1 on bg / 15.2:1 on surface; muted
 * #B3B3B3 9.0 / 8.1; gold #D4A64A 8.4 / 7.6; danger #E5484D 4.8 on bg;
 * ink #121212 on gold 8.4; control ring #6E6E6E 3.7 / 3.3 (≥3:1, 1.4.11).
 * ======================================================================== */
body.woocommerce-checkout {
  --bg: #121212; --surface: #1C1C1C; --border: #3A3A3A; --border-ui: #6E6E6E;
  --text: #F2F2F2; --text-muted: #B3B3B3;
  --gold: #D4A64A; --gold-hover: #E6BC66; --danger: #E5484D;
  --gold-ring: 0 0 0 3px rgba(212, 166, 74, .25);
}
body.woocommerce-checkout, body.woocommerce-checkout #page, body.woocommerce-checkout .site-content { background-color: var(--bg); }
body.woocommerce-checkout .woocommerce { color: var(--text); }
body.woocommerce-checkout .woocommerce h3,
body.woocommerce-checkout #order_review_heading { color: var(--text); }

/* 5 — field labels muted, required asterisk danger */
body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-checkout .woocommerce form .form-row label.screen-reader-text + * { color: var(--text-muted); font-weight: 500; }
body.woocommerce-checkout .woocommerce form .form-row .required,
body.woocommerce-checkout .woocommerce abbr.required { color: var(--danger); text-decoration: none; border: 0; }

/* 6 — inputs, selects, Select2 */
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row textarea,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .woocommerce form .checkout_coupon input.input-text {
  background-color: var(--surface); color: var(--text);
  border: 1px solid var(--border-ui); border-radius: 10px; box-shadow: none;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single { height: auto; min-height: 46px; display: flex; align-items: center; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text); line-height: 1.4; padding-inline: 12px 32px; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-muted); }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b { border-top-color: var(--text-muted); }
body.woocommerce-checkout .woocommerce form .form-row ::placeholder { color: var(--text-muted); opacity: 1; }
body.woocommerce-checkout .woocommerce form .form-row input.input-text:focus,
body.woocommerce-checkout .woocommerce form .form-row textarea:focus,
body.woocommerce-checkout .woocommerce form .form-row select:focus,
body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--gold); box-shadow: var(--gold-ring); outline: none;
}
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.woocommerce-checkout .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: var(--danger); }
/* Select2 panel is appended to <body>, outside the form */
body.woocommerce-checkout .select2-dropdown { background: var(--surface); border: 1px solid var(--gold); color: var(--text); }
body.woocommerce-checkout .select2-search--dropdown .select2-search__field { background: var(--bg); color: var(--text); border: 1px solid var(--border-ui); border-radius: 8px; }
body.woocommerce-checkout .select2-results__option { color: var(--text); }
body.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected="true"],
body.woocommerce-checkout .select2-container--default .select2-results__option--selected { background: rgba(212, 166, 74, .14); color: var(--gold); }
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted { background: var(--gold); color: #121212; }

/* 2/3/4 — order review */
body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td { border-color: var(--border); background: transparent; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table thead th { color: var(--text-muted); }
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name * { color: var(--text); }
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name .product-quantity { color: var(--text-muted); }
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td,
body.woocommerce-checkout .woocommerce-shipping-totals label { color: var(--text-muted); font-weight: 500; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th { color: var(--text); font-weight: 700; }
body.woocommerce-checkout .woocommerce .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce .amount,
body.woocommerce-checkout .woocommerce .woocommerce-Price-currencySymbol { color: var(--gold); }
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount { font-size: 1.35em; font-weight: 800; }

/* 1/7/8/10 — payment box */
body.woocommerce-checkout #payment {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: var(--text);
}
body.woocommerce-checkout #payment ul.payment_methods {
  margin: 0; padding: 16px; border-bottom: 1px solid var(--border); list-style: none;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; transition: border-color .2s, background-color .2s;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:last-child { margin-bottom: 0; }
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(> input:checked) {
  border-color: var(--gold); background: rgba(212, 166, 74, .08);
}
body.woocommerce-checkout #payment ul.payment_methods li > label {
  display: inline-flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  vertical-align: middle; margin: 0; color: var(--text); font-weight: 500; cursor: pointer;
}
body.woocommerce-checkout #payment ul.payment_methods li > input:checked + label { color: var(--gold); font-weight: 600; }
body.woocommerce-checkout #payment ul.payment_methods li > label img {
  box-sizing: border-box; width: 72px; height: 40px; max-height: none; margin: 0; margin-inline-start: auto;
  padding: 6px 8px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--border);
  opacity: 1 !important; filter: none !important; float: none;
}
body.woocommerce-checkout #payment div.payment_box {
  margin: 10px 0 0; padding: 12px 14px; border-radius: 8px;
  background: var(--bg); color: var(--text-muted); font-size: .9rem;
}
body.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--bg); }
body.woocommerce-checkout #payment div.payment_box input.input-text { background: var(--surface); color: var(--text); border: 1px solid var(--border-ui); }
body.woocommerce-checkout #payment div.form-row.place-order { margin: 0; padding: 16px; border-top: 0; background: transparent; }
/* Radios: ring (≥3:1) unselected, gold fill selected */
body.woocommerce-checkout #payment input[type="radio"],
body.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 18px; height: 18px; margin: 0; margin-inline-end: 8px; vertical-align: middle;
  border: 2px solid var(--border-ui); border-radius: 50%; background: transparent; cursor: pointer;
  display: inline-grid; place-content: center;
}
body.woocommerce-checkout #payment input[type="radio"]::before,
body.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .15s;
}
body.woocommerce-checkout #payment input[type="radio"]:checked,
body.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"]:checked { border-color: var(--gold); }
body.woocommerce-checkout #payment input[type="radio"]:checked::before,
body.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"]:checked::before { transform: scale(1); }
body.woocommerce-checkout input[type="radio"]:focus-visible,
body.woocommerce-checkout input[type="checkbox"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.woocommerce-checkout #payment #place_order {
  width: 100%; min-height: 52px; border-radius: 999px; border: 0;
  background: var(--gold); color: #121212; font-weight: 800; font-size: 1rem;
}
body.woocommerce-checkout #payment #place_order:hover { background: var(--gold-hover); }
body.woocommerce-checkout #payment #place_order:disabled,
body.woocommerce-checkout.processing #payment #place_order { opacity: .6; cursor: progress; }

/* 11 — privacy text, links, coupon toggle */
body.woocommerce-checkout .woocommerce-privacy-policy-text,
body.woocommerce-checkout .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { color: var(--text-muted); }
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { color: var(--gold); }
body.woocommerce-checkout .woocommerce a:not(.button) { color: var(--gold); text-decoration: none; }
body.woocommerce-checkout .woocommerce a:not(.button):hover { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
  body.woocommerce-checkout #payment ul.payment_methods { padding: 12px; }
  body.woocommerce-checkout #payment ul.payment_methods li > label img { width: 64px; height: 36px; }
}

/* Checkout specificity fixes (measured): */
/* page bg — beats body.av-storefront:not(.home) */
body.av-storefront.woocommerce-checkout,
body.av-storefront.woocommerce-checkout #page,
body.av-storefront.woocommerce-checkout .site-content { background-color: var(--bg); }
/* Woostify layout-3 floating labels sit on the input border with a hard #fff
   notch → muted-on-white was 2.1:1. Notch now matches the input surface. */
body.woocommerce-checkout.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:not(.field-readonly) label:not(.checkbox) {
  background: var(--surface); color: var(--text-muted);
}
/* Order review: theme selectors outrank class-only rules → anchor on #order_review */
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name a,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name dl,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name dd,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name dt { color: var(--text); }
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table td.product-name .product-quantity { color: var(--text-muted); }
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table thead th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tfoot td,
body.woocommerce-checkout #order_review .woocommerce-shipping-totals label { color: var(--text-muted); }
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table tr.order-total th { color: var(--text); font-weight: 700; }
body.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .amount { color: var(--gold); }

/* ===========================================================================
 * v0.38 — RTL checkout layout + homepage note cards (root-cause fixes)
 * ======================================================================== */

/* Note cards: av-book-design.css sizes the PDP notes widget `.av-note{width:4.6rem}`;
   the homepage card shares the class, so cards shrank to ~64px inside 114px+
   cells and Arabic words broke mid-word. Fill the cell; never split a word. */
body.home.av-storefront .av-notes__grid { max-width: 1000px; margin-inline: auto; }
body.home.av-storefront .av-notes__grid .av-note { width: auto; min-width: 0; padding-inline: .5rem; }
body.home.av-storefront .av-note__label,
body.home.av-storefront .av-note__label .av-ar,
body.home.av-storefront .av-note__label .av-en { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; hyphens: none; }
@media (min-width: 561px) and (max-width: 900px) {
  body.home.av-storefront .av-notes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Checkout 1 — Fawaterak wallet field inside the payment box: Woostify's
   layout-3 floating label (position:absolute) collapsed the input under it.
   Payment-box fields get a stacked label → input instead. */
body.woocommerce-checkout #payment .payment_box .form-row {
  display: flex; flex-direction: column; gap: 6px; float: none; width: 100%; margin: 4px 0 0; padding: 0;
}
body.woocommerce-checkout.checkout-layout-3:not(.woobuilder-active) form.checkout #payment .payment_box .form-row label,
body.woocommerce-checkout #payment .payment_box .form-row label {
  position: static; transform: none; inset: auto; order: -1; margin: 0; padding: 0;
  background: none; color: var(--text-muted); font-size: .88rem; line-height: 1.4; text-align: start; pointer-events: auto;
}
body.woocommerce-checkout #payment .payment_box .woocommerce-input-wrapper { display: block; width: 100%; }
body.woocommerce-checkout #payment .payment_box input.input-text {
  width: 100%; min-height: 46px; padding: 10px 12px; box-sizing: border-box;
  background: var(--surface); color: var(--text); border: 1px solid var(--border-ui); border-radius: 10px;
  direction: ltr; text-align: start; unicode-bidi: plaintext;   /* phone digits read LTR */
}
body.woocommerce-checkout #payment .payment_box input.input-text:focus { border-color: var(--gold); box-shadow: var(--gold-ring); outline: none; }

/* Checkout 2 — the floating "empty box": Woo's speech-bubble arrow + an empty
   payment box. No arrow; empty boxes take no space. */
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout #payment div.payment_box:empty,
body.woocommerce-checkout #payment div.payment_box:not(:has(*)):not(:has(p)) { display: none !important; }

/* Checkout 3 — untranslated English inside dir=rtl containers put "?" and "."
   on the wrong side. plaintext = each paragraph takes the direction of its own
   first strong character, so Arabic stays RTL and English reads LTR. */
body.woocommerce-checkout .woocommerce-privacy-policy-text p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper p,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text,
body.woocommerce-checkout #ship-to-different-address span,
body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-checkout .woocommerce-shipping-totals td,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout #payment .payment_box p { unicode-bidi: plaintext; text-align: start; }

/* Checkout 4 — layout-3 floats every label over its field; on Select2 fields
   (State, Country) it sat on top of "Select an option". Select fields get a
   stacked label above the control. */
body.woocommerce-checkout.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:has(.select2-container) label:not(.checkbox),
body.woocommerce-checkout.checkout-layout-3:not(.woobuilder-active) form.checkout .col-left .form-row:has(select) label:not(.checkbox) {
  position: static; transform: none; inset: auto; display: block;
  margin: 0 0 6px; padding: 0; background: none; font-size: .88rem; line-height: 1.4; color: var(--text-muted);
}

/* Checkout 5 — single title: keep the billing heading in normal flow. */
body.woocommerce-checkout .woocommerce-billing-fields > h3 { position: static; color: var(--text); }

/* Sold-out PDP button: readable, clearly non-interactive (v0.39) */
.av-storefront .av-btn.av-btn--soldout,
.av-storefront .av-btn.av-btn--soldout:hover {
  background: transparent; color: #B3B3B3; border: 1px dashed #6E6E6E; cursor: not-allowed; box-shadow: none; transform: none;
}

/* Cart / checkout CLS (v0.40): the WC cart/checkout blocks hydrate client-side,
   and every re-render pushed the footer, which sat inside the first viewport on
   mobile (CLS ≈0.6). Reserve a full viewport for the content so the footer starts
   below the fold and the block can settle without shifting anything visible. */
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content { min-block-size: 100vh; min-block-size: 100svh; }
.wp-block-woocommerce-cart.is-loading,
.wp-block-woocommerce-checkout.is-loading { min-block-size: 60vh; }
/* Woostify checkout-layout-3 moves top notices into the form's NoticeGroup on
   DOMContentLoaded (as a new element) and removes the original → a 30–80px jump.
   With JS on, never paint them in the old spot; the relocated copy still shows. */
body.woocommerce-js.checkout-layout-3 #primary .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-js.checkout-layout-3 #primary .woocommerce > .woocommerce-info { display: none; }

/* ===========================================================================
   v0.41 — client fix list
   =========================================================================== */
/* §6/§7 — dark canvas everywhere (no white overscroll), and no second scroller:
   overflow-x:clip clips sideways bleed WITHOUT turning #view into a scroll box
   (overflow-x:hidden forced overflow-y:auto → the extra scrollbar on card hover). */
html { background: var(--av-bg); }
html, body { overflow-x: clip; }
#view, #page, .site, .site-content { overflow-x: clip !important; overflow-y: visible !important; }
.av-hero, .av-collections, .av-notes, .av-find, .av-closer { max-inline-size: 100%; }

/* §7 — flat lift on hover (pointer devices only), no 3D */
.av-storefront ul.products li.product,
.av-storefront ul.products li.product.av-tilt { transform: none; perspective: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .av-storefront ul.products li.product { transition: transform .25s var(--av-ease), box-shadow .25s var(--av-ease); }
  .av-storefront ul.products li.product:hover,
  .av-storefront.woocommerce ul.products li.product:hover { transform: translateY(-4px) !important; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
  .av-storefront ul.products li.product:hover img,
  .av-storefront ul.products li.product.av-tilt:hover img.product-loop-image { transform: scale(1.03) !important; }
}

/* §8 — product lists: real columns, cards fill their track, list spans the
   same width as the section header (first card at the start edge, last card
   at the "view all" edge). 4 / 3 / 2 / 2 columns. */
.av-storefront ul.products,
.avfb-grid ul.products {
  --cols: 4; --g: clamp(12px, 1.6vw, 20px);
  display: grid !important; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)) !important;
  gap: var(--g) !important; margin: 0 !important; padding: 0 !important; inline-size: 100%;
}
.av-storefront ul.products::before, .av-storefront ul.products::after { content: none !important; display: none !important; }
.av-storefront ul.products > li.product,
.avfb-grid ul.products > li.product {
  inline-size: auto !important; width: auto !important; max-width: none !important; min-width: 0;
  margin: 0 !important; float: none !important; clear: none !important;
}
.av-storefront .woocommerce.columns-4, .av-storefront .woocommerce[class*="columns-"],
.av-storefront .avfb-grid { padding-inline: 0 !important; margin-inline: 0 !important; max-inline-size: none; inline-size: 100%; }
@media (max-width: 1199px) { .av-storefront ul.products, .avfb-grid ul.products { --cols: 3; } }
@media (max-width: 991px)  { .av-storefront ul.products, .avfb-grid ul.products { --cols: 2; } }
/* card titles: two full lines, never clipped */
.av-storefront ul.products li.product .woocommerce-loop-product__title,
.av-storefront ul.products li.product .avfb-name,
.avfb-grid .avfb-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; block-size: auto !important; max-block-size: none !important; min-block-size: 2.6em;
  line-height: 1.3; white-space: normal !important; text-overflow: ellipsis;
}

/* §10 — header search + language inside the header row */
.site-header .site-tools { display: flex; align-items: center; gap: .6rem; }
.av-searchband { display: none !important; }
.av-hsearch { position: relative; display: flex; align-items: center; }
.av-hsearch__toggle { display: none; background: none; border: 0; color: inherit; padding: 6px; min-inline-size: 40px; min-block-size: 40px; cursor: pointer; }
.av-hsearch .av-search {
  display: flex; align-items: center; gap: .4rem; margin: 0;
  inline-size: clamp(200px, 22vw, 300px); padding-block: 2px; padding-inline: .7rem 3px;
  background: #1A1A1A; border: 1px solid rgba(245,239,227,.18); border-radius: 999px; box-shadow: none;
  transition: inline-size .3s var(--av-ease), border-color .2s var(--av-ease);
}
.av-hsearch .av-search:focus-within { inline-size: clamp(260px, 30vw, 400px); border-color: rgba(201,162,75,.7); }
.av-hsearch .av-search__icon { color: #B3B3B3; display: inline-flex; }
.av-hsearch .av-search__field {
  flex: 1; min-inline-size: 0; border: 0 !important; background: transparent !important; color: #F2F2F2 !important;
  font-size: .92rem; padding: .45rem 0 !important; box-shadow: none !important; outline: none;
}
.av-hsearch .av-search__field::placeholder { color: #9A9A9A; opacity: 1; }
.av-hsearch .av-search__submit {
  border: 0; border-radius: 999px; background: var(--av-gold); color: #121212; font-weight: 700;
  font-size: .85rem; padding: .42rem .9rem; cursor: pointer; white-space: nowrap;
}
.av-hsearch .av-search__submit:hover { background: #E6BC66; }
.site-header .av-lang { flex: none; }
.site-header .av-lang__btn { min-block-size: 32px; padding-inline: .6rem; font-size: .8rem; }
@media (max-width: 1023px) {
  .av-hsearch__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .av-hsearch .av-search {
    position: fixed; inset-inline: 10px; inset-block-start: 64px; z-index: 1001; inline-size: auto !important;
    padding: 6px 6px 6px 12px; padding-inline: 12px 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s var(--av-ease), transform .2s var(--av-ease), visibility 0s linear .2s;
  }
  .av-hsearch.is-open .av-search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .av-hsearch .av-search__field { font-size: 16px; }   /* no iOS zoom */
  /* phones: show only the language you can switch TO */
  .site-header .av-lang { border: 0; }
  .site-header .av-lang__btn.is-active { display: none; }
  .site-header .av-lang__btn { border: 1px solid rgba(245,239,227,.28); border-radius: 999px; min-inline-size: 40px; }
}
/* one search UI: Woostify's own dialog stays off */
.site-dialog-search, .dialog-search-content, .header-search-icon { display: none !important; }

/* §10 — dropdowns are dark (desktop nav, mobile drawer, every select) */
.site-header .sub-menu,
.main-navigation .primary-navigation .sub-menu,
.av-storefront .main-navigation .primary-navigation .sub-menu {
  background: #161412 !important; border: 1px solid rgba(201,162,75,.35) !important;
  border-radius: 12px !important; box-shadow: 0 18px 44px rgba(0,0,0,.5) !important; inset-inline-start: 0; inset-inline-end: auto;
}
.site-header .sub-menu a,
.main-navigation .primary-navigation .sub-menu a { color: var(--av-ink) !important; background: transparent !important; }
.site-header .sub-menu a:hover, .site-header .sub-menu a:focus-visible,
.main-navigation .primary-navigation .sub-menu a:hover { color: var(--av-gold) !important; background: rgba(201,162,75,.08) !important; }
.sidebar-menu, .sidebar-menu .sub-menu { background: #121212 !important; }
.sidebar-menu a { color: var(--av-ink) !important; }
.av-storefront select, .tinv-wishlist select, .woocommerce select {
  color-scheme: dark; background-color: #1C1C1C !important; color: #F2F2F2 !important; border: 1px solid #3A3A3A !important;
}

/* §11 — WhatsApp + scroll-to-top in one stack at inline-end, above the bottom nav */
:root { --av-fab-bottom: 20px; }
@media (max-width: 991px) { :root { --av-fab-bottom: calc(var(--av-botnav-h) + var(--av-botnav-gap) * 2 + 14px + env(safe-area-inset-bottom, 0px)); } }
.av-wa-fab, [dir="rtl"] .av-wa-fab { inset-inline-end: 20px !important; inset-inline-start: auto !important; left: auto; right: auto; bottom: var(--av-fab-bottom) !important; inset-block-end: var(--av-fab-bottom) !important; }
#scroll-to-top, #scroll-to-top.scroll-to-top-position-right, #scroll-to-top.scroll-to-top-position-left {
  left: auto !important; right: auto !important; inset-inline-end: 28px !important; inset-inline-start: auto !important;
  bottom: calc(var(--av-fab-bottom) + 56px + 12px) !important; z-index: 399;
  background: #1C1C1C !important; color: var(--av-gold) !important; border: 1px solid rgba(201,162,75,.4); border-radius: 50%;
}

/* §6 — footer */
.av-footer { background: #0B0B0B; color: #CFC8BB; border-block-start: 1px solid rgba(201,162,75,.22); }
.av-footer__inner {
  max-inline-size: 1200px; margin-inline: auto; padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 32px) 28px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px);
}
.av-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.av-footer__seal { inline-size: 52px; block-size: 52px; }
.av-footer__name { font-family: var(--av-font-display); font-size: 1.25rem; color: #F5EFE3; letter-spacing: .02em; }
.av-footer__tag { margin: 0; max-inline-size: 34ch; line-height: 1.7; color: #B3B3B3; text-align: start; unicode-bidi: plaintext; }
.av-footer__social { display: flex; gap: .5rem; margin-block-start: .3rem; }
.av-footer__social a { inline-size: 40px; block-size: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(201,162,75,.35); color: var(--av-gold); transition: background .2s var(--av-ease), color .2s var(--av-ease); }
.av-footer__social a:hover { background: var(--av-gold); color: #121212; }
.av-footer__h { font-family: var(--av-font-display); font-size: 1rem; color: #F5EFE3; margin: 0 0 .9rem; font-weight: 600; }
.av-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.av-footer__col a { color: #CFC8BB; text-decoration: none; font-size: .95rem; }
.av-footer__col a:hover, .av-footer__col a:focus-visible { color: var(--av-gold); text-decoration: underline; text-underline-offset: 3px; }
.av-footer__bar {
  max-inline-size: 1200px; margin-inline: auto; padding: 18px clamp(16px, 4vw, 32px) 22px;
  border-block-start: 1px solid rgba(245,239,227,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .85rem; color: #9A9A9A;
}
@media (max-width: 860px) {
  .av-footer__inner { grid-template-columns: 1fr 1fr; }
  .av-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 991px) { .av-footer { padding-block-end: 8px; } }
.av-footer-brand { display: none !important; }      /* superseded by .av-footer__brand */
.elementor-5359 { display: none !important; }        /* old Elementor footer, if anything still prints it */

/* §12 — wishlist page */
.tinv-wishlist, .tinv-wishlist .tinv-header, .tinv-wishlist form { inline-size: 100%; max-inline-size: 100%; }
.tinv-wishlist table.tinvwl-table-manage-list { inline-size: 100% !important; background: transparent; color: #F2F2F2; border-color: #3A3A3A; }
.tinv-wishlist table th, .tinv-wishlist table td { background: transparent !important; color: #F2F2F2 !important; border-color: #2A2A2A !important; text-align: start; }
.tinv-wishlist table th { color: #B3B3B3 !important; font-weight: 600; font-size: .85rem; }
.tinv-wishlist .product-price, .tinv-wishlist .product-date, .tinv-wishlist .amount { unicode-bidi: isolate; direction: ltr; display: inline-block; }
.tinv-wishlist .product-name a { color: #F5EFE3 !important; }
.tinv-wishlist button, .tinv-wishlist .button, .tinv-wishlist input[type="submit"] {
  background: var(--av-gold) !important; color: #121212 !important; border: 0 !important; border-radius: 999px !important; font-weight: 700;
}
.tinv-wishlist .social-buttons a, .tinv-wishlist .tinvwl-social-buttons a { color: var(--av-gold) !important; border: 1px solid rgba(201,162,75,.35); border-radius: 50%; }
@media (max-width: 768px) {
  .tinv-wishlist table.tinvwl-table-manage-list thead { display: none; }
  .tinv-wishlist table.tinvwl-table-manage-list tbody tr.wishlist_item {
    display: grid; grid-template-columns: 84px 1fr auto; gap: .35rem .8rem; align-items: center;
    padding: 14px; margin-block-end: 12px; border: 1px solid #2A2A2A; border-radius: 14px; background: #161616;
  }
  .tinv-wishlist table.tinvwl-table-manage-list tbody td { display: block; border: 0 !important; padding: 0 !important; }
  .tinv-wishlist table td.product-cb, .tinv-wishlist table td.product-date { display: none !important; }
  .tinv-wishlist table td.product-thumbnail { grid-row: span 3; }
  .tinv-wishlist table td.product-remove { grid-column: 3; grid-row: 1; }
  .tinv-wishlist table td.product-name, .tinv-wishlist table td.product-price, .tinv-wishlist table td.product-stock { grid-column: 2; }
  .tinv-wishlist table td.product-action { grid-column: 2 / -1; }
}
/* TI popups / modals: dark, readable */
.tinv-modal .tinv-modal-inner, .tinvwl_added_to_wishlist.tinv-modal .tinv-modal-inner {
  background: #1C1C1C !important; color: #F2F2F2 !important; border: 1px solid rgba(201,162,75,.35); border-radius: 14px;
}
.tinv-modal .tinv-modal-inner *, .tinv-modal .tinv-txt { color: #F2F2F2 !important; }
.tinv-modal .tinv-modal-inner button, .tinv-modal .tinv-modal-inner .button { background: var(--av-gold) !important; color: #121212 !important; border-radius: 999px !important; }
.tinv-modal .tinv-modal-inner .tinv-close-modal, .tinv-modal .tinv-modal-inner .tinvwl_button_close { background: transparent !important; color: #F2F2F2 !important; border: 1px solid #6E6E6E !important; }

/* PDP quantity stepper + shared toast (v0.41) */
.av-add-to-cart-form { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.av-add-to-cart-form .av-btn-primary { flex: 1 1 12rem; }
.av-qty { display: inline-flex; align-items: center; border: 1.5px solid rgba(201,162,75,.6); border-radius: 999px; overflow: hidden; }
.av-qty__btn { inline-size: 44px; block-size: 48px; border: 0; background: transparent; color: inherit; font-size: 1.25rem; cursor: pointer; }
.av-qty__btn:hover { background: rgba(201,162,75,.12); }
.av-qty__n { inline-size: 2.8rem; block-size: 48px; border: 0 !important; background: transparent !important; color: inherit !important; text-align: center; font: inherit; font-weight: 700; padding: 0 !important; -moz-appearance: textfield; appearance: textfield; box-shadow: none !important; }
.av-qty__n::-webkit-outer-spin-button, .av-qty__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.av-qty__btn:focus-visible, .av-qty__n:focus-visible { outline: 2px solid var(--av-gold); outline-offset: -2px; }
.av-toast {
  position: fixed; z-index: 450; inset-inline: 16px; inset-block-end: calc(var(--av-fab-bottom, 20px) + 70px);
  margin-inline: auto; max-inline-size: 420px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(201,162,75,.45); background: #1C1C1C; color: #F2F2F2;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s var(--av-ease), transform .25s var(--av-ease);
}
.av-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.av-toast__a { color: #E6BC66; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .av-toast { transition: none; } }

/* §13 — the inactive language never shows, whatever the component's own display rule */
html.av-lang-ar .av-en, html.av-lang-ar [lang="en"].av-en { display: none !important; }
html.av-lang-en .av-ar, html.av-lang-en [lang="ar"].av-ar { display: none !important; }
/* mixed-direction runs (prices, sizes, dates, ratings) never reorder */
.woocommerce-Price-amount, .avfb-size__v, .avfb-size__p, .avfb-rating-value, .av-pill-price, .tinv-wishlist .product-date { unicode-bidi: isolate; }
#colophon.site-footer { background: #0B0B0B !important; padding: 0 !important; margin: 0; border: 0; }
#colophon.site-footer > .woostify-container { max-inline-size: none; padding: 0; inline-size: 100%; }
.tinv-wishlist button[name="tinvwl-action-product_selected"],
.tinv-wishlist button[name="tinvwl-action-product_all"] { display: none !important; }

/* Mini-cart − / + : visible glyphs (Woostify's 10px icons were near-invisible) */
body.av-storefront #shop-cart-sidebar .mini-cart-product-qty svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }

/* /cart/ — WooCommerce Cart block on the dark, RTL-aware storefront */
.wp-block-woocommerce-cart { color: var(--av-ink); }
.wp-block-woocommerce-cart .wc-block-cart-items { border-collapse: separate; border-spacing: 0 10px; }
.wp-block-woocommerce-cart .wc-block-cart-items__header th { color: #B3B3B3; font-weight: 600; font-size: .85rem; text-align: start; border-color: #2A2A2A; }
.wp-block-woocommerce-cart .wc-block-cart-items__row > td { background: #161616; border-block: 1px solid #2A2A2A !important; padding: 14px !important; vertical-align: top; }
.wp-block-woocommerce-cart .wc-block-cart-items__row > td:first-child { border-inline-start: 1px solid #2A2A2A !important; border-start-start-radius: 14px; border-end-start-radius: 14px; }
.wp-block-woocommerce-cart .wc-block-cart-items__row > td:last-child { border-inline-end: 1px solid #2A2A2A !important; border-start-end-radius: 14px; border-end-end-radius: 14px; }
.wp-block-woocommerce-cart .wc-block-cart-item__image img { border-radius: 10px; background: #fff; }
.wp-block-woocommerce-cart .wc-block-components-product-name { color: #F5EFE3 !important; font-weight: 700; text-decoration: none; }
.wp-block-woocommerce-cart .wc-block-cart-item__total { text-align: end; }
.wp-block-woocommerce-cart .wc-block-formatted-money-amount,
.wp-block-woocommerce-cart .wc-block-components-product-price { white-space: nowrap; unicode-bidi: isolate; direction: ltr; display: inline-block; }
.wp-block-woocommerce-cart .wc-block-components-product-details { color: #B3B3B3; font-size: .9rem; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector { border: 1px solid #6E6E6E !important; border-radius: 999px !important; background: transparent; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after { border: 0 !important; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector input { color: #F2F2F2 !important; background: transparent !important; }
.wp-block-woocommerce-cart .wc-block-components-quantity-selector__button { color: #F2F2F2 !important; min-inline-size: 40px; }
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link { color: #F07075 !important; font-size: .85rem; }
.wp-block-woocommerce-cart .wc-block-cart__sidebar,
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-order-summary-block { background: #161616 !important; border: 1px solid #2A2A2A; border-radius: 16px; padding: 16px !important; color: var(--av-ink); }
.wp-block-woocommerce-cart .wc-block-components-totals-item__label, .wp-block-woocommerce-cart .wc-block-components-totals-item__value { color: #F2F2F2; }
.wp-block-woocommerce-cart .wc-block-components-totals-item__description { color: #B3B3B3; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button { background: var(--av-gold) !important; color: #121212 !important; border-radius: 999px !important; font-weight: 800; border: 0 !important; }
.wp-block-woocommerce-cart .wc-block-cart__submit-button:hover { background: #E6BC66 !important; }
.wp-block-woocommerce-cart .wc-block-components-panel__button, .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button { color: var(--av-gold) !important; }
@media (max-width: 600px) {
  .wp-block-woocommerce-cart .wc-block-cart-items__row { display: grid !important; grid-template-columns: 80px 1fr; gap: 10px; background: #161616; border: 1px solid #2A2A2A; border-radius: 14px; padding: 12px; margin-block-end: 10px; }
  .wp-block-woocommerce-cart .wc-block-cart-items__row > td { background: transparent; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
  .wp-block-woocommerce-cart .wc-block-cart-item__total { grid-column: 2; text-align: start; }
}

/* ===========================================================================
   v0.42 — compact header: one arrow per item, icons grouped, search on click
   =========================================================================== */
/* one arrow: desktop keeps our ::after, hides Woostify's SVG; the mobile drawer keeps
   Woostify's (it is the tap target that opens the submenu) and drops ours */
@media (min-width: 992px) {
  .site-header .main-navigation .primary-navigation .menu-item-arrow { display: none !important; }
}
@media (max-width: 991px) {
  .av-storefront .sidebar-menu .primary-navigation > li.menu-item-has-children > a::after { content: none !important; display: none !important; }
}
/* narrower header row */
.site-header .site-header-inner { padding-block: 4px !important; }
.site-header .woostify-container { min-block-size: 0; }
.site-header .site-branding img, .site-header .custom-logo { max-block-size: 44px; inline-size: auto; }
@media (min-width: 992px) {
  .site-header .main-navigation .primary-navigation > li > a { padding-inline: .7rem !important; padding-block: 1.1rem !important; font-size: .95rem; }
}
/* icons together: language first, then search · wishlist · cart */
.site-header .site-tools { gap: .25rem !important; }
.site-header .site-tools > .av-lang { order: -2; margin-inline-end: .5rem; }
.site-header .site-tools > .av-hsearch { order: -1; }
.site-header .site-tools .tools-icon { margin: 0 !important; padding: 6px !important; min-inline-size: 40px; min-block-size: 40px; display: inline-flex; align-items: center; justify-content: center; }
/* search = icon at every width; the bar opens under the header on click */
.av-hsearch__toggle { display: inline-flex !important; align-items: center; justify-content: center; }
.av-hsearch .av-search {
  position: absolute !important; inset-block-start: calc(100% + 12px); inset-inline-end: 0; inset-inline-start: auto; z-index: 1001;
  inline-size: min(440px, calc(100vw - 24px)) !important; padding: 6px !important; padding-inline: 12px 6px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--av-ease), transform .2s var(--av-ease), visibility 0s linear .2s;
}
.av-hsearch .av-search:focus-within { inline-size: min(440px, calc(100vw - 24px)) !important; }
.av-hsearch.is-open .av-search { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.av-hsearch.is-open .av-hsearch__toggle { color: var(--av-gold); }
@media (max-width: 1023px) {
  .av-hsearch .av-search { position: fixed !important; inset-inline: 10px !important; inset-block-start: 64px; inline-size: auto !important; }
}
.site-header, .site-header .site-header-inner, .site-header .woostify-container, .site-header .site-tools { overflow: visible !important; }

/* ===========================================================================
   v0.43 — layout re-audit fixes
   =========================================================================== */
/* A — home: full-width content column instead of the 100vw/negative-margin trick
   (inside the boxed container it shifted every band toward one edge and clipped it) */
body.home.av-storefront #content,
body.home.av-storefront .site-content,
body.home.av-storefront #content > .woostify-container,
body.home.av-storefront .content-area,
body.home.av-storefront .site-main,
body.home.av-storefront #content .entry-content,
body.home.av-storefront article.page { max-inline-size: none !important; inline-size: 100% !important; margin-inline: 0 !important; padding-inline: 0 !important; }
body.home.av-storefront .av-hero,
body.home.av-storefront .av-collections,
body.home.av-storefront .av-notes,
body.home.av-storefront .av-find,
body.home.av-storefront .av-gift,
body.home.av-storefront .av-ship,
body.home.av-storefront .av-closer,
body.home.av-storefront .av-home > section { inline-size: 100% !important; max-inline-size: 100% !important; margin-inline: 0 !important; }
body.home.av-storefront .av-wrap { max-inline-size: 1170px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); box-sizing: border-box; }
/* C — nothing may be wider than the viewport: no 100vw anywhere in the chrome */
.alignfull, .force-stretched-header { inline-size: 100% !important; max-inline-size: 100% !important; margin-inline: 0 !important; left: auto !important; }
header.site-header, .site-header .site-header-inner, #content.site-content, #page, #view { max-inline-size: 100%; box-sizing: border-box; }

/* D — product page: page number gets its own row; fallback "about" page; recently viewed */
.av-page .av-page-content { padding-block-end: 3.25rem; }
.av-page .av-page__number { pointer-events: none; }
.av-story-fallback { display: grid; gap: 1rem; }
.av-story-facts { margin: 0; display: grid; gap: .6rem; }
.av-story-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-block-end: 1px solid rgba(245,239,227,.1); }
.av-story-facts dt { color: #B3B3B3; margin: 0; }
.av-story-facts dd { margin: 0; color: #F5EFE3; font-weight: 600; text-align: end; }
.av-story-soon { margin: 0; color: #CFC8BB; line-height: 1.8; }
.av-story-points { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; color: #CFC8BB; }
.av-story-points li::before { content: "✓"; color: var(--av-gold); margin-inline-end: .5rem; }
.woostify-product-recently-viewed-section li.product .woocommerce-loop-product__title,
.woostify-product-recently-viewed-section li.product .woocommerce-loop-product__title a,
.related.products li.product .woocommerce-loop-product__title a,
.up-sells li.product .woocommerce-loop-product__title a { background: none !important; color: #F5EFE3 !important; -webkit-text-fill-color: currentColor; }
.woostify-product-recently-viewed-section li.product, .related.products li.product { background: #161616; border: 1px solid #2A2A2A; border-radius: 14px; padding: 10px; }

/* E — grid cards: ink stepper on the light card, bottom-aligned price + actions */
.avfb-grid .avfb-qty, .avfb-product--grid .avfb-qty { color: #0E0E0E !important; border-color: rgba(201,162,75,.8) !important; background: #fff; }
.avfb-grid .avfb-qty__btn, .avfb-grid .avfb-qty__n { color: #0E0E0E !important; }
.avfb-grid ul.products > li.product { display: flex; }
.avfb-product--grid { display: flex; flex-direction: column; inline-size: 100%; block-size: 100%; }
.avfb-product--grid .avfb-enrichment-compact { min-block-size: 2.9em; }
.avfb-product--grid .avfb-sizes { margin-block-start: auto; }
.avfb-product--grid .avfb-perfumer-label, .avfb-perfumer-label, .av-meta-creator > .av-en, .av-meta-creator > .av-ar { white-space: nowrap; }
.avfb-votes, .av-votes { unicode-bidi: isolate; white-space: nowrap; }
.avfb-archive[data-view="grid"] .avfb-pageind, html[data-avfb-view="grid"] .avfb-archive:not(.avfb-ready) .avfb-pageind { display: none !important; }

/* F — wishlist as a responsive card list instead of TI's table */
.tinv-wishlist table.tinvwl-table-manage-list,
.tinv-wishlist table.tinvwl-table-manage-list tbody { display: block; inline-size: 100% !important; margin: 0; }
.tinv-wishlist table.tinvwl-table-manage-list thead { display: none; }
.tinv-wishlist table.tinvwl-table-manage-list tbody tr.wishlist_item {
  display: grid !important; grid-template-columns: 96px minmax(0, 1fr) minmax(240px, 320px) 40px;
  grid-template-areas: "thumb name action remove" "thumb price action remove" "thumb date action remove" "thumb stock action remove";
  column-gap: 1.1rem; row-gap: .2rem; align-items: start;
  padding: 16px; margin-block-end: 12px; border: 1px solid #2A2A2A; border-radius: 16px; background: #161616;
}
.tinv-wishlist table.tinvwl-table-manage-list tbody td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; text-align: start; inline-size: auto !important; }
.tinv-wishlist td.product-cb { display: none !important; }
.tinv-wishlist td.product-thumbnail { grid-area: thumb; }
.tinv-wishlist td.product-thumbnail img { inline-size: 96px; block-size: 96px; object-fit: contain; border-radius: 12px; background: #fff; }
.tinv-wishlist td.product-name { grid-area: name; font-weight: 700; font-size: 1.05rem; }
.tinv-wishlist td.product-price { grid-area: price; color: var(--av-gold) !important; }
.tinv-wishlist td.product-date { grid-area: date; color: #9A9A9A !important; font-size: .85rem; }
.tinv-wishlist td.product-stock { grid-area: stock; font-size: .85rem; }
.tinv-wishlist td.product-action { grid-area: action; align-self: center; }
.tinv-wishlist td.product-remove { grid-area: remove; justify-self: end; }
.tinv-wishlist td.product-remove button { background: transparent !important; color: #F07075 !important; border: 1px solid #3A3A3A !important; border-radius: 50% !important; inline-size: 36px; block-size: 36px; padding: 0 !important; }
.tinv-wishlist tfoot, .tinv-wishlist .tinvwl-to-right, .tinv-wishlist .tinvwl-to-left { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
@media (max-width: 768px) {
  .tinv-wishlist table.tinvwl-table-manage-list tbody tr.wishlist_item {
    grid-template-columns: 80px minmax(0, 1fr) 36px;
    grid-template-areas: "thumb name remove" "thumb price remove" "thumb stock stock" "action action action";
  }
  .tinv-wishlist td.product-date { display: none !important; }
  .tinv-wishlist td.product-thumbnail img { inline-size: 80px; block-size: 80px; }
  .tinv-wishlist td.product-action { margin-block-start: .6rem; }
}
/* chips: outline; selected = filled — never the gold button style */
.tinv-wishlist .avfb-size, .tinv-wishlist .avfb-qty__btn { background: transparent !important; color: #F2F2F2 !important; border: 1px solid #6E6E6E !important; border-radius: 999px !important; font-weight: 600; box-shadow: none !important; }
.tinv-wishlist .avfb-qty__btn { border: 0 !important; }
.tinv-wishlist .avfb-size.is-selected { background: #F5EFE3 !important; color: #121212 !important; border-color: #F5EFE3 !important; }
.tinv-wishlist .avfb-size.is-selected .avfb-size__p { color: #4A4A4A; }
.tinv-wishlist .avfb-size__p { color: #B3B3B3 !important; }

/* H — mobile chrome: 48px WhatsApp right above the bottom nav; centred logo */
@media (max-width: 991px) {
  :root { --av-fab-bottom: calc(var(--av-botnav-h) + var(--av-botnav-gap) + 12px + env(safe-area-inset-bottom, 0px)); }
  .av-wa-fab { inline-size: 48px !important; block-size: 48px !important; width: 48px !important; height: 48px !important; }
  .av-wa-fab svg { inline-size: 24px; block-size: 24px; }
  #scroll-to-top { bottom: calc(var(--av-fab-bottom) + 48px + 12px) !important; }
  .site-header .site-header-inner > .woostify-container {
    display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: .5rem;
  }
  .site-header .wrap-toggle-sidebar-menu { grid-column: 1; justify-self: start; }
  .site-header .site-branding { grid-column: 2; justify-self: center; margin: 0 !important; text-align: center; }
  .site-header .site-tools { grid-column: 3; justify-self: end; }
  .site-header .site-navigation { display: none; }
  body.av-storefront #content { padding-block-end: calc(var(--av-botnav-h) + var(--av-botnav-gap) * 2 + 16px); }
}

/* I — cart: the line total is part of the row card, not its own box */
.wp-block-woocommerce-cart .wc-block-cart-item__total,
.wp-block-woocommerce-cart .wc-block-cart-item__total * { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
.wp-block-woocommerce-cart .wc-block-cart-item__total { vertical-align: top !important; padding-block-start: 14px !important; }
html.av-lang-en .av-summary[lang="ar"] { display: none; }
.avfb-votes, .av-votes { white-space: normal; }
.avfb-votes .av-ar, .avfb-votes .av-en { white-space: nowrap; }
/* H — mobile logo truly centred (extra header children were taking grid cells) */
@media (max-width: 991px) {
  .site-header .site-header-inner > .woostify-container { position: relative; }
  /* centring is direction-neutral: physical left/translate on purpose */
  .site-header .site-branding { position: absolute !important; grid-column: 1 / -1 !important; grid-row: 1; left: 50% !important; right: auto !important; top: 50%; transform: translate(-50%, -50%) !important; z-index: 1; }
}
/* phones: the bottom nav already carries favourites (with badge) — keep the header row clear for the centred logo */
@media (max-width: 600px) { .site-header .site-tools .av-fav { display: none !important; } }
