/* ===== homepage.css ===== */
/* ==========================================================================
   VAPORS DUBAI — Homepage Design System
   Astra 4 + Elementor (free) + WooCommerce
   Loaded via Appearance → Customize → Additional CSS
   --------------------------------------------------------------------------
   Design tokens live in :root. Change once, whole homepage updates.
   ========================================================================== */

/* Fonts: the old @import of Google Fonts lived here. They are now served
   locally by css/fonts.css (+ /fonts/*.woff2) and functions.php dequeues the
   Google CDN - nothing external blocks rendering anymore. */

:root {
  --vd-ink:       #0B0D12;
  --vd-ink-2:     #161A26;
  --vd-violet:    #6C4DF6;
  --vd-violet-dk: #4B32C3;
  --vd-mint:      #00B894;
  --vd-sale:      #FF3B5C;
  --vd-text:      #1A1D26;
  --vd-muted:     #6B7280;
  --vd-line:      #E7E9EF;
  --vd-bg-soft:   #F7F8FC;

  --vd-radius:    14px;
  --vd-radius-sm: 9px;
  --vd-shadow:      0 6px 24px rgba(11, 13, 18, .08);
  --vd-shadow-lg:   0 20px 56px rgba(11, 13, 18, .18);
  --vd-ring:        0 0 0 3px rgba(108, 77, 246, .28);

  --vd-font-h: "Sora", "Montserrat", sans-serif;
  --vd-font-b: "Inter", "Montserrat", system-ui, sans-serif;
}

/* ==========================================================================
   1. BASE
   ========================================================================== */
body {
  font-family: var(--vd-font-b);
  font-size: 16px;
  line-height: 1.65;
  color: var(--vd-text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--vd-font-h) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--vd-ink);
}

a { color: var(--vd-violet); transition: color .18s ease; }
a:hover { color: var(--vd-violet-dk); text-decoration: none; }

::selection { background: var(--vd-violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--vd-violet);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Elementor section gutters */
.elementor-section.boxed .elementor-container { max-width: 1200px; }

/* Column wrapping. Elementor's container is display:flex but only adds
   flex-wrap:wrap at <=1024px. Above that, sections that stack a col-100
   heading with sibling columns (Shop by category, How delivery works on the
   homepage; the confidence band on the shop) squeezed ALL of them onto one
   nowrap row and shrank them. Force wrap at every width: rows whose columns
   sum to 100% (hero 55+45, trust strip 4x25, promos 50+50) are unaffected
   because they still fit one line, while head + cards/steps separate into
   two clean rows. Phones keep Elementor's own collapse to 100% columns. */
.vd-section .elementor-container { flex-wrap: wrap; }

/* Category tiles at tablet width: four 25%-wide tiles read as slivers in
   the 768-1024px range, so run them two-up. Desktop keeps the base 25%;
   phones keep Elementor's 100%. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-column.vd-cat-col { width: 50%; }
}
@media (max-width: 767px) {
  .elementor-column.vd-cat-col { width: 50% !important; }
}

/* ==========================================================================
   2. SECTION SPACING (classes applied in Elementor → Advanced → CSS Classes)
   ========================================================================== */
.vd-section       { padding-block: clamp(48px, 6vw, 88px); }
.vd-section--tight { padding-block: clamp(28px, 3vw, 44px); }

/* Adjacent homepage bands each carried their own padding (88 + 72 = 160px of
   dead space between two sections' content). Elementor writes per-section
   padding into uploads/elementor/css/post-12.css, so the only way to impose one
   rhythm from the child theme is !important. Front page only — the shop keeps
   the token above. */
body.home .elementor-top-section.vd-section        { padding-block: clamp(34px, 3.2vw, 46px) !important; }
body.home .elementor-top-section.vd-section--tight { padding-block: clamp(22px, 2.2vw, 30px) !important; }
.vd-bg-soft { background: var(--vd-bg-soft); }
.vd-bg-dark {
  background: linear-gradient(180deg, #0B0D12 0%, #161A26 100%);
  color: #fff;
}
.vd-bg-dark h2, .vd-bg-dark h3 { color: #fff; }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  font-family: var(--vd-font-b);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  border-radius: 999px;
  padding: 13px 30px;
  line-height: 1.2;
  border: 0;
  background: var(--vd-violet);
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 77, 246, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.elementor-button:hover,
.woocommerce a.button:hover,
.woocommerce a.button.alt:hover {
  background: var(--vd-violet-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(108, 77, 246, .36);
}
.vd-btn-ghost {
  background: transparent !important;
  color: var(--vd-ink) !important;
  border: 1.5px solid var(--vd-line) !important;
  box-shadow: none !important;
}
.vd-btn-ghost:hover {
  background: var(--vd-ink) !important;
  border-color: var(--vd-ink) !important;
  color: #fff !important;
}
.vd-bg-dark .vd-btn-ghost,
.vd-hero .vd-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .32) !important;
}
.vd-hero .vd-btn-ghost:hover { background: #fff !important; color: var(--vd-ink) !important; }

/* The hero's two CTAs live in an inner section as two auto-width columns. They
   land side by side at desktop, but below ~600px Elementor stacks those columns
   by default, which put the buttons on separate full-width lines. Force the row
   to hold at every width — at the trimmed padding they need ~160px each, which
   fits a 360px screen with room over. */
/* The hero's two CTAs live in an inner section as two columns that Elementor
   sizes `auto` at desktop but full-width below 1025px — measured: 187px/184px
   columns at 1024px, but both 680px wide at 700px, which stacked the buttons.
   The row also carried no `justify-content`, so once they did share a line they
   sat flush left (5px from the edge) instead of centred.

   One rule fixes both: force the container to a centred row at every width up
   to 1024px and let the columns shrink to their content again. At the trimmed
   22px button padding the pair needs ~360px, which fits 380px and up; below
   that the ≤600/≤380 blocks above step the type and padding down further. */
@media (max-width: 1024px) {
  .vd-hero .elementor-section > .elementor-container {
    flex-direction: row !important;
    align-items: center;
    justify-content: center !important;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .vd-hero .elementor-section > .elementor-container > .elementor-column {
    flex: 0 1 auto !important;
    width: auto !important;
  }
  .vd-hero .elementor-section > .elementor-container > .elementor-column .elementor-widget-wrap {
    flex: 0 1 auto;
    min-width: 0;
  }
  /* let the label shrink instead of pushing the row past the viewport */
  .vd-hero .elementor-section > .elementor-container .elementor-button {
    white-space: normal;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .vd-hero .elementor-section > .elementor-container {
    gap: 10px;
  }
}
/* ≤380px: two 158px buttons plus a 10px gap no longer fit inside a 360px
   viewport once the section's own side padding is counted, so the columns
   stack again. Drop the button padding a further step at this width rather
   than let them wrap — the pair still reads as one row of CTAs. */
@media (max-width: 380px) {
  .vd-hero .elementor-section > .elementor-container .elementor-button {
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 12px !important;
  }
  .vd-hero .elementor-section > .elementor-container {
    gap: 8px;
  }
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.vd-hero {
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(108, 77, 246, .26), transparent 62%),
    linear-gradient(180deg, #0B0D12 0%, #161A26 100%);
  color: #fff;
  padding-block: clamp(36px, 4.5vw, 64px);
}
.vd-hero h1 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}
.vd-hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--vd-violet), var(--vd-mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vd-hero .vd-eyebrow {
  color: var(--vd-mint);
  background: rgba(0, 184, 148, .12);
  border: 1px solid rgba(0, 184, 148, .32);
  padding: 6px 14px;
  border-radius: 999px;
}
.vd-hero p {
  color: rgba(255, 255, 255, .74);
  font-size: clamp(15px, 1.3vw, 16px);
  max-width: 54ch;
}
.vd-hero .elementor-button { background: var(--vd-violet); color: #fff; }
.vd-hero .elementor-button:hover { background: #fff; color: var(--vd-ink); }

.vd-hero-trust .elementor-icon-list-item {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .72);
  align-items: center;
}
.vd-hero-trust .elementor-icon-list-icon i { color: var(--vd-mint); }
.vd-hero-trust .elementor-icon-list-icon svg { fill: var(--vd-mint); }

/* Hero side card */
.vd-hero-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--vd-radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}
.vd-hero-card .vd-hero-card-title {
  font-family: var(--vd-font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vd-mint);
  margin-bottom: 10px;
}
.vd-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.vd-hero-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vd-hero-row-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(108, 77, 246, .22);
  color: #fff;
  font-size: 13px;
}
.vd-hero-row strong {
  display: block;
  font-family: var(--vd-font-h);
  font-size: 14px;
  color: #fff;
}
.vd-hero-row span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
}
.vd-hero-row.elementor-widget { display: block; }
.vd-hero-row .elementor-icon-box-wrapper {
  /* `flex-direction: row` is explicit because Elementor sets its icon box to
     `column` below 768px, which dropped the icon ABOVE the label and made the
     row 83px tall instead of 43px. These rows are icon-beside-text at every
     width, phone included — the measured offset was 40px vertical on phone
     versus 0px on desktop. */
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.vd-hero-row .elementor-icon-box-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
}
.vd-hero-row .elementor-icon-box-icon .elementor-icon {
  width: 30px;
  height: 30px;
  font-size: 13px;
}
.vd-hero-row .elementor-icon-box-content { flex: 1 1 auto; min-width: 0; padding: 0; }
.vd-hero-row .elementor-icon-box-title {
  margin: 0 0 2px;
  font-family: var(--vd-font-h);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}
.vd-hero-row .elementor-icon-box-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   5. SECTION HEADINGS
   ========================================================================== */
.vd-eyebrow {
  font-family: var(--vd-font-h);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--vd-violet);
  display: inline-block;
  margin-bottom: 10px;
}
.vd-title { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 12px; }
.vd-sub   { color: var(--vd-muted); font-size: 16.5px; max-width: 62ch; margin-inline: auto; }
.vd-rule {
  width: 54px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--vd-violet), var(--vd-mint));
  margin: 16px auto 0;
}

/* ==========================================================================
   6. ICON BOXES (service strip + delivery steps)
   ========================================================================== */
.vd-icon-box .elementor-icon-box-wrapper { text-align: center; }
.vd-icon-box .elementor-icon-box-icon {
  margin-bottom: 8px;
}
.vd-icon-box .elementor-icon-box-icon .elementor-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: rgba(108, 77, 246, .1);
  color: var(--vd-violet);
  font-size: 17px;
}
.vd-icon-box .elementor-icon-box-title {
  font-family: var(--vd-font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--vd-ink);
  margin-bottom: 4px;
}
.vd-icon-box .elementor-icon-box-description {
  font-size: 13px;
  color: var(--vd-muted);
  line-height: 1.45;
}

/* ==========================================================================
   7. PRODUCT GRIDS  (WooCommerce shortcode output)
   ========================================================================== */
.vd-products .woocommerce ul.products,
.vd-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px !important;
  margin: 0 !important;
}
.vd-products ul.products::before,
.vd-products ul.products::after { content: none !important; display: none !important; }

.vd-products ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  background: #fff;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  padding: 0 0 18px;
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.vd-products ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--vd-shadow-lg);
}
.vd-products ul.products li.product a img {
  width: 100% !important;
  margin: 0 0 14px !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--vd-bg-soft);
  padding: 16px;
  transition: transform .35s ease;
}
.vd-products ul.products li.product:hover a img { transform: scale(1.06); }

/* The summary wrap holds category + title + price + button but carried no
   padding, so all of them sat flush against the card border (only the title
   self-padded). One inset gives the entire text block uniform breathing
   room — same pattern as the shop cards in shop.css. */
.vd-products ul.products li.product .astra-shop-summary-wrap {
  box-sizing: border-box;
  padding: 0 14px;
}
/* Drop the title's own side padding so it doesn't double-indent against the
   wrapper's new inset. */
.vd-products ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--vd-font-h);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vd-ink);
  padding: 0;
  margin-bottom: 8px;
}
.vd-products ul.products li.product .price {
  font-family: var(--vd-font-h);
  font-size: 16px;
  font-weight: 700;
  color: var(--vd-ink);
  display: block;
  margin-bottom: 14px;
}
.vd-products ul.products li.product .price del {
  color: var(--vd-muted);
  font-size: .82em;
  font-weight: 500;
  margin-right: 6px;
}
.vd-products ul.products li.product .price ins {
  color: var(--vd-sale);
  text-decoration: none;
  font-weight: 800;
}
.vd-products ul.products li.product .star-rating { margin: 0 auto 10px; color: #FFB020; font-size: 12px; }
/* Card polish: a quiet category kicker, one clean divider under the title,
   and a single price line with the sale figure on the same baseline. */
.vd-products ul.products li.product .ast-woo-product-category,
.vd-products ul.products li.product .woocommerce-loop-category__link {
  display: block;
  font-family: var(--vd-font-h);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vd-violet);
  margin: 14px 14px 6px;
  text-decoration: none;
}
.vd-products ul.products li.product .astra-shop-summary-wrap { padding: 0 16px; }
.vd-products ul.products li.product .woocommerce-loop-product__title {
  font-size: 15.5px;
  line-height: 1.35;
  margin-bottom: 12px;
  min-height: 2.7em;
}
.vd-products ul.products li.product .price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  border: 0;
  background: none;
  box-shadow: none;
}
.vd-products ul.products li.product .astra-shop-summary-wrap,
.vd-products ul.products li.product .astra-shop-summary-wrap * {
  border-top: 0;
  border-bottom: 0;
}
.vd-products ul.products li.product .astra-shop-summary-wrap::before,
.vd-products ul.products li.product .astra-shop-summary-wrap::after,
.vd-products ul.products li.product .woocommerce-loop-product__title::after,
.vd-products ul.products li.product .price::before,
.vd-products ul.products li.product .price::after { content: none !important; display: none !important; }
.vd-products ul.products li.product .price del { margin-right: 0; }


.vd-products span.onsale {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  margin: 0;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #FB7185, #E11D48);
  box-shadow: 0 8px 18px rgba(225, 29, 72, .35);
  color: #fff;
  font-family: var(--vd-font-h);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Add-to-cart → the design's primary action: violet gradient pill (identical
   to the single product's main Add-to-cart and the header CTAs). Replaces the
   stock ink-black button; hover lifts the card's action with a lighter start. */
.vd-products ul.products li.product .button {
  background: linear-gradient(180deg, #7C3AED, #6D28D9) !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(109, 40, 217, .28);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 2px;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.vd-products ul.products li.product .button:hover,
.vd-products ul.products li.product .button:focus {
  background: linear-gradient(180deg, #8B5CF6, #7C3AED) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(109, 40, 217, .38);
  transform: translateY(-2px);
}

/* The result count is hidden on the homepage rows and the category archives,
   but the shop page shows it inside its toolbar (shop.css 3b). */
.vd-products .woocommerce-result-count { display: none; }
.vd-shop-grid .woocommerce-result-count { display: block !important; }

/* Section CTAs ("Show More ..." under each product row). The columns carry
   .vd-center-btn, but Elementor's button widget defaults to align:left, so
   the pill sat flush left. Centre it on the widget itself - Elementor 4 has
   no .elementor-button-wrapper layer; the <a> is a direct child (inline-
   level, so text-align does the centring). */
.vd-center-btn .elementor-widget-button { text-align: center; }
.vd-center-btn .elementor-widget-button .elementor-button { margin-inline: auto; }

/* ---- 7b. HOMEPAGE PRODUCT CAROUSEL ---------------------------------------
   The homepage product rows become the live store's slider: one row of five
   cards, horizontal scroll with snap points, hidden scrollbar and prev/next
   arrows injected by /js/products-carousel.js. The shop grid carries
   .vd-products too, so every rule here is scoped to body.home - the shop
   keeps its static 4-column grid.
   --vd-pv-n is the number of visible cards; the flex-basis math keeps cards
   exactly (100% - gaps) / n so the row fills its container edge to edge. */
body.home .vd-products ul.products {
  display: flex !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  /* let the hover lift (-6px) and card shadows live inside the scroll box */
  padding-block: 10px;
  margin-block: -10px;
  --vd-pv-gap: 26px;
  --vd-pv-n: 5;
}
body.home .vd-products ul.products::-webkit-scrollbar { display: none; }
body.home .vd-products ul.products li.product {
  flex: 0 0 calc((100% - (var(--vd-pv-n) - 1) * var(--vd-pv-gap)) / var(--vd-pv-n));
  scroll-snap-align: start;
}
@media (max-width: 1279px) { body.home .vd-products ul.products { --vd-pv-n: 4; } }
@media (max-width: 1024px) { body.home .vd-products ul.products { --vd-pv-n: 3; } }
@media (max-width: 767px)  { body.home .vd-products ul.products { --vd-pv-n: 2; --vd-pv-gap: 14px; } }
@media (max-width: 544px)  { body.home .vd-products ul.products { --vd-pv-gap: 12px; } }

/* Arrows: white circles straddling the row's edges (half over the first and
   last card), violet chevron, violet fill on hover. JS adds .vd-pv-viewport
   to the widget box that wraps the list; arrows hide when there's nothing
   to scroll and on touch widths (swipe covers it). */
.vd-pv-viewport { position: relative; }
.vd-pv-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--vd-line, #E7E9EF);
  background: #fff;
  color: var(--vd-violet, #6C4DF6);
  box-shadow: 0 6px 18px rgba(11, 13, 18, .14);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.vd-pv-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vd-pv-btn:hover {
  background: var(--vd-violet, #6C4DF6);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 77, 246, .4);
}
.vd-pv-btn:disabled { opacity: .35; cursor: default; }
.vd-pv-prev { left: -22px; }
.vd-pv-next { right: -22px; }
/* On phones the arrows SHOWN, not hidden. They used to be display:none below
   768px on the assumption that swiping covers it — but the rows hold far more
   than two cards (measured: 961px of content in a 355px viewport), so without
   the arrows there is no affordance telling the shopper the row scrolls at all,
   and swiping a carousel of product cards is easy to miss.

   They straddle the row's edges, which on a phone means half off-screen, so at
   this width they are pulled fully inside (left/right 10px), made a little
   smaller, and given a solid white fill plus a stronger shadow so they read
   clearly against the cards behind them. */
@media (max-width: 767px) {
  .vd-pv-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(11, 13, 18, .22);
    /* a tap target below this is hard to hit on glass */
    backdrop-filter: blur(6px);
  }
  .vd-pv-btn svg { width: 16px; height: 16px; stroke-width: 2.6; }
  .vd-pv-prev { left: 10px; }
  .vd-pv-next { right: 10px; }
  /* the arrows sit over the row, so give the top card a little breathing room
     rather than letting the chevron clip against the section edge */
  .vd-pv-viewport { position: relative; }
}

/* ==========================================================================
   8. CATEGORY TILES
   ========================================================================== */
/* Each of the four columns holds TWO tiles (8 categories), and Elementor's
   widget wrap is a row-wrap flex, so every tile sits on its own flex line and
   a `height: 100%` tile resolved against the whole column: ~451px of card for
   214px of content, with the second row spilling out of the section and under
   the promo banners. Stack the wrap as a column instead and let tiles size to
   content, growing only to share any leftover height in the column. */
.vd-cat-col .elementor-widget-wrap { flex-direction: column; }
.vd-cat-tile {
  display: block;
  background: #fff;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  padding: 26px 14px 22px;
  text-align: center;
  flex: 1 1 auto;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vd-cat-tile:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--vd-shadow-lg);
}
.vd-cat-tile .elementor-icon-box-icon .elementor-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--vd-bg-soft);
  color: var(--vd-violet);
  font-size: 30px;
  margin-bottom: 14px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.vd-cat-tile:hover .elementor-icon-box-icon .elementor-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(108, 77, 246, .1);
}
.vd-cat-tile .elementor-icon-box-title {
  font-family: var(--vd-font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--vd-ink);
  display: block;
}
.vd-cat-tile .elementor-icon-box-description {
  font-size: 12.5px;
  color: var(--vd-muted);
}

/* ==========================================================================
   9. PROMO BLOCKS
   ========================================================================== */
/* ==========================================================================
   10. FAQ ACCORDION
   ========================================================================== */
.vd-faq .elementor-accordion-item {
  border: 1px solid var(--vd-line) !important;
  border-radius: var(--vd-radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.vd-faq .elementor-accordion-title {
  font-family: var(--vd-font-h);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--vd-ink);
  padding: 16px 18px !important;
  background: #fff;
}
.vd-faq .elementor-accordion-title:hover { color: var(--vd-violet); }
.vd-faq .elementor-tab-content {
  font-size: 14.5px;
  color: var(--vd-muted);
  line-height: 1.7;
  padding: 4px 18px 18px !important;
  border-top: 1px solid var(--vd-line);
}

/* ==========================================================================
   11. CTA BAND
   ========================================================================== */
.vd-cta {
  background: linear-gradient(120deg, #0B0D12 0%, #241B4D 55%, #4B32C3 100%);
  border-radius: var(--vd-radius);
  padding: clamp(30px, 4vw, 54px);
  text-align: center;
  color: #fff;
}
.vd-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); }
.vd-cta p { color: rgba(255, 255, 255, .74); margin-inline: auto; max-width: 56ch; }
.vd-cta .elementor-button { margin-top: 8px; background: #fff; color: var(--vd-ink); box-shadow: none; }
.vd-cta .elementor-button:hover { background: var(--vd-violet); color: #fff; }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .vd-products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  .vd-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
  .vd-products ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px; padding: 0 8px; }
  .vd-products ul.products li.product .price { font-size: 14px; }
  .vd-products ul.products li.product .button { padding: 9px 14px; font-size: 12.5px; }
  .vd-section { padding-block: 40px; }
  .vd-hero { padding-block: 44px 40px; }
  .vd-hero-card { margin-top: 32px; padding: 22px; }
}
/* Astra ships its own responsive grid as INLINE critical CSS:
     .ast-container .woocommerce ul.products:not(.elementor-grid) { … }
   That selector out-specifies `.vd-products ul.products`, and it carries
   `!important` on the column count, so it was winning on every WooCommerce page
   and the shop grid stayed at 4 columns all the way down — cards shrank to
   64px wide on a 360px phone. Match its specificity so the counts below hold.
   `.ast-container` is Astra's own page wrapper and the selector is identical in
   shape to the one being overridden, so this stays scoped to product grids. */
.ast-container .vd-products ul.products:not(.elementor-grid) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
@media (max-width: 1024px) {
  .ast-container .vd-products ul.products:not(.elementor-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .ast-container .vd-products ul.products:not(.elementor-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 544px) {
  .vd-products ul.products { gap: 12px !important; }
  .elementor-button { padding: 12px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Scroll-to-top button — violet, rounded, on-theme with the CTA pills */
#ast-scroll-top {
  background-color: var(--vd-violet, #6C4DF6) !important;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(108, 77, 246, .35);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  width: 2.6em;
  height: 2.6em;
  line-height: 2.6;
}
#ast-scroll-top:hover {
  background-color: var(--vd-violet-dk, #4B32C3) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(108, 77, 246, .45);
}
#ast-scroll-top .ast-icon.icon-arrow svg { width: 1.15em; }
