/*!
 * Valgusallikad theme — 03-visual-polish.css
 * v1.4.6 comprehensive visual polish, v1.4.7 energy badge overlay, v1.4.8 popup, v1.4.9 sidebar tree + tag filter, v1.4.10–v1.4.15 nesting refinements.
 * (Source: original theme.css lines 2002–5082)
 *
 * Maintenance note: parts are concatenated in numeric order at runtime.
 * Editing this file affects only the rules originally in this epoch.
 */

/* ===== v1.4.5 Always-visible cart CTA + auto category image safety =====
 * - Force the .vlg-card-actions row to render even if some other plugin
 *   tries to hide it. The button has been a primary conversion control
 *   since v1.4.3 and must not be silently dropped.
 * - Make the auto-fetched category image (which can be a tall product
 *   shot) crop centred and uniformly inside the card.
 */
.vlg-product-card .vlg-card-actions {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.vlg-card-cart {
  display: inline-flex !important;
}

/* Auto-image: when the source is a real product photo, contain it nicely. */
.vlg-category-card img {
  background: #ffffff;
}

/* ===== v1.4.6 Comprehensive visual polish =====
 * A consistent design system layered on top of everything earlier:
 *  - Shadow scale (sm → xl) used everywhere instead of one-off values.
 *  - Color tokens with soft, hover and dark variants.
 *  - Radius scale.
 *  - Typography refinements (heading weights, font features, tighter
 *    letter-spacing for display text, clearer body line-height).
 *  - Hero: subtle dot pattern + soft glow on the benefits card.
 *  - Product cards: floating wishlist heart, smoother hover lift.
 *  - Category cards: gradient overlay + sliding arrow on hover.
 *  - Trust bar: refined icon containers with brand glow.
 *  - Newsletter: bolder gradient + subtle pattern.
 *  - Footer: brand accent stripe at the top edge.
 *  - Section heads: kicker line-art separator.
 *  - Buttons: consistent CTA hierarchy with focus glow.
 * Everything is additive; earlier rules remain functional fallbacks.
 */

:root {
  /* Shadow scale */
  --vlg-shadow-sm: 0 1px 2px rgba(7, 18, 36, 0.06), 0 1px 3px rgba(7, 18, 36, 0.04);
  --vlg-shadow-md: 0 4px 14px rgba(7, 18, 36, 0.08), 0 2px 6px rgba(7, 18, 36, 0.04);
  --vlg-shadow-lg: 0 14px 36px rgba(7, 18, 36, 0.10), 0 6px 14px rgba(7, 18, 36, 0.05);
  --vlg-shadow-xl: 0 28px 60px rgba(7, 18, 36, 0.14), 0 10px 22px rgba(7, 18, 36, 0.06);
  --vlg-shadow-glow: 0 18px 38px rgba(242, 138, 0, 0.22);

  /* Color palette refinements */
  --vlg-primary-light: #ffb34d;
  --vlg-primary-dark: #d96b00;
  --vlg-primary-soft: #fff5e8;
  --vlg-primary-glow: rgba(242, 138, 0, 0.18);
  --vlg-text-strong: #0c182d;
  --vlg-text: #1f2b42;
  --vlg-success: #16a34a;
  --vlg-warning: #f59e0b;
  --vlg-danger: #dc2626;
  --vlg-eu-blue: #003399;

  /* Radius scale */
  --vlg-radius-sm: 8px;
  --vlg-radius-md: 14px;
  --vlg-radius-lg: 20px;
  --vlg-radius-xl: 28px;
  --vlg-radius-pill: 999px;
}

/* --- Typography refinements --- */
body {
  font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--vlg-text);
}
h1, h2, h3 {
  letter-spacing: -0.025em;
  font-feature-settings: 'kern' 1, 'liga' 1, 'ss01' 1;
}
/* Apply the dark text colour only where the section background is light;
 * hero, newsletter, footer and other dark-on-X panels keep their own
 * colour rules and inherit white from their container. */
main h1, main h2, main h3,
.vlg-section h2, .vlg-section h3,
.vlg-product-card h2 {
  color: var(--vlg-text-strong);
}
.vlg-hero h1, .vlg-hero h2, .vlg-hero h3,
.vlg-newsletter h1, .vlg-newsletter h2, .vlg-newsletter h3,
.vlg-footer h1, .vlg-footer h2, .vlg-footer h3,
.vlg-product-buybox h2,
[class*="-dark"] h1, [class*="-dark"] h2, [class*="-dark"] h3 {
  color: inherit;
}
h1 { font-weight: 900; }
h2 { font-weight: 800; line-height: 1.15; }
h3 { font-weight: 700; line-height: 1.25; }
.vlg-section h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  margin-bottom: 4px;
}

/* --- Section heads with brand accent --- */
.vlg-section-head {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 14px;
}
.vlg-section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--vlg-primary) 0%, var(--vlg-primary-light) 100%);
}
.vlg-section-head a {
  color: var(--vlg-primary-dark);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* --- Hero: dot pattern + glow --- */
.vlg-hero {
  position: relative;
  border-radius: var(--vlg-radius-xl);
  box-shadow: var(--vlg-shadow-lg);
  overflow: hidden;
}
.vlg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .8;
}
.vlg-hero > * { position: relative; z-index: 1; }
.vlg-hero h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.vlg-hero-benefits {
  border-radius: var(--vlg-radius-lg);
  box-shadow: 0 18px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
  background: rgba(8, 18, 36, .68);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.vlg-hero-benefits div {
  transition: padding-left .2s ease;
}
.vlg-hero-benefits div:hover {
  padding-left: 6px;
}
.vlg-hero-benefits span {
  background: linear-gradient(135deg, rgba(242,138,0,.30), rgba(242,138,0,.10));
  box-shadow: 0 4px 14px rgba(242,138,0,.20);
}

/* --- Buttons: consistent CTA system --- */
.vlg-btn,
.vlg-newsletter button,
.woocommerce-Button.button,
.single_add_to_cart_button,
.checkout-button {
  border-radius: var(--vlg-radius-pill) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.4,0,.2,1),
              box-shadow .18s cubic-bezier(.4,0,.2,1),
              filter .18s ease;
  position: relative;
  isolation: isolate;
}
.vlg-btn--primary,
.vlg-newsletter button,
.single_add_to_cart_button,
.checkout-button {
  background: linear-gradient(135deg, var(--vlg-primary) 0%, var(--vlg-primary-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(242,138,0,.24);
}
.vlg-btn--primary:hover,
.vlg-newsletter button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(242,138,0,.32);
  filter: brightness(1.04);
}
.vlg-btn--secondary {
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}
.vlg-btn--secondary:hover {
  background: rgba(255,255,255,.18) !important;
  transform: translateY(-2px);
}

/* --- Trust bar: refined icon glow --- */
.vlg-trust-grid {
  border-radius: var(--vlg-radius-lg);
  box-shadow: var(--vlg-shadow-md);
  border: 0;
  background: var(--vlg-line);
}
.vlg-trust-item {
  background: #fff;
  transition: background .2s ease;
}
.vlg-trust-item:hover {
  background: var(--vlg-primary-soft);
}
.vlg-trust-item > span {
  background: linear-gradient(135deg, var(--vlg-primary-soft) 0%, #ffe1be 100%) !important;
  box-shadow: 0 4px 12px rgba(242,138,0,.18);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.vlg-trust-item:hover > span {
  transform: scale(1.08) rotate(-3deg);
}

/* --- Category cards: hover gradient + sliding arrow --- */
.vlg-category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vlg-line);
  box-shadow: var(--vlg-shadow-sm);
  transition: transform .24s cubic-bezier(.4,0,.2,1),
              box-shadow .24s ease,
              border-color .2s ease;
}
.vlg-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--vlg-primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
  border-radius: inherit;
}
.vlg-category-card:hover,
.vlg-category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--vlg-shadow-lg);
  border-color: rgba(242,138,0,.35);
}
.vlg-category-card:hover::before,
.vlg-category-card:focus-visible::before {
  opacity: 1;
}
.vlg-category-card span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--vlg-primary-dark);
  font-weight: 800;
  transition: gap .18s ease, color .18s ease;
}
.vlg-category-card:hover span {
  gap: 10px;
  color: var(--vlg-primary);
}

/* --- Product cards: lift, glow, decorative wishlist heart --- */
.vlg-product-card {
  border-radius: var(--vlg-radius-md);
  box-shadow: var(--vlg-shadow-sm);
  transition: transform .24s cubic-bezier(.4,0,.2,1),
              box-shadow .24s ease,
              border-color .2s ease;
}
.vlg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vlg-shadow-lg);
  border-color: rgba(242,138,0,.20);
}
.vlg-card-image-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}
.vlg-card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(242,138,0,.06), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.vlg-product-card:hover .vlg-card-image-wrap::after {
  opacity: 1;
}
.vlg-product-card .vlg-card-image-wrap img,
.vlg-product-card .wp-post-image {
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.vlg-product-card:hover .wp-post-image {
  transform: scale(1.04);
}
/* Decorative wishlist heart top-right (visual only — wishlist plugin
 * still hooks its own button via the card_actions row). */
.vlg-product-card .vlg-card-image-wrap::before {
  content: '♡';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  font-size: 18px;
  color: #4b5870;
  z-index: 2;
  box-shadow: var(--vlg-shadow-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease, background .2s ease;
  pointer-events: none;
}
.vlg-product-card:hover .vlg-card-image-wrap::before {
  opacity: 1;
  transform: translateY(0);
}
/* Sale badge polish */
.vlg-product-card .onsale,
ul.products .onsale {
  background: linear-gradient(135deg, var(--vlg-danger), #b91c1c) !important;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: .04em;
  border-radius: var(--vlg-radius-pill) !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(220,38,38,.32);
  border: 0 !important;
  z-index: 3;
}
.vlg-card-category {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vlg-primary-dark);
  font-weight: 800;
}
.woocommerce-loop-product__title {
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 700;
  color: var(--vlg-text-strong);
  margin: 6px 0 !important;
}

/* --- Newsletter: bolder gradient + dot motif --- */
.vlg-newsletter {
  position: relative;
  overflow: hidden;
  border-radius: var(--vlg-radius-xl);
  background: linear-gradient(135deg, #071224 0%, #102849 50%, #1a3766 100%);
  box-shadow: var(--vlg-shadow-lg);
  padding: 32px 36px;
}
.vlg-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
}
.vlg-newsletter::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(242,138,0,.30), transparent 70%);
  pointer-events: none;
}
.vlg-newsletter > * { position: relative; z-index: 1; }
.vlg-newsletter input {
  border-radius: var(--vlg-radius-pill);
  padding: 14px 18px;
  font-size: 15px;
}
.vlg-newsletter input:focus {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.45);
  outline: 0;
}

/* --- Footer: brand accent stripe at top --- */
.vlg-footer {
  position: relative;
}
.vlg-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vlg-primary) 0%, var(--vlg-primary-light) 25%, var(--vlg-eu-blue) 70%, var(--vlg-primary) 100%);
}
.vlg-footer h3,
.vlg-footer-col h3 {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vlg-primary-light);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}
.vlg-footer h3::after,
.vlg-footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--vlg-primary);
  border-radius: 2px;
}
.vlg-footer a {
  transition: color .15s ease, padding-left .15s ease;
}
.vlg-footer a:hover {
  color: var(--vlg-primary-light) !important;
  padding-left: 4px;
}

/* --- Topbar: subtle hover affordance on contact items --- */
.vlg-topbar a {
  transition: color .15s ease, opacity .15s ease;
}
.vlg-topbar a:hover {
  color: var(--vlg-primary-light) !important;
  opacity: 1 !important;
}

/* --- Header search: focus glow --- */
.vlg-search {
  transition: box-shadow .2s ease, border-color .2s ease;
}
.vlg-search:focus-within {
  box-shadow: 0 0 0 4px var(--vlg-primary-glow), var(--vlg-shadow-md);
  border-color: var(--vlg-primary);
}

/* --- Header actions: subtle hover --- */
.vlg-header-actions a {
  border-radius: var(--vlg-radius-md);
  transition: background .15s ease, color .15s ease;
}
.vlg-header-actions a:hover {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark);
}

/* --- Single product: airier, cleaner --- */
.vlg-product-summary-card,
.vlg-product-buybox {
  border-radius: var(--vlg-radius-lg);
  box-shadow: var(--vlg-shadow-md);
}
.vlg-product-buybox .quantity {
  border-radius: var(--vlg-radius-md);
  overflow: hidden;
  border: 1px solid var(--vlg-line);
  background: #f8fafc;
}
.vlg-product-buybox .quantity .qty {
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-weight: 800;
}
.woocommerce div.product .product_title {
  font-size: clamp(24px, 2.6vw, 34px) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 28px;
  font-weight: 900;
  color: var(--vlg-text-strong);
}
.woocommerce div.product .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--vlg-radius-pill);
  background: rgba(22,163,74,.10);
  color: var(--vlg-success);
  font-weight: 700;
  font-size: 13px;
}
.woocommerce div.product .stock.out-of-stock {
  background: rgba(220,38,38,.10);
  color: var(--vlg-danger);
}
.woocommerce-tabs .tabs li {
  border-radius: var(--vlg-radius-md) var(--vlg-radius-md) 0 0;
}

/* --- Sidebar widgets in shop page: cleaner card look --- */
.vlg-shop-sidebar > * + * {
  margin-top: 20px;
}
.vlg-shop-sidebar .widget,
.widget_product_categories,
.widget_product_tag_cloud {
  background: #fff;
  border: 1px solid var(--vlg-line);
  border-radius: var(--vlg-radius-md);
  padding: 18px 18px 22px;
  box-shadow: var(--vlg-shadow-sm);
}

/* --- Pagination polish --- */
.woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  width: 40px;
  height: 40px;
  display: grid !important;
  place-items: center;
  border-radius: var(--vlg-radius-md);
  font-weight: 700;
  background: #fff;
  border: 1px solid var(--vlg-line);
  transition: all .15s ease;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--vlg-primary-soft);
  border-color: var(--vlg-primary);
  color: var(--vlg-primary-dark);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--vlg-primary) !important;
  border-color: var(--vlg-primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(242,138,0,.24);
}

/* --- Breadcrumb refinement --- */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: var(--vlg-muted);
  padding: 8px 0;
  margin-bottom: 12px;
}
.woocommerce-breadcrumb a {
  color: var(--vlg-muted);
  transition: color .15s ease;
}
.woocommerce-breadcrumb a:hover {
  color: var(--vlg-primary);
}

/* --- Quantity buttons: visual stepper --- */
.vlg-product-buybox .quantity {
  display: flex !important;
  align-items: center;
}
.vlg-product-buybox .quantity::before,
.vlg-product-buybox .quantity::after {
  content: '';
  display: none; /* native +/- buttons handled by WC if installed */
}

/* --- Smooth fade-in when sections enter (no JS required) --- */
@media (prefers-reduced-motion: no-preference) {
  .vlg-section,
  .vlg-trust-grid,
  .vlg-newsletter {
    animation: vlgFadeUp .55s cubic-bezier(.4,0,.2,1) both;
    animation-delay: .05s;
  }
}
@keyframes vlgFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Cookie / scroll-to-top compatibility helpers --- */
.vlg-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vlg-primary), var(--vlg-primary-dark));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--vlg-shadow-lg);
  z-index: 80;
  font-size: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vlg-back-to-top.is-visible {
  display: grid;
}
.vlg-back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--vlg-shadow-xl);
}

@media (max-width: 600px) {
  .vlg-back-to-top { bottom: 18px; right: 18px; width: 44px; height: 44px; }
}

/* Mobile polish for trust grid + newsletter */
@media (max-width: 767px) {
  .vlg-newsletter {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }
  .vlg-newsletter form { flex-direction: column; }
  .vlg-newsletter button { width: 100%; }
}

/* ===== v1.4.7 Energy badge corner overlay + cart row reinforcement =====
 * - The energy class badge now sits as a coloured corner overlay on the
 *   product image (top-left), styled like a mini EU energy strip with
 *   the class colour as its background.
 * - The "Lisa korvi" row is hardened against any plugin trying to hide
 *   it. The button stays full-width orange pill regardless.
 * - When the badge is auto-defaulted (LED category, no manual class)
 *   it gets a subtle dashed outline so the shop owner notices it.
 */
.vlg-card-image-wrap .vlg-energy-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 38px;
  min-height: 50px;
  padding: 4px 0 5px;
  border-radius: var(--vlg-radius-sm);
  background: var(--vlg-energy-color, #475569);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(7, 18, 36, 0.18);
  z-index: 4;
  text-decoration: none;
  pointer-events: none;
}
.vlg-card-image-wrap .vlg-energy-badge-eu {
  font-size: 9px;
  letter-spacing: .04em;
  opacity: .9;
  background: rgba(0, 51, 153, .98);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  display: inline-block;
}
.vlg-card-image-wrap .vlg-energy-badge-class {
  font-size: 18px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  font-weight: 900;
}
/* Yellow class (D) needs darker text for contrast */
.vlg-card-image-wrap .vlg-energy-d .vlg-energy-badge-class { color: #1f2b42; text-shadow: none; }

/* Auto-default badge: subtle dashed outline as a shop-owner hint */
.vlg-card-image-wrap .vlg-energy-badge[data-default] {
  outline: 1px dashed rgba(255, 255, 255, .55);
  outline-offset: -3px;
  opacity: .92;
}

/* Hover shows full opacity */
.vlg-product-card:hover .vlg-card-image-wrap .vlg-energy-badge[data-default] {
  opacity: 1;
}

/* Single product page: keep the inline styling (no overlay) — the panel
 * version of the badge stays as before. */
.vlg-energy-panel .vlg-energy-badge {
  position: static;
  padding: 6px 12px;
  flex-direction: row;
  gap: 8px;
  background: var(--vlg-energy-color, #f4f7fb);
  width: auto;
  min-height: 0;
}
.vlg-energy-panel .vlg-energy-badge-eu {
  background: rgba(0, 51, 153, .98);
}

/* Cart row hardening — three layers of guarantee */
.vlg-product-card .vlg-card-actions {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}
.vlg-product-card .vlg-card-actions > * {
  display: inline-flex !important;
}

/* Tighter spacing on small mobile so the energy badge doesn't overlap the
 * sale flash */
@media (max-width: 480px) {
  .vlg-card-image-wrap .vlg-energy-badge {
    width: 32px;
    min-height: 42px;
    top: 8px;
    left: 8px;
  }
  .vlg-card-image-wrap .vlg-energy-badge-eu { font-size: 8px; padding: 1px 4px; }
  .vlg-card-image-wrap .vlg-energy-badge-class { font-size: 14px; }
}

/* When both a sale flash and an energy badge are on the same image,
 * push the sale flash to the right so they don't collide. */
.vlg-card-image-wrap:has(.vlg-energy-badge) .onsale {
  left: auto;
  right: 10px;
}

/* ===== v1.4.8 Popup advertising / promo modal =====
 * - Centered modal with backdrop, three skins (dark / light / brand).
 * - Smooth fade + scale enter animation, ESC and backdrop close.
 * - Body scroll lock while open.
 * - Frequency control happens client-side via localStorage.
 */
.vlg-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 18, 36, .68);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  opacity: 0;
  transition: opacity .22s cubic-bezier(.4, 0, .2, 1);
}
.vlg-popup-overlay.is-visible { opacity: 1; }
.vlg-popup-overlay[hidden] { display: none; }
body.vlg-popup-open { overflow: hidden; }

.vlg-popup-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--vlg-radius-xl);
  box-shadow: var(--vlg-shadow-xl);
  background: #fff;
  color: var(--vlg-text);
  transform: translateY(14px) scale(.96);
  opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .22s ease;
}
.vlg-popup-overlay.is-visible .vlg-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.vlg-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: #1f2b42;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--vlg-shadow-sm);
  transition: transform .15s ease, background .15s ease;
}
.vlg-popup-close:hover {
  transform: rotate(90deg);
  background: #fff;
}

.vlg-popup-image {
  margin: 0;
}
.vlg-popup-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--vlg-radius-xl) var(--vlg-radius-xl) 0 0;
}

.vlg-popup-body {
  padding: 28px 32px 26px;
}
.vlg-popup-body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--vlg-text-strong);
}
.vlg-popup-body p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--vlg-muted);
  margin: 0 0 18px;
}
.vlg-popup-body p strong { color: var(--vlg-text); }
.vlg-popup-body a { color: var(--vlg-primary-dark); text-decoration: underline; }

.vlg-popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vlg-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--vlg-radius-pill);
  background: linear-gradient(135deg, var(--vlg-primary) 0%, var(--vlg-primary-dark) 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(242, 138, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.vlg-popup-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 16px 30px rgba(242, 138, 0, .36);
}
.vlg-popup-dismiss {
  background: transparent;
  border: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--vlg-muted);
  cursor: pointer;
  font-weight: 600;
  border-radius: var(--vlg-radius-md);
  transition: color .15s ease, background .15s ease;
}
.vlg-popup-dismiss:hover {
  background: #f4f7fb;
  color: var(--vlg-text);
}

/* --- Dark skin --- */
.vlg-popup-skin-dark .vlg-popup-card {
  background: linear-gradient(135deg, #071224 0%, #0f1f3c 60%, #102849 100%);
  color: #d1dae8;
}
.vlg-popup-skin-dark .vlg-popup-body h3 { color: #fff; }
.vlg-popup-skin-dark .vlg-popup-body p { color: rgba(209, 218, 232, .82); }
.vlg-popup-skin-dark .vlg-popup-body p strong { color: #fff; }
.vlg-popup-skin-dark .vlg-popup-dismiss {
  color: rgba(209, 218, 232, .72);
}
.vlg-popup-skin-dark .vlg-popup-dismiss:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* --- Brand skin (orange gradient) --- */
.vlg-popup-skin-brand .vlg-popup-card {
  background: linear-gradient(135deg, #f28a00 0%, #d96b00 100%);
  color: #fff;
}
.vlg-popup-skin-brand .vlg-popup-body h3 { color: #fff; }
.vlg-popup-skin-brand .vlg-popup-body p { color: rgba(255, 255, 255, .92); }
.vlg-popup-skin-brand .vlg-popup-cta {
  background: #fff;
  color: var(--vlg-primary-dark) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.vlg-popup-skin-brand .vlg-popup-cta:hover {
  background: #fff5e8;
  color: var(--vlg-primary-dark) !important;
}
.vlg-popup-skin-brand .vlg-popup-dismiss {
  color: rgba(255, 255, 255, .85);
}
.vlg-popup-skin-brand .vlg-popup-dismiss:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

@media (max-width: 600px) {
  .vlg-popup-overlay { padding: 16px; }
  .vlg-popup-body { padding: 22px 22px 20px; }
  .vlg-popup-actions { flex-direction: column; align-items: stretch; }
  .vlg-popup-cta { width: 100%; }
  .vlg-popup-dismiss { width: 100%; }
}

/* Reduced motion: skip the scale/translate animation. */
@media (prefers-reduced-motion: reduce) {
  .vlg-popup-card {
    transform: none;
    transition: opacity .12s ease;
  }
  .vlg-popup-overlay { transition: opacity .12s ease; }
}

/* ===== v1.4.9 Sidebar polish: tree categories + tag filter =====
 * - widget_product_categories: proper hierarchical tree with indented
 *   subitems, current-cat highlight, smooth borders, scannable counts.
 * - .vlg-tag-filter-widget: full-fledged filter (search, checkboxes,
 *   apply/clear) — replaces the unstructured tag cloud.
 * - .vlg-active-filters: chips above the products grid showing what
 *   the user has applied.
 */

/* --- Categories widget: proper tree --- */
.vlg-shop-sidebar .widget_product_categories,
.widget_product_categories {
  padding: 14px 16px 18px;
}
.widget_product_categories ul.product-categories {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.widget_product_categories ul.product-categories > li {
  border-top: 0 !important;
  padding: 0;
}
.widget_product_categories ul.product-categories > li + li {
  border-top: 0 !important;
}
.widget_product_categories li > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px !important;
  margin: 1px 0;
  color: var(--vlg-text-strong) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.widget_product_categories li > a:hover,
.widget_product_categories li > a:focus-visible {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark) !important;
  padding-left: 14px !important;
}
.widget_product_categories .count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1f5f9 !important;
  color: #5d6a7e !important;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.widget_product_categories li > a:hover .count,
.widget_product_categories .current-cat > a .count {
  background: var(--vlg-primary) !important;
  color: #fff !important;
}
.widget_product_categories .current-cat > a {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark) !important;
  padding-left: 14px !important;
  position: relative;
}
.widget_product_categories .current-cat > a::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 4px;
  background: var(--vlg-primary);
}
/* The currently-being-viewed cat with descendants we are inside of */
.widget_product_categories .current-cat-parent > a {
  color: var(--vlg-primary-dark) !important;
}
/* Children list — visual indentation + connector line */
.widget_product_categories .children {
  list-style: none !important;
  padding: 4px 0 8px 14px !important;
  margin: 0 0 4px 6px !important;
  border-left: 2px solid #eef2f7 !important;
}
.widget_product_categories .children li > a {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #4b5870 !important;
  padding: 6px 10px !important;
}
.widget_product_categories .children .children {
  border-left-color: #f1f5f9 !important;
}

/* --- Tag filter widget --- */
.vlg-tag-filter-widget {
  padding: 14px 16px 16px;
}
.vlg-tag-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vlg-tag-filter-search {
  position: relative;
}
.vlg-tag-filter-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--vlg-line);
  border-radius: var(--vlg-radius-pill);
  background: #f8fafc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23697589' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat 11px 50%;
  font-size: 13px;
  color: var(--vlg-text);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.vlg-tag-filter-input:focus {
  outline: 0;
  border-color: var(--vlg-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--vlg-primary-glow);
}
.vlg-tag-filter-list {
  list-style: none;
  margin: 0;
  padding: 4px 4px 4px 0;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.vlg-tag-filter-list::-webkit-scrollbar { width: 6px; }
.vlg-tag-filter-list::-webkit-scrollbar-thumb { background: #d4dbe5; border-radius: 999px; }
.vlg-tag-filter-list::-webkit-scrollbar-track { background: transparent; }
.vlg-tag-filter-item label {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--vlg-text);
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.vlg-tag-filter-item label:hover {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark);
}
.vlg-tag-filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--vlg-line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease;
  margin: 0;
}
.vlg-tag-filter-item input[type="checkbox"]:checked {
  background: var(--vlg-primary);
  border-color: var(--vlg-primary);
}
.vlg-tag-filter-item input[type="checkbox"]:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(0px, -1px);
}
.vlg-tag-filter-item input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px var(--vlg-primary-glow);
  outline: 0;
}
.vlg-tag-filter-item.is-checked label {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark);
}
.vlg-tag-filter-name {
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.vlg-tag-filter-count {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #8a96aa;
  padding: 2px 7px;
  background: #f1f5f9;
  border-radius: 999px;
  min-width: 24px;
  text-align: center;
}
.vlg-tag-filter-item.is-checked .vlg-tag-filter-count {
  background: var(--vlg-primary);
  color: #fff;
}
.vlg-tag-filter-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--vlg-muted);
  font-style: italic;
}
.vlg-tag-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid var(--vlg-line);
}
.vlg-tag-filter-apply {
  flex: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--vlg-radius-pill);
  background: linear-gradient(135deg, var(--vlg-primary) 0%, var(--vlg-primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 6px 14px rgba(242, 138, 0, .22);
}
.vlg-tag-filter-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(242, 138, 0, .32);
  filter: brightness(1.04);
}
.vlg-tag-filter-clear {
  font-size: 12px;
  color: var(--vlg-muted);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.vlg-tag-filter-clear:hover {
  color: var(--vlg-danger);
  background: rgba(220, 38, 38, .08);
}

/* --- Active filter chips above the product grid --- */
.vlg-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--vlg-line);
  border-radius: var(--vlg-radius-md);
  box-shadow: var(--vlg-shadow-sm);
}
.vlg-active-filters-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vlg-muted);
  margin-right: 4px;
}
.vlg-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark) !important;
  border: 1px solid #ffd9a8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}
.vlg-active-filter-chip:hover,
.vlg-active-filter-chip:focus-visible {
  background: var(--vlg-primary);
  color: #fff !important;
  border-color: var(--vlg-primary);
  transform: translateY(-1px);
}
.vlg-active-filter-x {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}
.vlg-active-filter-chip:hover .vlg-active-filter-x {
  background: rgba(255, 255, 255, .25);
}
.vlg-active-filter-clear-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--vlg-muted);
  font-weight: 700;
  text-decoration: underline;
}
.vlg-active-filter-clear-all:hover {
  color: var(--vlg-danger);
}

@media (max-width: 600px) {
  .vlg-active-filters { padding: 12px; gap: 6px; }
  .vlg-active-filters-label { font-size: 11px; width: 100%; margin-bottom: 4px; }
  .vlg-active-filter-clear-all { width: 100%; text-align: right; }
  .vlg-tag-filter-list { max-height: 240px; }
}

/* ===== v1.4.10 Collapsible sidebar widgets + category tree toggles =====
 * Each widget header in the shop sidebar is now a clickable chevron-style
 * dropdown — clicking collapses or expands the whole widget body.
 * Inside the categories widget, every parent category with .children
 * gets its own little chevron button so the tree can be folded.
 * State persists in localStorage (handled by JS).
 */

/* --- Widget-level collapse --- */
.vlg-shop-sidebar .vlg-widget-toggle {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  position: relative;
  transition: color .15s ease;
}
.vlg-shop-sidebar .vlg-widget-toggle:hover {
  color: var(--vlg-primary);
}
.vlg-shop-sidebar .vlg-widget-toggle:focus-visible {
  outline: 3px solid var(--vlg-primary-glow);
  outline-offset: 2px;
  border-radius: 6px;
}
.vlg-shop-sidebar .vlg-widget-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: #f4f7fb;
  border-radius: 50%;
  color: var(--vlg-muted);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1),
              background .15s ease,
              color .15s ease;
}
.vlg-shop-sidebar .vlg-widget-chevron::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  display: block;
}
.vlg-shop-sidebar .vlg-widget-toggle:hover .vlg-widget-chevron {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark);
}
.vlg-shop-sidebar .vlg-widget.is-collapsed .vlg-widget-chevron {
  transform: rotate(-90deg);
}
.vlg-shop-sidebar .vlg-widget-body {
  /* Smooth expand by animating max-height and opacity. The "open" max
   * is intentionally generous so even tall lists open fully. */
  overflow: hidden;
  max-height: 1500px;
  opacity: 1;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1),
              opacity .2s ease,
              padding .25s ease;
}
.vlg-shop-sidebar .vlg-widget.is-collapsed .vlg-widget-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
/* When collapsed, lose the bottom border under the title so it looks tidy */
.vlg-shop-sidebar .vlg-widget.is-collapsed .vlg-widget-toggle {
  border-bottom-color: transparent !important;
  margin-bottom: 0 !important;
  padding-bottom: 14px !important;
}

/* --- Category tree per-item toggle --- */
.widget_product_categories .vlg-cat-has-children {
  position: relative;
}
.widget_product_categories .vlg-cat-has-children > a {
  /* Leave room on the right for the toggle button */
  padding-right: 38px !important;
}
.widget_product_categories .vlg-cat-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--vlg-muted);
  cursor: pointer;
  z-index: 2;
  transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.4, 0, .2, 1);
}
.widget_product_categories .vlg-cat-toggle::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  display: block;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.widget_product_categories .vlg-cat-toggle:hover {
  background: var(--vlg-primary-soft);
  color: var(--vlg-primary-dark);
}
.widget_product_categories .vlg-cat-toggle:focus-visible {
  outline: 0;
  background: var(--vlg-primary-soft);
  box-shadow: 0 0 0 3px var(--vlg-primary-glow);
}
.widget_product_categories .vlg-cat-has-children.is-collapsed .vlg-cat-toggle::before {
  transform: rotate(-45deg);
  margin-top: 2px;
  margin-right: -2px;
}
.widget_product_categories .vlg-cat-has-children.is-collapsed > .children {
  display: none;
}
/* Subtle visual cue — collapsed parent items also get the count chip
 * marked with a tiny "+N" hint via the existing count, no extra DOM. */

/* For nested children, push the toggle slightly inward */
.widget_product_categories .children .vlg-cat-toggle {
  width: 24px;
  height: 24px;
  top: 2px;
}
.widget_product_categories .children .vlg-cat-toggle::before {
  width: 6px;
  height: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .vlg-shop-sidebar .vlg-widget-body { transition: none; }
  .vlg-shop-sidebar .vlg-widget-chevron,
  .widget_product_categories .vlg-cat-toggle::before { transition: none; }
}

@media (max-width: 600px) {
  /* Touch-friendly chevron + toggle areas on small screens */
  .vlg-shop-sidebar .vlg-widget-chevron { width: 24px; height: 24px; }
  .widget_product_categories .vlg-cat-toggle { width: 32px; height: 32px; top: 6px; right: 6px; }
}


/* ==========================================================================
   Valgusallikad v1.4.12 cleanup
   Eesmärk: vähem visuaalset müra, puhtam avaleht/tooteleht ja lihtsam mobiil.
   ========================================================================== */

:root {
  --vlg-page-bg-clean: #f7f9fc;
  --vlg-card-border-clean: #edf1f7;
  --vlg-shadow-clean: 0 10px 28px rgba(9, 23, 44, .055);
  --vlg-shadow-clean-hover: 0 16px 38px rgba(9, 23, 44, .085);
}

body.vlg-theme,
body {
  background: var(--vlg-page-bg-clean) !important;
}

.vlg-container {
  width: min(var(--vlg-container), calc(100% - 48px));
}

.vlg-site-header,
.vlg-main-header,
.vlg-nav,
.vlg-product-card,
.vlg-category-card,
.vlg-trust-item,
.vlg-product-gallery-card,
.vlg-product-summary-card,
.vlg-product-sidecard,
.vlg-product-tabs,
.vlg-related-card,
.vlg-footer {
  -webkit-font-smoothing: antialiased;
}

/* Header: puhtam ja madalam, ilma liigse raskuseta */
.vlg-site-header {
  box-shadow: 0 1px 0 rgba(9, 23, 44, .075) !important;
}

.vlg-topbar {
  font-size: 13px;
}

.vlg-main-header-inner {
  min-height: 78px !important;
  gap: 24px !important;
}

.vlg-brand {
  min-width: 210px;
}

.custom-logo {
  max-height: 58px !important;
}

.vlg-search {
  box-shadow: none !important;
  border-color: #e7edf6 !important;
  background: #fbfcfe !important;
}

.vlg-search button {
  box-shadow: none !important;
}

.vlg-category-button {
  box-shadow: none !important;
}

/* Hero: dot-pattern ja glow olid pildi järgi liiga mürased */
.vlg-hero {
  margin-top: 22px !important;
  min-height: 276px !important;
  padding: 34px 44px !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 34px rgba(7, 18, 36, .10) !important;
  background-color: #081527;
}

.vlg-hero::before {
  opacity: .24 !important;
  background-size: 30px 30px !important;
}

.vlg-hero h1 {
  max-width: 580px;
  font-size: clamp(32px, 3.7vw, 50px) !important;
  letter-spacing: -.045em;
  text-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}

.vlg-hero p {
  max-width: 560px;
  font-size: 17px !important;
  color: #d9e3ef !important;
}

.vlg-hero-benefits {
  background: rgba(8, 18, 36, .58) !important;
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.vlg-hero-benefits div:hover {
  padding-left: 0 !important;
}

/* Kaardid: ühtlasemad, vähem varju ja puhtam taust */
.vlg-trust-grid,
.vlg-category-grid,
ul.products,
.vlg-products-grid,
.vlg-related-grid {
  gap: 16px !important;
}

.vlg-trust-grid {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.vlg-trust-item,
.vlg-category-card,
.vlg-product-card,
.vlg-product-gallery-card,
.vlg-product-summary-card,
.vlg-product-sidecard,
.vlg-product-tabs,
.vlg-related-card,
.vlg-shop-sidebar .widget,
.vlg-product-info-card,
.vlg-cart-box,
.vlg-checkout-box {
  border: 1px solid var(--vlg-card-border-clean) !important;
  box-shadow: var(--vlg-shadow-clean) !important;
  background: #fff !important;
}

.vlg-category-card:hover,
.vlg-product-card:hover,
.vlg-related-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--vlg-shadow-clean-hover) !important;
}

.vlg-card-image-wrap,
.vlg-related-card .vlg-related-image,
.vlg-product-gallery-main {
  background: #fff !important;
}

.vlg-card-content h2,
.woocommerce-loop-product__title {
  font-size: 15px !important;
  line-height: 1.28 !important;
}

.vlg-card-category {
  letter-spacing: .055em !important;
}

.vlg-card-cart,
.vlg-card-actions .button,
a.added_to_cart,
.single_add_to_cart_button,
.checkout-button {
  box-shadow: none !important;
}

/* Tooteleht: vähem müra ja parem fookus ostuplokile */
.vlg-product-main-grid {
  gap: 22px !important;
  align-items: start;
}

.vlg-product-summary-card {
  padding: 26px !important;
  border-radius: 18px !important;
}

.vlg-product-summary-card h1,
.product_title.entry-title {
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.03 !important;
}

.vlg-product-meta-grid {
  gap: 10px !important;
}

.vlg-product-meta-item {
  background: #f8fafc !important;
  border-color: #e9eef6 !important;
}

.vlg-product-tabs,
.vlg-product-info-card {
  border-radius: 18px !important;
}

/* Footer: kompaktsem ja kergem */
.vlg-footer {
  margin-top: 44px;
  padding-top: 38px !important;
}

.vlg-footer-grid {
  gap: 34px !important;
}

/* Mobiil: vähem infot, vähem müra, lihtsam ostukogemus */
@media (max-width: 767px) {
  .vlg-container {
    width: min(100% - 24px, var(--vlg-container));
  }

  .vlg-topbar {
    display: none !important;
  }

  .vlg-main-header-inner {
    min-height: 64px !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 10px !important;
    padding: 8px 0 !important;
  }

  .vlg-brand {
    min-width: 0 !important;
  }

  .custom-logo {
    max-height: 40px !important;
    max-width: 165px !important;
  }

  .vlg-mobile-toggle {
    width: 42px !important;
    height: 42px !important;
  }

  .vlg-header-actions {
    gap: 4px !important;
  }

  .vlg-header-actions .vlg-wishlist-link,
  .vlg-header-actions .vlg-account-link {
    display: none !important;
  }

  .vlg-header-actions a {
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 4px !important;
  }

  .vlg-header-search {
    margin-top: 4px;
  }

  .vlg-search {
    border-radius: 12px !important;
    min-height: 42px !important;
  }

  .vlg-search input[type="search"] {
    height: 34px !important;
    font-size: 14px !important;
  }

  .vlg-search button {
    min-height: 34px !important;
    padding: 7px 12px !important;
  }

  .vlg-hero {
    margin: 14px 0 12px !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    min-height: 0 !important;
    display: block !important;
  }

  .vlg-hero::before {
    opacity: .12 !important;
  }

  .vlg-kicker {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .vlg-hero h1 {
    font-size: 27px !important;
    line-height: 1.02 !important;
    margin-bottom: 10px !important;
  }

  .vlg-hero p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  .vlg-hero-actions .vlg-btn-ghost,
  .vlg-hero-benefits {
    display: none !important;
  }

  .vlg-hero-actions .vlg-btn,
  .vlg-btn {
    width: auto;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }

  .vlg-trust-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .vlg-trust-item {
    padding: 12px 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .vlg-trust-item:nth-child(n+3) {
    display: none !important;
  }

  .vlg-trust-item > span {
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }

  .vlg-trust-item strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .vlg-trust-item small,
  .vlg-category-card small,
  .vlg-category-card span,
  .vlg-card-rating,
  .vlg-card-category,
  .vlg-product-breadcrumb,
  .woocommerce-breadcrumb {
    display: none !important;
  }

  .vlg-section {
    margin: 18px 0 !important;
  }

  .vlg-section-head {
    margin-bottom: 10px !important;
  }

  .vlg-section-head h1,
  .vlg-section-head h2 {
    font-size: 22px !important;
  }

  .vlg-category-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .vlg-category-card {
    grid-template-columns: 42px 1fr !important;
    min-height: 76px !important;
    padding: 12px !important;
    border-radius: 12px !important;
    gap: 10px !important;
  }

  .vlg-category-card img {
    width: 42px !important;
    height: 42px !important;
  }

  .vlg-category-card strong {
    font-size: 13px !important;
    line-height: 1.18 !important;
  }

  .vlg-shop-products ul.products,
  ul.products,
  .vlg-products-grid,
  .vlg-related-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .vlg-product-card {
    border-radius: 12px !important;
  }

  .vlg-card-image-wrap {
    aspect-ratio: 1 / 1 !important;
    padding: 10px !important;
  }

  .vlg-card-image-wrap img {
    max-height: 118px !important;
  }

  .vlg-card-content {
    padding: 10px 10px 4px !important;
  }

  .vlg-card-content h2,
  .woocommerce-loop-product__title {
    min-height: 38px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vlg-card-price,
  .vlg-card-price .price {
    font-size: 13px !important;
  }

  .vlg-card-actions {
    display: none !important;
  }

  .vlg-product-main-grid {
    gap: 12px !important;
  }

  .vlg-product-gallery-card,
  .vlg-product-summary-card,
  .vlg-product-info-card,
  .vlg-product-tabs {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .vlg-product-summary-card h1,
  .product_title.entry-title {
    font-size: 25px !important;
  }

  .vlg-product-sidecard,
  .vlg-product-meta,
  .vlg-product-tags,
  .vlg-product-sku,
  .vlg-product-cats {
    display: none !important;
  }

  .vlg-product-meta-grid {
    grid-template-columns: 1fr !important;
  }

  .quantity,
  .vlg-product-summary-card form.cart {
    width: 100% !important;
  }

  .single_add_to_cart_button,
  .vlg-add-to-cart,
  .vlg-product-summary-card .button {
    width: 100% !important;
    min-height: 46px !important;
  }

  .vlg-related-card:nth-child(n+5) {
    display: none !important;
  }

  .vlg-footer {
    margin-top: 28px !important;
    padding-top: 26px !important;
  }

  .vlg-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .vlg-footer-grid > *:nth-child(n+3) {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .vlg-shop-products ul.products,
  ul.products,
  .vlg-products-grid,
  .vlg-related-grid,
  .vlg-category-grid,
  .vlg-trust-grid {
    grid-template-columns: 1fr !important;
  }

  .vlg-card-image-wrap img {
    max-height: 150px !important;
  }
}

/* ==========================================================================
   Valgusallikad v1.4.13 premium view
   Parem desktop + mobiil: puhtam header, rahulikum hero, tugevamad tooted,
   tootelehel 2 veergu + teenuseinfo horisontaalselt, mobiilis vähem müra.
   ========================================================================== */

:root {
  --vlg-v1413-bg: #f4f7fb;
  --vlg-v1413-surface: #ffffff;
  --vlg-v1413-border: #e8eef6;
  --vlg-v1413-border-strong: #dbe5f0;
  --vlg-v1413-text: #111c2e;
  --vlg-v1413-muted: #6a7688;
  --vlg-v1413-soft-orange: #fff4e4;
  --vlg-v1413-shadow-xs: 0 1px 2px rgba(9, 23, 44, .035);
  --vlg-v1413-shadow-sm: 0 8px 22px rgba(9, 23, 44, .055);
  --vlg-v1413-shadow-md: 0 16px 38px rgba(9, 23, 44, .075);
  --vlg-v1413-shadow-lg: 0 24px 60px rgba(9, 23, 44, .12);
}

html { scroll-behavior: smooth; }
body.vlg-theme,
body {
  color: var(--vlg-v1413-text) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(242, 138, 0, .055), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--vlg-v1413-bg) 55%, #f7f9fc 100%) !important;
}

.vlg-container {
  width: min(var(--vlg-container), calc(100% - 56px)) !important;
}

/* Header: vähem infot korraga, rohkem premium tunnet */
.vlg-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: saturate(145%) blur(14px);
  box-shadow: 0 1px 0 rgba(9,23,44,.07), 0 8px 30px rgba(9,23,44,.04) !important;
}
.admin-bar .vlg-site-header { top: 32px; }
.vlg-topbar {
  background: #071224 !important;
  color: #e9f0f8 !important;
}
.vlg-topbar-inner { min-height: 30px !important; }
.vlg-main-header { background: transparent !important; }
.vlg-main-header-inner {
  min-height: 74px !important;
  gap: 22px !important;
}
.vlg-brand { min-width: 205px !important; }
.custom-logo { max-height: 50px !important; }
.vlg-search {
  min-height: 48px !important;
  padding: 4px 5px 4px 16px !important;
  background: #fff !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: var(--vlg-v1413-shadow-xs) !important;
}
.vlg-search:focus-within {
  border-color: rgba(242,138,0,.55) !important;
  box-shadow: 0 0 0 4px rgba(242,138,0,.11), var(--vlg-v1413-shadow-sm) !important;
}
.vlg-search input[type="search"] { height: 38px !important; }
.vlg-search button {
  min-height: 38px !important;
  padding: 9px 22px !important;
  background: linear-gradient(135deg, #ff9b11, #ea7600) !important;
  box-shadow: none !important;
}
.vlg-header-actions { gap: 8px !important; }
.vlg-header-actions a {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 14px !important;
}
.vlg-header-actions a:hover {
  background: #fff4e4 !important;
  color: #c76200 !important;
}
.vlg-cart-link {
  background: #fff7ec !important;
  border: 1px solid rgba(242,138,0,.16);
}
.vlg-badge {
  background: #ff8a00 !important;
  box-shadow: 0 4px 10px rgba(242,138,0,.25);
}
.vlg-nav {
  background: rgba(255,255,255,.72) !important;
  border-top-color: rgba(232,238,246,.82) !important;
  border-bottom-color: rgba(232,238,246,.82) !important;
}
.vlg-nav-inner { min-height: 54px !important; }
.vlg-category-button {
  min-width: 220px !important;
  padding: 13px 18px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #071224 0%, #111f35 100%) !important;
}
.vlg-primary-menu { gap: 24px !important; }
.vlg-primary-menu a {
  position: relative;
  padding: 7px 0;
  font-weight: 850 !important;
}
.vlg-primary-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--vlg-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.vlg-primary-menu .current-menu-item > a::after,
.vlg-primary-menu a:hover::after { transform: scaleX(1); }

/* Avaleht: vähem taustamüra ja selgem fookus */
.vlg-home { padding-bottom: 38px !important; }
.vlg-hero {
  position: relative;
  isolation: isolate;
  margin: 24px 0 18px !important;
  min-height: 300px !important;
  grid-template-columns: minmax(0,1fr) 290px !important;
  padding: 40px 48px !important;
  border-radius: 28px !important;
  box-shadow: var(--vlg-v1413-shadow-lg) !important;
  background-size: cover !important;
  background-position: center right !important;
}
.vlg-hero::before {
  opacity: .10 !important;
  background-size: 42px 42px !important;
}
.vlg-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,18,36,.18), transparent 58%);
}
.vlg-hero > * { position: relative; z-index: 1; }
.vlg-kicker {
  color: #ffb44f !important;
  font-size: 12px !important;
  letter-spacing: .13em !important;
}
.vlg-hero h1 {
  max-width: 600px !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
  margin-bottom: 14px !important;
  text-wrap: balance;
}
.vlg-hero p {
  max-width: 570px !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
  color: #e5edf7 !important;
}
.vlg-hero-actions { gap: 10px !important; }
.vlg-btn,
.vlg-btn-primary,
.vlg-btn-ghost,
.vlg-card-cart,
.single_add_to_cart_button,
.checkout-button {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease !important;
}
.vlg-btn-primary,
.single_add_to_cart_button,
.checkout-button,
.vlg-card-cart,
.vlg-card-actions .button {
  background: linear-gradient(135deg, #ff9b11, #ea7600) !important;
}
.vlg-btn-primary:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.vlg-card-cart:hover,
.vlg-card-actions .button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px rgba(242,138,0,.22) !important;
}
.vlg-hero-benefits {
  border-radius: 22px !important;
  background: rgba(255,255,255,.09) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 16px 36px rgba(0,0,0,.16) !important;
}
.vlg-hero-benefits div { grid-template-columns: 38px 1fr !important; gap: 12px !important; }
.vlg-hero-benefits span { width: 38px !important; height: 38px !important; }

/* Trust + category blocks */
.vlg-trust-grid {
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  margin-bottom: 28px !important;
}
.vlg-trust-item {
  position: relative;
  overflow: hidden;
  min-height: 78px;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}
.vlg-trust-item::after {
  content: '';
  position: absolute;
  inset: auto -30px -42px auto;
  width: 92px;
  height: 92px;
  background: rgba(242,138,0,.08);
  border-radius: 50%;
}
.vlg-trust-item > span {
  width: 42px !important;
  height: 42px !important;
  font-size: 20px !important;
  background: var(--vlg-v1413-soft-orange) !important;
}
.vlg-section { margin: 30px 0 !important; }
.vlg-section-head { margin-bottom: 16px !important; }
.vlg-section-head h1,
.vlg-section-head h2 {
  font-size: clamp(24px, 2vw, 34px) !important;
  letter-spacing: -.045em !important;
}
.vlg-section-head h1::after,
.vlg-section-head h2::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vlg-primary), transparent);
}
.vlg-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.vlg-category-card {
  position: relative;
  grid-template-columns: 54px 1fr !important;
  gap: 12px !important;
  min-height: 92px !important;
  padding: 15px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}
.vlg-category-card::before { display: none !important; }
.vlg-category-card:hover {
  border-color: rgba(242,138,0,.26) !important;
  box-shadow: var(--vlg-v1413-shadow-md) !important;
}
.vlg-category-card img {
  width: 54px !important;
  height: 54px !important;
  padding: 7px !important;
  border-radius: 16px !important;
  background: #f7f9fc !important;
}
.vlg-category-card strong {
  font-size: 13px !important;
  line-height: 1.22 !important;
  text-transform: uppercase;
}
.vlg-category-card small { display: none !important; }
.vlg-category-card span {
  margin-top: 5px !important;
  color: var(--vlg-primary) !important;
}

/* Product cards: ühtlasem kõrgus, puhtam pilt, CTA nähtav */
ul.products,
.vlg-products-grid,
.vlg-shop-products ul.products,
.vlg-related-grid {
  gap: 18px !important;
}
.vlg-product-card {
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}
.vlg-product-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(242,138,0,.25) !important;
  box-shadow: var(--vlg-v1413-shadow-md) !important;
}
.vlg-card-image-wrap {
  aspect-ratio: 1 / .92 !important;
  padding: 18px !important;
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%) !important;
}
.vlg-card-image-wrap::before { display: none !important; }
.vlg-card-image-wrap::after {
  background: radial-gradient(circle at 50% 100%, rgba(242,138,0,.07), transparent 62%) !important;
}
.vlg-card-image-wrap img,
.vlg-product-card .wp-post-image {
  max-height: 178px !important;
  width: auto !important;
  object-fit: contain !important;
}
.vlg-card-content {
  padding: 14px 15px 8px !important;
}
.vlg-card-category {
  color: #e07800 !important;
  font-size: 10px !important;
  letter-spacing: .075em !important;
}
.vlg-card-content h2,
.woocommerce-loop-product__title {
  min-height: 42px;
  color: var(--vlg-v1413-text) !important;
  font-size: 14px !important;
  line-height: 1.32 !important;
  font-weight: 850 !important;
  margin: 6px 0 8px !important;
}
.vlg-card-price,
.vlg-card-price .price,
.vlg-card-price .amount {
  color: #f08400 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}
.vlg-card-actions {
  display: block !important;
  padding: 0 15px 15px !important;
}
.vlg-card-cart,
.vlg-card-actions .button {
  min-height: 40px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* Tooteleht: parem desktop-vaade. Galerii + info, teenuseinfo all reas. */
.vlg-single-product-page {
  padding-top: 16px !important;
}
.vlg-breadcrumbs,
.woocommerce-breadcrumb {
  color: var(--vlg-v1413-muted) !important;
  font-size: 12px !important;
}
.vlg-product-main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr) !important;
  gap: 22px !important;
  align-items: start !important;
}
.vlg-product-gallery-card,
.vlg-product-summary-card,
.vlg-product-sidecard,
.vlg-product-tab,
.vlg-product-tabs,
.vlg-product-info-card {
  border: 1px solid var(--vlg-v1413-border) !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}
.vlg-product-gallery-card {
  min-height: 520px !important;
  border-radius: 24px !important;
  padding: 30px !important;
}
.vlg-product-gallery-card .woocommerce-product-gallery__image img {
  max-height: 440px !important;
}
.vlg-product-summary-card {
  position: sticky;
  top: 130px;
  border-radius: 24px !important;
  padding: 30px !important;
}
.admin-bar .vlg-product-summary-card { top: 162px; }
.vlg-pill {
  background: #fff4e4 !important;
  color: #db7100 !important;
  border: 1px solid rgba(242,138,0,.12);
}
.vlg-product-summary-card h1,
.product_title.entry-title,
.woocommerce div.product .product_title {
  color: #101a2b !important;
  font-size: clamp(30px, 3vw, 46px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em !important;
  text-wrap: balance;
}
.vlg-product-price .price,
.vlg-product-price p.price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #f08400 !important;
  font-size: 30px !important;
  font-weight: 950 !important;
}
.vlg-product-excerpt {
  color: var(--vlg-v1413-muted) !important;
  line-height: 1.62 !important;
}
.vlg-product-specs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 18px 0 20px !important;
}
.vlg-product-specs div {
  background: #f8fafc !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  border-radius: 14px !important;
  padding: 12px !important;
}
.vlg-product-buybox {
  margin: 20px 0 !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: 0 10px 24px rgba(9,23,44,.055) !important;
}
.vlg-product-buybox form.cart {
  align-items: center !important;
  gap: 12px !important;
}
.vlg-product-buybox .quantity,
.quantity .qty {
  height: 50px !important;
  border-radius: 999px !important;
}
.single_add_to_cart_button {
  min-height: 50px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
.vlg-product-sidecard {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 18px 0 24px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.vlg-side-feature {
  min-height: 94px;
  border: 1px solid var(--vlg-v1413-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
  padding: 16px !important;
  grid-template-columns: 42px 1fr !important;
}
.vlg-side-feature > span {
  width: 42px !important;
  height: 42px !important;
  background: #fff4e4 !important;
}
.vlg-product-sidecard .vlg-payment-badges {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.72) !important;
  border: 1px solid var(--vlg-v1413-border) !important;
}
.vlg-product-tabs {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 16px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.vlg-product-tab {
  border-radius: 20px !important;
  overflow: hidden;
}
.vlg-product-tab summary {
  padding: 18px 22px !important;
  background: #fff !important;
}
.vlg-tab-content { padding: 0 22px 22px !important; }
.related.products > h2,
.up-sells.products > h2 {
  font-size: clamp(24px, 2vw, 32px) !important;
  letter-spacing: -.04em !important;
}

/* Shop/archive: parem filtriplokk ja ruudustik */
.vlg-shop-layout { gap: 26px !important; }
.vlg-shop-sidebar .widget,
.vlg-widget {
  border-radius: 20px !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  background: #fff !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}
.vlg-shop-head {
  border-radius: 22px !important;
  border: 1px solid var(--vlg-v1413-border) !important;
  box-shadow: var(--vlg-v1413-shadow-sm) !important;
}

/* Footer: professionaalsem ja mitte nii raske */
.vlg-footer {
  margin-top: 54px !important;
  padding: 44px 0 24px !important;
  background: linear-gradient(180deg, #071224 0%, #071222 100%) !important;
}
.vlg-footer-grid { gap: 42px !important; }
.vlg-footer a:hover { color: #ffb44f !important; }

/* Tablet */
@media (max-width: 1180px) {
  .vlg-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .vlg-product-main-grid { grid-template-columns: 1fr 1fr !important; }
  .vlg-product-summary-card { position: static !important; }
  .vlg-product-sidecard { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .vlg-product-specs { grid-template-columns: 1fr 1fr !important; }
}

/* Mobile: lihtsam, vähem infot, ostunupud alles */
@media (max-width: 767px) {
  body.vlg-theme,
  body {
    background: #f6f8fb !important;
  }
  .vlg-container {
    width: min(100% - 22px, var(--vlg-container)) !important;
  }
  .admin-bar .vlg-site-header,
  .vlg-site-header { top: 0 !important; position: sticky; }
  .vlg-topbar { display: none !important; }
  .vlg-main-header-inner {
    grid-template-columns: auto 1fr auto !important;
    min-height: 62px !important;
    gap: 8px !important;
    padding: 7px 0 !important;
  }
  .vlg-header-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .vlg-mobile-toggle {
    display: grid !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
    box-shadow: none !important;
  }
  .vlg-brand { min-width: 0 !important; }
  .custom-logo { max-height: 36px !important; max-width: 145px !important; }
  .vlg-header-actions .vlg-account-link,
  .vlg-header-actions .vlg-wishlist-link { display: none !important; }
  .vlg-header-actions a {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    justify-content: center;
  }
  .vlg-cart-link .vlg-link-label,
  .vlg-cart-link strong { display: none !important; }
  .vlg-badge { top: -5px !important; left: 24px !important; }
  .vlg-header-search {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    margin-top: 2px !important;
  }
  .vlg-search { min-height: 42px !important; border-radius: 14px !important; }
  .vlg-search-icon { font-size: 18px !important; }
  .vlg-search input[type="search"] { height: 32px !important; font-size: 14px !important; }
  .vlg-search button { min-height: 32px !important; padding: 7px 12px !important; font-size: 12px !important; }
  .vlg-nav.is-open {
    display: block !important;
    position: fixed;
    left: 10px;
    right: 10px;
    top: 72px;
    max-height: calc(100vh - 86px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--vlg-v1413-border) !important;
    box-shadow: var(--vlg-v1413-shadow-lg) !important;
  }
  .vlg-nav-inner { padding: 12px !important; }
  .vlg-category-button { min-width: 0 !important; width: 100% !important; }
  .vlg-category-dropdown { border-radius: 14px !important; }
  .vlg-primary-menu { gap: 0 !important; }
  .vlg-primary-menu a { padding: 11px 4px !important; }

  .vlg-hero {
    margin: 12px 0 12px !important;
    min-height: 0 !important;
    display: block !important;
    padding: 24px 18px !important;
    border-radius: 20px !important;
    background-position: center !important;
    box-shadow: var(--vlg-v1413-shadow-sm) !important;
  }
  .vlg-hero::before { opacity: .06 !important; }
  .vlg-hero::after { background: rgba(7,18,36,.08) !important; }
  .vlg-kicker { font-size: 10px !important; margin-bottom: 7px !important; }
  .vlg-hero h1 {
    font-size: clamp(27px, 8vw, 38px) !important;
    line-height: 1.02 !important;
    margin-bottom: 9px !important;
  }
  .vlg-hero p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }
  .vlg-hero-actions .vlg-btn-ghost,
  .vlg-hero-payments,
  .vlg-hero-benefits { display: none !important; }
  .vlg-hero-actions .vlg-btn { width: 100% !important; min-height: 44px !important; }

  .vlg-trust-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin-bottom: 18px !important;
  }
  .vlg-trust-item {
    min-height: 66px !important;
    padding: 11px !important;
    gap: 8px !important;
    border-radius: 15px !important;
  }
  .vlg-trust-item:nth-child(n+3) { display: none !important; }
  .vlg-trust-item > span { width: 34px !important; height: 34px !important; font-size: 17px !important; }
  .vlg-trust-item strong { font-size: 12px !important; line-height: 1.18 !important; }
  .vlg-trust-item small { display: none !important; }

  .vlg-section { margin: 20px 0 !important; }
  .vlg-section-head { margin-bottom: 10px !important; }
  .vlg-section-head h1,
  .vlg-section-head h2 { font-size: 22px !important; }
  .vlg-section-head h1::after,
  .vlg-section-head h2::after { width: 32px; margin-top: 6px; }
  .vlg-category-grid { grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
  .vlg-category-card {
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 10px !important;
    gap: 9px !important;
    border-radius: 15px !important;
  }
  .vlg-category-card img { width: 38px !important; height: 38px !important; padding: 5px !important; border-radius: 12px !important; }
  .vlg-category-card strong { font-size: 12px !important; line-height: 1.16 !important; }
  .vlg-category-card span,
  .vlg-category-card small { display: none !important; }

  .vlg-shop-products ul.products,
  ul.products,
  .vlg-products-grid,
  .vlg-related-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .vlg-product-card { border-radius: 16px !important; }
  .vlg-card-image-wrap { aspect-ratio: 1 / .96 !important; padding: 10px !important; }
  .vlg-card-image-wrap img,
  .vlg-product-card .wp-post-image { max-height: 118px !important; }
  .vlg-card-content { padding: 10px 10px 5px !important; }
  .vlg-card-category,
  .vlg-card-rating { display: none !important; }
  .vlg-card-content h2,
  .woocommerce-loop-product__title {
    min-height: 34px !important;
    font-size: 12px !important;
    line-height: 1.24 !important;
    margin: 4px 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .vlg-card-price,
  .vlg-card-price .price,
  .vlg-card-price .amount { font-size: 12.5px !important; }
  .vlg-card-actions {
    display: block !important;
    padding: 0 10px 10px !important;
  }
  .vlg-card-cart,
  .vlg-card-actions .button {
    min-height: 34px !important;
    font-size: 0 !important;
    border-radius: 12px !important;
  }
  .vlg-card-cart::before,
  .vlg-card-actions .button::before {
    content: '🛒' !important;
    font-size: 13px !important;
    margin-right: 4px;
  }
  .vlg-card-cart::after,
  .vlg-card-actions .button::after {
    content: 'Korvi';
    font-size: 12px !important;
  }

  .vlg-single-product-page { padding-top: 8px !important; }
  .vlg-product-main-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .vlg-product-gallery-card,
  .vlg-product-summary-card,
  .vlg-product-tab {
    border-radius: 18px !important;
    padding: 14px !important;
  }
  .vlg-product-gallery-card { min-height: 0 !important; }
  .vlg-product-gallery-card .woocommerce-product-gallery__image img { max-height: 320px !important; }
  .vlg-product-summary-card { position: static !important; }
  .vlg-pill,
  .vlg-product-rating-row .woocommerce-product-rating,
  .product_meta,
  .vlg-product-excerpt,
  .vlg-product-sidecard,
  .vlg-product-specs div:nth-child(n+3) { display: none !important; }
  .vlg-product-summary-card h1,
  .product_title.entry-title,
  .woocommerce div.product .product_title {
    font-size: 25px !important;
    line-height: 1.05 !important;
    margin-bottom: 8px !important;
  }
  .vlg-product-price .price,
  .vlg-product-price p.price,
  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 23px !important;
  }
  .vlg-product-specs { grid-template-columns: 1fr 1fr !important; gap: 8px !important; margin: 12px 0 !important; }
  .vlg-product-specs div { padding: 9px !important; }
  .vlg-product-buybox {
    margin: 12px 0 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .vlg-product-buybox form.cart { display: grid !important; grid-template-columns: 80px 1fr !important; gap: 8px !important; }
  .single_add_to_cart_button { min-width: 0 !important; min-height: 46px !important; }
  .quantity .qty { width: 100% !important; height: 46px !important; }
  .vlg-product-tabs { grid-template-columns: 1fr !important; gap: 10px !important; }
  .vlg-product-tab:not(:first-child) { display: none !important; }
  .vlg-product-tab summary { padding: 14px 16px !important; }
  .vlg-tab-content { padding: 0 16px 16px !important; font-size: 14px !important; }
  .related.products ul.products li:nth-child(n+5),
  .up-sells.products ul.products li:nth-child(n+5) { display: none !important; }

  .vlg-footer { margin-top: 30px !important; padding: 28px 0 18px !important; }
  .vlg-footer-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .vlg-footer-col:nth-of-type(n+2) { display: none !important; }
  .vlg-footer-bottom { display: block !important; text-align: center; }
}

@media (max-width: 390px) {
  .vlg-shop-products ul.products,
  ul.products,
  .vlg-products-grid,
  .vlg-related-grid,
  .vlg-category-grid,
  .vlg-trust-grid { grid-template-columns: 1fr !important; }
  .vlg-card-image-wrap img,
  .vlg-product-card .wp-post-image { max-height: 150px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ===== v1.4.14 Product energy showcase + stronger grid CTA ===== */
.vlg-product-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vlg-product-energy-inline {
  margin: 12px 0 0;
}

.vlg-energy-showcase {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.vlg-energy-showcase__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vlg-energy-showcase__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--vlg-primary);
  margin-bottom: 4px;
}

.vlg-energy-showcase__text strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  color: var(--vlg-dark);
}

.vlg-energy-showcase__text small {
  display: block;
  margin-top: 4px;
  color: var(--vlg-muted);
  font-size: 13px;
}

.vlg-energy-showcase__badge .vlg-energy-badge {
  position: static;
  width: auto;
  min-height: 0;
  padding: 8px 12px;
  border-radius: 14px;
  flex-direction: row;
  gap: 8px;
  box-shadow: none;
}

.vlg-energy-showcase__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vlg-energy-showcase__image {
  display: block;
  width: min(220px, 100%);
}

.vlg-energy-showcase__image img,
.vlg-energy-showcase__image svg,
.vlg-energy-showcase__image.is-svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.vlg-energy-showcase__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vlg-energy-showcase__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--vlg-dark);
  font-weight: 800;
}

.vlg-products-grid .vlg-product-card,
ul.products .vlg-product-card {
  display: flex;
  flex-direction: column;
}

.vlg-products-grid .vlg-product-card .vlg-product-link,
ul.products .vlg-product-card .vlg-product-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.vlg-products-grid .vlg-product-card .vlg-card-content,
ul.products .vlg-product-card .vlg-card-content {
  flex: 1 1 auto;
}

.vlg-product-card .vlg-card-actions {
  margin-top: auto;
  padding-top: 0 !important;
}

.vlg-product-card .vlg-card-actions .vlg-card-cart,
.vlg-product-card .vlg-card-actions .button,
.vlg-product-card .vlg-card-actions .added_to_cart {
  min-height: 44px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
}

.vlg-product-card .vlg-card-actions .added_to_cart {
  margin-top: 8px;
  background: #fff !important;
  color: var(--vlg-dark) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 991px) {
  .vlg-energy-showcase {
    padding: 14px;
    border-radius: 16px;
  }

  .vlg-energy-showcase__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .vlg-energy-showcase__badge .vlg-energy-badge {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .vlg-energy-showcase__image {
    width: min(190px, 100%);
  }

  .vlg-product-card .vlg-card-actions .vlg-card-cart,
  .vlg-product-card .vlg-card-actions .button {
    min-height: 40px !important;
  }
}


/* ===== v1.4.15 Product page energy badge + always-visible home cart CTA ===== */
.vlg-product-gallery-media {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.vlg-product-gallery-media .woocommerce-product-gallery {
  margin-bottom: 0;
}

.vlg-single-image-energy {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  pointer-events: none;
}

.vlg-single-image-energy:empty {
  display: none;
}

.vlg-single-image-energy .vlg-energy-badge {
  position: static !important;
  width: 58px;
  min-height: 74px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
  transform: none;
}

.vlg-product-card .vlg-card-actions,
.vlg-product-section .vlg-card-actions,
.vlg-products-grid .vlg-card-actions,
ul.products .vlg-card-actions {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
  padding: 0 14px 14px !important;
}

.vlg-product-card .vlg-card-actions .vlg-card-cart,
.vlg-product-card .vlg-card-actions .button {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 42px !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center;
  background: linear-gradient(135deg, var(--vlg-primary), #d96b00) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 22px rgba(242, 138, 0, .18);
}

.vlg-product-card .vlg-card-actions .vlg-card-cart:hover,
.vlg-product-card .vlg-card-actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(242, 138, 0, .24);
}

.vlg-product-card .vlg-card-actions .added_to_cart {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 38px !important;
  margin-top: 8px !important;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: var(--vlg-dark) !important;
  border: 1px solid rgba(15, 23, 42, .10) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

@media (max-width: 767px) {
  .vlg-single-image-energy {
    left: 12px;
    bottom: 12px;
  }

  .vlg-single-image-energy .vlg-energy-badge {
    width: 46px;
    min-height: 60px;
    border-radius: 10px;
  }

  .vlg-product-card .vlg-card-actions,
  .vlg-product-section .vlg-card-actions,
  .vlg-products-grid .vlg-card-actions,
  ul.products .vlg-card-actions {
    display: block !important;
    padding: 0 10px 10px !important;
  }

  .vlg-product-card .vlg-card-actions .vlg-card-cart,
  .vlg-product-card .vlg-card-actions .button {
    min-height: 34px !important;
    border-radius: 12px !important;
    font-size: 0 !important;
  }

  .vlg-product-card .vlg-card-actions .vlg-card-cart::before,
  .vlg-product-card .vlg-card-actions .button::before {
    content: '🛒';
    font-size: 13px !important;
    margin-right: 4px;
  }

  .vlg-product-card .vlg-card-actions .vlg-card-cart::after,
  .vlg-product-card .vlg-card-actions .button::after {
    content: 'Korvi';
    font-size: 12px !important;
  }
}
