/*
Theme Name: Astra Child
Template: astra
Version: 2026.09.08.2
*/
.ast-main-header-wrap .main-navigation a {
    color: #000000 !important; /* Pakeiskite spalvą į norimą */
}

.ast-main-header-wrap .main-navigation a:hover {
    color: #C69B71  !important; /* Pakeiskite spalvą užvedus pelę */
}

/* Užfiksuoti visą antraštę viršuje (desktop ir mobile) */
.ast-main-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Šešėlis */
    background-color: rgba(255, 255, 255, 0.5); /* Pusiau permatomas fonas */
    backdrop-filter: blur(5px); /* Fono suliejimas */
    transition: background-color 0.3s ease; /* Sklandus perėjimas */
}

/* Pakoreguoti, kad turinys nepaslėptų antraštės */
body {
    padding-top: 80px; /* Pakeiskite pagal antraštės aukštį */
}

/* Mobilusis meniu (kai jis atidarytas) */
.ast-main-header-nav-open #ast-mobile-header {
    position: fixed;
    top: 80px; /* Priderinkite prie fiksuotos antraštės aukščio */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9998;
    background-color: #ffffff; /* Meniu fonas */
    overflow-y: auto; /* Leidžia slinkti, jei meniu per didelis */
    max-height: calc(100vh - 80px); /* Apriboja aukštį, kad meniu nesidengtų su antrašte */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Šešėlis */
}

/* Užtikrinti, kad puslapis neslinktų, kai meniu atidarytas */
body.ast-main-header-nav-open {
    overflow-y: hidden;
    height: 100vh; /* Užfiksuoja puslapio aukštį, kai meniu atidarytas */
}

/* Papildomas stilius meniu punktams */
.ast-mobile-popup-inner {
    padding-top: 10px; /* Atskirti nuo antraštės */
}

/* Sklandus perėjimas meniu */
#ast-mobile-popup {
    transition: all 0.3s ease;
}

/* Jei meniu per daug ilgas, užtikrinti, kad galima slinkti */
.ast-main-header-nav-open #ast-mobile-header {
    overflow-y: scroll;
}

/* Padidinti tarpus po mobiliojo meniu antrašte */
.ast-main-header-nav-open #ast-mobile-header {
    padding-top: 35px; /* Pakeiskite skaičių, jei reikia didesnio tarpo */
}

/* TODO: REMOVE when Spectra icons/assets are stable (set reminder for 2025-09-24) */
/* Mobile safeguard: keeps Spectra/Astra icons (SVG) from exploding in size */
@media (max-width: 768px) {
  /* Testimonials quote icon */
  .uagb-blockquote__icon svg {
    width: 2.2em !important;
    height: 2.2em !important;
    opacity: .25;
  }

  /* Other Spectra/Astra icons (lock/heart/etc.) */
  .uagb-icon svg,
  .uagb-icon-list__source-svg svg,
  .ast-icon, i.fa, .dashicons {
    max-width: 2.5em !important;
    max-height: 2.5em !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    line-height: 1.2 !important;
  }
}

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 921px) {

  #masthead,
  #ast-mobile-header,
  .ast-mobile-header-wrap,
  .ast-mobile-header-content,
  .ast-primary-header-bar,
  .ast-builder-grid-row {
    background-color: #f5f0e8 !important;
  }

  #ast-mobile-header,
  .ast-mobile-header-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  }

  body {
    padding-top: 88px !important;
  }

}

/* ===== Mobile announcement bar clickable ===== */
@media (max-width: 921px) {

  #ast-mobile-header::before {
    content: "SS’26 NAUJIENOS JAU ČIA ✨";
    display: block;
    width: 100%;
    background: #c69b71;
    color: #ffffff;
    text-align: center;
    padding: 12px 14px;
    font-family: 'Marcellus', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
    box-sizing: border-box;
    cursor: pointer;
  }

  body {
    padding-top: 122px !important;
  }

}

/* ===== Mobile product page: purchase controls above the fold ===== */
/* WooCommerce's default hook order renders: title, price, short description,
   THEN the variations/add-to-cart form (size, color, embroidery, custom note,
   Į krepšelį). The short description carries real sizing/embroidery/made-to-
   order instructions and is often several paragraphs long, which pushes the
   purchase controls far below the fold on mobile single-column layout.
   Reorder visually so the purchase form sits right after price; the short
   description still renders in full, just after the form. Flexbox order only
   changes visual order, not DOM order, so screen readers/tab order and the
   variation/custom_note/add-to-cart logic are unaffected. Scoped to single
   product pages and to mobile widths only — desktop two-column layout is
   untouched. */
@media (max-width: 921px) {

  .single-product div.summary.entry-summary {
    display: flex;
    flex-direction: column;
  }

  .single-product div.summary.entry-summary > form.cart {
    order: 4;
  }

  .single-product div.summary.entry-summary > .woocommerce-product-details__short-description {
    order: 5;
  }

  .single-product div.summary.entry-summary > .product_meta {
    order: 6;
  }

}

/* ===== Custom note field: "no measurements yet" reassurance ===== */
.custom-text-field .custom-note-hint {
  font-size: 13px;
  color: #60605E;
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ===== Mobile purchase controls: moderate touch target size ===== */
/* On mobile only, nudge the plugin's pointer-era swatch/chip sizing (24px
   colour swatches, ~28px size/embroidery chips) up to an easier-to-tap but
   still compact size — a fashion/premium feel, not an accessibility-card
   grid. Desktop keeps the plugin's original compact sizing untouched. */
@media (max-width: 921px) {

  .cfvsw-swatches-option:not(.cfvsw-label-option) {
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .cfvsw-label-option {
    min-height: 36px !important;
  }

}

/* ===== Primary conversion CTA: Add to cart / Proceed to checkout / Place order ===== */
/* Verified live: the documented CTA treatment (Light Salmon #FC9770 background,
   white text) measures ~2.1:1 text contrast — well under WCAG AA's 4.5:1 — and is
   visually IDENTICAL between the enabled and not-yet-selectable ("disabled")
   states, so a ready-to-buy button and a not-ready one look the same. Per
   DESIGN_DIRECTION.md's own allowance for justified contrast deviations, this
   darkens to a warm brown from the same Camel/logomark family (already used in
   the brand's logomark colour variants) — white text now measures ~7.6:1.
   Scoped strictly to the three primary conversion actions (single product Add to
   cart, cart Proceed to checkout, checkout Place order) by exact class/id — the
   coupon button, update-cart button, category "Pasirinkti savybes" links,
   newsletter and nav controls are untouched. */
.single_add_to_cart_button.button.alt,
a.checkout-button.button.alt,
#place_order.button.alt {
  background-color: #6E4A34 !important;
  border-color: #6E4A34 !important;
  color: #ffffff !important;
}

.single_add_to_cart_button.button.alt:hover,
a.checkout-button.button.alt:hover,
#place_order.button.alt:hover {
  background-color: #5A3C2A !important;
  border-color: #5A3C2A !important;
  color: #ffffff !important;
}

.single_add_to_cart_button.button.alt:focus-visible,
a.checkout-button.button.alt:focus-visible,
#place_order.button.alt:focus-visible {
  outline: 3px solid #C69B71;
  outline-offset: 2px;
}

.single_add_to_cart_button.button.alt.disabled,
.single_add_to_cart_button.button.alt.disabled:hover,
.single_add_to_cart_button.button.alt:disabled,
#place_order.button.alt:disabled,
#place_order.button.alt.disabled {
  background-color: #DCD3C8 !important;
  border-color: #DCD3C8 !important;
  color: #8A8378 !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

@media (max-width: 921px) {

  .single_add_to_cart_button.button.alt {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
  }

  a.checkout-button.button.alt,
  #place_order.button.alt {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
  }

}
