/* ==========================================================================
   SportVit — main stylesheet
   Palette: navy header + leafy-green accent (inspired by Dexons token system)
   ========================================================================== */

:root {
  /* === Accent — one accent colour for the whole site (Customizer) === */
  --sv-accent:         #2563eb;   /* primary accent / CTA (blue) */
  --sv-accent-dark:    #1d4ed8;   /* accent hover */
  --sv-accent-soft:    color-mix(in srgb, var(--sv-accent) 12%, #ffffff);
  --sv-accent-contrast:#ffffff;   /* text on accent */
  /* back-compat aliases (legacy rules still reference --sv-green*) */
  --sv-green:       var(--sv-accent);
  --sv-green-dark:  var(--sv-accent-dark);
  --sv-green-soft:  var(--sv-accent-soft);
  --sv-orange:      #0ea5e9;

  /* === Chrome (top bar / header / nav) — light & modern === */
  --sv-topbar-bg:    #eef2f7;
  --sv-topbar-text:  #51607a;
  --sv-header-bg:    #ffffff;
  --sv-header-text:  #0f1b2d;
  --sv-header-muted: #6b7a90;
  --sv-nav-bg:       #ffffff;
  --sv-nav-text:     #14212e;
  --sv-chrome-border:#e7ecf3;

  /* === Footer (light grey) === */
  --sv-footer-bg:   #f2f4f7;
  --sv-footer-text: #5a6b7b;

  /* === Dark surfaces (advantages strip, badges, dark promo) === */
  --sv-dark:        #0f1b2d;
  --sv-navy:        var(--sv-dark);          /* alias */
  --sv-navy-dark:   var(--sv-topbar-bg);     /* alias */
  --sv-navy-2:      var(--sv-nav-bg);        /* alias */

  /* Neutrals */
  --sv-bg:          #fbfcfe;
  --sv-white:       #ffffff;
  --sv-heading:     #14212e;
  --sv-text:        #5a6b7b;
  --sv-muted:       #9aa5b1;
  --sv-border:      #e7ecf3;
  --sv-line:        #eef1f5;

  /* Functional */
  --sv-price:       #14212e;
  --sv-old-price:   #aab3bd;
  --sv-star:        #f5a623;
  --sv-stock:       #1ea64a;   /* "в наявності" — green */
  --sv-badge-bg:    var(--sv-accent);
  --sv-badge-text:  #ffffff;

  /* Shape */
  --sv-radius-sm:   6px;
  --sv-radius:      10px;
  --sv-radius-lg:   16px;
  --sv-shadow:      0 6px 24px rgba(16, 38, 64, .07);
  --sv-shadow-hover:0 14px 40px rgba(16, 38, 64, .12);

  /* Layout */
  --sv-container:   1240px;
  --sv-gap:         24px;

  /* Type */
  --sv-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; }

/* Never allow sideways scrolling ("екран гуляє" on mobile). */
html, body { max-width: 100%; overflow-x: hidden; }

body.sportvit {
  margin: 0;
  font-family: var(--sv-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sv-text);
  background: var(--sv-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sv-green); }

/* Single default size for every inline icon — prevents mismatched icon sizes.
   Container-specific rules (e.g. .sv-iconlink svg) override this where needed. */
.sv-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sv-seeall svg, .sv-post__more svg, .sv-promo a.link svg { width: 14px; height: 14px; }
.sv-btn svg { width: 16px; height: 16px; }
.sv-cat__go svg { width: 15px; height: 15px; }
.sv-search button svg { width: 20px; height: 20px; }

h1, h2, h3, h4 {
  font-family: var(--sv-font);
  color: var(--sv-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
}

.sv-container {
  width: 100%;
  max-width: var(--sv-container);
  margin: 0 auto;
  padding: 0 20px;
}

.sv-section { padding: 46px 0; }
.sv-section--tight { padding: 30px 0; }

/* section heading row */
.sv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.sv-section-head h2 {
  font-size: 26px;
  margin: 0;
}
.sv-section-head .sv-seeall {
  color: var(--sv-green-dark);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.sv-section-head .sv-seeall svg { vertical-align: -2px; margin-left: 4px; }

/* ------------------------------------------------------------- buttons ---- */
.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sv-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--sv-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.sv-btn--green { background: var(--sv-green); color: #fff; border-color: var(--sv-green); }
.sv-btn--green:hover { background: var(--sv-green-dark); border-color: var(--sv-green-dark); color: #fff; }
.sv-btn--outline { background: transparent; color: var(--sv-heading); border-color: #cdd5de; }
.sv-btn--outline:hover { border-color: var(--sv-green); color: var(--sv-green); }
.sv-btn--light { background: #fff; color: var(--sv-heading); border-color: #fff; }
.sv-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.sv-btn--ghost-light:hover { background: #fff; color: var(--sv-navy); }
.sv-btn--sm { padding: 10px 18px; font-size: 14px; }

/* =========================================================== TOP BAR ====== */
.sv-topbar {
  background: var(--sv-topbar-bg);
  color: var(--sv-topbar-text);
  font-size: 13px;
  border-bottom: 1px solid var(--sv-chrome-border);
}
.sv-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.sv-topbar a { color: var(--sv-topbar-text); }
.sv-topbar a:hover { color: var(--sv-accent); }
.sv-topbar__menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.sv-topbar__center { display: inline-flex; align-items: center; gap: 8px; color: var(--sv-topbar-text); font-weight: 600; }
.sv-topbar__center svg { width: 16px; height: 16px; color: var(--sv-accent); }
.sv-topbar__lang { display: inline-flex; gap: 10px; align-items: center; }
.sv-topbar__lang a.is-active { color: var(--sv-accent); font-weight: 700; }

/* =========================================================== HEADER ======= */
.sv-header { background: var(--sv-header-bg); color: var(--sv-header-text); border-bottom: 1px solid var(--sv-chrome-border); }
.sv-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}
.sv-logo { font-size: 26px; font-weight: 800; color: var(--sv-header-text); letter-spacing: .5px; }
.sv-logo img { max-height: 44px; width: auto; }

/* catalog button */
.sv-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--sv-green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--sv-radius-sm);
  white-space: nowrap;
}
.sv-catalog-btn:hover { background: var(--sv-green-dark); color: #fff; }
.sv-catalog-btn .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.sv-catalog-btn .bars span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }

/* search */
.sv-search { position: relative; flex: 1 1 auto; max-width: 560px; }
.sv-search form { display: flex; background: #fff; border: 1px solid var(--sv-chrome-border); border-radius: var(--sv-radius-sm); overflow: hidden; }
.sv-search input[type="search"] {
  flex: 1 1 auto;
  border: 0;
  padding: 0 18px;
  font-size: 14px;
  font-family: var(--sv-font);
  color: var(--sv-heading);
  outline: none;
  min-height: 48px;
}
.sv-search button {
  border: 0;
  background: var(--sv-green);
  color: #fff;
  width: 56px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sv-search button:hover { background: var(--sv-green-dark); }

/* ============================ Live search dropdown ========================= */
.sv-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 90;
  background: #fff; border-radius: var(--sv-radius); box-shadow: var(--sv-shadow-hover);
  max-height: 420px; overflow-y: auto;
  padding: 6px 0;
}
.sv-search__list { list-style: none; margin: 0; padding: 0; }
.sv-search__list li { border-bottom: 1px solid var(--sv-line); }
.sv-search__list li:last-child { border-bottom: 0; }
.sv-search__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  color: var(--sv-heading);
}
.sv-search__list a:hover { background: var(--sv-bg); }
.sv-search__thumb {
  flex: 0 0 auto; width: 44px; height: 44px;
  border-radius: var(--sv-radius-sm); overflow: hidden;
  background: var(--sv-line);
  display: flex; align-items: center; justify-content: center;
}
.sv-search__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sv-search__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-search__title {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv-search__price { font-size: 13px; color: var(--sv-price); font-weight: 700; }
.sv-search__all {
  display: block; text-align: center;
  padding: 12px 16px 6px;
  font-size: 14px; font-weight: 700; color: var(--sv-accent);
}
.sv-search__all:hover { color: var(--sv-accent-dark); }
.sv-search__empty { padding: 16px; margin: 0; color: var(--sv-muted); font-size: 14px; text-align: center; }

/* header right cluster */
.sv-header__right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.sv-header__phone { line-height: 1.2; white-space: nowrap; }
.sv-header__phone .num { display: block; font-size: 18px; font-weight: 800; color: var(--sv-header-text); }
.sv-header__phone .hours { display: block; font-size: 12px; color: var(--sv-header-muted); }

.sv-iconlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sv-header-text);
  position: relative;
}
.sv-iconlink .ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  /* Blue action icons (phone / account / wishlist / cart) — they read as black
     when they inherit the dark header text colour. */
  color: var(--sv-accent);
}
.sv-iconlink .txt { line-height: 1.15; font-size: 13px; }
.sv-iconlink .txt b { display: block; font-size: 14px; font-weight: 700; }
.sv-iconlink .txt span { color: var(--sv-header-muted); font-size: 12px; }
.sv-iconlink .ico svg,
.sv-iconlink svg { width: 25px; height: 25px; display: block; }
.sv-badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--sv-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================== NAV ======= */
.sv-nav { background: var(--sv-nav-bg); border-top: 1px solid var(--sv-chrome-border); border-bottom: 1px solid var(--sv-chrome-border); }
.sv-nav__inner { display: flex; align-items: center; }
/* nowrap + horizontal scroll — translated labels (e.g. RU) run longer than
   the UA originals; wrapping to a 2nd line would push page content down, so
   the menu scrolls sideways instead of ever breaking onto another row. */
.sv-menu {
  display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap;
  overflow-x: auto; scrollbar-width: none;
}
.sv-menu::-webkit-scrollbar { display: none; }
.sv-menu > li { flex: 1 1 0; position: relative; }
.sv-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--sv-nav-text);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  padding: 16px 12px;
}
.sv-menu > li > a:hover { color: var(--sv-accent); }
.sv-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .7;
}
/* dropdown */
.sv-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow-hover);
  list-style: none;
  margin: 0; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 60;
}
.sv-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sv-menu .sub-menu a { display: block; padding: 9px 20px; color: var(--sv-heading); font-size: 14px; font-weight: 500; }
.sv-menu .sub-menu a:hover { background: var(--sv-green-soft); color: var(--sv-green-dark); }

/* burger (mobile) */
.sv-burger { display: none; background: none; border: 0; color: var(--sv-nav-text); cursor: pointer; padding: 8px; }
.sv-burger span { display: block; width: 24px; height: 2px; background: var(--sv-accent); margin: 5px 0; border-radius: 2px; }

/* =============================================================== HERO ===== */
/* Hero is a full-bleed photo "cover" (edge to edge, never wider than the
   viewport) with the title/text overlaid on top via a dark gradient — the
   photo is a background layer (.sv-hero__media, position:absolute inset:0),
   not a grid column, so it can never push the layout wider than the screen. */
.sv-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--sv-navy);
}
.sv-hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 460px;
  padding: 40px 0;
}
.sv-hero--big .sv-hero__grid { min-height: 460px; padding: 40px 0; }
@media (max-width: 920px) {
  .sv-hero--big .sv-hero__grid { min-height: auto; padding: 30px 0; }
}
.sv-hero__content { position: relative; z-index: 2; max-width: 600px; }
.sv-hero__title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
  text-transform: uppercase;
  color: #fff;
}
.sv-hero__title .green { color: var(--sv-green); }
.sv-hero__text { font-size: 18px; color: rgba(255,255,255,.85); max-width: 460px; margin: 0 0 28px; }
.sv-hero__actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }
.sv-hero__actions .sv-btn { justify-content: center; min-height: 48px; }
.sv-hero__media {
  /* Spans the hero's full width now — it no longer confines/crops the photo
     itself (that job moved to the mask below, scoped to the img only, so it
     is scoped to the img only). */
  position: absolute; top: 0; bottom: 0; right: 0; left: 0; z-index: 0;
}
.sv-hero__media img {
  position: absolute; top: 0; bottom: 0;
  /* The media box is the 1200px content column, so `right:0` left ~120px of
     plain hero background beyond the photo on a 1440 screen — its right edge
     stood there as a vertical line. Pull the photo out to the viewport edge
     (the hero itself is full-bleed and clips the overflow). */
  right: calc(50% - 50vw);
  width: auto; max-width: none; height: 100%; display: block;
  /* Both side edges dissolve into the background: the left one floats in the
     middle of the banner, the right one meets the screen edge / hero colour. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%, #000 86%, transparent 100%);
}
@media (max-width: 720px) {
  /* Center everything and stack it cleanly. */
  .sv-hero__grid { align-items: center; text-align: center; }
  .sv-hero__content { max-width: none; width: 100%; }
  .sv-hero__title, .sv-hero__text { margin-left: auto; margin-right: auto; }
  .sv-hero__text { max-width: 90%; }
  .sv-hero__actions { grid-auto-flow: row; width: 100%; max-width: 340px; margin: 0 auto; }
  /* Media flows under the text; position:relative anchors the badge to the
     image (top-right of the photo) instead of floating over the heading. */
  .sv-hero__media {
    position: relative;
    margin-top: 22px;
  }
  .sv-hero__media img {
    position: static; width: 100%; height: auto; margin: 0 auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
/* The old ::before top-fade band ended at 30% height and its edge rendered as
   a faint line straight across the hero (visibly cutting the «Популярні бренди»
   button in half). The photo's own right-edge mask does all the blending we
   need, so the band is gone. */
.sv-hero__media-fallback {
  width: 100%; height: 100%; min-height: 360px;
  background: linear-gradient(135deg, var(--sv-navy), #1b2c45);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-weight: 700; text-align: center;
}

/* ===================================================== HERO TRUST STRIP ==== */
/* Own section right under the hero, light background (not inside the hero's
   dark photo — this text is dark, meant for a light bg). */
.sv-hero__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sv-trust-item { display: flex; align-items: center; gap: 12px; }
.sv-trust-item .ic {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sv-green-soft);
  color: var(--sv-green-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.sv-trust-item .ic svg { width: 20px; height: 20px; }
.sv-trust-item b { display: block; color: var(--sv-heading); font-size: 14px; }
.sv-trust-item span { font-size: 12.5px; color: var(--sv-muted); }

/* ========================================================== CATEGORIES ===== */
/* Horizontal card: image left, name + arrow on the right — per reference. */
.sv-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sv-cat {
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  transition: all .2s ease;
}
.sv-cat:hover { box-shadow: var(--sv-shadow-hover); transform: translateY(-3px); }
.sv-cat__img {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sv-cat__img img { width: 72px; height: 72px; object-fit: contain; }
.sv-cat__img svg { width: 34px; height: 34px; color: var(--sv-green-dark); }
.sv-cat__img svg.sv-icon--big { width: 56px; height: 56px; color: var(--sv-navy); }
.sv-cat__body { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex: 1; min-width: 0; }
.sv-cat__name { color: var(--sv-heading); font-weight: 700; font-size: 16px; line-height: 1.3; }
.sv-cat__go {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sv-green);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center;
}
.sv-cat:hover .sv-cat__go { background: var(--sv-green-dark); }

/* ============================================================== BRANDS ===== */
.sv-brands { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 8px 28px; position: relative; }
.sv-brands .swiper-slide { display: flex; align-items: center; justify-content: center; height: 96px; }
.sv-brand {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 60px;
  filter: grayscale(1); opacity: .65;
  transition: all .25s ease;
  font-weight: 800; color: var(--sv-heading); font-size: 17px; text-align: center;
}
.sv-brand:hover { filter: none; opacity: 1; }
.sv-brand img { max-height: 50px; width: auto; object-fit: contain; }
.sv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--sv-border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--sv-heading); z-index: 4;
}
.sv-arrow:hover { background: var(--sv-green); color: #fff; border-color: var(--sv-green); }
.sv-arrow--prev { left: -18px; }
.sv-arrow--next { right: -18px; }

/* ============================================================ PRODUCTS ===== */
.sv-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.sv-product {
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .2s ease;
  min-width: 0;
}
.sv-product:hover { box-shadow: var(--sv-shadow-hover); transform: translateY(-3px); }
.sv-product__thumb {
  position: relative;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fafbfc;
}
.sv-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.sv-product__discount {
  position: absolute; top: 8px; right: 8px;
  background: var(--sv-badge-bg);
  color: var(--sv-badge-text);
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--sv-radius-sm);
}
/* TI Wishlist button — floating heart, top-left of the thumbnail */
.sv-product__wishlist { position: absolute; top: 8px; left: 8px; z-index: 2; }
.sv-product__wishlist .tinvwl_add_to_wishlist_button {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--sv-shadow);
  display: flex; align-items: center; justify-content: center;
}
.sv-product__wishlist .tinvwl_add_to_wishlist-text { display: none; }
.sv-product__wishlist svg, .sv-product__wishlist img { width: 16px; height: 16px; }
.sv-product__brand { font-size: 12px; color: var(--sv-muted); margin-bottom: 4px; }
.sv-product__title {
  font-size: 14px; font-weight: 700; color: var(--sv-heading);
  line-height: 1.3; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  /* Exactly two lines, whatever the browser does with line-clamp: without a
     hard cap a third line peeked out half-cut under the ellipsis («грязь и
     чёрные линии» in the cards). */
  min-height: 2.6em; max-height: 2.6em;
}
/* WooCommerce gives every h3 in ul.products `padding:.5em 0` (+ margin:0). With
   border-box that padding ate the 2nd line on category pages and, before the
   max-height, showed a sliver of the 3rd. */
.woocommerce ul.products li.product h3.sv-product__title { padding: 0; margin: 0 0 8px; }
.sv-product__title a { color: inherit; }
.sv-product__title a:hover { color: var(--sv-green); }
.sv-rating { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.sv-rating .stars { color: var(--sv-star); font-size: 13px; letter-spacing: 1px; }
.sv-rating .count { color: var(--sv-muted); font-size: 12px; }
.sv-product__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sv-product__price .now { font-size: 18px; font-weight: 800; color: var(--sv-price); }
.sv-product__price .old { font-size: 13px; color: var(--sv-old-price); text-decoration: line-through; }
/* Add-to-cart hidden until hover (clean cards like the reference). */
.sv-product__cart {
  width: 100%;
  justify-content: center;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease, padding .25s ease;
}
.sv-product:hover .sv-product__cart {
  max-height: 60px;
  margin-top: 12px;
  padding-top: 11px;
  padding-bottom: 11px;
  opacity: 1;
}

/* WooCommerce block-based upsell/cross-sell "Add to cart" buttons (e.g. the
   empty-cart "Новинка в магазині" block) ship WordPress's default black
   pill style — match the rest of the site's blue buttons instead. */
.wp-block-button__link.add_to_cart_button {
  background: var(--sv-green) !important;
  border-radius: var(--sv-radius-sm) !important;
  color: #fff !important;
}
.wp-block-button__link.add_to_cart_button:hover {
  background: var(--sv-green-dark) !important;
}

/* Out-of-stock cards: dim + badge (sorted to the end via functions.php query). */
.outofstock .sv-product { opacity: .55; filter: grayscale(.5); }
.outofstock .sv-product__thumb::after {
  content: "Немає в наявності";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.6);
  color: var(--sv-heading); font-weight: 700; font-size: 13px; text-align: center;
  padding: 0 10px;
}

/* ========================================================== ADVANTAGES ===== */
.sv-advstrip {
  background: var(--sv-navy);
  border-radius: var(--sv-radius-lg);
  color: #fff;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sv-adv { display: flex; align-items: center; gap: 16px; }
.sv-adv .ic { color: var(--sv-green); flex: 0 0 auto; }
.sv-adv .ic svg { width: 34px; height: 34px; }
.sv-adv b { display: block; color: #fff; font-size: 16px; }
.sv-adv span { color: rgba(255,255,255,.65); font-size: 13px; }

/* ============================================================== PROMO ====== */
.sv-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sv-promo {
  border-radius: var(--sv-radius-lg);
  padding: 30px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sv-promo--dark  { background: linear-gradient(120deg, #0f1b2d, #1e3a63); }
.sv-promo--green { background: linear-gradient(120deg, #1d4ed8, #3b82f6); }
.sv-promo--orange{ background: linear-gradient(120deg, #0284c7, #38bdf8); }
.sv-promo--has-image { background-size: cover; background-position: center; }
.sv-promo--has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,27,45,.75), rgba(15,27,45,.25));
}
.sv-promo--has-image .kicker, .sv-promo--has-image .big, .sv-promo--has-image h3, .sv-promo--has-image a.link {
  position: relative; z-index: 1;
}
.sv-promo .kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-bottom: 6px; }
.sv-promo .big { font-size: 34px; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.sv-promo h3 { color: #fff; font-size: 21px; margin: 0 0 16px; max-width: 80%; }
.sv-promo a.link { color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sv-promo a.link:hover { gap: 10px; }

/* ===================================================== BLOG + REVIEWS ====== */
/* Two-column band: blog (left, 3 cards) + reviews (right) — per reference. */
.sv-bottom { display: grid; grid-template-columns: 2.6fr 1fr; gap: 30px; align-items: start; }
.sv-bottom .sv-section-head { margin-bottom: 18px; min-height: 34px; }
.sv-bottom .sv-section-head h2 { font-size: 20px; }
.sv-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sv-post {
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
}
.sv-post:hover { box-shadow: var(--sv-shadow-hover); transform: translateY(-2px); }
.sv-post__thumb { display: block; }
.sv-post__thumb img,
.sv-post__thumb .ph { width: 100%; height: 150px; object-fit: cover; background: var(--sv-green-soft); display: block; }
.sv-post__body { padding: 16px; }
.sv-post__body h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.3; }
.sv-post__body h3 a { color: var(--sv-heading); }
.sv-post__body h3 a:hover { color: var(--sv-green); }
.sv-post__body p { font-size: 12.5px; color: var(--sv-text); margin: 0 0 12px; }
.sv-post__more { color: var(--sv-green-dark); font-weight: 700; font-size: 12.5px; }

.sv-reviews-head h2 { font-size: 22px; }
.sv-reviews-head p { font-size: 13px; margin: 6px 0 0; }
.sv-review {
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 24px;
  box-shadow: var(--sv-shadow);
  margin-top: 0;
}
.sv-review .stars { color: var(--sv-star); font-size: 16px; letter-spacing: 2px; }
.sv-review .score { color: var(--sv-muted); font-size: 13px; margin-left: 8px; }
.sv-review p { font-size: 14px; color: var(--sv-heading); margin: 12px 0 16px; }
.sv-review .author { display: flex; align-items: center; gap: 12px; }
.sv-review .author .ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--sv-green-soft); }
.sv-review .author b { color: var(--sv-heading); }

/* ============================================================= FOOTER ====== */
.sv-footer { background: var(--sv-footer-bg); color: var(--sv-footer-text); margin-top: 50px; border-top: 1px solid var(--sv-border); }
.sv-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding: 50px 0 36px; }
.sv-footer h4 { color: var(--sv-heading); font-size: 16px; margin: 0 0 18px; }
.sv-footer ul { list-style: none; margin: 0; padding: 0; }
.sv-footer ul li { margin-bottom: 10px; }
.sv-footer a { color: var(--sv-footer-text); font-size: 14px; }
.sv-footer a:hover { color: var(--sv-accent); }
.sv-footer__about p { font-size: 14px; line-height: 1.7; }
.sv-footer__logo { display: inline-block; margin-bottom: 14px; }
.sv-footer__logo img { max-height: 48px; width: auto; display: block; }
.sv-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.sv-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sv-bg);
  border: 1px solid var(--sv-border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--sv-heading);
}
.sv-footer__social a:hover { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.sv-newsletter form { display: flex; background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); overflow: hidden; margin-top: 4px; }
.sv-newsletter input { flex: 1; border: 0; background: transparent; color: var(--sv-heading); padding: 0 16px; min-height: 46px; outline: none; }
.sv-newsletter input::placeholder { color: var(--sv-muted); }
.sv-newsletter button { border: 0; background: var(--sv-accent); color: #fff; padding: 0 18px; font-weight: 700; cursor: pointer; }
.sv-newsletter button:hover { background: var(--sv-accent-dark); }
.sv-footer__bottom { border-top: 1px solid var(--sv-border); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; gap: 16px; flex-wrap: wrap; }
.sv-footer__legal { display: flex; gap: 18px; }
.sv-footer__legal a { color: inherit; }
.sv-footer__legal a:hover { color: var(--sv-accent); }

/* ============================================== WooCommerce loop overrides == */
.woocommerce ul.products,
.woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce .sv-page-products { padding: 40px 0; }
.woocommerce-store-notice, p.demo_store { background: var(--sv-navy); }

/* generic page content */
.sv-page { padding: 40px 0 20px; }
.sv-page__title { font-size: 30px; margin-bottom: 20px; }
.sv-entry p { margin: 0 0 1em; }
/* Breathing room ABOVE every heading in article/page bodies. WYSIWYG content
   was cramping headings against the previous paragraph — the global heading
   reset gives them no top margin, so restore it here for readable spacing. */
.sv-entry h2, .sv-entry h3, .sv-entry h4, .sv-entry h5 {
  margin: 1.7em 0 .55em;
  line-height: 1.3;
}
.sv-entry h2 { font-size: 25px; }
.sv-entry h3 { font-size: 20px; }
.sv-entry h4 { font-size: 17px; }
.sv-entry > *:first-child { margin-top: 0; }
.sv-entry ul, .sv-entry ol { margin: 0 0 1.1em; padding-left: 22px; }
.sv-entry li { margin-bottom: 7px; line-height: 1.6; }
.sv-entry img { max-width: 100%; height: auto; border-radius: var(--sv-radius); }
/* Gutenberg "wide"/"full width" image alignment — breaks the image out of the
   normal article column so it can span the whole site width. */
.sv-entry .alignwide { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.sv-entry .alignfull {
  width: 100vw; max-width: 100vw;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  border-radius: 0;
}
.sv-entry .alignfull img { width: 100%; border-radius: 0; }
.sv-breadcrumb { font-size: 13px; color: var(--sv-muted); padding: 16px 0; }
.sv-breadcrumb a { color: var(--sv-text); }

/* ========================================================== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .sv-cats     { grid-template-columns: repeat(3, 1fr); }
  .sv-products { grid-template-columns: repeat(3, 1fr); }
  .sv-hero__trust { grid-template-columns: repeat(2, 1fr); }
  .sv-bottom   { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .sv-header__phone, .sv-iconlink .txt { display: none; }
}
@media (max-width: 920px) {
  .sv-hero__title { font-size: 42px; }
  .sv-advstrip { grid-template-columns: repeat(2, 1fr); }
  .sv-promos   { grid-template-columns: 1fr; }
  .sv-posts    { grid-template-columns: repeat(2, 1fr); }
  .sv-footer__top { grid-template-columns: 1fr 1fr; }
  .sv-topbar__menu { display: none; }
  /* Product search stays available on phones — it moves to its own full-width
     row under the logo instead of being hidden. */
  .sv-search { display: block; order: 10; flex: 1 1 100%; max-width: none; }
}
@media (max-width: 720px) {
  .sv-cats     { grid-template-columns: repeat(2, 1fr); }
  .sv-products { grid-template-columns: repeat(2, 1fr); }
  .sv-posts    { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .sv-menu { display: none; }
  /* No lone burger bar: the "Каталог товарів" button opens the full mobile menu
     (categories + sub-categories), so the empty nav row is hidden. */
  .sv-nav__inner { display: none; }
  .sv-hero__title { font-size: 34px; }
  .sv-footer__top { grid-template-columns: 1fr; }
  .sv-advstrip { grid-template-columns: 1fr; }

  /* Header, phones: logo + icons (row 1), search (row 2), catalog button LAST
     (row 3) so the mobile menu opens directly under it. */
  /* Keep the 20px side padding (padding:12px 0 previously zeroed it, so the
     logo/icons/catalog/search ran to the very edge of the screen). */
  .sv-header__inner { flex-wrap: wrap; min-height: auto; padding: 12px 20px; gap: 12px; }
  .sv-logo { flex: 1 1 auto; min-width: 0; }
  .sv-logo img { max-height: 34px; width: auto; }
  .sv-header__right { order: 1; margin-left: auto; display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
  .sv-header__right .sv-iconlink { padding: 0; }
  .sv-header__right .sv-iconlink svg { width: 23px; height: 23px; }
  /* Drop the phone icon on phones — saves room so the cart is never cut off. */
  .sv-header__right .sv-header__phone-link { display: none; }
  .sv-search { order: 2; flex: 1 1 100%; max-width: none; }
  .sv-catalog-btn { order: 3; flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .sv-cats { grid-template-columns: 1fr; }
  .sv-products { grid-template-columns: repeat(2, 1fr); }
  .sv-hero__trust { grid-template-columns: 1fr; }
  .sv-section-head h2 { font-size: 21px; }
}

/* mobile menu (toggled) */
.sv-mobile-menu { display: none; }
.sv-mobile-menu.is-open { display: block; background: var(--sv-nav-bg); border-top: 1px solid var(--sv-chrome-border); }
.sv-mobile-menu ul { list-style: none; margin: 0; padding: 8px 0; }
.sv-mobile-menu a { display: block; color: var(--sv-nav-text); padding: 12px 20px; border-bottom: 1px solid var(--sv-line); }
/* The mobile menu reuses sportvit_fallback_menu()'s ".sv-menu" markup, which is
   display:none at ≤720px — that collapsed the whole mobile menu to 0px. Force it
   back to a plain vertical list here, and hide the desktop mega-dropdowns that
   would otherwise render as absolutely-positioned overlays inside it. */
.sv-mobile-menu .sv-menu { display: block; overflow: visible; }
.sv-mobile-menu .sv-menu > li { display: block; flex: none; }
.sv-mobile-menu .sv-menu > li > a { padding: 12px 20px; font-size: 15px; }
.sv-mobile-menu .sub-menu { display: none !important; }
/* Accordion sub-categories: collapsed by default, shown when the row is open. */
.sv-mobile-menu .sv-mega {
  display: none !important;
  position: static; opacity: 1; visibility: visible; transform: none;
  box-shadow: none; border: 0; min-height: 0; max-height: none; background: #f6f8fb;
}
.sv-mobile-menu .sv-menu > li.is-open > .sv-mega { display: block !important; }
.sv-mobile-menu .sv-mega .sv-container { padding: 0; width: auto; max-width: none; }
.sv-mobile-menu .sv-mega__cols,
.sv-mobile-menu .sv-mega__cols--tree,
.sv-mobile-menu .sv-mega__cols--brands { column-count: 1 !important; columns: auto !important; display: block; padding: 6px 20px 14px; }
.sv-mobile-menu .sv-mm-group { margin: 0 0 10px; break-inside: auto; }
.sv-mobile-menu .sv-mm-group__head { font-size: 14px; font-weight: 800; padding: 8px 0 4px; }
.sv-mobile-menu .sv-mm-group__list a,
.sv-mobile-menu .sv-mm-group__sub a,
.sv-mobile-menu .sv-mega__link { display: block; padding: 6px 0 6px 12px; border: 0; font-size: 13.5px; }
/* Expand caret on categories that have sub-categories. */
.sv-mobile-menu .sv-menu > li > a::after { display: none; }
.sv-mobile-menu .sv-menu > li.sv-has-mega > a { position: relative; }
.sv-mobile-menu .sv-menu > li.sv-has-mega > a::after {
  content: ""; display: block !important; position: absolute; right: 22px; top: 45%;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg); transition: transform .2s ease;
}
.sv-mobile-menu .sv-menu > li.sv-has-mega.is-open > a::after { transform: translateY(-30%) rotate(225deg); }

/* ============================================================ MEGA MENU ==== */
/* Full-width catalog mega-menu (DIGITA-style), opens under the nav bar. */
.sv-nav { position: relative; }
.sv-catalog-btn { cursor: pointer; }
/* The trigger button (.sv-catalog-btn) lives in .sv-header, one row ABOVE
   .sv-nav (this panel's own positioning context) — top:100% would anchor
   the dropdown to the bottom of the nav-tabs bar, leaving a visible gap
   under the button. top:0 anchors it to .sv-nav's own top edge instead,
   i.e. flush against the bottom of the header, right under the button. */
.sv-megamenu {
  position: absolute;
  top: 0; left: 0; right: 0;
  min-height: var(--sv-megamenu-minh, auto);
  background: #fff;
  border-top: 1px solid var(--sv-border);
  box-shadow: var(--sv-shadow-hover);
  z-index: 70;
  opacity: 0; visibility: hidden;
  transition: visibility .15s;
}
/* transform must be NONE when open (not translateY(0)): any transform makes the
   panel the containing block for its position:fixed ::before dim-overlay. */
.sv-megamenu.is-open { opacity: 1; visibility: visible; transform: none; }
.sv-megamenu__inner {
  /* Fill the panel down to the hero's bottom edge (no empty white field):
     the grid row stretches, columns are flex, «Усі товари» sinks to the bottom
     and the promo card grows to the full height. */
  min-height: calc(var(--sv-megamenu-minh, 0px) - 1px);
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1.5fr 1.25fr;
  gap: 34px;
  padding: 28px 0 32px;
}
.sv-mm-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--sv-heading);
  margin: 0 0 14px;
}
.sv-mm-col h4.mt { margin-top: 24px; }
.sv-mm-list { list-style: none; margin: 0; padding: 0; }
.sv-mm-list li { margin-bottom: 9px; }
.sv-mm-list a { color: var(--sv-text); font-size: 14px; }
.sv-mm-list a:hover { color: var(--sv-green); }

/* feature-by-category circles */
.sv-mm-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
.sv-mm-cat { text-align: center; display: block; }
.sv-mm-cat .circ {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--sv-bg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  color: var(--sv-green-dark);
  transition: background .2s ease;
}
.sv-mm-cat .circ svg { width: 26px; height: 26px; }
.sv-mm-cat .circ img { width: 62px; height: 62px; object-fit: contain; border-radius: 50%; }
.sv-mm-cat span { display: block; font-size: 12.5px; color: var(--sv-heading); font-weight: 600; line-height: 1.25; }
.sv-mm-cat:hover .circ { background: var(--sv-green-soft); }
.sv-mm-cat:hover span { color: var(--sv-green-dark); }

/* promo card */
.sv-mm-promo {
  border-radius: var(--sv-radius);
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(135deg, #0f1b2d, #1e3a63);
  color: #fff;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: center;
}
.sv-mm-promo p { margin: 6px 0 14px; font-size: 14px; opacity: .9; }
.sv-mm-promo .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; margin-bottom: 6px; }
.sv-mm-promo h3 { color: #fff; font-size: 21px; margin: 0 0 8px; line-height: 1.2; }
.sv-mm-promo .price { font-size: 15px; margin-bottom: 16px; }
.sv-mm-promo .price b { color: #fff; }
.sv-mm-promo .price del { opacity: .6; margin-left: 6px; }
.sv-mm-promo .sv-btn { align-self: flex-start; }
/* Promo with a picture: the photo sits whole on top (no text over the
   products), its bottom fades into a navy that matches the photo's backdrop,
   and the text block sits underneath. */
.sv-mm-promo--pic {
  padding: 0; justify-content: flex-start;
  background: radial-gradient(120% 70% at 50% 0%, #0b2550 0%, #061834 55%, #030d1f 100%);
  box-shadow: 0 10px 30px rgba(6, 24, 52, .18);
}
.sv-mm-promo__pic {
  display: block; width: 100%; height: auto;
  /* Bottom-aligned so the jars are whole and crisp; only the thin navy strip
     under them fades into the card (client: «банки як у тумані»). */
  aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 8px), transparent);
}
.sv-mm-promo__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 4px 22px 22px; }
.sv-mm-promo--pic .k {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  font-size: 11px; letter-spacing: .8px; opacity: 1; margin-bottom: 10px;
}
.sv-mm-promo--pic h3 { font-size: 19px; margin: 0 0 6px; }
.sv-mm-promo--pic p { margin: 0 0 14px; font-size: 13.5px; opacity: .8; }
.sv-mm-promo--pic .sv-mm-promo__brands { margin-top: 12px; }
.sv-megamenu .sv-mm-col { display: flex; flex-direction: column; }
/* Rows a touch airier so the 11-item columns end level with the hero's bottom
   edge; «Усі товари» sits 12px under the longest list and on one line across
   the columns (the stacked Косметика + Аксесуари column is a little shorter). */
.sv-megamenu .sv-mm-list li { margin-bottom: 11.5px; }
.sv-megamenu .sv-mm-all { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.sv-megamenu .sv-mm-col h4.mt { margin-top: 22px; }
.sv-megamenu .sv-mm-promo { flex: 1; }

/* hide mega on tablet/mobile — burger menu is used instead */
@media (max-width: 1100px) {
  .sv-megamenu { display: none !important; }
}

/* ===================================================== SINGLE PRODUCT ====== */
.sv-single { padding: 24px 0 10px; }
.sv-single__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 18px;
}
/* gallery */
.sv-gallery { display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: start; }
.sv-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.sv-gallery__thumb {
  width: 86px; height: 86px;
  border: 1px solid var(--sv-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  padding: 4px;
  transition: border-color .2s ease;
}
.sv-gallery__thumb.is-active { border-color: var(--sv-green); }
.sv-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Video thumbnail: a play badge over the (optional) poster image. */
.sv-gallery__thumb--video { position: relative; }
.sv-gallery__thumb--video img { object-fit: cover; }
.sv-gallery__vph { display: block; width: 100%; height: 100%; background: #111; border-radius: 6px; }
.sv-gallery__play {
  position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.sv-gallery__play .sv-icon { width: 16px; height: 16px; fill: #fff; stroke: #fff; margin-left: 1px; }

.sv-gallery__main {
  position: relative;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.sv-gallery__main img { width: 100%; height: 100%; object-fit: contain; }

/* Video playing inside the main gallery frame. */
.sv-gallery__video { display: none; position: absolute; inset: 0; background: #000; }
.sv-gallery__video.is-active { display: block; }
.sv-gallery__video iframe,
.sv-gallery__video video { width: 100%; height: 100%; border: 0; display: block; }
/* "Enlarge" button over the inline video → opens the big lightbox viewer. */
.sv-gallery__expand {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 8px; border: 0;
  background: rgba(0,0,0,.55); color: #fff; font-size: 17px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sv-gallery__expand:hover { background: rgba(0,0,0,.8); }
.sv-gallery__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--sv-green); color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 4px 10px; border-radius: var(--sv-radius-sm);
}
/* summary */
.sv-summary__brand { color: var(--sv-muted); font-size: 13px; margin-bottom: 6px; }
.sv-summary__title { font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.sv-summary__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.sv-summary__rating .stars { color: var(--sv-star); font-size: 16px; letter-spacing: 2px; }
.sv-summary__rating .count { color: var(--sv-muted); font-size: 13px; }
.sv-summary__rating .count:hover { color: var(--sv-green); }
.sv-summary__price { font-size: 30px; font-weight: 800; color: var(--sv-heading); margin-bottom: 12px; }
.sv-summary__price del { color: var(--sv-old-price); font-size: 18px; font-weight: 600; margin-right: 10px; }
.sv-summary__price ins { text-decoration: none; color: var(--sv-heading); }
.sv-summary__stock { display: inline-block; font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.sv-summary__stock.in { color: var(--sv-stock); }
.sv-summary__stock.out { color: #c0392b; }

/* "Повідомити, коли з'явиться" — out-of-stock notify request */
.sv-restock { margin: 4px 0 20px; max-width: 420px; }
.sv-restock__toggle svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }
.sv-restock__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sv-restock__email {
  flex: 1 1 200px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm);
  font-family: inherit; font-size: 15px;
}
.sv-restock__email:focus { outline: 2px solid var(--sv-accent); outline-offset: 1px; }
.sv-restock__msg { flex: 1 1 100%; margin: 4px 0 0; font-size: 13.5px; }
.sv-restock__msg.is-ok { color: var(--sv-stock); }
.sv-restock__msg.is-err { color: #c0392b; }
/* native Woo stock text (qty in stock) → green too */
.sv-single .stock.in-stock,
.sv-single p.stock,
.sv-summary .stock { color: var(--sv-stock) !important; font-weight: 700; }
.sv-summary__excerpt { color: var(--sv-text); margin-bottom: 18px; }
.sv-summary__excerpt p { margin: 0 0 .6em; }

/* add to cart form */
.sv-summary form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.sv-summary .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm);
  overflow: hidden; height: 50px;
}
.sv-summary .quantity input.qty {
  border: 0; height: 48px; width: 56px; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--sv-heading);
  -moz-appearance: textfield; outline: none;
}
.sv-summary .quantity input.qty::-webkit-outer-spin-button,
.sv-summary .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sv-qty-btn { width: 42px; height: 50px; border: 0; background: #fff; color: var(--sv-heading); font-size: 20px; cursor: pointer; }
.sv-qty-btn:hover { background: var(--sv-bg); color: var(--sv-green-dark); }
.sv-summary .single_add_to_cart_button {
  background: var(--sv-green); color: #fff; border: 2px solid var(--sv-green);
  border-radius: var(--sv-radius-sm); height: 50px; padding: 0 30px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s ease;
}
.sv-summary .single_add_to_cart_button:hover { background: var(--sv-green-dark); border-color: var(--sv-green-dark); }
.sv-buy-now {
  background: transparent; color: var(--sv-navy);
  border: 2px solid var(--sv-navy); border-radius: var(--sv-radius-sm);
  height: 50px; padding: 0 26px; font-weight: 700; font-size: 15px; cursor: pointer; transition: all .2s ease;
}
.sv-buy-now:hover { background: var(--sv-navy); color: #fff; }
/* variations table from WC */
.sv-summary .variations { width: 100%; margin: 0 0 12px; }
.sv-summary .variations td { padding: 4px 0; }
.sv-summary .reset_variations { font-size: 13px; }

.sv-summary__meta { border-top: 1px solid var(--sv-line); padding-top: 14px; font-size: 14px; color: var(--sv-text); }
.sv-summary__meta div { margin-bottom: 6px; }
.sv-summary__meta span { color: var(--sv-muted); }
.sv-summary__meta a { color: var(--sv-text); }
.sv-summary__meta a:hover { color: var(--sv-green); }

.sv-summary__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sv-summary__benefits .ben { display: flex; gap: 12px; align-items: center; background: var(--sv-bg); border-radius: var(--sv-radius); padding: 12px 14px; }
.sv-summary__benefits .ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--sv-green-soft); color: var(--sv-green-dark); display: inline-flex; align-items: center; justify-content: center; }
.sv-summary__benefits .ic svg { width: 20px; height: 20px; }
.sv-summary__benefits b { display: block; color: var(--sv-heading); font-size: 13px; }
.sv-summary__benefits span span,
.sv-summary__benefits .ben > span { font-size: 12.5px; color: var(--sv-muted); }
.sv-summary__benefits .ben > span b { color: var(--sv-heading); }

/* tabs */
.sv-single__tabs { margin-top: 40px; }
.sv-tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--sv-border); margin-bottom: 22px; flex-wrap: wrap; }
.sv-tabs__btn {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 10px; font-family: var(--sv-font); font-weight: 700; font-size: 16px;
  color: var(--sv-text); cursor: pointer; margin-bottom: -1px;
}
.sv-tabs__btn:hover { color: var(--sv-heading); }
.sv-tabs__btn.is-active { color: var(--sv-heading); border-color: var(--sv-green); }
.sv-tabs__panel { display: none; }
.sv-tabs__panel.is-active { display: block; }
.sv-tabs__panel p { margin: 0 0 1em; }
/* Video embedded in the product description (YouTube/Vimeo iframe from the feed)
   — make it responsive instead of a fixed 560×315 that overflows on mobile. */
.sv-tabs__panel iframe {
  display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto;
  border: 0; border-radius: 10px; margin: 16px 0;
}
/* Images embedded in the description (downloaded from the feed) — never overflow. */
.sv-tabs__panel img { max-width: 100%; height: auto; }
.sv-tabs__panel .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.sv-tabs__panel .woocommerce-product-attributes th,
.sv-tabs__panel .woocommerce-product-attributes td { border: 1px solid var(--sv-border); padding: 11px 14px; text-align: left; font-size: 14px; }
.sv-tabs__panel .woocommerce-product-attributes th { background: var(--sv-bg); width: 32%; color: var(--sv-heading); font-weight: 700; }

/* related */
.sv-single .related.products,
.sv-single .upsells.products { margin-top: 44px; }
.sv-single .related.products > h2,
.sv-single .upsells.products > h2 { font-size: 24px; margin: 0 0 20px; }

@media (max-width: 920px) {
  .sv-single__top { grid-template-columns: 1fr; gap: 24px; }
  .sv-gallery { grid-template-columns: 1fr; }
  .sv-gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .sv-gallery__thumb { width: 70px; height: 70px; flex: 0 0 auto; }
  .sv-gallery__main { order: 1; }
  .sv-summary__title { font-size: 23px; }
}
@media (max-width: 480px) {
  .sv-summary__benefits { grid-template-columns: 1fr; }
  .sv-summary form.cart .single_add_to_cart_button,
  .sv-summary form.cart .sv-buy-now { flex: 1 1 100%; }
}

/* ====================================== Shop / category archive ============ */
.sv-shop__titlebar { background: #fff; border-bottom: 1px solid var(--sv-border); padding: 8px 0 24px; }
.sv-shop__titlebar .sv-breadcrumb { padding: 14px 0 4px; }
.sv-shop__title { font-size: 30px; margin: 6px 0 0; line-height: 1.15; }
.sv-shop__desc { margin-top: 10px; color: var(--sv-text); max-width: 760px; font-size: 15px; }

.sv-shop__layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 30px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 54px;
}

/* ---- Filter sidebar ---- */
.sv-shop__sidebar { display: flex; flex-direction: column; }
.sv-fwidget { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 16px 18px; margin-bottom: 16px; }
.sv-fwidget--head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.sv-fwidget__h { font-size: 17px; margin: 0; }
.sv-fwidget__reset { font-size: 13px; font-weight: 600; color: var(--sv-green-dark); }
.sv-fwidget__reset:hover { text-decoration: underline; }
.sv-fwidget__title { font-size: 15px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--sv-line); }

.sv-fcats, .sv-fchecks, .sv-fswatches, .sv-fcats__sub { list-style: none; margin: 0; padding: 0; }
.sv-fcats > li > a,
.sv-fcats__sub > li > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; color: var(--sv-heading); font-size: 14px; font-weight: 500; }
.sv-fcats a:hover .nm,
.sv-fcats li.is-current > a .nm { color: var(--sv-green-dark); }
.sv-fcats li.is-current > a .nm { font-weight: 700; }
.sv-fcats .cnt { color: var(--sv-muted); font-size: 12px; font-weight: 600; }
.sv-fcats__sub { margin: 2px 0 4px 4px; border-left: 1px solid var(--sv-line); padding-left: 12px; }
.sv-fcats__sub > li > a { padding: 5px 0; font-weight: 400; }

.sv-fchecks li a { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--sv-heading); }
.sv-fcheck .box { width: 18px; height: 18px; border: 1.5px solid #cdd5de; border-radius: 5px; flex: none; position: relative; transition: .15s; }
.sv-fcheck:hover .box { border-color: var(--sv-green); }
.sv-fcheck.is-active .box { background: var(--sv-green); border-color: var(--sv-green); }
.sv-fcheck.is-active .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sv-fcheck .lbl { flex: 1; }
.sv-fcheck.is-active .lbl { font-weight: 600; }
.sv-fcheck .cnt { color: var(--sv-muted); font-size: 12px; font-weight: 600; }

.sv-fswatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-fswatch span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--sv-border); }
.sv-fswatch.is-active { outline: 2px solid var(--sv-green); outline-offset: 2px; border-radius: 50%; }

.sv-fprice__row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sv-fprice__row .sep { color: var(--sv-muted); }
.sv-fprice input { width: 100%; border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); padding: 9px 10px; font-family: inherit; font-size: 14px; color: var(--sv-heading); }
.sv-fprice input:focus { outline: none; border-color: var(--sv-green); }
.sv-fprice button { width: 100%; }

/* ---- Main column ---- */
.sv-shop__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 12px 16px; margin-bottom: 18px; }
.sv-shop__toolbar .woocommerce-result-count { margin: 0; color: var(--sv-text); font-size: 14px; }
.sv-shop__toolbar .woocommerce-ordering { margin: 0; }
.sv-shop__toolbar select.orderby { border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); padding: 9px 14px; font-family: inherit; font-size: 14px; color: var(--sv-heading); background: #fff; cursor: pointer; }
.sv-shop__toolbar select.orderby:focus { outline: none; border-color: var(--sv-green); }

.sv-shop__main ul.products { grid-template-columns: repeat(3, 1fr); }

.sv-shop__empty { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 48px 30px; text-align: center; }
.sv-shop__empty p { margin: 0 0 18px; color: var(--sv-text); }

/* ================================ Pagination (shop + blog), modernised ====
   NOTE: WooCommerce core ships `.woocommerce nav.woocommerce-pagination ul`
   rules that are MORE specific than a plain `.sv-shop__main …` selector, so
   they win on display/border/background and the page numbers render as one
   cramped segmented strip. We match that specificity (nav.woocommerce-…) and
   guard the collision-prone properties with !important. */
.woocommerce nav.woocommerce-pagination,
.sv-shop__main .woocommerce-pagination { margin-top: 34px; text-align: center; }

/* Selectors intentionally include the `.page-numbers` class on both the <ul>
   and the inner <a>/<span> — that's the exact specificity WooCommerce/plugins
   use, so this matches-and-wins (verified live). */
nav.woocommerce-pagination ul.page-numbers,
.sv-pagination .nav-links {
  display: inline-flex !important; flex-wrap: wrap; gap: 10px !important;
  list-style: none; margin: 0 !important; padding: 0 !important;
  justify-content: center; align-items: center;
  border: 0 !important;
}
nav.woocommerce-pagination ul.page-numbers li,
.sv-pagination .nav-links li {
  margin: 0 !important; border: 0 !important; overflow: visible !important;
  display: inline-flex !important;
}
nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
nav.woocommerce-pagination ul.page-numbers li span.page-numbers,
.sv-pagination .page-numbers {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 44px !important; width: auto !important; height: 44px !important;
  padding: 0 15px !important; margin: 0 !important; line-height: 1;
  border: 1px solid var(--sv-border) !important; border-radius: 999px !important;
  background: #fff !important; color: var(--sv-heading) !important;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: all .18s ease;
}
nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.sv-pagination a.page-numbers:hover {
  border-color: var(--sv-accent) !important; color: var(--sv-accent) !important;
  box-shadow: var(--sv-shadow); transform: translateY(-1px);
}
nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current,
nav.woocommerce-pagination ul.page-numbers li a.page-numbers.current,
.sv-pagination .page-numbers.current {
  background: var(--sv-accent) !important; border-color: var(--sv-accent) !important;
  color: #fff !important; box-shadow: 0 6px 16px rgba(37,99,235,.28);
}
nav.woocommerce-pagination ul.page-numbers li .page-numbers.dots,
.sv-pagination .page-numbers.dots {
  border: 0 !important; background: none !important; box-shadow: none; color: var(--sv-muted) !important;
}
.sv-pagination { margin-top: 40px; text-align: center; }
.sv-pagination .page-numbers.prev,
.sv-pagination .page-numbers.next { padding: 0 18px !important; font-weight: 600; }

/* ---- Mobile filter toggle ---- */
.sv-shop__filter-toggle { display: none; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); padding: 11px 18px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--sv-heading); cursor: pointer; }
.sv-shop__filter-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .sv-shop__main ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .sv-shop__layout { grid-template-columns: 1fr; }
  .sv-shop__filter-toggle { display: inline-flex; margin-bottom: 16px; }
  .sv-shop__sidebar { display: none; order: 2; margin-top: 16px; }
  .sv-shop__sidebar.is-open { display: flex; }
  .sv-shop__main ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .sv-shop__main ul.products { grid-template-columns: repeat(2, 1fr); }
  .sv-shop__toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sv-shop__toolbar .woocommerce-ordering select.orderby { width: 100%; }
  .sv-shop__title { font-size: 25px; }
}
@media (max-width: 420px) {
  .sv-shop__main ul.products { grid-template-columns: 1fr; }
}

/* ====================================== Brands index (A–Z) ================= */
.sv-brandspage { padding-top: 26px; padding-bottom: 54px; }
.sv-brands-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; }
.sv-brands-az a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 9px; border: 1px solid var(--sv-border); border-radius: var(--sv-radius-sm); background: #fff; color: var(--sv-heading); font-weight: 700; font-size: 14px; }
.sv-brands-az a:hover { border-color: var(--sv-green); color: var(--sv-green-dark); }

.sv-brands-index { display: flex; flex-direction: column; gap: 26px; }
.sv-brands-group { scroll-margin-top: 90px; }
.sv-brands-group__letter { font-size: 22px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--sv-green); display: inline-block; min-width: 42px; }
.sv-brands-group__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sv-brands-group__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 12px 14px; color: var(--sv-heading); font-weight: 500; font-size: 14px; transition: .15s; }
.sv-brands-group__list a:hover { border-color: var(--sv-green); color: var(--sv-green-dark); box-shadow: var(--sv-shadow); }
.sv-brands-group__list .cnt { color: var(--sv-muted); font-size: 12px; font-weight: 600; }
.sv-brands-empty { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 40px; text-align: center; color: var(--sv-text); }
.sv-brands-note { color: var(--sv-muted); font-size: 13px; margin: 0 0 16px; }
.sv-brand-tile { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 14px; color: var(--sv-heading); font-weight: 600; font-size: 14px; text-align: center; }

/* mega-menu extras */
.sv-mm-col h4 a { color: inherit; }
.sv-mm-col h4 a:hover { color: var(--sv-green); }
.sv-mm-all { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--sv-green-dark); }
.sv-mm-all svg { width: 13px; height: 13px; }
.sv-mm-promo__brands { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #fff; font-size: 13px; font-weight: 600; }
.sv-mm-promo__brands svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .sv-brands-group__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .sv-brands-group__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .sv-brands-group__list { grid-template-columns: 1fr; }
}

/* ====================================== Certificates strip ================= */
/* Grid, not flex: flex items with unloaded (lazy) images collapsed to 0 width,
   leaving the whole "Хіти продажів" row blank. A grid gives every tile a real
   column width, and aspect-ratio keeps its size even before the image loads. */
.sv-hits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sv-hit {
  display: block; border-radius: var(--sv-radius-lg); overflow: hidden;
  line-height: 0; background: #fff; border: 1px solid var(--sv-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sv-hit img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
a.sv-hit:hover { transform: translateY(-3px); box-shadow: var(--sv-shadow-hover); }
.sv-hit--empty {
  grid-column: 1 / -1;
  aspect-ratio: auto; display: flex; align-items: center; justify-content: center;
  background: var(--sv-bg); border: 1px dashed var(--sv-border); color: var(--sv-muted);
  font-size: 13px; text-align: center; padding: 20px; line-height: 1.4;
}
@media (max-width: 1100px) { .sv-hits { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .sv-hits { grid-template-columns: repeat(2, 1fr); } }

/* ====================================== About + FAQ ======================= */
.sv-about-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sv-about h2, .sv-faq h2 { font-size: 26px; margin: 0 0 16px; }
.sv-about p { color: var(--sv-text); font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
.sv-about .sv-btn { margin-top: 6px; }
.sv-faq__item { border: 1px solid var(--sv-border); border-radius: var(--sv-radius); background: #fff; margin-bottom: 12px; overflow: hidden; }
.sv-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: none; border: 0; cursor: pointer; padding: 16px 18px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--sv-heading); text-align: left; }
.sv-faq__plus { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.sv-faq__plus::before {
  content: "";
  position: absolute; left: 3px; top: 5px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--sv-accent);
  border-bottom: 2px solid var(--sv-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: transform .2s ease, top .2s ease;
}
.sv-faq__item.is-open .sv-faq__plus::before { top: 8px; transform: rotate(225deg); }
.sv-faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.sv-faq__a p { margin: 0; padding: 0 18px 16px; color: var(--sv-text); font-size: 14px; line-height: 1.7; }
@media (max-width: 900px) {
  .sv-about-faq { grid-template-columns: 1fr; gap: 28px; }
  .sv-certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .sv-certs { grid-template-columns: 1fr; }
}

/* ============================== Product gallery: arrows + zoom ============= */
.sv-gallery__main img { cursor: zoom-in; }
.sv-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--sv-border);
  color: var(--sv-heading); font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
}
.sv-gallery__nav:hover { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.sv-gallery__nav--prev { left: 10px; }
.sv-gallery__nav--next { right: 10px; }

.sv-lightbox { position: fixed; inset: 0; background: rgba(8,15,28,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 40px; }
.sv-lb__frame { max-width: 90vw; max-height: 88vh; overflow: hidden; border-radius: 8px; background: #fff; }
/* Video in the enlarged viewer: a big 16:9 stage instead of a fit-to-image box. */
.sv-lb__frame--video { width: min(90vw, 1200px); height: min(88vh, 675px); background: #000; }
.sv-lb__frame--video iframe,
.sv-lb__frame--video video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.sv-lb__frame img {
  display: block; max-width: 90vw; max-height: 88vh; width: auto; height: auto;
  object-fit: contain; cursor: zoom-in;
  /* promote to its own GPU layer so panning the zoomed image stays smooth
     instead of stuttering while the browser re-rasterises a huge bitmap */
  will-change: transform;
  transform: translateZ(0);
  transition: transform .18s ease;
}
.sv-lb__frame.is-zoomed { cursor: crosshair; }
/* transform-origin (updated on mousemove) is intentionally NOT transitioned,
   so panning tracks the cursor instantly with no rubber-band lag. */
.sv-lb__frame.is-zoomed img { transform: scale(3) translateZ(0); cursor: crosshair; transition: none; }
.sv-lb__close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.sv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--sv-accent); border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sv-lb__nav:hover { background: var(--sv-accent-dark); }
.sv-lb__prev { left: 24px; }
.sv-lb__next { right: 24px; }
@media (max-width: 600px) {
  .sv-gallery__nav { width: 34px; height: 34px; font-size: 18px; }
  .sv-lb__nav { width: 42px; height: 42px; font-size: 26px; left: 10px; }
  .sv-lb__next { right: 10px; }
}

/* ============================== Equal product card sizes =================== */
.woocommerce ul.products,
.sv-products,
.sv-shop__main ul.products { align-items: stretch; }
.woocommerce ul.products li.product { display: flex; }
.woocommerce ul.products li.product > .sv-product { width: 100%; }
.sv-products .sv-product,
.woocommerce ul.products li.product .sv-product { height: 100%; }

/* ============================== Mobile polish ============================= */
@media (max-width: 991px) {
  .sv-header__inner { gap: 14px; min-height: 70px; flex-wrap: wrap; }
  /* Search ABOVE the catalog button so the catalog is the last header element —
     then the mobile menu (which opens right after the header) appears directly
     UNDER the "Каталог товарів" button, not under the search. */
  .sv-search { order: 2; flex: 1 1 100%; max-width: none; }
  .sv-catalog-btn { order: 3; }
}
@media (max-width: 600px) {
  .sv-logo { font-size: 22px; }
  .sv-hero__title { font-size: 30px; }
  .sv-summary__title { font-size: 21px; }
  .sv-summary__price { font-size: 25px; }
  .sv-shop__title { font-size: 22px; }
  .sv-section { padding: 32px 0; }
  .sv-section-head h2 { font-size: 20px; }
  .sv-gallery { grid-template-columns: 1fr; }
  .sv-gallery__thumbs { flex-direction: row; flex-wrap: wrap; }
  .sv-summary form.cart { gap: 10px; }
}

/* ============================ WooCommerce buttons → accent ================= */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce #respond input#submit.alt,
.woocommerce .single_add_to_cart_button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce #place_order,
.woocommerce button#place_order,
.woocommerce .checkout-button,
.woocommerce a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.button,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wp-block-woocommerce-checkout button,
.sv-summary .single_add_to_cart_button {
  background: var(--sv-accent) !important;
  color: var(--sv-accent-contrast) !important;
  border: 1px solid var(--sv-accent) !important;
  border-radius: var(--sv-radius-sm);
  font-family: var(--sv-font);
  font-weight: 700;
  box-shadow: none;
  text-shadow: none;
}

/* Block cart, shipping line: Nova Poshta always costs 0 in WooCommerce because
   the operator bills the customer on collection, so the block renders a bare
   "БЕЗКОШТОВНО" here even under the free-shipping threshold. The accurate
   wording is on the rate label itself (see woocommerce_package_rates in
   functions.php); this hides the contradicting duplicate. Kept as its own rule —
   folding it into the button list above once hid every order button by mistake. */
.wc-block-components-totals-shipping .wc-block-components-totals-item__value {
  display: none;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.button:hover,
.wc-block-components-button:hover,
.sv-summary .single_add_to_cart_button:hover {
  background: var(--sv-accent-dark) !important;
  border-color: var(--sv-accent-dark) !important;
  color: #fff !important;
}
/* "Купити зараз" — secondary (outline blue) */
.sv-summary .sv-buy-now.button,
.sv-buy-now {
  background: #fff !important;
  color: var(--sv-accent) !important;
  border: 2px solid var(--sv-accent) !important;
  border-radius: var(--sv-radius-sm);
  font-weight: 700;
}
.sv-summary .sv-buy-now.button:hover,
.sv-buy-now:hover { background: var(--sv-accent) !important; color: #fff !important; }
/* misc WC accents → blue */
.woocommerce span.onsale,
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--sv-accent) !important; color: #fff; }
.woocommerce div.product p.price, .woocommerce div.product span.price,
.woocommerce .sv-summary__price ins { color: var(--sv-heading); }

/* ===================== Fixes round (empty first cell, scrollbar, logo) ===== */
/* WooCommerce clearfix ::before/::after become phantom GRID cells → first tile
   appeared empty and shifted products right. Kill them on our grids. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.sv-shop__main ul.products::before,
.sv-shop__main ul.products::after,
.sv-single .related.products::before,
.sv-single .related.products::after,
.sv-products::before,
.sv-products::after { content: none !important; display: none !important; }

/* Wide logo support (logo can be wide/tall). */
.sv-logo img { max-height: 60px; max-width: 260px; width: auto; }
@media (max-width: 600px){ .sv-logo img { max-height: 46px; max-width: 180px; } }

/* Subtle gray scrollbar on long pages. */
html { scrollbar-width: thin; scrollbar-color: #c4cdd8 transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4cdd8; border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #9aa5b1; background-clip: content-box; }

/* ============================ Per-tab mega-dropdowns ====================== */
/* .sv-mega is positioned against .sv-nav (position:relative, full-bleed bar),
   not against the tab <li> itself, so the panel spans the whole nav width
   regardless of which tab triggered it — same technique as .sv-megamenu.
   The base ".sv-menu > li { position: relative }" rule above (for regular
   .sub-menu dropdowns) would otherwise make THIS <li> the containing block
   instead — override it back to static so .sv-mega's absolute positioning
   bubbles up past it to .sv-nav. */
.sv-menu > li.sv-has-mega { position: static; }
.sv-menu > li.sv-has-mega > a::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6; margin-left: 4px;
}
.sv-mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--sv-border);
  box-shadow: var(--sv-shadow-hover);
  /* opacity is intentionally NOT transitioned: this panel has a solid white
     background sitting over the hero — fading its opacity would fade the
     hero into visibility through it. Only transform/visibility animate. */
  /* No slide-in offset: the 8px translate left a strip of the dark hero
     visible between the nav and the panel while it animated in. */
  opacity: 0; visibility: hidden;
  transition: visibility .15s;
  /* Stretch at least to the hero's bottom edge (JS sets --sv-mega-minh on the
     front page), so no sliver of the dark banner peeks out under the panel. */
  min-height: var(--sv-mega-minh, 380px);
  /* No scrolling at all (client request): the panel grows to fit its columns
     instead of capping height and showing a scrollbar. */
  overflow: visible;
}
.sv-mega > .sv-container { padding-top: 20px; padding-bottom: 22px; }
.sv-menu > li.sv-has-mega:hover .sv-mega { opacity: 1; visibility: visible; transform: none; }
/* Category & brand dropdowns read A→Z DOWN each column, then to the next
   (multi-column layout), not left-to-right across rows — a vertical list is
   far easier to scan in order, matching the supplier's menu style. */
.sv-mega__cols { display: block; columns: 230px; column-gap: 32px; }
/* Brands: 6 compact columns, no side/vertical scroll. */
.sv-mega__cols--brands { column-count: 6 !important; column-width: auto !important; column-gap: 22px; }
.sv-mega__link {
  display: block;
  break-inside: avoid;
  padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--sv-heading);
  border-bottom: 1px solid var(--sv-line);
}
.sv-mega__cols--brands .sv-mega__link { border-bottom: 0; padding: 3px 0; break-inside: avoid; font-weight: 600; font-size: 13px; }
.sv-mega__link:hover { color: var(--sv-accent); }

/* dsn-style 2-level dropdown: BOLD parent sub-category + its children listed
   underneath. Each group stays intact within one column of the flow.
   A fixed column COUNT (not width) is deliberate: with a width-based value the
   flow keeps adding columns sideways once the panel hits its max-height, which
   is what produced the horizontal scrollbar. */
/* Always 5 columns, exactly like the supplier (dsn.ua) — the mega panel is
   hidden below 1100px anyway, so the columns never get too narrow. Do NOT drop
   to 4/3 on mid widths: the client needs a 1:1 copy of the 5-column layout. */
/* column-width MUST be reset to auto here: the base .sv-mega__cols sets
   `columns: 230px` (a column-WIDTH), and when a width and a count are both in
   effect the browser renders min(count, floor(available / width)) columns — so
   on a ~1000px panel it dropped to 4. Forcing width:auto makes column-count:5
   the sole rule, giving exactly 5 columns like the supplier, at any width. */
.sv-mega__cols--tree { column-count: 5 !important; column-width: auto !important; column-gap: 22px; }
/* Comfortable rows by default (client: «не прижатые, чуть крупнее») … */
.sv-mm-group { break-inside: avoid; margin: 0 0 16px; }
.sv-mm-group__head {
  display: block; padding: 3px 0 5px;
  font-size: 14.5px; font-weight: 800; color: var(--sv-heading);
  line-height: 1.3;
}
.sv-mm-group__head:hover { color: var(--sv-accent); }
.sv-mm-group__list { list-style: none; margin: 0 0 1px; padding: 0; }
.sv-mm-group__list li { margin: 0; }
.sv-mm-group__list a {
  display: block; padding: 4px 0; font-size: 13.5px; font-weight: 500; color: var(--sv-text); line-height: 1.3;
}
.sv-mm-group__list a:hover { color: var(--sv-accent); }
/* …but «Вітаміни та БАДи» stays COMPACT — it's the biggest dropdown and must
   fit the screen without a vertical scroll. */
.sv-tab--vitaminy .sv-mm-group { margin: 0 0 12px; }
.sv-tab--vitaminy .sv-mm-group__head { padding: 2px 0 3px; font-size: 14px; line-height: 1.3; }
.sv-tab--vitaminy .sv-mm-group__list a { padding: 2.5px 0; font-size: 13px; line-height: 1.3; }

/* Hand-picked columns (Товари → Категорії → «Колонка у випадаючому меню»):
   a real grid instead of CSS column balancing, so a group stays in the column
   the client put it in no matter how long its neighbours get. */
.sv-mega__cols--fixed {
  column-count: auto !important; columns: auto !important;
  display: grid; grid-template-columns: repeat(var(--sv-cols, 5), minmax(0, 1fr));
  gap: 0 22px;
}
.sv-mm-colwrap { min-width: 0; }
.sv-mobile-menu .sv-mega__cols--fixed { display: block; }

/* Third level and deeper — the supplier tree goes further than two levels in
   places, so indent each step instead of capping the depth. */
.sv-mm-group__sub { list-style: none; margin: 0 0 2px; padding: 0 0 0 12px; border-left: 1px solid var(--sv-border, #e5e7eb); }
.sv-mm-group__sub a { display: block; padding: 4px 0; font-size: 12.5px; font-weight: 400; color: var(--sv-muted, #6b7280); }
.sv-mm-group__sub a:hover { color: var(--sv-accent); }

/* Manually-managed dropdown (Customizer): text columns + optional banner. */
.sv-mega--manual .sv-mega__wrap { display: flex; gap: 32px; align-items: stretch; }
.sv-mega__mcols {
  flex: 1 1 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 28px;
  align-content: start;
}
.sv-mm-col2 { min-width: 0; }
.sv-mm-col2 h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--sv-muted); margin: 0 0 8px; }
.sv-mm-col2 ul { list-style: none; margin: 0 0 14px; padding: 0; }
.sv-mm-col2 li { margin: 0; }
.sv-mm-col2 a { display: block; padding: 7px 0; font-size: 14px; font-weight: 500; color: var(--sv-heading); }
.sv-mm-col2 a:hover { color: var(--sv-accent); }
.sv-mega__promo {
  flex: 0 0 300px; align-self: stretch; min-height: 220px;
  border-radius: var(--sv-radius); overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.sv-mega__promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,0) 40%, rgba(15,27,45,.75) 100%); }
.sv-mega__promo-t { position: relative; z-index: 1; color: #fff; font-weight: 700; font-size: 18px; padding: 18px 20px; line-height: 1.25; }
@media (max-width: 1280px) { .sv-mega__promo { flex-basis: 220px; } }

@media (max-width: 1100px) { .sv-mega { display: none !important; } }

/* ============================ TI Wishlist page polish ====================== */
.tinv-wishlist .tinv-header h2 { display: none; } /* "Default wishlist" — plugin's multi-list label, irrelevant with a single list */
.tinvwl-table-manage-list { border-collapse: collapse; width: 100%; }
.tinvwl-table-manage-list th {
  padding: 12px 10px;
  border-bottom: 2px solid var(--sv-border);
  text-align: left;
}
.tinvwl-table-manage-list td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--sv-line);
  vertical-align: middle;
}
.tinvwl-table-manage-list .product-remove button {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sv-line); color: var(--sv-text);
  font-family: var(--sv-font); border: 0;
}
.tinvwl-table-manage-list .product-remove button:hover { background: var(--sv-border); color: var(--sv-heading); }
.tinvwl-table-manage-list .product-thumbnail img { border-radius: var(--sv-radius-sm); }
.tinvwl-table-manage-list .product-name a { color: var(--sv-heading); font-weight: 600; }
.tinvwl-table-manage-list .product-stock { color: var(--sv-stock); }
.tinv-wishlist select { border-radius: var(--sv-radius-sm); border-color: var(--sv-border); font-family: var(--sv-font); }

/* ============================== Scroll-to-top button ====================== */
/* Replaces the payment-logos line that used to sit in the footer bar. */
/* Google Translate (the RU/UK switcher plugin) service chrome — the spinning
   logo, tooltip balloons and the top banner frame. All hidden: translation
   still works, only Google's own widgets disappear. */
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.goog-te-spinner-animation,
.goog-te-spinner,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
iframe.goog-te-banner-frame,
.skiptranslate iframe { display: none !important; visibility: hidden !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.sv-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--sv-accent);
  border: 2px solid var(--sv-accent);
  cursor: pointer; padding: 0;
  box-shadow: 0 6px 18px rgba(16, 26, 44, .14);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s ease, color .2s ease;
}
.sv-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.sv-to-top:hover { background: var(--sv-accent); color: #fff; }
.sv-to-top svg { width: 22px; height: 22px; }
@media (max-width: 600px) {
  .sv-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ===================== Empty cart: blue illustration, not black =========== */
.woocommerce-cart .cart-empty svg,
.wc-block-cart__empty-cart__title svg,
.wp-block-woocommerce-empty-cart-block svg,
.wc-block-components-notice-banner svg.wc-block-cart__empty-cart__image {
  fill: var(--sv-accent) !important;
  color: var(--sv-accent) !important;
}

/* Checkout: country is kept for shipping logic but hidden from the customer. */
.sv-field-hidden { display: none !important; }
