/*!
 * Valgusallikad theme — 05-modernization.css
 * v1.5.7 unified product card actions + AJAX state, v1.5.8–v1.6.5 product card compaction, contact page, single product whitespace, checkout/account/variations UX, payment logos, latest products, sub-category cards.
 * (Source: original theme.css lines 6030–7390)
 *
 * Maintenance note: parts are concatenated in numeric order at runtime.
 * Editing this file affects only the rules originally in this epoch.
 */

/* =========================================================
   v1.5.6 — avalehe tootekaardi ostunupu kindel nähtavus
   ========================================================= */
.vlg-home-product-section .vlg-card-actions,
.home .vlg-product-section .vlg-card-actions,
.front-page .vlg-product-section .vlg-card-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 12px 14px 14px !important;
  margin-top: 0 !important;
  transform: none !important;
}

.vlg-home-product-section .vlg-card-actions .button,
.vlg-home-product-section .vlg-card-actions .vlg-card-cart,
.home .vlg-product-section .vlg-card-actions .button,
.front-page .vlg-product-section .vlg-card-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--vlg-primary), #d96b00) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}

.vlg-home-product-section .vlg-card-actions .button::before,
.vlg-home-product-section .vlg-card-actions .button::after,
.vlg-home-product-section .vlg-card-actions .vlg-card-cart::before,
.vlg-home-product-section .vlg-card-actions .vlg-card-cart::after {
  display: none !important;
  content: none !important;
}

.vlg-home-product-section .vlg-card-actions .added_to_cart.wc-forward {
  display: none !important;
}

@media (max-width: 767px) {
  .vlg-home-product-section .vlg-card-actions,
  .home .vlg-product-section .vlg-card-actions,
  .front-page .vlg-product-section .vlg-card-actions {
    display: flex !important;
    padding: 0 10px 10px !important;
  }

  .vlg-home-product-section .vlg-card-actions .button,
  .vlg-home-product-section .vlg-card-actions .vlg-card-cart,
  .home .vlg-product-section .vlg-card-actions .button,
  .front-page .vlg-product-section .vlg-card-actions .button {
    min-height: 38px !important;
    font-size: 12px !important;
    padding: 10px 8px !important;
  }
}

/* =========================================================
   v1.5.7 — tootekaardi nuppude ühtne renderdus + AJAX olek
   ========================================================= */
.vlg-product-card[data-vlg-product-card] {
  isolation: isolate;
}

.vlg-product-card[data-vlg-product-card] .vlg-card-actions {
  position: relative;
}

.vlg-product-card[data-vlg-product-card] .vlg-card-actions:empty {
  display: none !important;
}

.vlg-card-actions .button.is-loading,
.vlg-card-cart.is-loading {
  cursor: wait !important;
  opacity: .78 !important;
  pointer-events: none !important;
}

.vlg-card-actions .button.is-loading::after,
.vlg-card-cart.is-loading::after {
  content: '' !important;
  display: inline-block !important;
  width: 1em;
  height: 1em;
  margin-left: .55em;
  border: 2px solid rgba(255, 255, 255, .55);
  border-top-color: #fff;
  border-radius: 999px;
  animation: vlg-spin .75s linear infinite;
}

@keyframes vlg-spin {
  to { transform: rotate(360deg); }
}

.vlg-card-actions .button.is-added,
.vlg-card-cart.is-added {
  background: #16a34a !important;
  color: #fff !important;
}

.vlg-home-product-section .vlg-product-card[data-vlg-product-card] .vlg-card-actions,
.vlg-home-product-section .vlg-product-card[data-vlg-product-card] .vlg-card-actions .button,
.vlg-home-product-section .vlg-product-card[data-vlg-product-card] .vlg-card-actions .vlg-card-cart {
  opacity: 1 !important;
  visibility: visible !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vlg-card-actions .button.is-loading::after,
  .vlg-card-cart.is-loading::after {
    animation: none;
  }
}


/* =========================================================
   v1.5.8 — avalehe tootekaardid kompaktsemaks + pealkirja joondus
   ========================================================= */
/* Eemalda kahekordne oranž joon sektsiooni pealkirja alt. */
.vlg-section-head h1::after,
.vlg-section-head h2::after {
  content: none !important;
  display: none !important;
}

/* Hoia pealkirja alumine joon ühtlaselt joondatud. */
.vlg-section-head {
  align-items: flex-start !important;
}
.vlg-section-head::after {
  left: 0 !important;
  bottom: 0 !important;
  width: 56px !important;
  height: 4px !important;
}

/* Avalehe/populaarsete toodete kaartides vähenda tühja ruumi,
   et hind ja ostunupp oleksid kohe näha. */
.vlg-home-product-section .vlg-products-grid,
.home .vlg-product-section .vlg-products-grid,
.front-page .vlg-product-section .vlg-products-grid {
  align-items: start !important;
}

.vlg-home-product-section .vlg-product-card,
.home .vlg-product-section .vlg-product-card,
.front-page .vlg-product-section .vlg-product-card {
  height: auto !important;
  min-height: 0 !important;
}

.vlg-home-product-section .vlg-product-card .vlg-product-link,
.home .vlg-product-section .vlg-product-card .vlg-product-link,
.front-page .vlg-product-section .vlg-product-card .vlg-product-link {
  flex: 0 0 auto !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-image-wrap,
.home .vlg-product-section .vlg-product-card .vlg-card-image-wrap,
.front-page .vlg-product-section .vlg-product-card .vlg-card-image-wrap {
  padding: 12px 12px 8px !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-image-wrap img,
.home .vlg-product-section .vlg-product-card .vlg-card-image-wrap img,
.front-page .vlg-product-section .vlg-product-card .vlg-card-image-wrap img {
  max-height: 180px !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-content,
.home .vlg-product-section .vlg-product-card .vlg-card-content,
.front-page .vlg-product-section .vlg-product-card .vlg-card-content {
  flex: 0 0 auto !important;
  gap: 6px !important;
  padding-bottom: 0 !important;
}

.vlg-home-product-section .vlg-product-card h2,
.home .vlg-product-section .vlg-product-card h2,
.front-page .vlg-product-section .vlg-product-card h2 {
  min-height: 2.8em !important;
  margin-bottom: 0 !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-price,
.vlg-home-product-section .vlg-product-card .vlg-card-price .price,
.home .vlg-product-section .vlg-product-card .vlg-card-price,
.home .vlg-product-section .vlg-product-card .vlg-card-price .price,
.front-page .vlg-product-section .vlg-product-card .vlg-card-price,
.front-page .vlg-product-section .vlg-product-card .vlg-card-price .price {
  margin-top: 6px !important;
  padding-top: 0 !important;
  font-size: 16px !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-actions,
.home .vlg-product-section .vlg-product-card .vlg-card-actions,
.front-page .vlg-product-section .vlg-product-card .vlg-card-actions {
  margin-top: 8px !important;
  padding: 0 14px 14px !important;
}

.vlg-home-product-section .vlg-product-card .vlg-card-actions .button,
.vlg-home-product-section .vlg-product-card .vlg-card-actions .vlg-card-cart,
.home .vlg-product-section .vlg-product-card .vlg-card-actions .button,
.home .vlg-product-section .vlg-product-card .vlg-card-actions .vlg-card-cart,
.front-page .vlg-product-section .vlg-product-card .vlg-card-actions .button,
.front-page .vlg-product-section .vlg-product-card .vlg-card-actions .vlg-card-cart {
  min-height: 42px !important;
}

@media (max-width: 767px) {
  .vlg-home-product-section .vlg-product-card .vlg-card-image-wrap img,
  .home .vlg-product-section .vlg-product-card .vlg-card-image-wrap img,
  .front-page .vlg-product-section .vlg-product-card .vlg-card-image-wrap img {
    max-height: 140px !important;
  }

  .vlg-home-product-section .vlg-product-card .vlg-card-actions,
  .home .vlg-product-section .vlg-product-card .vlg-card-actions,
  .front-page .vlg-product-section .vlg-product-card .vlg-card-actions {
    padding: 0 10px 10px !important;
    margin-top: 6px !important;
  }
}


/* =========================================================
   v1.5.9 — poe ja kategoorialehtede tootekaardid kompaktsemaks
   ========================================================= */
/* Näita tootekaardi ostunuppu kindlalt ka poes, kategooriates ja otsingus. */
.post-type-archive-product .vlg-product-card .vlg-card-actions,
.tax-product_cat .vlg-product-card .vlg-card-actions,
.tax-product_tag .vlg-product-card .vlg-card-actions,
.vlg-search-products-page .vlg-product-card .vlg-card-actions,
.vlg-shop-products .vlg-product-card .vlg-card-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Tee kaardid sisult kompaktsemaks, et ei tekiks suurt tühja plokki pealkirja ja hinna vahele. */
.post-type-archive-product .vlg-shop-products ul.products,
.tax-product_cat .vlg-shop-products ul.products,
.tax-product_tag .vlg-shop-products ul.products,
.vlg-search-products-page .vlg-shop-products ul.products {
  align-items: start !important;
}

.post-type-archive-product .vlg-product-card,
.tax-product_cat .vlg-product-card,
.tax-product_tag .vlg-product-card,
.vlg-search-products-page .vlg-product-card,
.vlg-shop-products .vlg-product-card {
  height: auto !important;
  min-height: 0 !important;
}

.post-type-archive-product .vlg-product-card .vlg-product-link,
.tax-product_cat .vlg-product-card .vlg-product-link,
.tax-product_tag .vlg-product-card .vlg-product-link,
.vlg-search-products-page .vlg-product-card .vlg-product-link,
.vlg-shop-products .vlg-product-card .vlg-product-link {
  flex: 0 0 auto !important;
}

.post-type-archive-product .vlg-product-card .vlg-card-image-wrap img,
.tax-product_cat .vlg-product-card .vlg-card-image-wrap img,
.tax-product_tag .vlg-product-card .vlg-card-image-wrap img,
.vlg-search-products-page .vlg-product-card .vlg-card-image-wrap img,
.vlg-shop-products .vlg-product-card .vlg-card-image-wrap img {
  max-height: 180px !important;
}

.post-type-archive-product .vlg-product-card .vlg-card-content,
.tax-product_cat .vlg-product-card .vlg-card-content,
.tax-product_tag .vlg-product-card .vlg-card-content,
.vlg-search-products-page .vlg-product-card .vlg-card-content,
.vlg-shop-products .vlg-product-card .vlg-card-content {
  flex: 0 0 auto !important;
  gap: 6px !important;
  padding-bottom: 0 !important;
}

.post-type-archive-product .vlg-product-card h2,
.tax-product_cat .vlg-product-card h2,
.tax-product_tag .vlg-product-card h2,
.vlg-search-products-page .vlg-product-card h2,
.vlg-shop-products .vlg-product-card h2 {
  min-height: 2.8em !important;
  margin-bottom: 0 !important;
}

.post-type-archive-product .vlg-product-card .vlg-card-price,
.post-type-archive-product .vlg-product-card .vlg-card-price .price,
.tax-product_cat .vlg-product-card .vlg-card-price,
.tax-product_cat .vlg-product-card .vlg-card-price .price,
.tax-product_tag .vlg-product-card .vlg-card-price,
.tax-product_tag .vlg-product-card .vlg-card-price .price,
.vlg-search-products-page .vlg-product-card .vlg-card-price,
.vlg-search-products-page .vlg-product-card .vlg-card-price .price,
.vlg-shop-products .vlg-product-card .vlg-card-price,
.vlg-shop-products .vlg-product-card .vlg-card-price .price {
  margin-top: 6px !important;
  font-size: 16px !important;
}

.post-type-archive-product .vlg-product-card .vlg-card-actions,
.tax-product_cat .vlg-product-card .vlg-card-actions,
.tax-product_tag .vlg-product-card .vlg-card-actions,
.vlg-search-products-page .vlg-product-card .vlg-card-actions,
.vlg-shop-products .vlg-product-card .vlg-card-actions {
  margin-top: 8px !important;
  padding: 0 14px 14px !important;
}

@media (max-width: 767px) {
  .post-type-archive-product .vlg-product-card .vlg-card-image-wrap img,
  .tax-product_cat .vlg-product-card .vlg-card-image-wrap img,
  .tax-product_tag .vlg-product-card .vlg-card-image-wrap img,
  .vlg-search-products-page .vlg-product-card .vlg-card-image-wrap img,
  .vlg-shop-products .vlg-product-card .vlg-card-image-wrap img {
    max-height: 140px !important;
  }

  .post-type-archive-product .vlg-product-card .vlg-card-actions,
  .tax-product_cat .vlg-product-card .vlg-card-actions,
  .tax-product_tag .vlg-product-card .vlg-card-actions,
  .vlg-search-products-page .vlg-product-card .vlg-card-actions,
  .vlg-shop-products .vlg-product-card .vlg-card-actions {
    padding: 0 10px 10px !important;
  }
}


/* =========================================================
   v1.6.0 — kõik tootekaardid kompaktsemaks + kontaktlehe uus vaade
   ========================================================= */
/* Ühtlusta kõigi tooteloendite kaartide alumine osa, sh seotud tooted ja upsellid. */
ul.products,
.vlg-products-grid,
.related ul.products,
.upsells ul.products {
  align-items: start !important;
}

ul.products li.product.vlg-product-card,
.vlg-products-grid li.product.vlg-product-card,
.related li.product.vlg-product-card,
.upsells li.product.vlg-product-card {
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

ul.products li.product.vlg-product-card .vlg-product-link,
.vlg-products-grid li.product.vlg-product-card .vlg-product-link,
.related li.product.vlg-product-card .vlg-product-link,
.upsells li.product.vlg-product-card .vlg-product-link {
  flex: 0 0 auto !important;
}

ul.products li.product.vlg-product-card .vlg-card-image-wrap img,
.vlg-products-grid li.product.vlg-product-card .vlg-card-image-wrap img,
.related li.product.vlg-product-card .vlg-card-image-wrap img,
.upsells li.product.vlg-product-card .vlg-card-image-wrap img {
  max-height: 180px !important;
}

ul.products li.product.vlg-product-card .vlg-card-content,
.vlg-products-grid li.product.vlg-product-card .vlg-card-content,
.related li.product.vlg-product-card .vlg-card-content,
.upsells li.product.vlg-product-card .vlg-card-content {
  flex: 0 0 auto !important;
  gap: 6px !important;
  padding-bottom: 0 !important;
}

ul.products li.product.vlg-product-card h2,
.vlg-products-grid li.product.vlg-product-card h2,
.related li.product.vlg-product-card h2,
.upsells li.product.vlg-product-card h2 {
  min-height: 2.8em !important;
  margin-bottom: 0 !important;
}

ul.products li.product.vlg-product-card .vlg-card-price,
ul.products li.product.vlg-product-card .vlg-card-price .price,
.vlg-products-grid li.product.vlg-product-card .vlg-card-price,
.vlg-products-grid li.product.vlg-product-card .vlg-card-price .price,
.related li.product.vlg-product-card .vlg-card-price,
.related li.product.vlg-product-card .vlg-card-price .price,
.upsells li.product.vlg-product-card .vlg-card-price,
.upsells li.product.vlg-product-card .vlg-card-price .price {
  margin-top: 6px !important;
  font-size: 16px !important;
}

ul.products li.product.vlg-product-card .vlg-card-actions,
.vlg-products-grid li.product.vlg-product-card .vlg-card-actions,
.related li.product.vlg-product-card .vlg-card-actions,
.upsells li.product.vlg-product-card .vlg-card-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 8px !important;
  padding: 0 14px 14px !important;
}

ul.products li.product.vlg-product-card .vlg-card-actions .button,
.vlg-products-grid li.product.vlg-product-card .vlg-card-actions .button,
.related li.product.vlg-product-card .vlg-card-actions .button,
.upsells li.product.vlg-product-card .vlg-card-actions .button,
ul.products li.product.vlg-product-card .vlg-card-actions .vlg-card-cart,
.vlg-products-grid li.product.vlg-product-card .vlg-card-actions .vlg-card-cart,
.related li.product.vlg-product-card .vlg-card-actions .vlg-card-cart,
.upsells li.product.vlg-product-card .vlg-card-actions .vlg-card-cart {
  width: 100% !important;
  min-height: 42px !important;
}

.single-product .related.products,
.single-product .upsells.products {
  margin-top: 20px !important;
}
.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  margin-bottom: 14px !important;
}

/* Kontaktleht silmapaistvamaks ja puhtamaks. */
.vlg-contact-page-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.vlg-contact-hero {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,240,.96)) !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--vlg-shadow-soft) !important;
  padding: 28px !important;
  margin-bottom: 22px !important;
}
.vlg-contact-hero h1 {
  margin: 8px 0 10px !important;
  font-size: clamp(30px, 4vw, 46px) !important;
  line-height: 1 !important;
}
.vlg-contact-hero p {
  max-width: 68ch;
  color: var(--vlg-muted);
  font-size: 16px;
}
.vlg-contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.vlg-btn-ghost {
  background: #fff !important;
  color: var(--vlg-dark) !important;
  border: 1px solid var(--vlg-line) !important;
}

.vlg-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}
.vlg-contact-main,
.vlg-contact-side {
  display: grid;
  gap: 18px;
}
.vlg-contact-content,
.vlg-contact-info-card,
.vlg-contact-cta-card {
  background: #fff;
  border: 1px solid var(--vlg-line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(17, 32, 55, .05);
}
.vlg-contact-content {
  padding: 24px;
}
.vlg-contact-content > :first-child { margin-top: 0; }
.vlg-contact-content form,
.vlg-contact-content .wpcf7,
.vlg-contact-content .wpforms-container {
  margin-top: 18px;
}
.vlg-contact-content input:not([type=checkbox]):not([type=radio]):not([type=submit]),
.vlg-contact-content textarea,
.vlg-contact-content select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--vlg-line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
}
.vlg-contact-content textarea { min-height: 140px; resize: vertical; }
.vlg-contact-content button,
.vlg-contact-content input[type=submit],
.vlg-contact-content .wpcf7-submit,
.vlg-contact-content .wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--vlg-primary), #d96b00);
  color: #fff;
  font-weight: 900;
}
.vlg-contact-info-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
  align-items: start;
}
.vlg-contact-info-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(247, 148, 29, .12);
  color: var(--vlg-primary-dark);
  font-size: 22px;
}
.vlg-contact-info-card strong,
.vlg-contact-cta-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--vlg-dark);
}
.vlg-contact-info-card a,
.vlg-contact-info-card span {
  color: var(--vlg-muted);
  word-break: break-word;
}
.vlg-contact-cta-card {
  padding: 20px;
}
.vlg-contact-cta-card p {
  color: var(--vlg-muted);
  margin: 0 0 14px;
}

@media (max-width: 991px) {
  .vlg-contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  ul.products li.product.vlg-product-card .vlg-card-image-wrap img,
  .vlg-products-grid li.product.vlg-product-card .vlg-card-image-wrap img,
  .related li.product.vlg-product-card .vlg-card-image-wrap img,
  .upsells li.product.vlg-product-card .vlg-card-image-wrap img {
    max-height: 140px !important;
  }

  ul.products li.product.vlg-product-card .vlg-card-actions,
  .vlg-products-grid li.product.vlg-product-card .vlg-card-actions,
  .related li.product.vlg-product-card .vlg-card-actions,
  .upsells li.product.vlg-product-card .vlg-card-actions {
    padding: 0 10px 10px !important;
  }

  .vlg-contact-hero {
    padding: 22px !important;
    border-radius: 20px !important;
  }
}


/* =========================================================
   v1.6.1 — single product whitespace fix + built-in admin contact page
   ========================================================= */
.single-product .vlg-product-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px) !important;
  gap: 24px !important;
  align-items: start !important;
}
.single-product .vlg-product-left,
.single-product .vlg-product-right {
  min-width: 0 !important;
  display: grid !important;
  gap: 18px !important;
  align-content: start !important;
}
.single-product .vlg-product-gallery-card,
.single-product .vlg-product-summary-card,
.single-product .vlg-product-tabs,
.single-product .vlg-product-sidecard {
  grid-column: auto !important;
  grid-row: auto !important;
}
.single-product .vlg-product-right .vlg-product-summary-card {
  position: sticky !important;
  top: calc(var(--vlg-header-offset) + 16px) !important;
}
.single-product .vlg-product-right .vlg-product-sidecard {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 16px !important;
}
.single-product .vlg-side-feature {
  display: grid !important;
  grid-template-columns: 42px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
}
.single-product .vlg-side-feature > span {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  background: rgba(242, 138, 0, .10) !important;
}

/* Tee ostukast selgemaks, eriti variatsioonidega toodetel. */
.single-product .vlg-product-buybox {
  gap: 10px !important;
}
.single-product .vlg-product-buybox form.cart,
.single-product form.variations_form.cart {
  display: grid !important;
  gap: 10px !important;
}
.single-product form.variations_form .variations {
  width: 100% !important;
  margin: 0 !important;
}
.single-product form.variations_form .variations td,
.single-product form.variations_form .variations th {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
}
.single-product form.variations_form .variations label {
  display: block !important;
  margin-bottom: 6px !important;
  color: var(--vlg-dark) !important;
  font-weight: 800 !important;
}
.single-product form.variations_form .variations select,
.single-product .vlg-product-buybox .quantity .qty {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 14px !important;
}
.single-product form.variations_form .single_variation_wrap {
  display: grid !important;
  gap: 10px !important;
}
.single-product form.variations_form .woocommerce-variation-add-to-cart,
.single-product .vlg-product-buybox form.cart {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}
.single-product .single_variation {
  margin: 0 !important;
}
.single-product .reset_variations {
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 700 !important;
  color: var(--vlg-primary-dark) !important;
  margin-top: 6px !important;
}

/* Kontaktlehe valmis vorm ja kaardid. */
.vlg-contact-form-card,
.vlg-contact-map-card {
  background: #fff;
  border: 1px solid var(--vlg-line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(17, 32, 55, .05);
  padding: 24px;
}
.vlg-contact-form-card h2,
.vlg-contact-map-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
}
.vlg-contact-form-intro,
.vlg-contact-copy p {
  color: var(--vlg-muted);
}
.vlg-contact-form {
  display: grid;
  gap: 14px;
}
.vlg-contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vlg-contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--vlg-dark);
}
.vlg-contact-form-full {
  grid-column: 1 / -1;
}
.vlg-contact-form input:not(.vlg-hp),
.vlg-contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--vlg-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}
.vlg-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.vlg-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.vlg-contact-notice {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.vlg-contact-notice.is-success {
  background: rgba(22, 163, 74, .1);
  color: #166534;
}
.vlg-contact-notice.is-error {
  background: rgba(220, 38, 38, .08);
  color: #991b1b;
}
.vlg-contact-copy + .vlg-contact-copy {
  margin-top: 14px;
}
.vlg-contact-map-embed iframe {
  width: 100% !important;
  min-height: 340px !important;
  border: 0 !important;
  border-radius: 16px !important;
}

@media (max-width: 991px) {
  .single-product .vlg-product-main-grid {
    grid-template-columns: 1fr !important;
  }
  .single-product .vlg-product-right .vlg-product-summary-card {
    position: static !important;
  }
}

@media (max-width: 767px) {
  .single-product form.variations_form .woocommerce-variation-add-to-cart,
  .single-product .vlg-product-buybox form.cart,
  .vlg-contact-form-grid {
    grid-template-columns: 1fr !important;
  }
  .vlg-contact-form-card,
  .vlg-contact-map-card {
    padding: 18px;
  }
}


/* =========================================================
   v1.6.2 — checkout, konto ja variatsioonitoodete UX polish
   ========================================================= */
/* --- Üksiku toote parem kast EI TOHI kaasa sõita. --- */
.single-product .vlg-product-right .vlg-product-summary-card,
.single-product .vlg-product-summary-card {
  position: static !important;
  top: auto !important;
}

/* Variatsioonidega toodetel tee valik, kogus ja ostunupp selgelt nähtavaks. */
.single-product .vlg-product-right {
  gap: 16px !important;
}
.single-product .vlg-product-summary-card {
  overflow: visible !important;
}
.single-product .vlg-product-buybox {
  padding: 18px !important;
  overflow: visible !important;
}
.single-product form.variations_form.cart {
  width: 100% !important;
  gap: 12px !important;
}
.single-product form.variations_form .variations,
.single-product form.variations_form .variations tbody,
.single-product form.variations_form .variations tr {
  display: grid !important;
  width: 100% !important;
  gap: 10px !important;
}
.single-product form.variations_form .variations td.value {
  display: grid !important;
  gap: 8px !important;
}
.single-product form.variations_form .variations select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid var(--vlg-line) !important;
  background: #fff !important;
}
.single-product form.variations_form .reset_variations {
  justify-self: start !important;
}
.single-product form.variations_form .single_variation_wrap {
  display: grid !important;
  gap: 12px !important;
}
.single-product form.variations_form .woocommerce-variation-price {
  font-weight: 900 !important;
  color: #b85a00 !important;
}
.single-product form.variations_form .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  align-items: center !important;
}
.single-product .vlg-product-buybox .quantity,
.single-product form.variations_form .quantity {
  width: 100% !important;
  min-width: 0 !important;
}
.single-product .vlg-product-buybox .quantity .qty,
.single-product form.variations_form .quantity .qty {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
}
.single-product form.variations_form .single_add_to_cart_button,
.single-product .vlg-product-buybox .single_add_to_cart_button {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.single-product form.variations_form .woocommerce-variation-description p {
  color: var(--vlg-muted) !important;
}

/* --- Kassa leht modernsemaks ja loogilisemaks. --- */
.woocommerce-checkout .woocommerce {
  display: block;
}
.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr) !important;
  gap: 24px !important;
  align-items: start !important;
}
.woocommerce-checkout #customer_details {
  display: grid !important;
  gap: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.woocommerce-checkout #customer_details > div,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #order_review {
  background: #fff !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05) !important;
  padding: 22px !important;
}
.woocommerce-checkout #order_review {
  position: sticky !important;
  top: calc(var(--vlg-header-offset) + 16px) !important;
}
.woocommerce-checkout h3 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  font-size: 26px !important;
  line-height: 1.1 !important;
  color: var(--vlg-dark) !important;
}
.woocommerce-checkout .form-row {
  margin-bottom: 14px !important;
}
.woocommerce-checkout label {
  font-weight: 800 !important;
  color: var(--vlg-dark) !important;
  margin-bottom: 6px !important;
}
.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout textarea,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select {
  min-height: 48px !important;
  border-radius: 14px !important;
  background: #fff !important;
}
.woocommerce-checkout textarea {
  min-height: 120px !important;
}
.woocommerce-checkout table.shop_table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 14px 16px !important;
}
.woocommerce-checkout .shipping ul#shipping_method {
  display: grid !important;
  gap: 10px !important;
}
.woocommerce-checkout .shipping ul#shipping_method li {
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-checkout .shipping ul#shipping_method li label {
  display: block !important;
  padding: 10px 12px 10px 28px !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  font-weight: 700 !important;
}
.woocommerce-checkout .wc_payment_methods {
  display: grid !important;
  gap: 12px !important;
  padding: 0 !important;
}
.woocommerce-checkout .wc_payment_methods .wc_payment_method {
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}
.woocommerce-checkout .payment_box {
  margin-top: 10px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}
.woocommerce-checkout #place_order {
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 16px !important;
  font-size: 16px !important;
}

/* --- Konto leht: külgmenüü nähtavaks ja sisu professionaalsemaks. --- */
.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr) !important;
  gap: 26px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: linear-gradient(180deg, #08152a 0%, #0a1a33 100%) !important;
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 36px rgba(9,25,49,.14) !important;
  padding: 18px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid !important;
  gap: 8px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
  display: block !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  color: rgba(255,255,255,.92) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--dashboard a {
  background: rgba(255,255,255,.12) !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
  border-radius: 22px !important;
  padding: 26px 28px !important;
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fff8f0, #ffffff) !important;
  border: 1px solid rgba(242, 138, 0, .18) !important;
}
.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .edit-account,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  background: #fff !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 10px 28px rgba(17, 32, 55, .04) !important;
}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  margin-top: 18px !important;
}
.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row,
.woocommerce-account .edit-account .form-row,
.woocommerce-account .woocommerce-address-fields .form-row {
  margin-bottom: 14px !important;
}
.woocommerce-account .woocommerce-form-login label,
.woocommerce-account .woocommerce-form-register label,
.woocommerce-account .edit-account label,
.woocommerce-account .woocommerce-address-fields label {
  font-weight: 800 !important;
  color: var(--vlg-dark) !important;
}

/* Kontaktlehe parem külg ühtlasem. */
.vlg-contact-side {
  align-content: start !important;
}
.vlg-contact-cta-card .vlg-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1100px) {
  .woocommerce-checkout form.checkout,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
  }
  .woocommerce-checkout #order_review {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 767px) {
  .single-product form.variations_form .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr !important;
  }
  .single-product .vlg-product-buybox {
    padding: 14px !important;
  }
  .woocommerce-checkout #customer_details > div,
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields,
  .woocommerce-checkout #order_review,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 16px !important;
  }
}


/* =========================================================
   v1.6.3 — vaikimisi makselogod pildifailidena
   ========================================================= */
.vlg-payment-badges {
  gap: 8px !important;
}
.vlg-payment-badge.is-image {
  min-height: 34px !important;
  min-width: 72px !important;
  padding: 4px 6px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 1px solid #dbe3ef !important;
}
.vlg-payment-badge.is-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 92px !important;
  max-height: 26px !important;
  object-fit: contain !important;
}
.vlg-footer .vlg-payment-badge.is-image img,
.vlg-product-sidecard .vlg-payment-badge.is-image img {
  max-width: 84px !important;
  max-height: 24px !important;
}
@media (max-width: 767px) {
  .vlg-payment-badge.is-image {
    min-width: 64px !important;
  }
  .vlg-payment-badge.is-image img {
    max-width: 78px !important;
  }
}


/* =========================================================
   v1.6.4 — latest products, cleaner cart, controlled payment badges
   ========================================================= */
/* Avalehe uus "värskelt lisatud" plokk. */
.vlg-latest-showcase {
  padding: 28px !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,252,247,.96)) !important;
  border: 1px solid var(--vlg-line) !important;
  box-shadow: 0 16px 38px rgba(17, 32, 55, .05) !important;
}
.vlg-latest-showcase .vlg-section-head {
  align-items: end !important;
  gap: 16px !important;
}
.vlg-latest-showcase .vlg-section-head p {
  margin: 10px 0 0 !important;
  max-width: 60ch !important;
  color: var(--vlg-muted) !important;
}
.vlg-latest-showcase__grid {
  margin-top: 18px !important;
}
.vlg-page-content--compact {
  padding: 22px 26px !important;
}

/* Jaluses ja tootelehel vähem makseikoone korraga. */
.vlg-payment-badges--footer {
  max-width: 420px !important;
}
.vlg-payment-badges--product {
  max-width: 100% !important;
}
.vlg-footer .vlg-payment-badges,
.vlg-product-sidecard .vlg-payment-badges {
  row-gap: 8px !important;
}

/* Ostukorv visuaalselt paremaks. */
.woocommerce-cart .woocommerce-notices-wrapper > * + * {
  display: none !important;
}
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  border-radius: 18px !important;
  border: 1px solid rgba(242,138,0,.16) !important;
  background: linear-gradient(135deg, #fff8f0, #ffffff) !important;
  box-shadow: 0 10px 24px rgba(17,32,55,.04) !important;
  padding: 16px 18px !important;
}
.woocommerce-cart form.woocommerce-cart-form,
.woocommerce-cart .cart-collaterals .cart_totals {
  background: #fff !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.05) !important;
  padding: 22px !important;
}
.woocommerce-cart .shop_table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid var(--vlg-line) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}
.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
}
.woocommerce-cart .shop_table .product-thumbnail img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
}
.woocommerce-cart .shop_table .product-name a {
  color: var(--vlg-primary-dark) !important;
  font-weight: 800 !important;
}
.woocommerce-cart .shop_table .product-remove a {
  color: #d11a2a !important;
  font-size: 22px !important;
}
.woocommerce-cart .actions .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.woocommerce-cart .actions .input-text {
  min-height: 46px !important;
  border-radius: 14px !important;
}
.woocommerce-cart .actions button,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  min-height: 50px !important;
  border-radius: 999px !important;
}
.woocommerce-cart .cart-collaterals {
  margin-top: 22px !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}
.woocommerce-cart .cart_totals h2 {
  margin-top: 0 !important;
}
.woocommerce-cart .cart_totals table td,
.woocommerce-cart .cart_totals table th {
  padding: 14px 16px !important;
}
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .wc-proceed-to-checkout a {
  font-weight: 900 !important;
}

/* Tootelehe infokastid ja variatsiooniosa selgemaks. */
.single-product .vlg-product-main-grid {
  align-items: start !important;
}
.single-product .vlg-product-summary-card,
.single-product .vlg-product-right .vlg-product-summary-card {
  position: static !important;
  top: auto !important;
}
.single-product .vlg-product-specs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.single-product .vlg-product-specs div {
  min-height: 84px !important;
  padding: 12px 14px !important;
}
.single-product .vlg-product-specs strong {
  display: block !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.single-product .vlg-product-buybox {
  padding: 16px !important;
}
.single-product form.variations_form .woocommerce-variation-add-to-cart,
.single-product .vlg-product-buybox form.cart {
  grid-template-columns: 96px minmax(0, 1fr) !important;
  gap: 10px !important;
}
.single-product form.variations_form .single_add_to_cart_button,
.single-product .vlg-product-buybox .single_add_to_cart_button {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.single-product .vlg-product-sidecard {
  gap: 10px !important;
}
.single-product .vlg-side-feature strong,
.single-product .vlg-side-feature small {
  display: block !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}
.single-product .vlg-product-related-wrap {
  display: grid !important;
  gap: 18px !important;
  margin-top: 18px !important;
}
.single-product .vlg-product-related-wrap .related.products,
.single-product .vlg-product-related-wrap .upsells.products {
  margin-top: 0 !important;
}
.single-product .vlg-product-related-wrap .products {
  margin-top: 12px !important;
}
.single-product .vlg-product-card .vlg-energy-badge,
.single-product .vlg-product-card .vlg-energy-badge-link {
  display: inline-flex !important;
}

@media (max-width: 991px) {
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .vlg-latest-showcase {
    padding: 18px !important;
  }
}

@media (max-width: 767px) {
  .vlg-latest-showcase .vlg-section-head {
    align-items: start !important;
  }
  .woocommerce-cart .shop_table th,
  .woocommerce-cart .shop_table td {
    padding: 12px !important;
  }
  .single-product .vlg-product-specs,
  .single-product form.variations_form .woocommerce-variation-add-to-cart,
  .single-product .vlg-product-buybox form.cart {
    grid-template-columns: 1fr !important;
  }
}
