/*
Theme Name:   5V Digital v2
Theme URI:    https://5v.lv
Description:  5V Digital v2 — clean light design. Child theme built on Astra.
Author:       5V Digital
Template:     astra
Version:      2.0.30
Text Domain:  5v-digital-v2
*/

/* ============================================================
   GOOGLE FONTS — Inter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --color-primary:     #0284c7;
  --color-primary-dk:  #0369a1;
  --color-primary-lt:  #e0f2fe;
  --color-accent:      #06b6d4;
  --color-accent-dk:   #0891b2;
  --color-dark:        #0f172a;
  --color-body:        #334155;
  --color-muted:       #64748b;
  --color-subtle:      #94a3b8;
  --color-border:      #e2e8f0;
  --color-border-lt:   #f1f5f9;
  --color-bg:          #f8fafc;
  --color-surface:     #ffffff;
  --color-header-bg:   #ffffff;
  --color-footer-bg:   #f8fafc;

  /* Legacy v1 color aliases — used by homepage.css and other v1 templates */
  --color-blue:        #0284c7;
  --color-blue-dark:   #0369a1;
  --color-blue-light:  #e0f2fe;
  --color-teal:        #06b6d4;
  --color-charcoal:    #0f172a;
  --color-white:       #ffffff;
  --color-mid:         #64748b;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-card: 14px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:   0 4px 16px rgba(2,132,199,0.08), 0 2px 6px rgba(15,23,42,0.06);
  --shadow-lg:   0 8px 32px rgba(2,132,199,0.12), 0 4px 12px rgba(15,23,42,0.08);
  --shadow-blue: 0 4px 20px rgba(2,132,199,0.28);

  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-dk); }
img { max-width: 100%; height: auto; }
p { margin-top: 0; margin-bottom: 1rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.fvd2-container,
.fvd-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
#masthead,
.site-header,
.ast-primary-header,
.ast-primary-header .main-header-bar {
  background: var(--color-header-bg) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06) !important;
}

.ast-builder-menu a,
.main-header-menu > li > a,
.ast-nav-link {
  color: var(--color-body) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color var(--transition) !important;
  letter-spacing: 0 !important;
}
.ast-builder-menu a:hover,
.main-header-menu > li > a:hover {
  color: var(--color-primary) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.fvd2-btn,
.fvd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.fvd2-btn--primary,
.fvd-btn--primary {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-blue);
}
.fvd2-btn--primary:hover,
.fvd-btn--primary:hover {
  background: var(--color-primary-dk);
  color: #fff !important;
  transform: translateY(-1px);
}

.fvd2-btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}
.fvd2-btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.fvd2-btn--dark {
  background: var(--color-dark);
  color: #fff;
}
.fvd2-btn--dark:hover {
  background: #1e293b;
  color: #fff;
}

.fvd2-btn--cyan {
  background: #a5f3fc;
  color: var(--color-dark);
  font-weight: 600;
}
.fvd2-btn--cyan:hover {
  background: #67e8f9;
  color: var(--color-dark);
}

.fvd2-btn--white {
  background: #fff;
  color: var(--color-dark);
}
.fvd2-btn--white:hover {
  background: #f1f5f9;
  color: var(--color-dark);
}

/* ============================================================
   SECTION CHIP / LABEL
   ============================================================ */
.fvd2-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: #f0f9ff;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.fvd2-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ============================================================
   LANG SWITCHER
   ============================================================ */
#fvd2-lang-sw {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  flex-shrink: 0;
}
#fvd2-lang-sw a {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition);
  opacity: 0.6;
}
#fvd2-lang-sw a.fvd2-lang-active {
  border-color: #0284c7;
  opacity: 1;
}
#fvd2-lang-sw a img {
  display: block;
  width: 22px;
  height: 15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.fvd2-footer {
  background: var(--color-footer-bg);
  color: #334155;
  margin-top: 0;
}

.fvd2-footer__main {
  padding: 3.5rem 0 0;
}

.fvd2-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e2e8f0;
}

.fvd2-footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.fvd2-footer__logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.fvd2-footer__logo-text .name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fvd2-footer__logo-text .sub {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #67e8f9;
  text-transform: uppercase;
}

.fvd2-footer__tagline {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.fvd2-footer__pill {
  display: inline-flex;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  background: #a5f3fc;
  color: var(--color-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fvd2-footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.fvd2-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fvd2-footer__links li { margin-bottom: 0.55rem; }
.fvd2-footer__links a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition);
}
.fvd2-footer__links a:hover { color: #0f172a; }

.fvd2-footer__contact-li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 0.55rem;
}
.fvd2-footer__contact-li svg { flex-shrink: 0; opacity: 0.5; }
.fvd2-footer__contact-li a { color: #64748b; transition: color var(--transition); }
.fvd2-footer__contact-li a:hover { color: #0f172a; }

.fvd2-footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fvd2-footer__copy {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

.fvd2-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fvd2-footer__payment-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fvd2-footer__payment-icon {
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
}

.fvd2-footer__lang-links { display: flex; gap: 6px; }
.fvd2-footer__lang-links a {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.fvd2-footer__lang-links a:hover,
.fvd2-footer__lang-links a.fvd2-lang-active { color: #67e8f9; }

/* ============================================================
   WOOCOMMERCE GLOBAL OVERRIDES
   ============================================================ */
.woocommerce,
.woocommerce-page {
  font-family: var(--font-body) !important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button.alt,
.wc-block-components-checkout-place-order-button {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 0.75rem 1.5rem !important;
  border: none !important;
  transition: background var(--transition) !important;
  box-shadow: var(--shadow-blue) !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--color-primary-dk) !important;
  color: #fff !important;
}

/* Single product add to cart */
.single-product .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button.alt {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.single-product .single_add_to_cart_button:hover {
  background: var(--color-primary-dk) !important;
  border-color: var(--color-primary-dk) !important;
}

:root {
  --ast-global-color-0: #0284c7 !important;
  --ast-global-color-1: #0369a1 !important;
}

/* ============================================================
   CHECKOUT STEPS
   ============================================================ */
.fvd2-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.fvd2-checkout-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
}

.fvd2-checkout-step--active {
  color: var(--color-primary);
  font-weight: 600;
}

.fvd2-checkout-step--done {
  color: #22c55e;
}

.fvd2-checkout-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
}

.fvd2-checkout-step--active .fvd2-checkout-step__num {
  background: var(--color-primary);
  color: #fff;
}

.fvd2-checkout-step--done .fvd2-checkout-step__num {
  background: #22c55e;
  color: #fff;
}

.fvd2-checkout-step__divider {
  width: 28px;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.fvd2-page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.fvd2-page-header__title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin: 0 0 0.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fvd2-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .fvd2-footer__grid { grid-template-columns: 1fr; }
  .fvd2-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PRODUCT PAGE GRID — override any cached CSS
   ============================================================ */
article.fvd2-single-product,
.fvd2-single-product {
  display: block !important;
  grid-template-columns: none !important;
}
.fvd2-product-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 3rem !important;
  align-items: start !important;
  width: 100% !important;
}
@media (max-width: 900px) {
  .fvd2-product-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   UNIVERSAL LAYOUT — CONSISTENT 1220px ON ALL PAGES
   ============================================================ */

/* All inner pages: cap Astra's container at 1220px */
body:not(.home) .ast-container {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Header container — always 1220px on every page */
.ast-primary-header .ast-container,
#masthead .ast-container {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* Homepage: full width — front-page.php handles its own layout */
.home #content .ast-container,
.home #primary {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Remove Astra's default inner padding on #primary */
body:not(.home) #primary {
  padding: 0 !important;
}

/* Cart & checkout block needs full container freedom — block itself is 1220px */
.woocommerce-cart .ast-container,
.woocommerce-checkout .ast-container,
.fvd-lv-cart .ast-container,
.fvd-lv-checkout .ast-container {
  max-width: 1220px !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* ============================================================
   PRODUCT CARDS — full card clickable
   ============================================================ */

/* Wrap card in relative so absolute link covers it */
.fvd2-product-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  list-style: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.fvd2-product-card::before,
.fvd2-product-card::after {
  display: none !important;
}

.fvd2-product-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(2,132,199,0.10), 0 2px 6px rgba(15,23,42,0.04);
  transform: translateY(-2px);
}

.fvd2-product-card a {
  text-decoration: none;
}

.fvd2-product-card .fvd2-product-card__cat,
.fvd2-product-card .fvd2-product-card__category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.fvd2-product-card h2,
.fvd2-product-card h3,
.fvd2-product-card .woocommerce-loop-product__title,
.fvd2-product-card .fvd2-product-card__title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  margin: 0.15rem 0 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.fvd2-product-card h2:hover,
.fvd2-product-card h3:hover {
  color: var(--color-primary-dk) !important;
}

.fvd2-product-card .fvd2-product-card__sku,
.fvd2-product-card__sku {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
}

.fvd2-product-card .fvd2-product-card__icon,
.fvd2-product-card .fvd2-product-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.5rem;
  aspect-ratio: 1 / 1;
  max-height: 120px;
}

.fvd2-product-card .fvd2-product-card__icon svg {
  color: var(--color-primary);
  width: 48px;
  height: 48px;
}

.fvd2-product-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  background: var(--color-primary-lt);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}

.fvd2-product-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
}

.fvd2-product-card__footer .price-on-request {
  color: var(--color-muted);
}

.fvd2-product-card__footer a,
.fvd2-product-card__footer .button {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.fvd2-product-card__footer a:hover {
  color: var(--color-primary-dk);
}

/* Full-area invisible link overlay — sits behind action buttons */
.fvd2-product-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* Action buttons (add-to-cart, etc.) must sit above overlay */
.fvd2-product-card__actions,
.fvd2-product-card__footer,
.button.add_to_cart_button {
  position: relative;
  z-index: 2;
}

/* Grid for product list */
ul.products {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: 1fr !important; gap: 0.85rem !important; }
  .fvd2-product-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.85rem !important;
  }
  .fvd2-product-card .fvd2-product-card__img,
  .fvd2-product-card__image-wrap {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    aspect-ratio: 1/1 !important;
    padding: 0.5rem !important;
  }
  .fvd2-product-card .fvd2-product-card__img svg,
  .fvd2-product-card__icon svg {
    width: 36px !important;
    height: 36px !important;
  }
  .fvd2-product-card > *:not(.fvd2-product-card__img):not(.fvd2-product-card__image-wrap):not(.fvd2-product-card__link-overlay) {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .fvd2-product-card h2,
  .fvd2-product-card h3,
  .fvd2-product-card .woocommerce-loop-product__title {
    font-size: 0.85rem !important;
    margin: 0.1rem 0 !important;
  }
  .fvd2-product-card__footer {
    border-top: none !important;
    padding-top: 0.4rem !important;
    margin-top: 0.4rem !important;
    flex-wrap: wrap !important;
  }

  /* The add-to-cart button has fixed padding and long label text
     ("Pievienot grozam"), and flex items don't shrink below their content
     width by default — so next to the price in this narrow row layout it
     was overflowing past the card edge. Let it wrap onto its own full-width
     row instead of overflowing. */
  .fvd2-product-card__footer .button.add_to_cart_button,
  .fvd2-product-card__footer a.button,
  .fvd2-product-card__footer .fvd2-loop-btn {
    flex: 1 1 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

}

/* ============================================================
   MOBILE — related products / up-sells force single column
   Astra injects its own dynamic grid CSS for ul.products at the same
   specificity as a plain ".related.products ul.products" rule, and (like
   the homepage sections above) can win the tie depending on enqueue order.
   Same "body + full selector" specificity-boost fix as the homepage grids.
   ============================================================ */
@media (max-width: 768px) {
  body .related.products ul.products,
  body .up-sells.products ul.products,
  body section.related.products ul.products,
  body section.up-sells.products ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
  body .related.products ul.products li.product,
  body .up-sells.products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* ============================================================
   WOOCOMMERCE BLOCKS — cart & checkout max-width
   ============================================================ */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2rem 1.5rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* ============================================================
   BREADCRUMB — remove duplicate on product page
   ============================================================ */
.single-product .woocommerce-breadcrumb {
  display: none;
}

/* ============================================================
   HEADER ICONS — visible on light header
   ============================================================ */

#fvd-cart-icon,
#fvd-account-icon,
#fvd-cart-icon-mob,
#fvd-account-icon-mob {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
}

#fvd-cart-icon:hover,
#fvd-account-icon:hover,
#fvd-cart-icon-mob:hover,
#fvd-account-icon-mob:hover {
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  background: #f0f9ff !important;
}

#fvd-cart-icon svg,
#fvd-account-icon svg {
  stroke: currentColor !important;
}

/* Lang switcher links */
#fvd-lang-sw a {
  border-color: #e2e8f0 !important;
  opacity: 0.7;
}
#fvd-lang-sw a.fvd2-lang-active,
#fvd-lang-sw a[style*="border-color:#0284c7"] {
  border-color: #0284c7 !important;
  opacity: 1 !important;
}

/* ============================================================
   HOMEPAGE BUTTON OVERRIDES — defeat homepage.css dark stuff
   ============================================================ */

.home .fvd-btn--outline,
.fvd-btn--outline {
  background: transparent !important;
  color: #0f172a !important;
  border: 1.5px solid #e2e8f0 !important;
}
.home .fvd-btn--outline:hover,
.fvd-btn--outline:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

.home .fvd-btn--primary,
.fvd-btn--primary {
  background: #0284c7 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(2,132,199,0.28) !important;
}
.home .fvd-btn--primary:hover,
.fvd-btn--primary:hover {
  background: #0369a1 !important;
  color: #ffffff !important;
}

/* Section labels and titles - ensure visible */
.home .fvd-section__label,
.fvd-section__label {
  color: #0284c7 !important;
}
.home .fvd-section__title,
.fvd-section__title {
  color: #0f172a !important;
}

/* ============================================================
   FVD-BTN WHITE/CYAN — for use on dark CTA banner
   ============================================================ */
.fvd-btn--white {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(15,23,42,0.12) !important;
}
.fvd-btn--white:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.fvd-btn--cyan {
  background: #a5f3fc !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  border: none !important;
}
.fvd-btn--cyan:hover {
  background: #67e8f9 !important;
  color: #0f172a !important;
}

/* ============================================================
   HOMEPAGE CTA BANNER — dark background for white button contrast
   ============================================================ */
.fvd-home__cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  margin: 3rem 0;
  overflow: hidden;
}
.fvd-home__cta-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 768px) {
  .fvd-home__cta-banner-inner { grid-template-columns: 1fr; }
}
.fvd-home__cta-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(2,132,199,0.25) 0%, transparent 50%);
  z-index: 1;
}
.fvd-home__cta-banner-content h2,
.fvd-home__cta-banner-content > *:first-child:not(.fvd-section__label) {
  color: #ffffff !important;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.fvd-home__cta-banner-content p {
  color: #334155 !important;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 56ch;
}
.fvd-home__cta-banner-content .fvd-section__label {
  color: #67e8f9 !important;
}

/* ============================================================
   "JAUNS / NEW" BADGE on product cards
   ============================================================ */
.fvd-product-badge,
.fvd-card__badge,
.fvd-home__featured-badge,
.fvd2-product-card__badge,
.onsale,
.wc-block-grid__product-onsale {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background: #0284c7 !important;
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(2,132,199,0.3);
  margin: 0;
  min-height: auto;
  min-width: auto;
}

/* ============================================================
   NEW ARRIVALS HOMEPAGE SECTION — fix empty cards
   ============================================================ */
.fvd-home__new-arrivals,
.fvd-home__new-grid,
.fvd-home__featured-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 1024px) { .fvd-home__new-grid, .fvd-home__featured-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .fvd-home__new-grid, .fvd-home__featured-grid { grid-template-columns: repeat(2, 1fr); } }

.fvd-home__new-card,
.fvd-home__featured-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.fvd-home__new-card:hover,
.fvd-home__featured-card:hover {
  box-shadow: 0 4px 20px rgba(2,132,199,0.1);
  transform: translateY(-2px);
}
.fvd-home__new-card-image,
.fvd-home__featured-card-image {
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}
.fvd-home__new-card-image img,
.fvd-home__featured-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.fvd-home__new-card-body,
.fvd-home__featured-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

/* ============================================================
   RELATED PRODUCTS / UP-SELLS — constrain to 4 cols max
   ============================================================ */
.related.products ul.products,
.up-sells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 1.5rem 0 0 !important;
}
@media (max-width: 1024px) { .related.products ul.products, .up-sells.products ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px)  { .related.products ul.products, .up-sells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; } }

.related.products,
.up-sells.products {
  margin-top: 3rem !important;
  padding-top: 2rem !important;
  border-top: 1px solid #e2e8f0;
}

.related.products > h2,
.up-sells.products > h2 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 1.5rem !important;
}

/* Force product cards in related to have proper structure */
.related.products li.product,
.up-sells.products li.product {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  width: auto !important;
  margin: 0 !important;
}
.related.products li.product:hover,
.up-sells.products li.product:hover {
  box-shadow: 0 4px 20px rgba(2,132,199,0.1) !important;
  transform: translateY(-2px);
}
.related.products li.product > a,
.up-sells.products li.product > a {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}
.related.products li.product img,
.up-sells.products li.product img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: contain !important;
  background: #f8fafc;
  padding: 0.75rem;
  margin: 0 !important;
}
.related.products li.product .woocommerce-loop-product__title,
.up-sells.products li.product .woocommerce-loop-product__title {
  padding: 0.5rem 1rem 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  margin: 0 !important;
}
.related.products li.product .price,
.up-sells.products li.product .price {
  padding: 0 1rem 1rem !important;
  margin: 0.25rem 0 0 !important;
  font-size: 14px !important;
  color: #0f172a !important;
  font-weight: 600 !important;
}
.related.products li.product .button,
.up-sells.products li.product .button {
  margin: 0 1rem 1rem !important;
  font-size: 12px !important;
  padding: 0.45rem 0.85rem !important;
}

/* ============================================================
   PRODUCT ATTRIBUTES TABLE — clean styling
   ============================================================ */
.woocommerce-product-attributes,
table.shop_attributes,
.woocommerce table.shop_attributes {
  width: 100% !important;
  margin: 1rem 0 1.5rem !important;
  border-collapse: collapse !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.woocommerce-product-attributes th,
table.shop_attributes th {
  background: #f8fafc !important;
  padding: 0.7rem 1rem !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-align: left !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  width: 30% !important;
}
.woocommerce-product-attributes td,
table.shop_attributes td {
  padding: 0.7rem 1rem !important;
  font-size: 13px !important;
  color: #0f172a !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-style: normal !important;
}
.woocommerce-product-attributes tr:last-child th,
.woocommerce-product-attributes tr:last-child td,
table.shop_attributes tr:last-child th,
table.shop_attributes tr:last-child td {
  border-bottom: none !important;
}

/* ============================================================
   SHOP CATEGORY SIDEBAR — hide redundant left column
   Just the inline category text, keep filters if any
   ============================================================ */
.post-type-archive-product .fvd2-shop-sidebar > .fvd2-shop-info,
.post-type-archive-product .fvd-shop-info,
.post-type-archive-product aside.fvd-shop-aside,
.tax-product_cat .fvd2-shop-sidebar > .fvd2-shop-info {
  display: none !important;
}


/* ============================================================
   ANIMATIONS — page load and scroll reveals
   ============================================================ */

/* Smooth scroll across whole site */
html {
  scroll-behavior: smooth;
}

/* Hero entrance — fade up on load */
@keyframes fvd-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fvd-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fvd-scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply staggered animation to homepage hero elements */
.fvd-home__hero-content > * {
  opacity: 0;
  animation: fvd-fade-up 0.7s ease-out forwards;
}

.fvd-home__hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.fvd-home__hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.fvd-home__hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.fvd-home__hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.fvd-home__hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.fvd-home__hero-visual,
.fvd-home__hero-card,
.fvd-home__hero-info-card {
  opacity: 0;
  animation: fvd-scale-in 0.7s ease-out 0.4s forwards;
}

/* Scroll reveal — uses .fvd-reveal class added by JS via IntersectionObserver */
.fvd-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fvd-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside revealed sections */
.fvd-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fvd-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fvd-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.fvd-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.fvd-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.fvd-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.fvd-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.fvd-reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.fvd-reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

.fvd-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Product cards subtle entrance — used on shop archive */
ul.products li.product {
  opacity: 0;
  animation: fvd-fade-up 0.5s ease-out forwards;
}

ul.products li.product:nth-child(1)  { animation-delay: 0.05s; }
ul.products li.product:nth-child(2)  { animation-delay: 0.10s; }
ul.products li.product:nth-child(3)  { animation-delay: 0.15s; }
ul.products li.product:nth-child(4)  { animation-delay: 0.20s; }
ul.products li.product:nth-child(5)  { animation-delay: 0.25s; }
ul.products li.product:nth-child(6)  { animation-delay: 0.30s; }
ul.products li.product:nth-child(7)  { animation-delay: 0.35s; }
ul.products li.product:nth-child(8)  { animation-delay: 0.40s; }
ul.products li.product:nth-child(9)  { animation-delay: 0.45s; }
ul.products li.product:nth-child(10) { animation-delay: 0.50s; }
ul.products li.product:nth-child(11) { animation-delay: 0.55s; }
ul.products li.product:nth-child(12) { animation-delay: 0.60s; }

/* Buttons — refined micro-interactions */
.fvd-btn,
.fvd2-btn,
button.button,
.wp-element-button {
  position: relative;
  overflow: hidden;
}

.fvd-btn:active,
.fvd2-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Header nav links — subtle underline animation */
.ast-builder-menu a,
.main-header-menu > li > a {
  position: relative;
}

.ast-builder-menu a::after,
.main-header-menu > li > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.ast-builder-menu a:hover::after,
.main-header-menu > li > a:hover::after {
  width: 100%;
  left: 0;
}

/* Header icons — subtle scale on hover */
#fvd-cart-icon,
#fvd-account-icon {
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease !important;
}

#fvd-cart-icon:hover,
#fvd-account-icon:hover {
  transform: translateY(-1px) !important;
}

/* Cart count badge — pulse on update */
@keyframes fvd-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.fvd-cart-count.is-updated {
  animation: fvd-pulse 0.4s ease-out;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"]:not(.loaded) {
  opacity: 0;
}

img.loaded,
img:not([loading]) {
  opacity: 1;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fvd-reveal,
  .fvd-reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   MOBILE — universal responsive fixes
   ============================================================ */

/* Tablet & below */
@media (max-width: 1024px) {
  /* Inner pages: less side padding */
  body:not(.home) .ast-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Header container: smaller side padding */
  .ast-primary-header .ast-container,
  #masthead .ast-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Shop layout: stack sidebar above content */
  .fvd2-shop-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .fvd2-shop-sidebar {
    position: static !important;
  }

  .fvd2-shop-filter {
    margin-bottom: 0.5rem;
  }

  /* Single product: stack columns */
  .fvd2-single-product__grid,
  .woocommerce div.product {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header: smaller logo */
  .ast-primary-header .site-logo-img,
  .ast-builder-html-element img.custom-logo,
  .custom-logo-link img {
    max-height: 36px !important;
    width: auto !important;
  }

  /* Header icons: tighter spacing */
  #fvd-cart-icon,
  #fvd-account-icon {
    width: 36px !important;
    height: 36px !important;
    margin-left: 4px !important;
  }

  /* Lang switcher: hide flag images, show only text */
  #fvd-lang-sw img {
    display: none !important;
  }

  /* CTA banner: tighter padding */
  .fvd-home__cta-banner {
    padding: 3rem 0 !important;
  }

  /* Toolbar: stack count and sort */
  .fvd2-shop-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Footer: tighter padding */
  .fvd-footer__main {
    padding: 1.5rem 0 1rem !important;
  }

  /* Section spacing across the site */
  .fvd-section,
  .fvd-home__features,
  .fvd-home__categories,
  .fvd-home__products,
  .fvd-home__services {
    padding: 2.5rem 0 !important;
  }

  /* Cart/checkout: edge-to-edge on mobile */
  .wp-block-woocommerce-cart,
  .wp-block-woocommerce-checkout {
    padding: 1rem 1rem !important;
  }

  /* Checkout: stack main + sidebar */
  .wc-block-checkout__main,
  .wc-block-checkout__sidebar {
    width: 100% !important;
  }

  /* Product tabs: smaller padding */
  .woocommerce-tabs ul.tabs li a {
    padding: 0.7rem 1rem !important;
    font-size: 13px !important;
  }

  /* Attribute table: mobile-friendly */
  .woocommerce table.shop_attributes th,
  .woocommerce table.shop_attributes td,
  .woocommerce-product-attributes th,
  .woocommerce-product-attributes td {
    padding: 0.65rem 0.85rem !important;
    font-size: 13px !important;
  }
  .woocommerce table.shop_attributes th,
  .woocommerce-product-attributes th {
    width: 40% !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  /* Buttons: tighter padding */
  .fvd-btn,
  .fvd2-btn {
    padding: 0.7rem 1.1rem !important;
    font-size: 13px !important;
  }

  /* Body padding minimal */
  body:not(.home) .ast-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* Product cards: tighter padding */
  .fvd2-product-card {
    padding: 1rem !important;
  }

  /* Hero title smaller */
  .fvd-home__hero-title {
    font-size: 1.85rem !important;
    line-height: 1.1 !important;
  }

  /* CTA banner buttons stack */
  .fvd-home__cta-banner-content > div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Touch-friendly minimum tap targets (44px) */
@media (hover: none) and (pointer: coarse) {
  .fvd-btn,
  .fvd2-btn,
  .ast-builder-menu a,
  .main-header-menu > li > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Disable hover transforms on touch — prevents stuck states */
  .fvd2-product-card:hover {
    transform: none !important;
  }
}

/* ============================================================
   SHOP ARCHIVE — mobile collapsible filters
   ============================================================ */

/* Toggle button (hidden on desktop) */
.fvd2-filter-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: border-color 0.2s, background 0.2s;
}

.fvd2-filter-toggle:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

.fvd2-filter-toggle__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.fvd2-filter-toggle.is-open .fvd2-filter-toggle__icon {
  transform: rotate(180deg);
}

.fvd2-filter-toggle__count {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

/* Mobile: show toggle, hide sidebar by default */
@media (max-width: 1024px) {
  .fvd2-filter-toggle {
    display: flex !important;
  }

  .fvd2-shop-sidebar {
    display: none;
    margin-bottom: 1.25rem;
  }

  .fvd2-shop-sidebar.is-open {
    display: block;
    animation: fvd-fade-up 0.3s ease-out;
  }
}

/* ============================================================
   MOBILE — homepage product grids force single column
   Beats homepage.css and Astra inline CSS via specificity
   ============================================================ */
@media (max-width: 768px) {
  body .fvd-home__featured ul.products,
  body .fvd-home__new ul.products,
  body section.fvd-home__featured ul.products,
  body section.fvd-home__new ul.products,
  body .fvd-home__featured ul.products.columns-4,
  body .fvd-home__new ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  body .fvd-home__featured ul.products li.product,
  body .fvd-home__new ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
  }
}

/* ============================================================
   MOBILE HEADER — hamburger menu styling
   ============================================================ */

@media (max-width: 920px) {
  /* Hamburger button - light theme */
  .ast-mobile-menu-trigger-minimal,
  .menu-toggle.main-header-menu-toggle {
    color: var(--color-dark) !important;
    background: transparent !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.22s ease !important;
  }

  .ast-mobile-menu-trigger-minimal:hover,
  .menu-toggle.main-header-menu-toggle:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    background: #f0f9ff !important;
  }

  .ast-mobile-menu-trigger-minimal svg,
  .menu-toggle svg {
    fill: currentColor !important;
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobile menu dropdown */
  .ast-mobile-header-wrap .main-header-bar-navigation,
  #ast-mobile-header .main-header-bar-navigation {
    background: #ffffff !important;
    border-top: 1px solid var(--color-border) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,0.08) !important;
  }

  .main-header-menu.ast-nav-menu {
    background: #ffffff !important;
  }

  /* Mobile menu items */
  .ast-mobile-header-wrap .menu-item a,
  .main-header-bar-navigation .menu-item a {
    color: var(--color-dark) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    padding: 0.85rem 1.25rem !important;
    border-bottom: 1px solid var(--color-border) !important;
  }

  .ast-mobile-header-wrap .menu-item a:hover,
  .main-header-bar-navigation .menu-item a:hover {
    background: #f0f9ff !important;
    color: var(--color-primary) !important;
  }

  .ast-mobile-header-wrap .menu-item.current-menu-item > a {
    color: var(--color-primary) !important;
    font-weight: 600 !important;
  }

  /* Hide desktop header icons (cart/account injected via JS) on mobile inside dropdown — they're already in mobile bar */
  .ast-mobile-header-wrap #fvd-cart-icon,
  .ast-mobile-header-wrap #fvd-account-icon,
  .ast-mobile-header-wrap #fvd-lang-sw {
    display: inline-flex !important;
  }
}

/* Mobile header logo + icons row */
@media (max-width: 768px) {
  .ast-mobile-header-wrap .ast-builder-grid-row {
    padding: 0.5rem 0 !important;
  }

  /* Header icons remain visible on mobile */
  #fvd-cart-icon,
  #fvd-account-icon {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ============================================================
   COMPLIANZ COOKIE BANNER — light theme variant
   ============================================================ */

#cmplz-cookiebanner-container .cmplz-cookiebanner,
.cmplz-cookiebanner.cmplz-bottom-right,
.cmplz-cookiebanner.cmplz-bottom,
.cmplz-cookiebanner {
  background: #ffffff !important;
  color: var(--color-body) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 36px rgba(15,23,42,0.18) !important;
  font-family: var(--font-body) !important;
}

.cmplz-cookiebanner .cmplz-header,
.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-categories label,
.cmplz-cookiebanner h1,
.cmplz-cookiebanner h2,
.cmplz-cookiebanner h3 {
  color: var(--color-dark) !important;
  font-family: var(--font-heading) !important;
}

.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner p {
  color: var(--color-body) !important;
}

/* Close button */
.cmplz-cookiebanner .cmplz-close {
  color: var(--color-muted) !important;
}

/* Buttons */
.cmplz-cookiebanner .cmplz-btn,
.cmplz-cookiebanner .cmplz-accept,
.cmplz-cookiebanner button[data-cmplz_action="accept"] {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  padding: 0.7rem 1.2rem !important;
}

.cmplz-cookiebanner .cmplz-accept:hover,
.cmplz-cookiebanner button[data-cmplz_action="accept"]:hover {
  background: var(--color-primary-dk) !important;
}

.cmplz-cookiebanner .cmplz-deny,
.cmplz-cookiebanner button[data-cmplz_action="deny"] {
  background: #ffffff !important;
  color: var(--color-dark) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  padding: 0.7rem 1.2rem !important;
}

.cmplz-cookiebanner .cmplz-deny:hover {
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

.cmplz-cookiebanner .cmplz-view-preferences,
.cmplz-cookiebanner button[data-cmplz_action="view_preferences"],
.cmplz-cookiebanner .cmplz-save-preferences {
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-border) !important;
  border-radius: 8px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  padding: 0.7rem 1.2rem !important;
}

.cmplz-cookiebanner .cmplz-view-preferences:hover {
  background: #f0f9ff !important;
  border-color: var(--color-primary) !important;
}

/* Toggle switches in preferences */
.cmplz-cookiebanner .cmplz-checkbox + label {
  color: var(--color-body) !important;
}

/* Tab/category headers */
.cmplz-cookiebanner .cmplz-categories .cmplz-category-header,
.cmplz-cookiebanner .cmplz-tabs .cmplz-tab {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--color-border) !important;
  color: var(--color-dark) !important;
}

/* ============================================================
   HEADER SEARCH BUTTON — visible icon next to cart
   ============================================================ */

#fvd-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  color: var(--color-body);
  background: transparent;
  text-decoration: none;
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.22s ease;
}

#fvd-search-icon:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #f0f9ff;
  transform: translateY(-1px);
}

/* Search overlay */
#fvd-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  animation: fvd-fade-in 0.2s ease-out;
}

#fvd-search-overlay.is-open {
  display: flex;
}

#fvd-search-overlay__inner {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  width: min(580px, 90vw);
  box-shadow: 0 20px 50px rgba(15,23,42,0.3);
  animation: fvd-scale-in 0.22s ease-out;
}

#fvd-search-overlay form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#fvd-search-overlay input[type="search"],
#fvd-search-overlay input[type="text"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-dark);
  background: #ffffff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

#fvd-search-overlay input[type="search"]:focus,
#fvd-search-overlay input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.12);
}

#fvd-search-overlay button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
}

#fvd-search-overlay__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ABOUT PAGE — fvd-about__* styling
   ============================================================ */

.fvd-about {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.fvd-about__hero {
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.fvd-about__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: var(--color-dark) !important;
  margin: 0.5rem 0 1.25rem !important;
}

.fvd-about__lead {
  font-size: 1.1rem !important;
  color: var(--color-body) !important;
  line-height: 1.7 !important;
  max-width: 65ch;
}

.fvd-about__section-title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--color-dark) !important;
  margin: 0 0 1rem !important;
}

.fvd-about__why,
.fvd-about__what,
.fvd-about__approach,
.fvd-about__belief {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.fvd-about__belief {
  border-bottom: none;
}

/* Values grid */
.fvd-about__values {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  margin: 1.5rem 0 !important;
  align-items: stretch !important;
}

.fvd-about__value-card {
  background: #f8fafc !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  border-left: 3px solid var(--color-primary) !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.fvd-about__value-card h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  margin: 0 0 0.35rem !important;
}

.fvd-about__value-card p {
  font-size: 0.9rem !important;
  color: var(--color-body) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Approach list */
.fvd-about__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
}

.fvd-about__list li {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-size: 0.95rem !important;
  color: var(--color-body) !important;
  padding: 0 !important;
}

.fvd-about__list li::before {
  content: '' !important;
  flex-shrink: 0 !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
}

/* Tagline */
.fvd-about__tagline {
  margin-top: 1.5rem !important;
  padding: 1.25rem 1.5rem !important;
  background: #f0f9ff !important;
  border-left: 3px solid var(--color-primary) !important;
  border-radius: 0 10px 10px 0 !important;
  font-size: 1rem !important;
  color: var(--color-dark) !important;
}

/* CTA */
.fvd-about__cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.fvd-about__cta p {
  margin: 0 !important;
  font-size: 1rem !important;
  color: var(--color-body) !important;
}

.fvd-about__cta a {
  color: var(--color-primary) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.fvd-about__cta a:hover {
  text-decoration: underline !important;
}

/* Mobile */
@media (max-width: 640px) {
  .fvd-about__values {
    grid-template-columns: 1fr !important;
  }
  .fvd-about__title {
    font-size: 1.75rem !important;
  }
}

/* About page — force equal height value cards through WP block wrapper */
.fvd-about__values > .wp-block-group {
  height: 100% !important;
}
.fvd-about__values > .wp-block-group > .fvd-about__value-card {
  height: 100% !important;
}

/* ============================================================
   ABOUT PAGE — comprehensive fixes for WP block rendering
   ============================================================ */

/* Hide Astra's auto-generated page title (it duplicates our h1) */
.page-id-about-us .entry-title,
.page-template-default .entry-title,
body.page .entry-title {
  display: none !important;
}

/* Target specifically About Us page - use fvd-about class presence */
.fvd-about + * .entry-title,
.has-fvd-about .entry-title {
  display: none !important;
}

/* Remove the extra top margin/padding above fvd-about content */
.fvd-about {
  margin-top: 0 !important;
}

/* Value cards — kill ALL WP-added margins for consistent layout */
.fvd-about__values.wp-block-group,
.fvd-about__values {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  margin: 1.5rem 0 !important;
  align-items: start !important; /* Let each card be its own height */
}

/* Each WP group wrapper = equal padding, no WP defaults */
.fvd-about__values > .wp-block-group.fvd-about__value-card {
  background: #f8fafc !important;
  border: 1px solid var(--color-border) !important;
  border-left: 3px solid var(--color-primary) !important;
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  /* Kill WP is-layout-flow gap */
  gap: 0 !important;
}

/* Kill WP block default margins on h3 and p inside value cards */
.fvd-about__value-card.wp-block-group h3,
.fvd-about__value-card.wp-block-group .wp-block-heading {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
  margin: 0 0 0.4rem 0 !important;
  padding: 0 !important;
  /* Override WP is-layout-flow margin-block */
  margin-block-start: 0 !important;
  margin-block-end: 0.4rem !important;
}

.fvd-about__value-card.wp-block-group p {
  font-size: 0.9rem !important;
  color: var(--color-body) !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Also fix is-layout-flow spacing that WP adds between block children */
.fvd-about__value-card.is-layout-flow > * + * {
  margin-block-start: 0.4rem !important;
}

/* Fix the duplicate page title - hide Astra's entry-title on About Us */
.fvd-about ~ .entry-title,
.entry-content .fvd-about {
  margin-top: 0 !important;
}

/* Hide Astra page title wrapper when page has fvd-about content */
body.page:has(.fvd-about) .entry-title {
  display: none !important;
}

/* General about page typography fixes */
.fvd-about p {
  line-height: 1.7;
}

.fvd-about h2 {
  margin-top: 0 !important;
}

/* Approach list — fix WP bullet rendering */
.fvd-about__list.wp-block-list {
  list-style: none !important;
  padding: 0 !important;
  padding-inline-start: 0 !important;
}

.fvd-about__list.wp-block-list li {
  padding-inline-start: 0 !important;
}

.fvd-about__list.wp-block-list li::before {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  margin-right: 0.75rem !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

/* Mobile */
@media (max-width: 640px) {
  .fvd-about__values {
    grid-template-columns: 1fr !important;
  }
}
