/* =========================================================
   SAUNALE CORE CSS
   (moved from Customizer → stable, cacheable stylesheet)
========================================================= */


/* =========================
   1) BASE / GLOBAL
========================= */

.ct-order-review {
  background: #ffffff;
  border: 1px solid #e0e1df;
}

mark {
  display: none;
}

del {
  opacity: 0.5;
  padding-right: 6px;
}

/* soodushinna kujundus */
del .woocommerce-Price-amount {
  color: #888;
  opacity: 0.7;
  font-weight: 400;
}

ins .woocommerce-Price-amount {
  color: #2e2e2e;
  font-weight: 600;
  text-decoration: none;
}

/* kitsendatud (vältida kõrvalmõjusid muudel vormidel) */
.woocommerce form .form-row label {
  --fontWeight: 600;
}


/* =========================
   2) HEADER / SEARCH
========================= */

/* Otsingu placeholderi tekst */
form.search-form input {
  font-size: 16px;
}


/* =========================
   3) WOOCOMMERCE - ARCHIVE / CATEGORY
========================= */

/* Shop page sorting */
.woocommerce-ordering select {
  --form-font-size: 16px;
}

/* subcategory card */
[data-products="type-2"] .woocommerce-loop-category__title {
  font-size: 18px;
}

/* product category description */
[data-prefix="woo_categories"] .hero-section .page-description {
  --itemSpacing: 0px;
}

/* brandi font */
[data-prefix="woo_categories"] .entry-header .page-description {
  --theme-font-size: 16px;
  --theme-text-color: var(--theme-palette-color-3);
}

/* pagination margin */
[data-pagination="simple"],
[data-pagination="next_prev"] {
  margin-bottom: 40px;
}

/* offcanvas filter */
.ct-filter-trigger {
  font-size: 16px;
  text-transform: none;
  padding: 7px 40px;
  border: 1px solid #363636;
}


/* =========================
   4) WOOCOMMERCE - SINGLE PRODUCT
========================= */

/* Single product custom field label (variations) */
form.variations_form table.variations label {
  --fontWeight: 600;
}

/* vahe peale ostukorvi lisamise nuppu (FPF) */
.fpf-fields {
  display: block;
  clear: both;
  margin: 0 0;
}

.ct-default-gallery .entry-summary > form.cart,
.ct-stacked-gallery .entry-summary > form.cart {
  margin-top: 5px;
  padding-top: 5px;
}

/* Lisavalikud */
.lisavalikupealkiri {
  font-size: 24px;
  font-weight: 600;
  color: #53624e;
}

.valikute-pealkiri label {
  display: none;
}

.valikute-pealkiri {
  margin-bottom: 10px;
}

/* seotud toodete nupud */
.v6imalik-toode,
.v6imalik-toode-v,
.v6imalik-toode-q,
.v6imalik-toode-f {
  border: 2px solid #ccc;
  border-radius: 99px;
  height: 40px;
  display: inline-block;
  width: 84px;
  font-size: 16px;
  font-weight: 600;
  padding: 4px 12px;
  margin: 3px;
  cursor: pointer;
  text-align: center;
  color: #363636;
}

.v6imalik-toode,
.v6imalik-toode-v a {
  color: #363636;
}

.v6imalik-toode-v,
.v6imalik-toode-q {
  border: 2px solid #C0AF8B;
  cursor: auto;
}

.v6imalik-toode-q,
.v6imalik-toode-f {
  width: auto;
}

.v6imalik-toode:hover,
.v6imalik-toode-f:hover {
  border: 2px solid #C0AF8B;
  color: #363636;
}

/* CUSTOM TAB toote juures title */
.yikes-custom-woo-tab-title {
  display: none;
}


/* =========================
   5) CART / CHECKOUT
========================= */

/* Payment methods background + checkbox bg */
.payment_methods > li:not(.woocommerce-notice),
.woocommerce-form__input[type="checkbox"] {
  background: #f5f4f2;
}

/* Store notice */
.demo_store {
  text-align: center;
}

/* Added to cart button (sidebar / notice actions) */
.ct-cart-actions .added_to_cart {
  background-color: #C2D1BF;
  border: 2px solid #485446;
  font-size: 18px;
}

/* Ostukorvi login teavituse tekst */
.showlogin {
  font-weight: 600;
}

/* KINKEKAART KASSAS */
.add_gift_card_form h4 {
  font-size: 15px;
  font-weight: bold;
  line-height: 14px;
}

/* === WooCommerce checkout CTA sama mis Add to Cart === */
/* Ostukorv – Mine maksma + Kassas “Esita tellimus” */
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order {
  background-color: #3F453A !important;
  border-color: #3F453A !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Hover */
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover {
  background-color: #4A5145 !important;
  border-color: #4A5145 !important;
}

/* Woo notice (woocommerce-message) nupu värvid Blocksy muutujatega */
.woocommerce-message {
  --theme-button-background-initial-color: #3F453A;
  --theme-button-text-initial-color: #ffffff;
  --theme-button-border: 1px solid #3F453A;

  --theme-button-background-hover-color: #4A5145;
  --theme-button-text-hover-color: #ffffff;
  --theme-button-border-hover-color: 1px solid #4A5145;
}

/* See rida oli sul eraldi teise .woocommerce-message all – ühendatud siia */
.woocommerce-message {
  --theme-button-border-initial-color: 1px solid #3F453A;
}

/* Peida 'Lisavalikud' fee rida ostukorvis ja kassas */
.woocommerce-cart tr.fee,
.woocommerce-checkout tr.fee {
  display: none !important;
}


/* =========================
   6) PLUGINS (Select2 / YITH / reCAPTCHA / Labels / Badges)
========================= */

/* Sidebar filter heading (select2 placeholder) */
.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
  color: #363636 !important;
  font-size: 16px;
}

/* Filtrite height */
span.select2-dropdown .select2-results__option {
  padding: 4px 10px;
}

/* reCaptcha badge peitmine */
.grecaptcha-badge {
  width: 0px !important;
}

/* Add to Quote button */
.woocommerce .add-request-quote-button.button {
  width: 100%;
  --buttonMinHeight: 45px;
  margin-bottom: 15px;
}

a.add-request-quote-button.button {
  font-size: 15px;
}

.yith_ywraq_add_item_response_message {
  font-size: 17px;
}

.yith_ywraq_add_item_browse_message {
  font-size: 20px;
  font-weight: 600;
}

/* Add to Quote page */
.ywraq-form-table-wrapper.wide .yith-ywraq-mail-form-wrapper {
  background: #ffffff;
  border: 1px solid #e0e1df;
}

/* quote widget (duplikaat eemaldatud) */
.widget_ywraq_mini_list_quote {
  margin: 0;
}

.widget_ywraq_mini_list_quote .raq-info {
  margin: 0;
  padding: 0;
  color: #393;
  font-size: 12px;
}

/* labelid */
.wapl-label .product-label {
  padding: 0.25em 0.65em 0.35em;
  font-size: 10px;
  font-weight: normal;
  bottom: 5px;
}

/* Tasuta transpordi badge */
.fsb_badge_view {
  background-color: #c0af8b;
  margin-left: 10px;
}


/* =========================
   7) WOOCOMMERCE - PRODUCT CARDS / LAYOUT
========================= */

[data-products] .product {
  background-color: #fff;
  border-radius: 5px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: var(--horizontal-alignment);
  text-align: var(--text-horizontal-alignment);
}


/* =========================
   8) HERO PRODUCTS (badge styling)
========================= */

/* HERO Products – small card price badge text color */
.hero-products-container .hero-products-final-price,
.hero-products-container .hero-products-final-price *,
.hero-products-container .hero-products-full-price,
.hero-products-container .hero-products-full-price * {
  color: #ffffff !important;
}

/* price badge background jääb roheliseks */
.hero-products-container .hero-products-final-price {
  background-color: var(--hero-products-accent-color);
  border-radius: 3px;
}


/* =========================
   9) SALE BADGE (archive + single)
========================= */

/* Ensure containers are positioned for absolute badge placement */
.woocommerce ul.products li.product figure,
.woocommerce-page ul.products li.product figure,
.woocommerce div.product,
.woocommerce-page div.product {
  position: relative !important;
}

/* FORCE sale badge visible + positioned (archive + single) */
.woocommerce .onsale,
.woocommerce-page .onsale {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;

  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 9999 !important;

  background: #8C5A2B !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 8px 10px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.single-product .woocommerce-product-gallery .onsale {
  top: 12px !important;
  left: 12px !important;
}


/* =========================
   10) FOOTER (pangalingid / tarnelingid)
========================= */

.pangalingid li img {
  width: 100px;
  float: left;
  margin-right: 5px;
}

/* Pangalingid ja tarnelingid footeris */
.ct-footer [data-column*="widget-area-6"] {
  display: inline-block;
  text-align: center;
}

.ct-footer [data-column*="widget-area-6"] img {
  margin: 0px 10px 0px 0px;
  filter: grayscale(100%);
  opacity: 0.7;
}


/* =========================
   11) ANNOUNCEMENT BAR / LOGIN TRIGGER
========================= */

.xoo-el-login-tgr {
  color: #485446;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.xoo-el-login-tgr:hover {
  opacity: 0.85;
}


/* =========================
   12) HERO + CTA COMPONENTS (NOT critical; move here)
   NB! Background/overlay for hero is left to Customizer block
========================= */

.hero-sauna .wp-block-html .saunale-cta-bar {
  width: 100%;
  background: rgba(255,255,255,0.40);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 34px 24px;
}

.saunale-cta-bar .cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.saunale-cta-bar .cta-text {
  font-size: 19px;
  font-weight: 600;
  color: #3F453A;
  margin-bottom: 15px;
}

.saunale-cta-bar .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-size: 16px;
}

.cta-primary {
  background: #53624E;
  color: #ffffff;
}

.cta-primary:hover {
  background: #3F453A;
  color: #fff;
}

.cta-secondary {
  border: 2px solid #53624E;
  color: #53624E;
  background: transparent;
}

.cta-secondary:hover {
  background: #53624E;
  color: #ffffff;
}

/* kolmas CTA – õppimise suunaja */
.cta-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: #53624E;
  opacity: 0.9;
  text-decoration: none;
  transition: all 0.2s ease;
  text-underline-offset: 3px;
}

.cta-tertiary:hover {
  color: #3F453A;
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.cta-tertiary span {
  font-size: 16px;
  line-height: 1;
}


/* =========================
   13) SAUNAJUTUD (page + filter bar)
========================= */

.saunajutud-more {
  margin-top: 40px;
  text-align: center;
}

.saunajutud-hero {
  max-width: 1200px;
  margin: 40px auto 12px;
  padding: 0 20px;
  text-align: center;
}

.saunajutud-hero h1 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #3f453a;
}

.saunajutud-lead {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #5c6458;
}

/* 2-haru “filtririba” */
.saunajutud-filter {
  max-width: 1200px;
  margin: 10px auto 34px;
  padding: 0 20px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-link {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #d3d6cf;

  font-size: 14px;
  text-decoration: none;
  color: #53624E;

  transition: all 0.2s ease;
}

.filter-link:hover {
  background: #f1f3ef;
}

.filter-link.active {
  background: #53624E;
  color: #ffffff;
  border-color: #53624E;
}

/* Peida Blocksy automaatne lehe pealkiri ainult Saunajuttude lehel */
.page-id-26296 .entry-title,
.page-id-26296 .page-title {
  display: none !important;
}


/* =========================
   14) MOBILE
========================= */

@media (max-width: 768px) {
  .saunale-cta-bar {
    padding: 32px 16px;
  }

  .saunale-cta-bar .cta-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .cta-btn {
    width: 100%;
    text-align: center;
  }
}
/* HERO products – force price text WHITE inside badge (Woo markup) */
.hero-products-container .hero-products-final-price .woocommerce-Price-amount,
.hero-products-container .hero-products-final-price .woocommerce-Price-amount *,
.hero-products-container .hero-products-final-price .amount,
.hero-products-container .hero-products-final-price .amount *,
.hero-products-container .hero-products-final-price bdi,
.hero-products-container .hero-products-final-price .woocommerce-Price-currencySymbol {
  color: #ffffff !important;
}
/* FPF totals: peida ainult "Kokku" (grand total) rida tootelehel */
.single-product .fpf-totals #fpf_totals .total-row {
  display: none !important;
}

