/* v2.0.3 — homepage fit & latest section polish */
html, body {
  overflow-x: clip;
}

.vlg-container,
body.woocommerce .woocommerce,
body.woocommerce-page .woocommerce,
.vlg-main-header-inner,
.vlg-topbar-inner,
.vlg-nav-inner,
.vlg-footer-inner,
.vlg-footer-bottom {
  width: min(calc(100% - 32px), var(--vlg-container, 1320px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--vlg-container, 1320px) !important;
}

.vlg-home,
.vlg-home .vlg-section,
.vlg-home .vlg-product-section,
.vlg-home .vlg-latest-showcase {
  max-width: 100% !important;
}

.home ul.products.vlg-products-grid,
.home .vlg-products-grid,
.front-page ul.products.vlg-products-grid,
.front-page .vlg-products-grid {
  gap: 20px !important;
}

.vlg-home-product-section .vlg-products-grid,
.home .vlg-home-product-section .vlg-products-grid,
.front-page .vlg-home-product-section .vlg-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.vlg-latest-showcase {
  position: relative;
  overflow: hidden;
  padding: 26px !important;
  border-radius: 28px !important;
  border: 1px solid #dfe7f0 !important;
  background:
    radial-gradient(circle at top right, rgba(242,138,0,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,248,242,.95)) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07) !important;
}

.vlg-latest-showcase::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--vlg-primary, #f28a00), rgba(242,138,0,0));
}

.vlg-latest-showcase .vlg-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  background: rgba(242,138,0,.08) !important;
  color: var(--vlg-primary, #f28a00) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.vlg-latest-showcase .vlg-section-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}

.vlg-latest-showcase .vlg-section-head > div {
  min-width: 0 !important;
}

.vlg-latest-showcase .vlg-section-head h2 {
  margin: 10px 0 0 !important;
  font-size: clamp(28px, 2.2vw, 36px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
}

.vlg-latest-showcase .vlg-section-head p {
  margin: 10px 0 0 !important;
  max-width: 58ch !important;
  color: var(--vlg-muted, #64748b) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.vlg-latest-showcase .vlg-section-head > a {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid #dbe3ed !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
  white-space: nowrap !important;
}

.vlg-latest-showcase__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 8px !important;
}

.vlg-latest-showcase .vlg-product-card,
.vlg-home-product-section .vlg-product-card {
  min-width: 0 !important;
  height: 100% !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-product-link,
.vlg-home-product-section .vlg-product-card .vlg-product-link {
  height: 100% !important;
}

.vlg-latest-showcase .vlg-card-content,
.vlg-home-product-section .vlg-card-content {
  gap: 10px !important;
}

.vlg-latest-showcase .vlg-card-actions,
.vlg-home-product-section .vlg-card-actions {
  margin-top: auto !important;
}

.vlg-footer .vlg-payment-badges {
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

@media (max-width: 1240px) {
  .vlg-home-product-section .vlg-products-grid,
  .home .vlg-home-product-section .vlg-products-grid,
  .front-page .vlg-home-product-section .vlg-products-grid,
  .vlg-latest-showcase__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .vlg-container,
  body.woocommerce .woocommerce,
  body.woocommerce-page .woocommerce,
  .vlg-main-header-inner,
  .vlg-topbar-inner,
  .vlg-nav-inner,
  .vlg-footer-inner,
  .vlg-footer-bottom {
    width: min(calc(100% - 24px), var(--vlg-container, 1320px)) !important;
  }

  .vlg-home-product-section .vlg-products-grid,
  .home .vlg-home-product-section .vlg-products-grid,
  .front-page .vlg-home-product-section .vlg-products-grid,
  .vlg-latest-showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .vlg-latest-showcase .vlg-section-head {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .vlg-latest-showcase .vlg-section-head > a {
    justify-self: start !important;
  }
}

@media (max-width: 620px) {
  .vlg-container,
  body.woocommerce .woocommerce,
  body.woocommerce-page .woocommerce,
  .vlg-main-header-inner,
  .vlg-topbar-inner,
  .vlg-nav-inner,
  .vlg-footer-inner,
  .vlg-footer-bottom {
    width: min(calc(100% - 18px), var(--vlg-container, 1320px)) !important;
  }

  .vlg-latest-showcase,
  .vlg-home .vlg-section {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .vlg-home-product-section .vlg-products-grid,
  .home .vlg-home-product-section .vlg-products-grid,
  .front-page .vlg-home-product-section .vlg-products-grid,
  .vlg-latest-showcase__grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .vlg-latest-showcase .vlg-section-head h2 {
    font-size: 24px !important;
  }
}


/* v2.0.4 — robust header language switcher */
.vlg-header-language-slot,
.vlg-nav-language-slot {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.vlg-nav-language-slot {
  margin-left: auto !important;
}

.vlg-language-switcher {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  color: var(--vlg-text, #172033) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.vlg-language-switcher select,
.vlg-language-switcher .trp-language-switcher > div,
.vlg-language-switcher .goog-te-combo {
  min-height: 36px !important;
  border: 1px solid #dbe3ed !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--vlg-text, #172033) !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05) !important;
}

.vlg-language-switcher ul,
.vlg-language-switcher li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vlg-language-switcher ul {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vlg-language-switcher a,
.vlg-language-fallback a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  border: 1px solid #dbe3ed !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--vlg-text, #172033) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05) !important;
}

.vlg-language-fallback {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.vlg-language-current {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #fff7ed !important;
  border: 1px solid rgba(242,138,0,.22) !important;
}

@media (max-width: 900px) {
  .vlg-header-language-slot {
    display: none !important;
  }

  .vlg-nav-language-slot {
    margin: 8px 0 0 !important;
    width: 100% !important;
  }

  .vlg-nav-language-slot .vlg-language-switcher {
    width: 100% !important;
  }
}
