/*
Theme Name: Sivar Market Freund Retail Pro v1.9
Theme URI: https://sivarmarket.shop/
Author: Sivar Market
Description: Tema WooCommerce mobile-first de alto rendimiento para Sivar Market con estructura retail inspirada en Freund: header comercial, buscador dominante, navegación institucional azul, departamentos, home rápida, productos salvadoreños y centroamericanos para Estados Unidos.
Version: 1.9.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: smv-fast-shop
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --smv-primary: #0b2f5b;
  --smv-primary-2: #134d87;
  --smv-accent: #f58220;
  --smv-accent-2: #ff9b42;
  --smv-ink: #172033;
  --smv-muted: #667085;
  --smv-line: #e6e9ef;
  --smv-surface: #ffffff;
  --smv-soft: #f5f7fa;
  --smv-success: #177245;
  --smv-danger: #b42318;
  --smv-shadow: 0 10px 30px rgba(16, 24, 40, .08);
  --smv-radius: 14px;
  --smv-max: 1480px;
}

* { box-sizing: border-box; }
/* v1.1 compatibility reset: prevents legacy theme/custom CSS from boxing the storefront. */
html, body {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: clip;
}
body > .smv-topbar,
body > .smv-header,
body > .smv-overlay,
body > .smv-drawer,
body > .smv-main,
body > .smv-footer,
body > .smv-mobile-bar {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.smv-main, .smv-home, .smv-home-content {
  width: 100% !important;
  max-width: none !important;
}
@supports (width: 100dvw) {
  .smv-topbar, .smv-header, .smv-main, .smv-footer { max-width: 100dvw !important; }
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  color: var(--smv-ink);
  background: var(--smv-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--smv-primary); text-decoration: none; }
a:hover { color: var(--smv-accent); }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { touch-action: manipulation; }
:focus-visible { outline: 3px solid rgba(245,130,32,.35); outline-offset: 2px; }

.smv-container { width: min(calc(100% - 28px), var(--smv-max)); margin-inline: auto; }
.smv-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.smv-skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 999999; padding: 10px 14px;
  background: #fff; color: #111; border-radius: 8px; box-shadow: var(--smv-shadow);
}
.smv-skip-link:focus { top: 16px; }

/* Header */
.smv-topbar { background: #07213e; color: #fff; font-size: 13px; }
.smv-topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.smv-topbar a { color: #fff; }
.smv-topbar__right { display: none; gap: 16px; align-items: center; }

.smv-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid var(--smv-line);
}
.admin-bar .smv-header { top: 32px; }
.smv-header__main { min-height: 64px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.smv-menu-toggle { grid-column: 1; grid-row: 1; }
.smv-logo { grid-column: 2; grid-row: 1; }
.smv-header__actions { grid-column: 3; grid-row: 1; }
.smv-search-row { grid-column: 1 / -1; grid-row: 2; }
.smv-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.smv-logo .custom-logo { width: auto; height: 42px; display: block; }
.smv-logo__text { font-weight: 800; color: var(--smv-primary); font-size: 18px; line-height: 1.05; }
.smv-icon-btn {
  width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--smv-primary); cursor: pointer;
}
.smv-icon-btn:hover { background: var(--smv-soft); }
.smv-icon { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; }
.smv-header__actions { display: flex; align-items: center; gap: 2px; }
.smv-action-link {
  position: relative; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--smv-primary);
}
.smv-action-link:hover { background: var(--smv-soft); }
.smv-cart-count {
  position: absolute; top: 1px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--smv-accent); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

.smv-search-row { padding: 0 0 10px; }
.smv-search {
  width: 100%; display: grid; grid-template-columns: 1fr auto; border: 2px solid var(--smv-primary);
  border-radius: 12px; overflow: hidden; background: #fff;
}
.smv-search input[type="search"] {
  width: 100%; min-width: 0; height: 44px; border: 0; outline: 0; padding: 0 13px; color: var(--smv-ink); background: #fff;
}
.smv-search select { display: none; border: 0; border-left: 1px solid var(--smv-line); padding: 0 10px; background: #fff; color: var(--smv-muted); }
.smv-search button {
  width: 50px; border: 0; color: #fff; background: var(--smv-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.smv-search button:hover { background: var(--smv-primary-2); }

.smv-desktop-nav { display: none; border-top: 1px solid var(--smv-line); background: #fff; }
.smv-desktop-nav__inner { display: flex; align-items: stretch; min-height: 48px; }
.smv-departments { position: relative; min-width: 260px; }
.smv-departments__toggle {
  width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 0;
  background: var(--smv-primary); color: #fff; font-weight: 800; cursor: pointer;
}
.smv-departments__panel {
  display: none; position: absolute; left: 0; top: 100%; width: min(980px, calc(100vw - 40px)); max-height: 72vh; overflow: auto;
  background: #fff; border: 1px solid var(--smv-line); box-shadow: var(--smv-shadow); border-radius: 0 0 14px 14px; padding: 18px; z-index: 1100;
}
.smv-departments.is-open .smv-departments__panel { display: block; }
.smv-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px 22px; }
.smv-mega-group > a { display: inline-block; color: var(--smv-primary); font-weight: 800; margin-bottom: 7px; }
.smv-mega-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.smv-mega-group li a { color: #445; font-size: 14px; }
.smv-mega-group li a:hover { color: var(--smv-accent); }
.smv-nav-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0 8px; list-style: none; overflow-x: auto; }
.smv-nav-menu li { flex: 0 0 auto; }
.smv-nav-menu a { height: 48px; padding: 0 13px; display: inline-flex; align-items: center; color: var(--smv-ink); font-weight: 700; font-size: 14px; }
.smv-nav-menu a:hover { color: var(--smv-accent); }

/* Drawers */
.smv-overlay { position: fixed; inset: 0; z-index: 1990; background: rgba(7,33,62,.52); opacity: 0; visibility: hidden; transition: .18s ease; }
.smv-overlay.is-open { opacity: 1; visibility: visible; }
.smv-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 2000; width: min(92vw, 390px); background: #fff; transform: translateX(-102%);
  transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain; box-shadow: 14px 0 34px rgba(0,0,0,.18);
}
.smv-drawer.is-open { transform: translateX(0); }
.smv-drawer__head { position: sticky; top: 0; z-index: 2; min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--smv-line); }
.smv-drawer__title { font-size: 17px; font-weight: 800; color: var(--smv-primary); }
.smv-drawer__body { padding: 14px; }
.smv-mobile-menu, .smv-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.smv-mobile-menu > li { border-bottom: 1px solid var(--smv-line); }
.smv-mobile-menu a { display: block; padding: 12px 4px; color: var(--smv-ink); font-weight: 700; }
.smv-mobile-menu ul { padding: 0 0 8px 14px; }
.smv-mobile-menu ul a { padding: 7px 4px; font-size: 14px; font-weight: 500; color: #475467; }
.smv-drawer__meta { margin-top: 16px; display: grid; gap: 8px; }
.smv-drawer__meta a { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: var(--smv-primary); font-weight: 700; }
/* v1.3: never disable the document scroll for theme drawers.
   The overlay handles interaction while the page keeps a valid scroll root. */
body.smv-no-scroll { overflow: visible !important; }
html.smv-no-scroll { overflow: auto !important; }

/* Hidden fixed layers must not intercept wheel/touch gestures. */
.smv-overlay { pointer-events: none; touch-action: none; }
.smv-overlay.is-open { pointer-events: auto; }
.smv-drawer { pointer-events: none; }
.smv-drawer.is-open { pointer-events: auto; }
.smv-shop-sidebar:not(.is-open) { pointer-events: none; }
.smv-shop-sidebar.is-open { pointer-events: auto; }

/* Hero */
.smv-home { background: var(--smv-soft); }
.smv-hero-wrap { padding: 14px 0 6px; }
.smv-hero { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(130deg, #0b2f5b, #135f9e); min-height: 265px; box-shadow: var(--smv-shadow); }
.smv-hero__track { display: flex; transition: transform .45s ease; }
.smv-hero__slide { position: relative; flex: 0 0 100%; min-width: 100%; min-height: 265px; display: grid; align-items: center; isolation: isolate; }
.smv-hero__media { position: absolute; inset: 0; z-index: -2; }
.smv-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smv-hero__slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,24,46,.88) 0%, rgba(5,24,46,.62) 52%, rgba(5,24,46,.12) 100%); }
.smv-hero__content { padding: 28px 22px; color: #fff; max-width: 620px; }
.smv-hero__eyebrow { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.smv-hero h1, .smv-hero h2 { color: #fff; margin: 9px 0 8px; font-size: clamp(28px, 7vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.smv-hero p { margin: 0 0 18px; max-width: 54ch; color: rgba(255,255,255,.9); font-size: 15px; }
.smv-btn {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  padding: 10px 16px; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.smv-btn:hover { transform: translateY(-1px); }
.smv-btn--accent { background: var(--smv-accent); color: #fff; }
.smv-btn--accent:hover { background: var(--smv-accent-2); color: #fff; }
.smv-btn--primary { background: var(--smv-primary); color: #fff; }
.smv-btn--primary:hover { background: var(--smv-primary-2); color: #fff; }
.smv-hero__controls { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.smv-hero__dots { display: flex; gap: 6px; pointer-events: auto; }
.smv-hero__dot { width: 8px; height: 8px; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.smv-hero__dot.is-active { width: 24px; background: #fff; }
.smv-hero__arrows { display: none; gap: 6px; pointer-events: auto; }
.smv-hero__arrow { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--smv-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* Sections */
.smv-section { padding: 26px 0; content-visibility: auto; contain-intrinsic-size: 1px 520px; }
.smv-section--white { background: #fff; }
.smv-section__head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.smv-section__title { margin: 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.1; color: var(--smv-ink); letter-spacing: -.02em; }
.smv-section__link { flex: 0 0 auto; font-weight: 800; font-size: 14px; }

.smv-category-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 42%); gap: 10px; overflow-x: auto; padding: 2px 2px 9px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.smv-category-card { scroll-snap-align: start; display: block; overflow: hidden; background: #fff; border: 1px solid var(--smv-line); border-radius: 14px; color: var(--smv-ink); }
.smv-category-card__image { aspect-ratio: 1.2 / 1; background: #f8fafc; display: grid; place-items: center; overflow: hidden; }
.smv-category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.smv-category-card:hover img { transform: scale(1.035); }
.smv-category-card__name { display: block; padding: 10px 9px 11px; font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; }

.smv-promo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.smv-promo-card { position: relative; min-height: 150px; border-radius: 16px; overflow: hidden; background: #eaf1f8; padding: 20px; display: flex; align-items: center; }
.smv-promo-card--dark { background: var(--smv-primary); color: #fff; }
.smv-promo-card h3 { margin: 0 0 5px; font-size: 22px; line-height: 1.05; }
.smv-promo-card p { margin: 0 0 12px; color: inherit; opacity: .82; }

.smv-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.smv-benefit { min-height: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: #fff; border: 1px solid var(--smv-line); border-radius: 14px; }
.smv-benefit__icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center; color: var(--smv-primary); background: #edf4fb; }
.smv-benefit strong { display: block; font-size: 14px; line-height: 1.15; }
.smv-benefit small { display: block; margin-top: 3px; color: var(--smv-muted); font-size: 12px; line-height: 1.35; }

.smv-brands { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 36%); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.smv-brand { min-height: 78px; border: 1px solid var(--smv-line); border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 12px; color: var(--smv-ink); font-weight: 800; text-align: center; }
.smv-brand img { max-height: 44px; width: auto; object-fit: contain; }

.smv-seller-cta { background: linear-gradient(130deg, #07213e, #0b2f5b); color: #fff; border-radius: 18px; padding: 24px; display: grid; gap: 14px; }
.smv-seller-cta h2 { color: #fff; margin: 0; font-size: 26px; line-height: 1.1; }
.smv-seller-cta p { margin: 0; color: rgba(255,255,255,.82); }

.smv-home-content { background: #fff; }
.smv-home-content__inner { padding: 28px 0 40px; }
.smv-home-content h2, .smv-home-content h3 { color: var(--smv-primary); }
.smv-home-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.smv-home-content th, .smv-home-content td { border: 1px solid var(--smv-line); padding: 9px; text-align: left; }

/* WooCommerce */
.smv-shop-shell { width: min(calc(100% - 28px), var(--smv-max)); margin: 20px auto 52px; }
.smv-shop-layout { display: grid; gap: 20px; }
.smv-shop-sidebar { display: none; }
.smv-shop-sidebar.is-open { display: block; position: fixed; z-index: 2200; inset: 0 auto 0 0; width: min(90vw, 360px); overflow-y: auto; background: #fff; padding: 16px; box-shadow: 14px 0 40px rgba(0,0,0,.2); }
.smv-filter-close { display: flex; margin-left: auto; }
.smv-filter-toggle { margin: 0 0 14px; }
.smv-widget { margin-bottom: 18px; border-bottom: 1px solid var(--smv-line); padding-bottom: 16px; }
.smv-widget-title, .widget-title { margin: 0 0 10px; font-size: 16px; color: var(--smv-primary); }
.smv-widget ul, .widget ul { list-style: none; padding: 0; margin: 0; }
.smv-widget li, .widget li { margin: 6px 0; }

.woocommerce .woocommerce-breadcrumb { margin: 0 0 14px; color: var(--smv-muted); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--smv-primary); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 14px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; border: 1px solid var(--smv-line); border-radius: 9px; padding: 0 10px; background: #fff; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important; padding: 10px !important; border: 1px solid var(--smv-line);
  border-radius: 14px; background: #fff; min-width: 0; position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-2px); box-shadow: var(--smv-shadow); border-color: #d6dbe5; }
.woocommerce ul.products li.product a img { margin: 0 0 9px !important; border-radius: 10px; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 !important; margin: 0 0 7px !important; min-height: 42px; font-size: 14px !important; line-height: 1.35; color: var(--smv-ink); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .price { margin: 0 0 9px !important; color: var(--smv-primary) !important; font-size: 17px !important; font-weight: 850 !important; }
.woocommerce ul.products li.product .price del { color: #98a2b3 !important; font-size: 12px; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce span.onsale { min-width: 0; min-height: 0; line-height: 1; top: 8px !important; left: 8px !important; margin: 0 !important; padding: 6px 8px !important; border-radius: 8px; background: var(--smv-danger) !important; font-size: 11px; font-weight: 800; }
.woocommerce ul.products li.product .button {
  width: 100%; margin-top: 0 !important; min-height: 40px; padding: 9px 8px !important; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--smv-primary) !important; color: #fff !important; font-size: 12px !important; font-weight: 800 !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--smv-primary-2) !important; }
.woocommerce a.added_to_cart { display: block; text-align: center; margin-top: 7px; font-size: 12px; font-weight: 800; }

.woocommerce div.product { background: #fff; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: 16px; overflow: hidden; border: 1px solid var(--smv-line); }
.woocommerce div.product .product_title { font-size: clamp(25px, 5vw, 40px); line-height: 1.1; color: var(--smv-ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--smv-primary); font-size: 25px; font-weight: 850; }
.woocommerce div.product form.cart .button { min-height: 46px; border-radius: 10px; background: var(--smv-primary); }
.woocommerce div.product form.cart .button:hover { background: var(--smv-primary-2); }
.woocommerce .quantity .qty { min-height: 46px; border: 1px solid var(--smv-line); border-radius: 9px; }
.woocommerce-tabs ul.tabs { display: flex; overflow-x: auto; white-space: nowrap; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0 !important; background: var(--smv-soft) !important; border-radius: 8px 8px 0 0 !important; }
.woocommerce div.product .woocommerce-tabs .panel { line-height: 1.7; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 10px; border-top-width: 3px; }
.woocommerce-cart table.cart img { width: 72px; }
.woocommerce table.shop_table { border-radius: 12px; overflow: hidden; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 9px 10px; }
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--smv-primary); }
.woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--smv-primary-2); }

/* Content */
.smv-main { min-height: 60vh; }
.smv-content { width: min(calc(100% - 28px), 980px); margin: 30px auto 60px; }
.smv-content--wide { width: min(calc(100% - 28px), var(--smv-max)); }
.smv-entry-title { font-size: clamp(28px, 6vw, 44px); line-height: 1.08; margin: 0 0 20px; }
.smv-entry-content { line-height: 1.75; }
.smv-entry-content img { border-radius: 12px; }

/* Footer */
.smv-footer { background: #071b32; color: #dce4ee; padding-bottom: 72px; }
.smv-footer a { color: #e7edf4; }
.smv-footer a:hover { color: #fff; }
.smv-footer__top { padding: 34px 0 28px; display: grid; gap: 28px; }
.smv-footer__brand .custom-logo { height: 46px; width: auto; filter: brightness(0) invert(1); }
.smv-footer__title { margin: 0 0 10px; color: #fff; font-size: 15px; }
.smv-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.smv-footer li, .smv-footer p { font-size: 14px; color: #c4cfdb; }
.smv-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0 22px; font-size: 12px; color: #aebccc; }
.smv-payment-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.smv-payment-pill { border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 5px 8px; font-size: 11px; font-weight: 800; }

/* Mobile bottom bar */
.smv-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1800; height: 62px; background: #fff; border-top: 1px solid var(--smv-line);
  display: grid; grid-template-columns: repeat(4,1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(16,24,40,.07);
}
.smv-mobile-bar a, .smv-mobile-bar button { border: 0; background: transparent; color: #344054; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; padding: 4px 2px; }
.smv-mobile-bar .smv-icon { width: 21px; height: 21px; }

@media (min-width: 640px) {
  .smv-container { width: min(calc(100% - 40px), var(--smv-max)); }
  .smv-topbar__right { display: flex; }
  .smv-search select { display: block; }
  .smv-search { grid-template-columns: minmax(0,1fr) auto auto; }
  .smv-hero-wrap { padding-top: 18px; }
  .smv-hero, .smv-hero__slide { min-height: 330px; }
  .smv-hero__content { padding: 42px 38px; }
  .smv-hero__arrows { display: flex; }
  .smv-category-rail { grid-auto-columns: minmax(145px, 24%); }
  .smv-promo-grid { grid-template-columns: 1fr 1fr; }
  .smv-benefits { grid-template-columns: repeat(4,1fr); }
  .smv-brands { grid-auto-columns: minmax(150px, 18%); }
  .woocommerce ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .woocommerce ul.products li.product { padding: 12px !important; }
  .smv-footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .smv-header { position: relative; top: auto; }
  .admin-bar .smv-header { top: auto; }
  .smv-header__main { grid-template-columns: 240px minmax(420px,1fr) auto; min-height: 76px; gap: 20px; }
  .smv-logo { grid-column: 1; grid-row: 1; }
  .smv-search-row { grid-column: 2; grid-row: 1; display: block; }
  .smv-header__actions { grid-column: 3; grid-row: 1; }
  .smv-logo .custom-logo { height: 52px; }
  .smv-logo__text { font-size: 21px; }
  .smv-search { max-width: 760px; padding: 0; }
  .smv-search input[type="search"] { height: 48px; }
  .smv-search button { width: 56px; }
  .smv-menu-toggle { display: none; }
  .smv-action-link { width: 46px; height: 46px; }
  .smv-desktop-nav { display: block; }
  .smv-hero-wrap { padding-top: 20px; }
  .smv-hero, .smv-hero__slide { min-height: 430px; }
  .smv-hero__content { padding: 62px 56px; }
  .smv-hero p { font-size: 17px; }
  .smv-section { padding: 34px 0; }
  .smv-category-rail { grid-auto-flow: initial; grid-auto-columns: initial; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: visible; }
  .smv-category-card__name { font-size: 14px; }
  .smv-promo-grid { grid-template-columns: 1.2fr .8fr; }
  .smv-promo-card { min-height: 180px; }
  .smv-seller-cta { grid-template-columns: 1fr auto; align-items: center; padding: 32px 38px; }
  .woocommerce ul.products { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .smv-shop-layout { grid-template-columns: 260px minmax(0,1fr); align-items: start; }
  .smv-shop-sidebar { display: block; position: sticky; top: 18px; }
  .smv-filter-toggle, .smv-filter-close { display: none !important; }
  .smv-footer { padding-bottom: 0; }
  .smv-footer__top { grid-template-columns: 1.5fr repeat(3,1fr); }
  .smv-mobile-bar { display: none; }
}

@media (min-width: 1240px) {
  .smv-container { width: min(calc(100% - 64px), var(--smv-max)); }
  .woocommerce ul.products { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .woocommerce.columns-4 ul.products { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .smv-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Extra catalog information */
.smv-loop-meta {
  min-height: 18px;
  margin: 0 0 5px;
  color: var(--smv-muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smv-loop-stock {
  margin: -2px 0 9px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}
.smv-loop-stock--in { color: var(--smv-success); }
.smv-loop-stock--out { color: var(--smv-danger); }


/* SIVAR MARKET FAST SHOP — storefront visual system */
:root {
  --smv-primary: #073b73;
  --smv-primary-2: #0b569b;
  --smv-primary-deep: #052e59;
  --smv-accent: #ff7a00;
  --smv-accent-2: #ff982f;
  --smv-ink: #08264a;
  --smv-muted: #66758a;
  --smv-soft: #f5f8fc;
  --smv-line: #dce5ef;
  --smv-shadow: 0 14px 36px rgba(10, 49, 88, .10);
  --smv-radius: 14px;
  --smv-max: 1560px;
}
body { background:#fff; color:#0a2340; font-size:15px; }
.smv-container { width:min(calc(100% - 24px),var(--smv-max)); }
.smv-icon { width:19px; height:19px; }

/* Utility strip */
.smv-topbar { background:var(--smv-primary-deep); border-top:3px solid #0e4b88; }
.smv-topbar__inner { min-height:32px; gap:20px; }
.smv-topbar__benefits { display:flex; align-items:center; gap:18px; min-width:0; white-space:nowrap; overflow:hidden; }
.smv-topbar__benefits > span,.smv-topbar__benefits > a,.smv-topbar__right > span,.smv-topbar__right > a { display:inline-flex; align-items:center; gap:6px; color:#fff; font-size:11px; font-weight:700; }
.smv-topbar__benefits .smv-icon,.smv-topbar__right .smv-icon { width:15px; height:15px; }
.smv-topbar__right { margin-left:auto; white-space:nowrap; }

/* Header */
.smv-header { background:#fff; border-bottom:0; box-shadow:0 2px 8px rgba(3,35,69,.06); }
.smv-header__main { min-height:72px; }
.smv-logo__text { font-size:20px; letter-spacing:-.02em; color:var(--smv-primary); }
.smv-logo .custom-logo { height:46px; max-width:210px; object-fit:contain; }
.smv-search-row { padding-bottom:9px; }
.smv-search { border:1px solid #cbd7e4; border-radius:9px; box-shadow:0 1px 2px rgba(0,0,0,.02); }
.smv-search select { border:0; border-right:1px solid #d7e0e9; border-left:0; height:44px; min-width:145px; padding:0 28px 0 12px; font-size:12px; font-weight:700; color:#3e5570; }
.smv-search input[type="search"] { height:44px; font-size:13px; }
.smv-search button { width:48px; background:var(--smv-primary); }
.smv-header__actions { gap:5px; }
.smv-action-link { width:42px; height:42px; }
.smv-action-copy { display:none; line-height:1.08; }
.smv-action-copy small,.smv-action-copy strong { display:block; }
.smv-action-copy small { font-size:9px; color:#718096; font-weight:500; }
.smv-action-copy strong { font-size:11px; color:#0a2d56; margin-top:2px; }
.smv-cart-count { background:var(--smv-accent); top:-2px; right:-1px; }

/* Desktop navigation */
.smv-desktop-nav { background:var(--smv-primary); border-top:0; border-bottom:1px solid rgba(255,255,255,.08); }
.smv-desktop-nav__inner { min-height:46px; }
.smv-departments { min-width:205px; }
.smv-departments__toggle { height:46px; padding:0 16px; background:#0b579b; font-size:13px; }
.smv-departments__chevron { width:15px; margin-left:auto; transform:rotate(90deg); transition:transform .18s ease; }
.smv-departments.is-open .smv-departments__chevron { transform:rotate(-90deg); }
.smv-nav-menu { flex:1; padding:0 6px; gap:0; scrollbar-width:none; }
.smv-nav-menu::-webkit-scrollbar { display:none; }
.smv-nav-menu a { height:46px; color:#fff; font-size:11.5px; font-weight:800; padding:0 15px; text-transform:uppercase; }
.smv-nav-menu a:hover { color:#fff; background:rgba(255,255,255,.09); }
.smv-nav-offers { margin-left:auto; height:46px; padding:0 14px; display:inline-flex; align-items:center; gap:5px; color:#ffab39; font-size:12px; font-weight:900; white-space:nowrap; }
.smv-nav-offers:hover { color:#fff; }
.smv-nav-offers .smv-icon { width:15px; }
.smv-departments__panel { border-radius:0 0 12px 12px; border-top:0; }

/* Homepage surface */
.smv-home { background:#fff; }
.smv-section { padding:22px 0; }
.smv-section--white { background:#fff; }
.smv-section--categories { padding-top:16px; }
.smv-section--promos { padding-top:8px; }
.smv-section--benefits { background:#f6f9fc; }
.smv-section--brands { padding-top:24px; }
.smv-section--seller { background:#f4f7fb; padding:20px 0 28px; }
.smv-section__head { margin-bottom:14px; align-items:center; }
.smv-section__title { margin:0; color:#082e5a; font-size:clamp(20px,2vw,26px); font-weight:850; letter-spacing:-.025em; }
.smv-section__link { display:inline-flex; align-items:center; gap:2px; font-size:11px; font-weight:850; color:#083a70; white-space:nowrap; }
.smv-section__link .smv-icon { width:15px; height:15px; }

/* Hero */
.smv-hero-wrap { padding:10px 0 0; background:#fff; }
.smv-hero { min-height:360px; border-radius:12px; box-shadow:none; background:linear-gradient(120deg,#062c55 0%,#074a83 55%,#0b5c9f 100%); }
.smv-hero__slide { min-height:360px; overflow:hidden; }
.smv-hero__slide::after { background:linear-gradient(90deg,rgba(4,31,60,.97) 0%,rgba(4,43,78,.88) 38%,rgba(7,61,106,.18) 67%,rgba(7,61,106,0) 100%); }
.smv-hero__media img { object-position:center; }
.smv-hero__visual { position:absolute; inset:0 0 0 42%; z-index:-2; display:flex; justify-content:flex-end; align-items:center; overflow:hidden; }
.smv-hero__visual img { width:min(72vw,760px); height:auto; max-height:100%; object-fit:contain; object-position:right center; transform:translateX(2%); opacity:.98; }
.smv-hero__content { max-width:610px; padding:40px 32px 50px; color:#fff; }
.smv-hero__eyebrow { display:inline-flex; margin-bottom:10px; color:#ffb14e; font-size:12px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.smv-hero h1,.smv-hero h2 { margin:0 0 10px; max-width:590px; font-size:clamp(32px,4.6vw,58px); line-height:1.01; letter-spacing:-.045em; color:#fff; }
.smv-hero p { margin:0 0 15px; max-width:510px; font-size:15px; line-height:1.45; color:rgba(255,255,255,.9); }
.smv-hero__trust { display:none; flex-wrap:wrap; gap:15px; margin:0 0 19px; }
.smv-hero__trust span { display:inline-flex; align-items:center; gap:5px; font-size:10.5px; font-weight:700; color:#fff; }
.smv-hero__trust .smv-icon { width:15px; height:15px; }
.smv-btn { min-height:40px; border-radius:7px; padding:9px 15px; font-size:12px; font-weight:850; }
.smv-btn--accent { background:var(--smv-accent); color:#fff; }
.smv-btn--accent:hover { background:#ea6e00; color:#fff; }
.smv-btn .smv-icon { width:15px; }
.smv-hero__offer { display:none; position:absolute; z-index:2; top:78px; right:34px; width:145px; min-height:130px; padding:16px 13px; border-radius:12px; background:var(--smv-accent); color:#fff; text-align:center; box-shadow:0 12px 24px rgba(25,43,62,.18); }
.smv-hero__offer small,.smv-hero__offer strong,.smv-hero__offer span { display:block; }
.smv-hero__offer small { font-size:10px; font-weight:900; letter-spacing:.07em; }
.smv-hero__offer strong { font-size:22px; line-height:1.05; margin:5px 0 8px; }
.smv-hero__offer span { background:#fff; color:#153d66; border-radius:6px; padding:7px; font-size:9px; font-weight:900; text-transform:uppercase; }
.smv-hero__controls { inset:auto 14px 12px 14px; }
.smv-hero__dot { width:7px; height:7px; background:rgba(255,255,255,.42); }
.smv-hero__dot.is-active { width:21px; background:#fff; border-radius:8px; }
.smv-hero__arrow { width:36px; height:36px; background:#f4f8fc; color:#0a447d; border:1px solid rgba(7,61,110,.12); }

/* Generic rail controls */
.smv-rail-shell { position:relative; }
.smv-scroll-rail { scroll-behavior:smooth; overscroll-behavior-inline:contain; }
.smv-rail-arrow { display:none; position:absolute; z-index:8; top:50%; transform:translateY(-50%); width:34px; height:34px; border:1px solid #d9e2ec; border-radius:8px; background:#fff; color:#0a447d; box-shadow:0 5px 14px rgba(7,45,82,.12); cursor:pointer; align-items:center; justify-content:center; }
.smv-rail-arrow .smv-icon { width:18px; }
.smv-rail-arrow--prev { left:-12px; }
.smv-rail-arrow--next { right:-12px; }

/* Categories */
.smv-category-rail { display:grid; grid-auto-flow:column; grid-auto-columns:102px; gap:12px; overflow-x:auto; padding:2px 2px 6px; scrollbar-width:none; scroll-snap-type:x proximity; }
.smv-category-rail::-webkit-scrollbar { display:none; }
.smv-category-card { border:0; border-radius:0; background:transparent; min-height:0; padding:0; display:flex; flex-direction:column; align-items:center; gap:8px; scroll-snap-align:start; }
.smv-category-card:hover { transform:translateY(-2px); box-shadow:none; }
.smv-category-card__image { width:86px; height:86px; border-radius:50%; border:1px solid #d9e1e9; background:#f7f9fb; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.smv-category-card__image img { width:100%; height:100%; object-fit:cover; }
.smv-category-card__fallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(145deg,#f7f9fb,#e9eff5); color:#0b5594; }
.smv-category-icon { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:1.4; }
.smv-category-card__name { min-height:32px; display:flex; align-items:flex-start; justify-content:center; color:#263c56; font-size:10px; line-height:1.2; font-weight:800; text-align:center; text-transform:none; }

/* Promotional mosaic */
.smv-promo-mosaic { display:grid; grid-template-columns:1fr; gap:10px; }
.smv-promo-tile { position:relative; min-height:190px; overflow:hidden; border:1px solid #dde6ef; border-radius:10px; background:#f7f9fc; display:flex; align-items:stretch; }
.smv-promo-tile__copy { position:relative; z-index:2; width:62%; padding:22px 16px; }
.smv-promo-tile__label { display:inline-flex; margin-bottom:8px; padding:4px 7px; border-radius:4px; background:#0a4f90; color:#fff; font-size:9px; font-weight:900; letter-spacing:.06em; }
.smv-promo-tile h3 { margin:0 0 6px; color:#093d74; font-size:19px; line-height:1.05; letter-spacing:-.025em; }
.smv-promo-tile p { margin:0 0 13px; max-width:300px; color:#52667d; font-size:11px; line-height:1.35; }
.smv-promo-tile__art { position:absolute; right:-5%; bottom:-2%; width:53%; height:92%; object-fit:contain; object-position:right bottom; }
.smv-promo-tile--paint { background:linear-gradient(135deg,#083c72 0%,#0a4d8b 46%,#f4f7fb 46.2%); }
.smv-promo-tile--paint .smv-promo-tile__copy { color:#fff; }
.smv-promo-tile--paint h3,.smv-promo-tile--paint p { color:#fff; }
.smv-promo-tile--paint .smv-promo-tile__label { background:#ff8a16; }
.smv-promo-tile--tools .smv-promo-tile__label,.smv-promo-tile--home .smv-promo-tile__label { background:var(--smv-accent); }
.smv-btn--outline { border:1px solid #b7c6d6; background:#fff; color:#073b73; }
.smv-promo-tile--paint .smv-btn--outline { border-color:#fff; }

/* Product showcase */
.smv-product-showcase { padding-top:18px; }
.smv-product-rail { overflow-x:auto; scrollbar-width:none; }
.smv-product-rail::-webkit-scrollbar { display:none; }
.smv-product-rail .woocommerce { width:100%; }
.smv-product-rail ul.products { display:grid !important; grid-auto-flow:column; grid-auto-columns:minmax(180px,78vw); grid-template-columns:none !important; gap:10px; overflow:visible; }
.smv-product-rail ul.products li.product { scroll-snap-align:start; }
.woocommerce ul.products li.product { border:1px solid #dfe6ed; border-radius:10px; box-shadow:none; padding:10px !important; }
.woocommerce ul.products li.product:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(9,46,82,.08); border-color:#c8d6e4; }
.woocommerce ul.products li.product a img { aspect-ratio:1.15/1; border-radius:7px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height:39px; color:#0c2c4d; font-size:12.5px !important; line-height:1.32; font-weight:750; }
.smv-loop-meta { color:#56708a; font-size:8.5px; }
.woocommerce ul.products li.product .star-rating { font-size:10px; color:#0c4f8d; margin:4px 0 5px; }
.woocommerce ul.products li.product .price { color:#064d8d !important; font-size:17px !important; margin-bottom:4px !important; }
.woocommerce ul.products li.product .price del { font-size:10px; }
.smv-loop-stock { margin:0 0 7px; font-size:9px; }
.woocommerce ul.products li.product .button { min-height:36px; border-radius:7px; background:#073b73 !important; font-size:10.5px !important; }
.woocommerce span.onsale { top:7px !important; left:7px !important; padding:5px 7px !important; background:var(--smv-accent) !important; border-radius:5px; font-size:9px; }
.smv-is-home .compare,.smv-is-home a.compare,.smv-is-home .wcfm_buttons,.smv-is-home .dokan-product-edit,.smv-is-home .product-edit-link { display:none !important; }

/* Benefits */
.smv-benefits { display:grid; grid-template-columns:1fr; gap:8px; }
.smv-benefit { min-height:64px; border:1px solid #dfe7ef; border-radius:9px; background:#fff; padding:11px 12px; display:flex; align-items:center; gap:10px; }
.smv-benefit__icon { width:34px; height:34px; flex:0 0 34px; border-radius:8px; background:#eef5fb; color:#0b5797; display:flex; align-items:center; justify-content:center; }
.smv-benefit__icon .smv-icon { width:18px; height:18px; }
.smv-benefit strong { display:block; color:#083b70; font-size:11px; line-height:1.2; }
.smv-benefit small { display:block; margin-top:2px; color:#65768a; font-size:8.5px; line-height:1.25; }

/* Brands */
.smv-section--brands .smv-scroll-rail { overflow-x:auto; scrollbar-width:none; }
.smv-section--brands .smv-scroll-rail::-webkit-scrollbar { display:none; }
.smv-brands { display:grid; grid-auto-flow:column; grid-auto-columns:130px; gap:9px; overflow:visible; padding:2px; }
.smv-brand { min-height:56px; border:1px solid #dce5ed; border-radius:8px; background:#fff; color:#111c2c; font-size:14px; font-weight:900; padding:8px 12px; display:flex; align-items:center; justify-content:center; text-align:center; }
.smv-brand img { max-width:100px; max-height:36px; object-fit:contain; }

/* Seller CTA */
.smv-seller-cta { min-height:96px; border-radius:10px; padding:20px; background:linear-gradient(100deg,#063667,#074a86); display:grid; grid-template-columns:auto 1fr; gap:12px 14px; align-items:center; }
.smv-seller-cta__icon { width:48px; height:48px; border:2px solid rgba(255,255,255,.35); border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; }
.smv-seller-cta__icon .smv-icon { width:30px; height:30px; }
.smv-seller-cta__copy h2 { margin:0 0 2px; color:#fff; font-size:18px; line-height:1.05; }
.smv-seller-cta__copy p { margin:0; color:rgba(255,255,255,.82); font-size:10.5px; }
.smv-seller-cta__actions { grid-column:1/-1; }

/* Homepage editorial copy */
.smv-home-content { border-top:1px solid #e7edf3; background:#fff; }
.smv-home-content__inner { max-width:1180px; padding-top:28px; }

/* Footer */
.smv-footer { background:#073b73; color:#d9e5f1; padding-bottom:68px; }
.smv-footer__top { padding:32px 0 26px; display:grid; grid-template-columns:1fr; gap:26px; }
.smv-footer__brand .custom-logo { max-width:170px; height:44px; }
.smv-footer__brand-name { margin:0 0 8px; color:#fff; font-size:22px; }
.smv-footer__brand p { max-width:220px; }
.smv-footer__microtitle { display:block; margin:14px 0 8px; color:#fff; font-size:11px; }
.smv-socials { display:flex; gap:7px; }
.smv-socials a { width:30px; height:30px; border:1px solid rgba(255,255,255,.5); border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:13px; font-weight:900; }
.smv-socials .smv-icon { width:16px; }
.smv-footer__title { font-size:12px; text-transform:none; }
.smv-footer ul { gap:5px; }
.smv-footer li,.smv-footer p { font-size:10.5px; line-height:1.35; }
.smv-payment-row { gap:6px; }
.smv-payment-pill { background:#fff; color:#0b3d70; border:0; border-radius:4px; padding:6px 9px; font-size:9px; }
.smv-footer__secure-title { margin:16px 0 5px; color:#fff; font-size:11px; }
.smv-footer__secure { display:flex; align-items:center; gap:5px; }
.smv-footer__secure .smv-icon { width:15px; }
.smv-footer__bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:9px; }
.smv-mobile-cart-count { position:absolute; top:5px; right:20%; min-width:16px; height:16px; border-radius:50%; background:var(--smv-accent); color:#fff; font-size:9px; display:flex; align-items:center; justify-content:center; }

/* Shop pages inherit the same card language */
.smv-shop-shell { width:min(calc(100% - 24px),var(--smv-max)); }
.woocommerce div.product .product_title { color:#082e5a; }
.woocommerce div.product p.price,.woocommerce div.product span.price { color:#07549a; }

@media (min-width:640px) {
  .smv-container { width:min(calc(100% - 36px),var(--smv-max)); }
  .smv-topbar__right { display:flex; }
  .smv-search { grid-template-columns:auto minmax(0,1fr) auto; }
  .smv-search select { display:block; }
  .smv-hero,.smv-hero__slide { min-height:390px; }
  .smv-hero__content { padding:48px 42px 56px; }
  .smv-hero__trust { display:flex; }
  .smv-category-rail { grid-auto-columns:116px; gap:18px; }
  .smv-category-card__image { width:96px; height:96px; }
  .smv-promo-mosaic { grid-template-columns:1fr 1fr; }
  .smv-benefits { grid-template-columns:repeat(2,1fr); }
  .smv-seller-cta { grid-template-columns:auto 1fr auto; padding:22px 28px; }
  .smv-seller-cta__actions { grid-column:auto; }
  .smv-footer__top { grid-template-columns:1.35fr 1fr 1fr; }
  .smv-footer__payments { grid-column:2/4; }
}

@media (min-width:960px) {
  .smv-header__main { grid-template-columns:210px minmax(420px,1fr) auto; min-height:76px; gap:18px; }
  .smv-search-row { padding:0; }
  .smv-action-link { width:auto; height:46px; padding:0 7px; gap:7px; }
  .smv-action-copy { display:block; }
  .smv-cart-count { right:2px; }
  .smv-topbar__desktop { display:inline-flex; }
  .smv-hero,.smv-hero__slide { min-height:420px; }
  .smv-hero__content { padding:55px 55px 62px; }
  .smv-hero__offer { display:block; }
  .smv-hero__visual { inset:0 10% 0 38%; }
  .smv-hero__visual img { width:min(66vw,760px); }
  .smv-rail-arrow { display:flex; }
  .smv-category-rail { grid-auto-flow:initial; grid-template-columns:repeat(10,minmax(0,1fr)); gap:11px; overflow:hidden; padding:0; }
  .smv-category-card__image { width:90px; height:90px; }
  .smv-category-card__name { font-size:9.5px; }
  .smv-promo-mosaic { grid-template-columns:1.15fr .85fr 1fr 1fr; gap:10px; }
  .smv-promo-tile { min-height:210px; }
  .smv-promo-tile__copy { width:62%; padding:20px 15px; }
  .smv-promo-tile h3 { font-size:18px; }
  .smv-promo-tile p { font-size:10px; }
  .smv-product-rail ul.products { grid-auto-columns:calc((100% - 40px)/5); gap:10px; }
  .smv-benefits { grid-template-columns:repeat(5,1fr); }
  .smv-footer { padding-bottom:0; }
  .smv-footer__top { grid-template-columns:1.35fr 1fr 1fr 1fr 1.25fr; gap:34px; }
  .smv-footer__payments { grid-column:auto; }
}

@media (min-width:1240px) {
  .smv-container { width:min(calc(100% - 72px),var(--smv-max)); }
  .smv-header__main { grid-template-columns:230px minmax(520px,1fr) auto; }
  .smv-search { max-width:780px; }
  .smv-action-link { padding:0 10px; }
  .smv-hero,.smv-hero__slide { min-height:430px; }
  .smv-hero__content { padding-left:64px; }
  .smv-category-card__image { width:104px; height:104px; }
  .smv-category-card__name { font-size:10.5px; }
  .smv-promo-tile { min-height:220px; }
}

@media (max-width:959px) {
  .smv-topbar__desktop { display:none !important; }
  .smv-header { position:sticky; top:0; }
  .admin-bar .smv-header { top:46px; }
}

@media (max-width:639px) {
  .smv-topbar { display:none; }
  .smv-header__main { padding-top:4px; }
  .smv-logo__text { font-size:17px; }
  .smv-search-row { padding-bottom:8px; }
  .smv-hero-wrap { padding-top:7px; }
  .smv-hero,.smv-hero__slide { min-height:320px; }
  .smv-hero__visual { opacity:.38; inset:0 0 0 18%; }
  .smv-hero__slide::after { background:linear-gradient(90deg,rgba(4,31,60,.98) 0%,rgba(4,40,74,.83) 68%,rgba(4,40,74,.48) 100%); }
  .smv-hero__content { padding:30px 22px 48px; max-width:92%; }
  .smv-hero h1,.smv-hero h2 { font-size:32px; max-width:320px; }
  .smv-hero p { font-size:13px; max-width:310px; }
  .smv-hero__arrows { display:none; }
  .smv-section { padding:19px 0; }
  .smv-section__title { font-size:20px; }
  .smv-section__link { font-size:10px; }
  .smv-promo-tile { min-height:170px; }
  .smv-promo-tile__copy { width:67%; padding:18px 14px; }
  .smv-promo-tile h3 { font-size:17px; }
  .smv-promo-tile p { font-size:10px; }
  .smv-product-rail ul.products { grid-auto-columns:minmax(168px,52vw); }
  .smv-footer__top { padding-bottom:18px; }
}

/* =========================================================
   V3 — Approved visual direction (16 Aug 2026 mockup)
   ========================================================= */
body.smv-v3 {
  --smv-v3-navy:#073b73;
  --smv-v3-navy-dark:#062d58;
  --smv-v3-navy-deep:#03284e;
  --smv-v3-blue:#0b4f8d;
  --smv-v3-orange:#ff7a0a;
  --smv-v3-bg:#fff;
  --smv-v3-soft:#f6f8fb;
  --smv-v3-line:#dfe7ef;
  --smv-v3-text:#082b50;
  --smv-v3-muted:#68788a;
  background:#fff;
  color:var(--smv-v3-text);
}
body.smv-v3 .smv-container {
  width:min(calc(100% - 70px), 1510px);
  max-width:none;
}
body.smv-v3 .smv-main { background:#fff; }
body.smv-v3 .smv-icon { stroke-width:1.9; }

/* Top utility bar */
.smv-v3-topbar { background:var(--smv-v3-navy-deep); min-height:30px; }
.smv-v3-topbar-inner { min-height:30px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.smv-v3-topbar-items { display:flex; align-items:center; gap:34px; min-width:0; overflow:hidden; white-space:nowrap; }
.smv-v3-topbar-items span,.smv-v3-topbar-items a,.smv-v3-help { color:#fff; font-size:11px; font-weight:650; display:inline-flex; align-items:center; gap:6px; }
.smv-v3-topbar-items .smv-icon,.smv-v3-help .smv-icon { width:15px; height:15px; }
.smv-v3-help { flex:0 0 auto; }
.smv-v3-help .smv-icon { transform:rotate(90deg); }

/* Header */
.smv-v3-header { position:sticky; top:0; z-index:1200; border-bottom:0; box-shadow:0 1px 0 rgba(9,48,84,.08); }
.admin-bar .smv-v3-header { top:32px; }
.smv-v3-header-main { min-height:70px; display:grid; grid-template-columns:210px minmax(420px,1fr) auto; align-items:center; gap:30px; }
.smv-v3-menu-toggle { display:none; }
.smv-v3-logo { grid-column:auto; grid-row:auto; }
.smv-v3-logo a { display:flex; align-items:center; }
.smv-v3-logo .custom-logo { height:44px; max-width:205px; object-fit:contain; }
.smv-v3-logo .smv-logo__text { font-size:24px; font-weight:850; letter-spacing:-.025em; color:#072f5f; white-space:nowrap; }
.smv-v3-search-row { grid-column:auto; grid-row:auto; padding:0; }
.smv-v3-search-row .smv-search {
  width:100%; max-width:760px; margin-inline:auto; min-height:42px; display:grid; grid-template-columns:165px minmax(0,1fr) 48px; border:1px solid #cdd8e4; border-radius:8px; overflow:hidden; background:#fff;
}
.smv-v3-search-row .smv-search select,.smv-v3-search-row .smv-search input { min-width:0; border:0; border-right:1px solid #dce4ec; background:#fff; color:#536477; font-size:12px; height:42px; padding:0 15px; outline:none; }
.smv-v3-search-row .smv-search select { color:#17395f; font-weight:650; }
.smv-v3-search-row .smv-search button { width:48px; height:42px; border:0; border-radius:0; background:#062f5f; color:#fff; display:grid; place-items:center; }
.smv-v3-search-row .smv-search button .smv-icon { width:20px; height:20px; }
.smv-v3-actions { grid-column:auto; grid-row:auto; display:flex; align-items:center; gap:18px; white-space:nowrap; }
.smv-v3-actions .smv-action-link { width:auto; min-width:auto; height:48px; display:flex; align-items:center; gap:8px; padding:0; color:#062f5f; background:transparent; }
.smv-v3-actions .smv-action-link:hover { background:transparent; color:var(--smv-v3-orange); }
.smv-v3-actions .smv-action-link > .smv-icon { width:24px; height:24px; }
.smv-v3-actions .smv-action-copy { display:block; line-height:1.05; }
.smv-v3-actions .smv-action-copy small { display:block; font-size:9px; color:#607188; }
.smv-v3-actions .smv-action-copy strong { display:block; font-size:10.5px; color:#062f5f; margin-top:2px; }
.smv-v3-cart-link { position:relative; }
.smv-v3-actions .smv-cart-count { position:absolute; top:2px; left:16px; min-width:18px; height:18px; padding:0 4px; border-radius:99px; background:var(--smv-v3-orange); color:#fff; font-size:9px; font-weight:850; display:grid; place-items:center; border:2px solid #fff; }

/* Desktop nav */
.smv-v3-nav { display:block; background:var(--smv-v3-navy); border-top:0; }
.smv-v3-nav-inner { min-height:44px; display:flex; align-items:stretch; gap:0; overflow:visible; }
.smv-v3-nav .smv-departments { min-width:215px; flex:0 0 215px; }
.smv-v3-nav .smv-departments__toggle { height:44px; min-height:44px; padding:0 15px; background:#0b5799; font-size:12px; font-weight:800; border-radius:0; }
.smv-v3-nav .smv-departments__toggle .smv-icon { width:18px; height:18px; }
.smv-v3-nav-menu { display:flex; align-items:stretch; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; }
.smv-v3-nav-menu::-webkit-scrollbar { display:none; }
.smv-v3-nav-menu a { height:44px; display:flex; align-items:center; flex:0 0 auto; padding:0 20px; color:#fff; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.01em; }
.smv-v3-nav-menu a:hover { background:rgba(255,255,255,.07); color:#fff; }
.smv-v3-nav .smv-nav-offers { margin-left:auto; height:44px; display:flex; align-items:center; gap:5px; padding:0 6px 0 18px; color:#ff8a16; font-size:11px; font-weight:850; white-space:nowrap; }
.smv-v3-nav .smv-nav-offers .smv-icon { width:16px; height:16px; }
.smv-v3-nav .smv-departments__panel { top:44px; width:min(1050px,calc(100vw - 70px)); }

/* Approved hero carousel — 3 real slides */
.smv-v3-home { background:#fff; }
.smv-v3-hero-wrap { padding:16px 0 7px; background:#fff; }
.smv-v3-hero { position:relative; display:block; border-radius:13px; overflow:hidden; background:#063b72; box-shadow:0 4px 14px rgba(7,49,91,.06); isolation:isolate; }
.smv-v3-hero-track { display:flex; width:100%; transition:transform .48s cubic-bezier(.22,.61,.36,1); will-change:transform; }
.smv-v3-hero-slide { position:relative; display:block; flex:0 0 100%; min-width:100%; }
.smv-v3-hero-slide picture,.smv-v3-hero-slide img { display:block; width:100%; }
.smv-v3-hero-slide img { height:auto; aspect-ratio:1970/522; object-fit:cover; }
.smv-v3-hero-control { position:absolute; z-index:4; top:50%; transform:translateY(-50%); width:58px; height:76px; border:0; border-radius:999px; background:transparent; padding:0; cursor:pointer; }
.smv-v3-hero-control--prev { left:0; }
.smv-v3-hero-control--next { right:0; }
.smv-v3-hero-control:focus-visible { outline:3px solid #fff; outline-offset:-8px; }
.smv-v3-hero-dots { position:absolute; z-index:5; left:50%; bottom:10px; transform:translateX(-50%); display:flex; align-items:center; gap:6px; min-height:16px; padding:2px 7px; border-radius:20px; background:rgba(1,34,65,.18); }
.smv-v3-hero-dots .smv-hero__dot { width:9px; height:9px; border:1px solid rgba(255,255,255,.75); background:rgba(214,226,237,.72); box-shadow:0 1px 3px rgba(0,0,0,.15); }
.smv-v3-hero-dots .smv-hero__dot.is-active { width:23px; background:#fff; border-color:#fff; }

/* Common section sizing */
.smv-v3-section { padding:13px 0; background:#fff; }
.smv-v3-section-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; }
.smv-v3-section-head h2 { margin:0; color:#082d58; font-size:20px; line-height:1.12; letter-spacing:-.02em; font-weight:850; }
.smv-v3-section-head > a { display:inline-flex; align-items:center; gap:4px; color:#07396d; font-size:9.5px; font-weight:800; white-space:nowrap; }
.smv-v3-section-head > a .smv-icon { width:14px; height:14px; }
.smv-v3-section-head--solo { justify-content:flex-start; }

/* Categories */
.smv-v3-categories { padding-top:8px; }
.smv-v3-rail-shell { position:relative; }
.smv-v3-category-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(92px,1fr); gap:13px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding:0 1px 3px; }
.smv-v3-category-rail::-webkit-scrollbar { display:none; }
.smv-v3-category { min-width:0; scroll-snap-align:start; text-align:center; color:#092d56; }
.smv-v3-category:hover { color:#092d56; transform:translateY(-2px); }
.smv-v3-category-image { width:92px; height:92px; margin:0 auto 8px; display:block; border-radius:50%; overflow:hidden; background:#f4f6f8; border:1px solid #d8e1e9; box-shadow:inset 0 0 0 3px #fff; }
.smv-v3-category-image img { width:100%; height:100%; object-fit:cover; display:block; }
.smv-v3-category-name { display:block; font-size:9.5px; line-height:1.18; font-weight:800; min-height:23px; }
.smv-v3-rail-arrow { position:absolute; z-index:3; top:50%; transform:translateY(-50%); width:30px; height:30px; border:1px solid #d8e3ed; border-radius:50%; background:#fff; color:#0a467f; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 3px 10px rgba(8,52,92,.08); }
.smv-v3-rail-arrow:first-child { left:-16px; }
.smv-v3-rail-arrow:last-child { right:-16px; }
.smv-v3-rail-arrow .smv-icon { width:16px; height:16px; }

/* Approved promo images */
.smv-v3-promos { padding-top:7px; }
.smv-v3-promo-grid { display:grid; grid-template-columns:1.05fr 1.05fr 1.05fr 1.16fr; gap:14px; }
.smv-v3-promo { display:block; border-radius:8px; overflow:hidden; border:1px solid #e2e9ef; background:#f8fafc; box-shadow:0 2px 8px rgba(7,49,91,.03); }
.smv-v3-promo img { display:block; width:100%; height:auto; aspect-ratio:1.48/1; object-fit:cover; }
.smv-v3-promo:hover { transform:translateY(-2px); box-shadow:0 10px 20px rgba(7,49,91,.08); }

/* Custom product rail */
.smv-v3-products-section { padding-top:14px; }
.smv-v3-product-shell { padding:0; }
.smv-v3-product-rail { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 56px)/5); gap:14px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; padding:1px 1px 3px; }
.smv-v3-product-rail::-webkit-scrollbar { display:none; }
.smv-v3-product-card { position:relative; min-width:0; scroll-snap-align:start; border:1px solid #dce5ed; border-radius:9px; background:#fff; overflow:hidden; box-shadow:none; transition:.18s ease; }
.smv-v3-product-card:hover { transform:translateY(-2px); border-color:#c9d7e4; box-shadow:0 10px 24px rgba(8,50,90,.08); }
.smv-v3-discount { position:absolute; z-index:2; top:8px; left:8px; min-width:36px; height:23px; padding:0 8px; border-radius:5px; background:var(--smv-v3-orange); color:#fff; font-size:10px; font-weight:850; display:flex; align-items:center; justify-content:center; }
.smv-v3-product-image { display:grid; place-items:center; height:205px; padding:16px 14px 2px; background:#fff; overflow:hidden; }
.smv-v3-product-image img { width:100%; height:100%; object-fit:contain; display:block; }
.smv-v3-product-body { padding:9px 12px 12px; }
.smv-v3-product-meta { min-height:13px; color:#526a82; font-size:7.5px; line-height:1.15; font-weight:750; text-transform:uppercase; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.smv-v3-product-card h3 { margin:5px 0 5px; min-height:36px; font-size:11.5px; line-height:1.3; font-weight:800; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.smv-v3-product-card h3 a { color:#0a2e53; }
.smv-v3-rating { min-height:16px; display:flex; align-items:center; gap:1px; font-size:10px; color:#cfd7df; }
.smv-v3-rating span.is-filled { color:#063e75; }
.smv-v3-rating small { margin-left:3px; color:#7a8999; font-size:8px; }
.smv-v3-price { min-height:26px; display:flex; align-items:baseline; gap:5px; position:relative; padding-right:48px; }
.smv-v3-price strong { color:#064a88; font-size:16px; font-weight:850; }
.smv-v3-price strong .woocommerce-Price-currencySymbol { font-size:.72em; vertical-align:1px; }
.smv-v3-price del { color:#8c99a6; font-size:8.5px; }
.smv-v3-price > span { position:absolute; right:0; bottom:4px; font-size:7.5px; font-weight:750; }
.smv-v3-price .is-in { color:#23904b; }
.smv-v3-price .is-out { color:#ba2b27; }
.smv-v3-product-actions { display:grid; grid-template-columns:minmax(0,1fr) 33px; gap:7px; margin-top:5px; }
.smv-v3-add-button { min-height:35px !important; border:0 !important; border-radius:6px !important; background:#073d75 !important; color:#fff !important; padding:7px 8px !important; font-size:9px !important; font-weight:800 !important; text-align:center !important; display:flex !important; align-items:center !important; justify-content:center !important; line-height:1.1 !important; }
.smv-v3-add-button:hover { background:#0a528f !important; color:#fff !important; }
.smv-v3-heart { width:33px; min-height:35px; border:1px solid #d7e1ea; border-radius:6px; display:grid; place-items:center; color:#0a477f; }
.smv-v3-heart .smv-icon { width:17px; height:17px; }
.smv-v3-heart:hover { color:#e97018; border-color:#f1bc8e; }

/* Benefits */
.smv-v3-benefits { background:#fff; padding-top:14px; }
.smv-v3-benefit-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.smv-v3-benefit-card { min-height:68px; padding:10px 13px; display:flex; align-items:center; gap:10px; border:1px solid #dce5ed; border-radius:9px; background:#fff; }
.smv-v3-benefit-icon { width:36px; height:36px; flex:0 0 36px; border-radius:7px; display:grid; place-items:center; background:#eef5fb; color:#075090; }
.smv-v3-benefit-icon .smv-icon { width:19px; height:19px; }
.smv-v3-benefit-card strong { display:block; color:#07396e; font-size:9px; line-height:1.18; }
.smv-v3-benefit-card small { display:block; margin-top:2px; color:#6f7d8b; font-size:7.4px; line-height:1.2; }

/* Brands */
.smv-v3-brands-section { padding-top:8px; }
.smv-v3-brand-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(120px,1fr); gap:10px; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x proximity; padding:1px; }
.smv-v3-brand-rail::-webkit-scrollbar { display:none; }
.smv-v3-brand { min-height:55px; scroll-snap-align:start; border:1px solid #dce5ed; border-radius:8px; background:#fff; display:flex; align-items:center; justify-content:center; padding:8px 12px; color:#111; font-size:13px; font-weight:900; text-align:center; letter-spacing:-.02em; }
.smv-v3-brand:hover { color:#111; border-color:#c5d4e1; box-shadow:0 6px 14px rgba(7,49,91,.06); }
.smv-v3-brand--corona { color:#19548a; text-transform:lowercase; font-size:15px; }
.smv-v3-brand--sur { background:#fff; color:#e7332d; text-shadow:0 1px #ffda00; }
.smv-v3-brand--blackdecker { color:#ff4c16; }
.smv-v3-brand--rimax { color:#113a79; background:linear-gradient(#fff,#fff) padding-box; }
.smv-v3-brand--more { color:#062f5f; }

/* Seller CTA */
.smv-v3-seller-section { padding:9px 0 16px; }
.smv-v3-seller { min-height:82px; padding:13px 20px; border-radius:9px; background:linear-gradient(100deg,#063566 0%,#074b86 100%); color:#fff; display:grid; grid-template-columns:54px minmax(0,1fr) auto; align-items:center; gap:14px; }
.smv-v3-seller-icon { width:48px; height:48px; border:2px solid rgba(255,255,255,.5); border-radius:9px; display:grid; place-items:center; }
.smv-v3-seller-icon .smv-icon { width:30px; height:30px; }
.smv-v3-seller-copy h2 { margin:0 0 2px; color:#fff; font-size:16px; line-height:1.08; font-weight:850; }
.smv-v3-seller-copy p { margin:0; color:rgba(255,255,255,.88); font-size:8.5px; line-height:1.25; }
.smv-v3-seller-actions { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.smv-v3-seller-button { min-width:240px; min-height:38px; padding:8px 15px; border-radius:7px; background:var(--smv-v3-orange); color:#fff; display:flex; align-items:center; justify-content:center; gap:9px; font-size:10px; font-weight:850; }
.smv-v3-seller-button:hover { background:#ff8d2a; color:#fff; }
.smv-v3-seller-button .smv-icon,.smv-v3-seller-more .smv-icon { width:13px; height:13px; }
.smv-v3-seller-more { color:#fff; font-size:8px; display:flex; align-items:center; gap:3px; }
.smv-v3-seller-more:hover { color:#fff; text-decoration:underline; }

/* Footer */
.smv-v3-footer { background:#063a70; color:#e8f1f8; padding:0; }
.smv-v3-footer-grid { padding:34px 0 27px; display:grid; grid-template-columns:1.32fr 1fr 1fr 1fr 1.55fr; gap:44px; }
.smv-v3-footer h2 { margin:0 0 14px; color:#fff; font-size:15px; line-height:1.2; font-weight:850; }
.smv-v3-footer-brand h2 { font-size:24px; margin-bottom:9px; letter-spacing:-.02em; }
.smv-v3-footer p { margin:0 0 14px; color:#d8e5f1; font-size:12px; line-height:1.45; }
.smv-v3-footer-brand strong { display:block; margin:15px 0 10px; color:#fff; font-size:12px; }
.smv-v3-footer ul { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.smv-v3-footer li,.smv-v3-footer li a { color:#eef5fa; font-size:12.5px; line-height:1.3; }
.smv-v3-footer li a:hover { color:#fff; text-decoration:underline; }
.smv-v3-footer .smv-socials { gap:10px; display:flex; flex-wrap:wrap; }
.smv-v3-footer .smv-socials a { width:39px; height:39px; border:1.5px solid rgba(255,255,255,.78); border-radius:50%; color:#fff; display:grid; place-items:center; transition:.18s ease; }
.smv-v3-footer .smv-socials a:hover { background:#fff; color:#063a70; transform:translateY(-1px); }
.smv-v3-footer .smv-socials .smv-icon { width:20px; height:20px; }
.smv-v3-payments h3 { margin:20px 0 10px; color:#fff; font-size:13px; font-weight:800; }
.smv-v3-payment-row { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.smv-v3-payment-gateway,.smv-v3-payment-logo { min-width:72px; height:43px; padding:6px 10px; border-radius:6px; background:#fff; color:#153a65; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 0 rgba(255,255,255,.18),0 3px 8px rgba(0,0,0,.08); overflow:hidden; }
.smv-v3-payment-gateway img { display:block !important; width:auto !important; max-width:118px !important; height:auto !important; max-height:30px !important; margin:0 !important; float:none !important; }
.smv-v3-payment-logo svg { display:block; width:auto; height:29px; max-width:98px; }
.smv-v3-payment-logo--visa { min-width:88px; }
.smv-v3-payment-logo--mc { min-width:88px; }
.smv-v3-payment-logo--visa svg { width:74px; height:28px; }
.smv-v3-payment-logo--mc svg { width:72px; height:34px; }
.smv-v3-payment-logo--amex svg { height:32px; }
.smv-v3-security { display:flex; flex-direction:column; align-items:flex-start; gap:9px; color:#fff; }
.smv-v3-security span { font-size:11.5px; line-height:1.3; display:flex; align-items:center; gap:7px; color:#eef5fa; }
.smv-v3-security .smv-icon { width:18px; height:18px; flex:0 0 18px; }
.smv-v3-footer-bottom { min-height:49px; border-top:1px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:space-between; gap:15px; color:#d9e4ef; font-size:10.5px; }
.smv-v3-footer-bottom b { color:#ff5a63; }

/* Remove legacy/home/plugin leftovers that spoiled v2 visually */
body.smv-v3.smv-is-home .smv-home-content,
body.smv-v3.smv-is-home .wcfmmp-store-dashboard,
body.smv-v3.smv-is-home .wcfm-dashboard-page,
body.smv-v3.smv-is-home .wcfm-container,
body.smv-v3.smv-is-home .job_listings,
body.smv-v3.smv-is-home .wp-job-manager-bookmarks-form,
body.smv-v3.smv-is-home .compare,
body.smv-v3.smv-is-home .woosc-btn,
body.smv-v3.smv-is-home .wooscp-btn,
body.smv-v3.smv-is-home .wcfm_buttons,
body.smv-v3.smv-is-home .dokan-product-edit,
body.smv-v3.smv-is-home .product-edit-link { display:none !important; }

/* Mobile-first adaptation: maintain same visual language, not a shrunken desktop page. */
@media (max-width:1199px) {
  body.smv-v3 .smv-container { width:min(calc(100% - 36px), 1510px); }
  .smv-v3-header-main { grid-template-columns:180px minmax(320px,1fr) auto; gap:16px; }
  .smv-v3-actions { gap:11px; }
  .smv-v3-actions .smv-action-copy { display:none; }
  .smv-v3-actions .smv-action-link { width:34px; justify-content:center; }
  .smv-v3-search-row .smv-search { max-width:none; }
  .smv-v3-nav-menu a { padding:0 13px; font-size:9px; }
  .smv-v3-promo-grid { gap:9px; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 42px)/4); }
}

@media (max-width:959px) {
  .admin-bar .smv-v3-header { top:46px; }
  .smv-v3-topbar-items { gap:20px; overflow-x:auto; scrollbar-width:none; }
  .smv-v3-topbar-items::-webkit-scrollbar { display:none; }
  .smv-v3-topbar-items span:nth-child(n+3),.smv-v3-topbar-items a { display:none; }
  .smv-v3-help { display:none; }
  .smv-v3-header-main { min-height:64px; grid-template-columns:44px minmax(150px,1fr) auto; grid-template-rows:56px auto; gap:4px 8px; padding-top:3px; padding-bottom:9px; }
  .smv-v3-menu-toggle { display:flex; grid-column:1; grid-row:1; }
  .smv-v3-logo { grid-column:2; grid-row:1; justify-content:flex-start; }
  .smv-v3-logo .smv-logo__text { font-size:20px; }
  .smv-v3-actions { grid-column:3; grid-row:1; gap:3px; }
  .smv-v3-actions .smv-action-link:nth-child(2) { display:none; }
  .smv-v3-search-row { grid-column:1/-1; grid-row:2; }
  .smv-v3-search-row .smv-search { grid-template-columns:130px minmax(0,1fr) 46px; }
  .smv-v3-nav { display:none; }
  .smv-v3-hero-wrap { padding-top:10px; }
  .smv-v3-category-rail { grid-auto-columns:105px; gap:14px; }
  .smv-v3-promo-grid { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; gap:10px; }
  .smv-v3-promo-grid::-webkit-scrollbar { display:none; }
  .smv-v3-promo { flex:0 0 44%; scroll-snap-align:start; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 24px)/3); gap:12px; }
  .smv-v3-benefit-grid { grid-template-columns:repeat(3,1fr); }
  .smv-v3-seller { grid-template-columns:48px minmax(0,1fr); }
  .smv-v3-seller-actions { grid-column:1/-1; align-items:stretch; }
  .smv-v3-seller-button { min-width:0; }
  .smv-v3-footer { padding-bottom:70px; }
  .smv-v3-footer-grid { grid-template-columns:1.1fr 1fr 1fr; gap:24px; }
  .smv-v3-payments { grid-column:2/4; }
}

@media (max-width:639px) {
  body.smv-v3 .smv-container { width:calc(100% - 22px); }
  .smv-v3-topbar { display:block; min-height:27px; }
  .smv-v3-topbar-inner { min-height:27px; }
  .smv-v3-topbar-items span { font-size:9px; }
  .smv-v3-topbar-items span:nth-child(2) { display:none; }
  .smv-v3-header-main { grid-template-columns:40px minmax(120px,1fr) auto; grid-template-rows:50px auto; }
  .smv-v3-logo .smv-logo__text { font-size:18px; }
  .smv-v3-actions .smv-action-link { width:32px; }
  .smv-v3-actions .smv-action-link > .smv-icon { width:21px; height:21px; }
  .smv-v3-actions .smv-action-link:first-child { display:none; }
  .smv-v3-search-row .smv-search { grid-template-columns:minmax(0,1fr) 44px; min-height:42px; border-radius:7px; }
  .smv-v3-search-row .smv-search select { display:none; }
  .smv-v3-search-row .smv-search input { border-right:1px solid #dce4ec; font-size:12px; }
  .smv-v3-hero-wrap { padding:8px 0 3px; }
  .smv-v3-hero { border-radius:10px; }
  .smv-v3-hero img { aspect-ratio:760/710; object-fit:cover; }
  .smv-v3-section { padding:12px 0; }
  .smv-v3-section-head { margin-bottom:10px; }
  .smv-v3-section-head h2 { font-size:18px; }
  .smv-v3-section-head > a { font-size:9px; }
  .smv-v3-category-rail { grid-auto-columns:92px; gap:11px; }
  .smv-v3-category-image { width:80px; height:80px; }
  .smv-v3-category-name { font-size:9px; }
  .smv-v3-rail-arrow { display:none; }
  .smv-v3-promo { flex-basis:76%; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 10px)/2); gap:10px; }
  .smv-v3-product-image { height:155px; padding:12px 9px 2px; }
  .smv-v3-product-body { padding:8px 9px 10px; }
  .smv-v3-product-card h3 { font-size:10.5px; min-height:34px; }
  .smv-v3-product-meta { font-size:7px; }
  .smv-v3-price strong { font-size:15px; }
  .smv-v3-add-button { min-height:34px !important; font-size:8.5px !important; }
  .smv-v3-benefit-grid { display:flex; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; gap:8px; }
  .smv-v3-benefit-grid::-webkit-scrollbar { display:none; }
  .smv-v3-benefit-card { flex:0 0 74%; scroll-snap-align:start; }
  .smv-v3-brand-rail { grid-auto-columns:105px; gap:8px; }
  .smv-v3-brand { min-height:49px; font-size:11px; }
  .smv-v3-seller { padding:14px; grid-template-columns:42px minmax(0,1fr); gap:10px; }
  .smv-v3-seller-icon { width:42px; height:42px; }
  .smv-v3-seller-copy h2 { font-size:15px; }
  .smv-v3-seller-copy p { font-size:8px; }
  .smv-v3-seller-button { min-height:40px; font-size:10px; }
  .smv-v3-footer-grid { grid-template-columns:1fr 1fr; gap:24px 16px; padding-top:24px; }
  .smv-v3-footer-brand { grid-column:1/-1; }
  .smv-v3-payments { grid-column:1/-1; }
  .smv-v3-footer-bottom { padding:10px 0 14px; flex-direction:column; align-items:flex-start; }
}

/* ========================================================================== 
   SIVAR MARKET 1.0 — visual adaptation of the approved Fast Shop v3.2 system
   ========================================================================== */
:root {
  --smv-primary:#063b73;
  --smv-primary-2:#0c5aa4;
  --smv-accent:#f58220;
  --smv-accent-2:#ffb14f;
  --smv-market-sky:#23a7e8;
  --smv-market-cream:#fff8eb;
  --smv-market-red:#e84b3c;
  --smv-market-green:#2a8a58;
}

/* Hero: same footprint, behavior and hierarchy as v3.2, with live catalog imagery. */
.smv-market-hero { min-height:390px; background:#063b73; }
.smv-market-hero .smv-v3-hero-track { min-height:390px; }
.smv-market-hero-slide {
  position:relative; min-height:390px; display:grid; grid-template-columns:minmax(0, .9fr) minmax(480px, 1.1fr);
  overflow:hidden; color:#fff; isolation:isolate;
  background:
    radial-gradient(circle at 78% 15%,rgba(41,171,240,.28),transparent 30%),
    linear-gradient(116deg,#042b55 0%,#064986 55%,#0b70b9 100%);
}
.smv-market-hero-slide--warm { background:radial-gradient(circle at 80% 18%,rgba(255,201,113,.28),transparent 30%),linear-gradient(116deg,#30204f 0%,#8c3b4e 54%,#f08035 100%); }
.smv-market-hero-slide--sunset { background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.18),transparent 28%),linear-gradient(116deg,#073b69 0%,#0b659c 50%,#18a2bc 100%); }
.smv-market-hero-slide::after {
  content:""; position:absolute; inset:0; z-index:-1; opacity:.35; pointer-events:none;
  background-image:linear-gradient(125deg,transparent 0 38%,rgba(255,255,255,.08) 38% 39%,transparent 39% 49%,rgba(255,255,255,.05) 49% 50%,transparent 50%);
}
.smv-market-hero-link { position:absolute; inset:0; z-index:1; }
.smv-market-hero-copy { position:relative; z-index:2; align-self:center; padding:52px 20px 52px 72px; max-width:720px; pointer-events:none; }
.smv-market-eyebrow { display:inline-flex; align-items:center; min-height:28px; padding:5px 11px; margin-bottom:13px; border:1px solid rgba(255,255,255,.35); border-radius:999px; background:rgba(255,255,255,.12); font-size:12px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.smv-market-hero-copy h2 { margin:0 0 13px; max-width:620px; color:#fff; font-size:clamp(37px,4vw,62px); line-height:.98; letter-spacing:-.045em; font-weight:900; }
.smv-market-hero-copy h2 em { color:#ff8b21; font-style:normal; }
.smv-market-hero-copy p { margin:0 0 20px; max-width:540px; color:#f1f7fc; font-size:18px; line-height:1.36; }
.smv-market-trust { display:flex; flex-wrap:wrap; gap:13px 21px; margin:0 0 20px; font-size:12px; font-weight:700; }
.smv-market-trust span { display:inline-flex; align-items:center; gap:6px; }
.smv-market-trust .smv-icon { width:18px; height:18px; }
.smv-market-hero-button { display:inline-flex; align-items:center; gap:8px; min-height:46px; padding:0 18px; border-radius:8px; background:#ff7a16; color:#fff; font-size:15px; font-weight:900; box-shadow:0 7px 18px rgba(0,0,0,.18); }
.smv-market-hero-button .smv-icon { width:18px; height:18px; }
.smv-market-hero-visual { position:relative; z-index:2; min-height:390px; pointer-events:none; }
.smv-hero-collage { position:absolute; inset:20px 55px 20px 12px; }
.smv-hero-product { position:absolute; object-fit:contain; filter:drop-shadow(0 18px 16px rgba(0,0,0,.28)); transform-origin:center; }
.smv-hero-product--1 { width:36%; height:62%; right:29%; top:8%; transform:rotate(-3deg); z-index:4; }
.smv-hero-product--2 { width:32%; height:55%; right:2%; top:10%; transform:rotate(7deg); z-index:3; }
.smv-hero-product--3 { width:31%; height:49%; right:44%; bottom:1%; transform:rotate(4deg); z-index:5; }
.smv-hero-product--4 { width:26%; height:43%; right:16%; bottom:2%; transform:rotate(-5deg); z-index:6; }
.smv-hero-empty { position:absolute; inset:0; display:grid; place-items:center; font-size:150px; opacity:.85; }
.smv-market-hero-badge { position:absolute; z-index:7; right:32px; top:34px; min-width:148px; padding:16px 14px; border-radius:12px; background:#ff6e15; color:#fff; text-align:center; font-weight:850; font-size:13px; line-height:1.02; box-shadow:0 14px 30px rgba(0,0,0,.16); }
.smv-market-hero-badge strong { display:block; margin:4px 0; font-size:28px; }
.smv-market-flag { position:absolute; right:35px; bottom:30px; width:132px; height:48px; overflow:hidden; border-radius:7px; opacity:.92; box-shadow:0 4px 14px rgba(0,0,0,.16); }
.smv-market-flag i { display:block; height:33.333%; }
.smv-market-flag i:nth-child(1),.smv-market-flag i:nth-child(3){ background:#0759a6; }
.smv-market-flag i:nth-child(2){ background:#fff; }
.smv-market-hero .smv-v3-hero-control { width:52px; height:52px; top:50%; border-radius:50%; background:#fff; box-shadow:0 4px 16px rgba(1,31,61,.2); }
.smv-market-hero .smv-v3-hero-control::before { content:""; position:absolute; left:18px; top:17px; width:12px; height:12px; border-top:2px solid #083a6b; border-right:2px solid #083a6b; }
.smv-market-hero .smv-v3-hero-control--prev { left:12px; }
.smv-market-hero .smv-v3-hero-control--prev::before { transform:rotate(-135deg); left:21px; }
.smv-market-hero .smv-v3-hero-control--next { right:12px; }
.smv-market-hero .smv-v3-hero-control--next::before { transform:rotate(45deg); }

/* Category visuals: preserve the v3.2 circular rail, prefer real WooCommerce images. */
.smv-v3-category-image { background:linear-gradient(145deg,#fff,#f0f5f9); display:grid; place-items:center; }
.smv-v3-category-image img { object-fit:contain; padding:5px; background:#fff; }
.smv-food-icon { width:52px; height:52px; color:#0a5597; }

/* Promotional cards: same 4-column rhythm as approved theme, but driven by live products. */
.smv-market-promo { min-height:205px; display:grid; grid-template-columns:1.02fr .98fr; align-items:stretch; position:relative; padding:0; overflow:hidden; }
.smv-market-promo-copy { padding:20px 7px 18px 20px; position:relative; z-index:2; }
.smv-market-promo-copy small { display:inline-flex; margin-bottom:8px; padding:4px 7px; border-radius:5px; background:#ff7d17; color:#fff; font-size:9px; font-weight:900; letter-spacing:.04em; }
.smv-market-promo-copy h3 { margin:0 0 7px; color:#073661; font-size:20px; line-height:1.02; letter-spacing:-.025em; }
.smv-market-promo-copy p { margin:0 0 14px; color:#526274; font-size:12px; line-height:1.35; }
.smv-market-promo-copy span { display:inline-flex; padding:8px 11px; border:1px solid #9fb6ca; border-radius:6px; background:#fff; color:#073661; font-size:11px; font-weight:800; }
.smv-market-promo-media { position:relative; min-width:0; display:flex; align-items:flex-end; justify-content:center; padding:12px 8px 0; }
.smv-promo-product-image { width:100%; height:185px !important; object-fit:contain !important; filter:drop-shadow(0 10px 9px rgba(5,43,78,.14)); }
.smv-promo-fallback { align-self:center; font-size:80px; }
.smv-market-promo--orange { background:linear-gradient(135deg,#082f5c 0 47%,#f6f8fa 47%); }
.smv-market-promo--orange .smv-market-promo-copy h3,.smv-market-promo--orange .smv-market-promo-copy p { color:#fff; }
.smv-market-promo--cream { background:linear-gradient(135deg,#fff8e9,#fff); }
.smv-market-promo--blue { background:linear-gradient(135deg,#f0f8ff,#fff); }
.smv-market-promo--green { background:linear-gradient(135deg,#f0fbf5,#fff); }
.smv-market-promo--green .smv-market-promo-copy small { background:#278856; }
.smv-market-promo--blue .smv-market-promo-copy small { background:#0a5fa8; }

/* Product images on food catalog need clean white framing rather than hard-crop photography. */
.smv-v3-product-image img { object-fit:contain !important; padding:7px; background:#fff; }
.smv-v3-product-card { background:#fff; }
.smv-v3-product-meta { color:#405d78; }

/* Brand rail: neutral so each text brand is readable until real taxonomy art exists. */
.smv-v3-brand { text-transform:none; font-size:12px; color:#0a2f56; }
.smv-v3-brand--diana { color:#c61d23; }
.smv-v3-brand--sinai { color:#80552a; }
.smv-v3-brand--kolashanpan { color:#ef6b1d; }
.smv-v3-brand--bocadeli { color:#e1452c; }
.smv-v3-brand--maseca { color:#1b5aa5; }

/* Seller strip copy stays exactly as powerful as v3.2. */
.smv-v3-seller { background:linear-gradient(95deg,#073763,#0d5792); }
.smv-v3-seller-button { background:#ff7a16; }

/* Mobile adaptation keeps touch targets and two-column product behavior from v3.2. */
@media (max-width: 1023px) {
  .smv-market-hero-slide { grid-template-columns:1fr 1fr; min-height:350px; }
  .smv-market-hero .smv-v3-hero-track { min-height:350px; }
  .smv-market-hero-copy { padding:38px 10px 40px 55px; }
  .smv-market-hero-copy h2 { font-size:42px; }
  .smv-market-hero-copy p { font-size:15px; }
  .smv-market-trust { gap:9px 12px; }
  .smv-market-hero-badge { right:18px; top:22px; min-width:115px; font-size:10px; }
  .smv-market-hero-badge strong { font-size:22px; }
  .smv-market-flag { right:20px; bottom:20px; width:100px; height:37px; }
  .smv-market-promo { min-height:190px; }
  .smv-promo-product-image { height:165px !important; }
}
@media (max-width: 767px) {
  .smv-market-hero { min-height:560px; }
  .smv-market-hero .smv-v3-hero-track { min-height:560px; }
  .smv-market-hero-slide { min-height:560px; grid-template-columns:1fr; grid-template-rows:auto 270px; }
  .smv-market-hero-copy { padding:34px 30px 12px; max-width:none; text-align:left; }
  .smv-market-eyebrow { font-size:9px; min-height:24px; }
  .smv-market-hero-copy h2 { max-width:430px; font-size:38px; line-height:1.01; }
  .smv-market-hero-copy p { font-size:14px; max-width:470px; }
  .smv-market-trust { font-size:9px; margin-bottom:15px; }
  .smv-market-hero-button { min-height:42px; font-size:13px; }
  .smv-market-hero-visual { min-height:270px; }
  .smv-hero-collage { inset:0 25px 5px; }
  .smv-hero-product--1 { width:38%; height:64%; right:35%; top:0; }
  .smv-hero-product--2 { width:32%; height:55%; right:5%; top:8%; }
  .smv-hero-product--3 { width:31%; height:48%; right:48%; bottom:0; }
  .smv-hero-product--4 { width:27%; height:43%; right:18%; bottom:0; }
  .smv-market-hero-badge { top:6px; right:10px; min-width:94px; padding:10px 8px; font-size:8px; }
  .smv-market-hero-badge strong { font-size:18px; }
  .smv-market-flag { display:none; }
  .smv-market-hero .smv-v3-hero-control { width:40px; height:40px; top:55%; }
  .smv-market-hero .smv-v3-hero-control::before { left:13px; top:12px; width:11px; height:11px; }
  .smv-market-hero .smv-v3-hero-control--prev::before { left:16px; }
  .smv-market-hero .smv-v3-hero-control--prev { left:5px; }
  .smv-market-hero .smv-v3-hero-control--next { right:5px; }
  .smv-market-promo { min-height:220px; grid-template-columns:1.05fr .95fr; }
  .smv-market-promo-copy { padding:17px 4px 16px 16px; }
  .smv-market-promo-copy h3 { font-size:18px; }
  .smv-promo-product-image { height:185px !important; }
}
@media (max-width: 479px) {
  .smv-market-hero { min-height:540px; }
  .smv-market-hero .smv-v3-hero-track { min-height:540px; }
  .smv-market-hero-slide { min-height:540px; grid-template-rows:auto 245px; }
  .smv-market-hero-copy { padding:28px 24px 6px; }
  .smv-market-hero-copy h2 { font-size:33px; }
  .smv-market-hero-copy p { font-size:13px; }
  .smv-market-trust span:nth-child(2) { display:none; }
  .smv-market-promo { min-height:205px; }
  .smv-market-promo-copy h3 { font-size:16px; }
  .smv-market-promo-copy p { font-size:10px; }
  .smv-promo-product-image { height:165px !important; }
}
/* Specificity guards against the original image-based hero rules inherited from v3.2. */
.smv-market-hero-slide img.smv-hero-product { position:absolute; display:block; max-width:none; aspect-ratio:auto !important; object-fit:contain !important; }
.smv-market-hero-slide .smv-hero-product--1 { width:36%; height:62%; }
.smv-market-hero-slide .smv-hero-product--2 { width:32%; height:55%; }
.smv-market-hero-slide .smv-hero-product--3 { width:31%; height:49%; }
.smv-market-hero-slide .smv-hero-product--4 { width:26%; height:43%; }
.smv-market-promo img.smv-promo-product-image { aspect-ratio:auto !important; object-fit:contain !important; }
@media (max-width:767px){
  .smv-market-hero-slide .smv-hero-product--1 { width:38%; height:64%; }
  .smv-market-hero-slide .smv-hero-product--2 { width:32%; height:55%; }
  .smv-market-hero-slide .smv-hero-product--3 { width:31%; height:48%; }
  .smv-market-hero-slide .smv-hero-product--4 { width:27%; height:43%; }
}


/* =========================================================
   V1.1 — Mobile containment / WooCommerce product-page fix
   Prevents long titles, descriptions, blocks and plugin output
   from expanding the viewport on phones.
   ========================================================= */
/* Do not turn html/body into an overflow container.
   Some Android browsers stop wheel/touch page scrolling when overflow-x:hidden
   is forced on both scrolling roots. Horizontal containment is applied to
   theme wrappers instead. */
html {
  overflow-y: auto;
}
body {
  overflow-y: visible;
  max-width: 100%;
}
.smv-main,
.smv-header,
.smv-footer {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .smv-main,
  .smv-header,
  .smv-footer {
    overflow-x: hidden;
  }
}

.smv-main,
.smv-shop-shell,
.smv-shop-main,
.smv-content,
.woocommerce,
.woocommerce-page,
.woocommerce div.product,
.woocommerce div.product div.images,
.woocommerce div.product div.summary,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-Tabs-panel,
.smv-entry-content {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* User/editor content must never force the site wider than the viewport. */
.smv-entry-content,
.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs .panel {
  overflow-wrap: anywhere;
  word-break: normal;
}

.smv-entry-content > *,
.woocommerce div.product .summary > *,
.woocommerce div.product .woocommerce-tabs .panel > * {
  max-width: 100%;
}

.smv-entry-content .alignwide,
.smv-entry-content .alignfull,
.woocommerce div.product .woocommerce-tabs .alignwide,
.woocommerce div.product .woocommerce-tabs .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.smv-entry-content img,
.smv-entry-content video,
.smv-entry-content iframe,
.smv-entry-content svg,
.woocommerce div.product .summary img,
.woocommerce div.product .woocommerce-tabs .panel img,
.woocommerce div.product .woocommerce-tabs .panel video,
.woocommerce div.product .woocommerce-tabs .panel iframe,
.woocommerce div.product .woocommerce-tabs .panel svg {
  max-width: 100% !important;
  height: auto;
}

.smv-entry-content pre,
.smv-entry-content code,
.woocommerce div.product .woocommerce-tabs .panel pre,
.woocommerce div.product .woocommerce-tabs .panel code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.smv-entry-content table,
.woocommerce div.product .woocommerce-tabs .panel table {
  max-width: 100% !important;
}

@media (max-width: 767px) {
  .smv-shop-shell {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 14px auto 42px !important;
  }

  /* Force the WooCommerce single-product two-column desktop layout to stack. */
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce-page div.product div.images,
  .woocommerce-page div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    clear: both !important;
  }

  .woocommerce div.product div.images {
    margin-bottom: 20px !important;
  }

  .woocommerce div.product .product_title {
    margin: 0 0 12px !important;
    max-width: 100% !important;
    font-size: clamp(24px, 7.3vw, 32px) !important;
    line-height: 1.14 !important;
    letter-spacing: -.02em !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;
  }

  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .woocommerce div.product form.cart,
  .woocommerce div.product form.cart .variations_button {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .woocommerce div.product form.cart .variations,
  .woocommerce div.product form.cart .variations tbody,
  .woocommerce div.product form.cart .variations tr,
  .woocommerce div.product form.cart .variations th,
  .woocommerce div.product form.cart .variations td {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }

  .woocommerce div.product form.cart select,
  .woocommerce div.product form.cart input,
  .woocommerce div.product form.cart textarea {
    max-width: 100% !important;
  }

  .woocommerce div.product .woocommerce-tabs {
    width: 100% !important;
    margin-top: 24px !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1.68 !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel h2,
  .woocommerce div.product .woocommerce-tabs .panel .wp-block-heading {
    max-width: 100% !important;
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.18 !important;
    letter-spacing: -.02em !important;
    overflow-wrap: anywhere !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel h3 {
    max-width: 100% !important;
    font-size: clamp(20px, 5.8vw, 26px) !important;
    line-height: 1.22 !important;
    overflow-wrap: anywhere !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel p,
  .woocommerce div.product .woocommerce-tabs .panel li {
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.68 !important;
    overflow-wrap: anywhere !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel table,
  .smv-entry-content table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Related/up-sell products: two genuinely responsive columns, no viewport spill. */
  .woocommerce .related.products,
  .woocommerce .up-sells.products,
  .woocommerce .cross-sells {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }

  .woocommerce .related.products ul.products,
  .woocommerce .up-sells.products ul.products,
  .woocommerce .cross-sells ul.products {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .woocommerce .related.products ul.products li.product,
  .woocommerce .up-sells.products ul.products li.product,
  .woocommerce .cross-sells ul.products li.product {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product .smv-loop-meta,
  .woocommerce ul.products li.product .smv-loop-stock {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Footer columns also stay inside the phone width. */
  .smv-v3-footer-grid > section,
  .smv-v3-footer li,
  .smv-v3-footer p,
  .smv-v3-footer a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .woocommerce div.product .product_title {
    font-size: 25px !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel h2,
  .woocommerce div.product .woocommerce-tabs .panel .wp-block-heading {
    font-size: 24px !important;
  }

  .woocommerce div.product .woocommerce-tabs .panel p,
  .woocommerce div.product .woocommerce-tabs .panel li {
    font-size: 15.5px !important;
  }
}


/* =========================================================
   V1.2 — Mobile responsiveness / rendering performance
   Keeps the approved visual design while reducing GPU work.
   ========================================================= */
.smv-v3-hero-track { will-change:auto; }
.smv-v3-hero-track.is-animating { will-change:transform; }
.smv-deferred-image { opacity:0; }

/* Skip painting deep below-the-fold sections until needed. */
@supports (content-visibility:auto) {
  .smv-v3-products-section,
  .smv-v3-benefits,
  .smv-v3-brands,
  .smv-v3-seller,
  .smv-v3-footer {
    content-visibility:auto;
    contain-intrinsic-size:auto 420px;
  }
}

@media (max-width: 767px) {
  /* CSS drop-shadow on multiple moving transparent product images is costly
     on mid-range phones. The visual remains clean without GPU filters. */
  .smv-hero-product,
  .smv-promo-product-image {
    filter:none !important;
  }

  .smv-v3-hero-track {
    transition-duration:.34s !important;
  }

  /* Disable desktop-only hover work on touch layouts. */
  .smv-v3-product-card,
  .smv-v3-promo,
  .smv-v3-brand {
    transition:none !important;
  }

  .smv-v3-header {
    box-shadow:0 1px 0 rgba(9,48,84,.08) !important;
  }
}

@media (hover:none) and (pointer:coarse) {
  .smv-v3-product-card:hover,
  .smv-v3-promo:hover,
  .smv-v3-brand:hover,
  .woocommerce ul.products li.product:hover {
    transform:none !important;
    box-shadow:none !important;
  }
}


/* =========================================================
   V1.3 — Native page scrolling recovery
   Keeps the browser document as the vertical scroll container.
   ========================================================= */
html, body {
  height: auto !important;
  min-height: 100%;
}
body {
  position: static !important;
  overscroll-behavior-y: auto;
  touch-action: auto;
}
.smv-main {
  position: relative;
  min-height: 1px;
  touch-action: auto;
}
.smv-v3-hero,
.smv-market-hero,
.smv-category-rail,
.smv-v3-category-rail,
.smv-v3-product-rail,
.smv-v3-brand-rail,
.smv-scroll-rail {
  touch-action: pan-x pan-y;
}
@media (max-width: 767px) {
  .smv-section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
  .smv-header {
    /* Sticky remains usable but no fixed full-screen layer is created. */
    position: sticky;
  }
}


/* =========================================================
   V1.4 — Single product mobile layout hardening
   Fixes WooCommerce product pages that were wider than the
   phone viewport while leaving the approved home untouched.
   ========================================================= */
body.single-product .smv-main,
body.single-product .smv-shop-shell,
body.single-product .smv-shop-main,
body.single-product .woocommerce,
body.single-product .woocommerce-page,
body.single-product .product,
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .summary,
body.single-product .woocommerce-tabs,
body.single-product .wc-tabs-wrapper,
body.single-product .woocommerce-Tabs-panel,
body.single-product .related,
body.single-product .up-sells {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.single-product .smv-shop-shell {
  overflow: visible !important;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after {
  content: "";
  display: table;
  clear: both;
}

body.single-product .product_title,
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description *,
body.single-product .product_meta,
body.single-product .product_meta *,
body.single-product .woocommerce-tabs .panel,
body.single-product .woocommerce-tabs .panel *,
body.single-product .related.products,
body.single-product .related.products * {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.single-product .product_title,
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-product-details__short-description p,
body.single-product .woocommerce-product-details__short-description li,
body.single-product .product_meta,
body.single-product .product_meta span,
body.single-product .product_meta a,
body.single-product .woocommerce-tabs .panel h1,
body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-tabs .panel h3,
body.single-product .woocommerce-tabs .panel h4,
body.single-product .woocommerce-tabs .panel h5,
body.single-product .woocommerce-tabs .panel h6,
body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-tabs .panel li,
body.single-product .woocommerce-tabs .panel a,
body.single-product .woocommerce-tabs .panel strong,
body.single-product .woocommerce-tabs .panel em {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto;
}

body.single-product .woocommerce-product-details__short-description > *,
body.single-product .woocommerce-tabs .panel > *,
body.single-product .woocommerce-tabs .panel .wp-block-group,
body.single-product .woocommerce-tabs .panel .wp-block-columns,
body.single-product .woocommerce-tabs .panel .wp-block-column,
body.single-product .woocommerce-tabs .panel .wp-block-image,
body.single-product .woocommerce-tabs .panel figure,
body.single-product .woocommerce-tabs .panel picture,
body.single-product .woocommerce-tabs .panel .wp-block-table {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery__image > a {
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery img.wp-post-image,
body.single-product .woocommerce-product-gallery .zoomImg {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}

body.single-product .product_meta {
  display: grid !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  line-height: 1.5 !important;
}
body.single-product .product_meta > span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.single-product form.cart,
body.single-product form.cart .variations_button,
body.single-product form.cart .single_variation_wrap,
body.single-product form.cart .single_variation,
body.single-product form.cart table.variations {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Keep description tables inside their own scroll area instead of widening the page. */
body.single-product .woocommerce-tabs .panel .wp-block-table,
body.single-product .woocommerce-tabs .panel .table-responsive,
body.single-product .woocommerce-tabs .panel > table {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
body.single-product .woocommerce-tabs .panel table {
  max-width: 100% !important;
  border-collapse: collapse;
}
body.single-product .woocommerce-tabs .panel th,
body.single-product .woocommerce-tabs .panel td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* WooCommerce tabs scroll internally when their labels do not fit. */
body.single-product .woocommerce-tabs ul.tabs {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body.single-product .woocommerce-tabs ul.tabs li {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

/* Related products must use the available viewport, never desktop card widths. */
body.single-product .related.products ul.products,
body.single-product .up-sells.products ul.products {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
}
body.single-product .related.products ul.products li.product,
body.single-product .up-sells.products ul.products li.product {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
body.single-product .related.products ul.products li.product img,
body.single-product .up-sells.products ul.products li.product img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  body.single-product .smv-shop-shell {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 12px auto 34px !important;
    padding: 0 !important;
  }

  body.single-product .smv-shop-main,
  body.single-product .woocommerce,
  body.single-product .woocommerce div.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-product .woocommerce div.product div.images,
  body.single-product .woocommerce div.product div.summary {
    float: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    clear: both !important;
  }

  body.single-product .woocommerce-product-gallery,
  body.single-product .woocommerce-product-gallery .flex-viewport,
  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.single-product .woocommerce-product-gallery__image {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.single-product .woocommerce-product-gallery__image img,
  body.single-product .woocommerce-product-gallery img.wp-post-image {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 72vh !important;
    object-fit: contain !important;
  }

  body.single-product .product_title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.single-product .woocommerce-product-details__short-description,
  body.single-product .woocommerce-product-details__short-description p,
  body.single-product .woocommerce-product-details__short-description li {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.single-product div.product p.price,
  body.single-product div.product span.price {
    font-size: 26px !important;
    line-height: 1.2 !important;
  }

  body.single-product form.cart {
    display: grid !important;
    grid-template-columns: minmax(72px, 88px) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  body.single-product form.cart .quantity {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.single-product form.cart .quantity .qty {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
  }
  body.single-product form.cart .single_add_to_cart_button,
  body.single-product form.cart button.button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  body.single-product .product_meta {
    margin-top: 18px !important;
    font-size: 14px !important;
  }

  body.single-product .woocommerce-tabs,
  body.single-product .woocommerce-tabs .panel,
  body.single-product .woocommerce-Tabs-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
  }

  body.single-product .woocommerce-tabs .panel h2,
  body.single-product .woocommerce-tabs .panel .wp-block-heading {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(23px, 6.5vw, 29px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.single-product .woocommerce-tabs .panel h3 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(20px, 5.7vw, 25px) !important;
    line-height: 1.25 !important;
  }

  body.single-product .woocommerce-tabs .panel p,
  body.single-product .woocommerce-tabs .panel li {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.single-product .woocommerce-tabs .panel figure,
  body.single-product .woocommerce-tabs .panel img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-product .related.products,
  body.single-product .up-sells.products {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.single-product .related.products > h2,
  body.single-product .up-sells.products > h2 {
    max-width: 100% !important;
    font-size: clamp(25px, 7vw, 32px) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body.single-product .related.products ul.products,
  body.single-product .up-sells.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.single-product .related.products ul.products li.product,
  body.single-product .up-sells.products ul.products li.product {
    padding: 9px !important;
  }
  body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
  body.single-product .up-sells.products ul.products li.product .woocommerce-loop-product__title {
    min-height: 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  /* The footer switches to one column on product pages so long account/contact
     text never recreates the horizontal overflow below the product. */
  body.single-product .smv-v3-footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  body.single-product .smv-v3-footer-grid > section,
  body.single-product .smv-v3-footer-brand,
  body.single-product .smv-v3-payments {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.single-product .smv-v3-payment-row {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
  }
}

@media (max-width: 420px) {
  body.single-product .smv-shop-shell {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
  body.single-product .product_title {
    font-size: 25px !important;
  }
  body.single-product form.cart {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }
  body.single-product .related.products ul.products,
  body.single-product .up-sells.products ul.products {
    gap: 8px !important;
  }
}


/* =========================================================
   SIVAR MARKET FREUND RETAIL PRO v1.6
   Ajuste visual retail: rápido, responsive, limpio y más cercano
   al ritmo comercial de una tienda grande tipo Freund.
   ========================================================= */
body.smv-freund,
body.smv-v3 {
  --smv-freund-blue:#003f78;
  --smv-freund-blue-dark:#00305c;
  --smv-freund-red:#e51b23;
  --smv-freund-red-dark:#bd1017;
  --smv-freund-yellow:#ffc72c;
  --smv-freund-yellow-soft:#fff4c9;
  --smv-freund-text:#1f2a37;
  --smv-freund-muted:#5b6777;
  --smv-freund-line:#d9e2ec;
  --smv-freund-bg:#f4f6f8;
  --smv-freund-card:#ffffff;
  --smv-freund-shadow:0 4px 16px rgba(8,35,63,.08);
  --smv-freund-radius:6px;
  background:var(--smv-freund-bg);
  color:var(--smv-freund-text);
}

body.smv-freund .smv-container,
body.smv-v3 .smv-container { width:min(calc(100% - 64px), 1460px); }

/* Textura ligera y limpia: sin imágenes externas, sin peso extra. */
body.smv-freund .smv-main,
body.smv-v3 .smv-main {
  background:
    linear-gradient(180deg,#f7f9fb 0,#f4f6f8 240px,#fff 241px),
    radial-gradient(circle at 10% 0,rgba(255,199,44,.16),transparent 28%),
    radial-gradient(circle at 90% 20px,rgba(229,27,35,.08),transparent 24%);
}

/* Barra superior compacta tipo retail. */
.smv-v3-topbar { background:var(--smv-freund-blue-dark) !important; min-height:28px; }
.smv-v3-topbar-inner { min-height:28px; }
.smv-v3-topbar-items { gap:28px; }
.smv-v3-topbar-items span,
.smv-v3-topbar-items a,
.smv-v3-help { font-size:11px; font-weight:700; color:#fff !important; }
.smv-v3-topbar .smv-icon { color:var(--smv-freund-yellow); }

/* Header blanco, más plano y rápido de leer. */
.smv-v3-header { background:#fff !important; box-shadow:0 2px 8px rgba(4,36,68,.08); border-bottom:0; }
.smv-v3-header-main { min-height:74px; grid-template-columns:225px minmax(460px,1fr) auto; gap:24px; }
.smv-v3-logo .custom-logo { height:54px; max-width:215px; }
.smv-v3-logo .smv-logo__text { color:var(--smv-freund-blue); font-size:26px; font-weight:900; letter-spacing:-.035em; }
.smv-v3-actions .smv-action-link { color:var(--smv-freund-blue); }
.smv-v3-actions .smv-action-copy small { color:#6d7683; font-size:10px; }
.smv-v3-actions .smv-action-copy strong { color:var(--smv-freund-blue-dark); font-size:11px; font-weight:850; }
.smv-v3-actions .smv-cart-count { background:var(--smv-freund-red); }

/* Buscador dominante como e-commerce retail. */
.smv-v3-search-row .smv-search {
  max-width:820px;
  min-height:46px;
  grid-template-columns:176px minmax(0,1fr) 54px;
  border:2px solid var(--smv-freund-blue);
  border-radius:4px;
  box-shadow:0 2px 5px rgba(0,0,0,.04);
}
.smv-v3-search-row .smv-search select,
.smv-v3-search-row .smv-search input { height:44px; font-size:13px; }
.smv-v3-search-row .smv-search select { color:var(--smv-freund-blue-dark); font-weight:800; background:#f9fbfd; }
.smv-v3-search-row .smv-search input::placeholder { color:#8c98a6; }
.smv-v3-search-row .smv-search button {
  width:54px; height:44px; background:var(--smv-freund-red); color:#fff;
}
.smv-v3-search-row .smv-search button:hover { background:var(--smv-freund-red-dark); }

/* Barra roja + botón amarillo de departamentos. */
.smv-v3-nav { background:var(--smv-freund-red) !important; }
.smv-v3-nav-inner { min-height:45px; }
.smv-v3-nav .smv-departments { min-width:238px; flex-basis:238px; }
.smv-v3-nav .smv-departments__toggle {
  height:45px; min-height:45px;
  background:var(--smv-freund-yellow) !important;
  color:#172033 !important;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.smv-v3-nav-menu a {
  height:45px;
  padding:0 18px;
  color:#fff !important;
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}
.smv-v3-nav-menu a:hover { background:var(--smv-freund-red-dark); color:#fff !important; }
.smv-v3-nav .smv-nav-offers {
  color:var(--smv-freund-yellow) !important;
  font-size:12px;
  font-weight:900;
  padding-inline:18px 6px;
}
.smv-v3-nav .smv-departments__panel {
  top:45px;
  border-radius:0 0 8px 8px;
  box-shadow:0 18px 36px rgba(0,0,0,.18);
}

/* Home: layout de tienda grande con departamentos a la izquierda. */
.smv-freund-stage { padding:16px 0 8px; background:transparent; }
.smv-freund-stage-grid { display:grid; grid-template-columns:238px minmax(0,1fr) 270px; gap:16px; align-items:stretch; }
.smv-freund-sidebar,
.smv-freund-side-offers {
  background:#fff;
  border:1px solid var(--smv-freund-line);
  border-radius:var(--smv-freund-radius);
  box-shadow:var(--smv-freund-shadow);
  overflow:hidden;
}
.smv-freund-sidebar-title {
  height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 14px;
  background:var(--smv-freund-blue);
  color:#fff;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
}
.smv-freund-sidebar-title .smv-icon { width:18px; height:18px; color:var(--smv-freund-yellow); }
.smv-freund-sidebar .smv-category-tree,
.smv-freund-sidebar .smv-desktop-cat-menu,
.smv-freund-sidebar .smv-mobile-menu { list-style:none; margin:0; padding:0; max-height:414px; overflow:auto; scrollbar-width:thin; }
.smv-freund-sidebar ul { list-style:none; margin:0; padding:0; }
.smv-freund-sidebar li { border-bottom:1px solid #edf1f5; }
.smv-freund-sidebar li:last-child { border-bottom:0; }
.smv-freund-sidebar a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:39px;
  padding:9px 12px 9px 14px;
  color:#26364a;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
}
.smv-freund-sidebar a:hover { background:#fff8df; color:var(--smv-freund-red); }
.smv-freund-sidebar li ul { display:none; }
.smv-freund-hero-col { min-width:0; }
.smv-freund-hero-col .smv-v3-hero-wrap { padding:0; }
.smv-freund-hero-col .smv-v3-hero { height:100%; min-height:414px; border-radius:var(--smv-freund-radius); box-shadow:var(--smv-freund-shadow); }
.smv-freund-hero-col .smv-market-hero .smv-v3-hero-track { min-height:414px; }
.smv-freund-hero-col .smv-market-hero-slide { min-height:414px; grid-template-columns:1fr .86fr; }
.smv-freund-hero-col .smv-market-hero-copy { padding:48px 24px 48px 46px; }
.smv-freund-hero-col .smv-market-eyebrow { background:var(--smv-freund-yellow); color:#1c2632; }
.smv-freund-hero-col .smv-market-hero-copy h2 { font-size:48px; line-height:.98; color:#fff; }
.smv-freund-hero-col .smv-market-hero-copy h2 em { color:var(--smv-freund-yellow); }
.smv-freund-hero-col .smv-market-hero-copy p { max-width:470px; color:#eaf2fb; font-size:16px; }
.smv-freund-hero-col .smv-market-hero-button { background:var(--smv-freund-red); border-radius:4px; box-shadow:none; }
.smv-freund-hero-col .smv-market-hero-button:hover { background:var(--smv-freund-red-dark); }
.smv-freund-hero-col .smv-market-hero-slide--blue { background:linear-gradient(105deg,#003b73 0%,#005a9c 54%,#f2f6fa 54%); }
.smv-freund-hero-col .smv-market-hero-slide--warm { background:linear-gradient(105deg,#9e1b1f 0%,#d92027 52%,#fff4d6 52%); }
.smv-freund-hero-col .smv-market-hero-slide--sunset { background:linear-gradient(105deg,#003f78 0%,#e51b23 56%,#fff 56%); }
.smv-freund-hero-col .smv-market-hero-badge { background:var(--smv-freund-yellow); color:#1d2733; border-radius:50%; min-width:126px; min-height:126px; display:grid; place-items:center; padding:12px; font-size:10px; }
.smv-freund-hero-col .smv-market-hero-badge strong { color:var(--smv-freund-red); font-size:24px; }
.smv-freund-side-offers { display:grid; gap:0; }
.smv-freund-mini-offer {
  position:relative;
  min-height:199px;
  display:block;
  padding:18px 15px;
  background:linear-gradient(135deg,#fff,#f8fbff);
  overflow:hidden;
  border-bottom:1px solid var(--smv-freund-line);
  color:#172033;
}
.smv-freund-mini-offer:last-child { border-bottom:0; }
.smv-freund-mini-offer--yellow { background:linear-gradient(135deg,#fff7d7,#fff); }
.smv-freund-mini-offer--blue { background:linear-gradient(135deg,#eaf4ff,#fff); }
.smv-freund-mini-offer small { display:inline-block; margin-bottom:8px; padding:4px 7px; background:var(--smv-freund-red); color:#fff; border-radius:4px; font-size:9px; font-weight:900; letter-spacing:.04em; }
.smv-freund-mini-offer h3 { margin:0 0 6px; width:64%; color:var(--smv-freund-blue); font-size:20px; line-height:1.03; font-weight:900; }
.smv-freund-mini-offer p { width:62%; margin:0; color:#526171; font-size:11px; line-height:1.28; font-weight:650; }
.smv-freund-mini-offer span { position:absolute; left:15px; bottom:14px; color:var(--smv-freund-red); font-size:11px; font-weight:900; }
.smv-freund-mini-offer .smv-market-promo-media { position:absolute; right:-6px; bottom:0; width:48%; height:82%; padding:0; display:grid; place-items:end center; }
.smv-freund-mini-offer .smv-promo-product-image { height:150px !important; }

/* Secciones más compactas, con ritmo de home comercial. */
.smv-v3-section { padding:18px 0; background:#fff; }
.smv-v3-section-head { margin-bottom:13px; }
.smv-v3-section-head h2 { font-size:22px; color:#172033; font-weight:900; }
.smv-v3-section-head h2::after { content:""; display:block; width:58px; height:3px; margin-top:8px; background:var(--smv-freund-red); border-radius:3px; }
.smv-v3-section-head > a { color:var(--smv-freund-red); font-size:12px; font-weight:900; }

/* Compra por categoría: rectangular, más parecido a retail de catálogo. */
.smv-v3-category-rail { grid-auto-columns:140px; gap:12px; }
.smv-v3-category { padding:12px 8px 10px; border:1px solid var(--smv-freund-line); border-radius:var(--smv-freund-radius); background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.035); }
.smv-v3-category:hover { border-color:#f1c2c5; box-shadow:0 10px 22px rgba(0,0,0,.08); }
.smv-v3-category-image { width:104px; height:96px; border-radius:4px; border:0; box-shadow:none; background:#f7f9fb; }
.smv-v3-category-image img { object-fit:contain !important; padding:8px; }
.smv-v3-category-name { font-size:12px; line-height:1.18; color:#172033; font-weight:850; }

/* Producto: imagen limpia, tamaño controlado y botones visibles. */
.smv-v3-product-rail { grid-auto-columns:calc((100% - 60px)/5); gap:15px; }
.smv-v3-product-card { border-radius:var(--smv-freund-radius); border:1px solid var(--smv-freund-line); box-shadow:0 2px 7px rgba(0,0,0,.035); }
.smv-v3-product-card:hover { border-color:#d5bbc0; box-shadow:0 12px 26px rgba(0,0,0,.09); transform:translateY(-2px); }
.smv-v3-product-image { height:214px; padding:14px 13px 4px; background:#fff; }
.smv-v3-product-image img { object-fit:contain !important; padding:4px !important; max-height:190px; }
.smv-v3-product-body { padding:10px 12px 13px; }
.smv-v3-product-meta { color:#697585; font-size:8.5px; min-height:14px; }
.smv-v3-product-card h3 { min-height:42px; font-size:13px; line-height:1.26; font-weight:850; }
.smv-v3-product-card h3 a { color:#172033; }
.smv-v3-price strong { color:var(--smv-freund-red); font-size:19px; }
.smv-v3-rating span.is-filled { color:var(--smv-freund-yellow); text-shadow:0 0 0 #9a6a00; }
.smv-v3-add-button { background:var(--smv-freund-red) !important; border-radius:4px !important; font-size:10.5px !important; min-height:39px !important; }
.smv-v3-add-button:hover { background:var(--smv-freund-red-dark) !important; }
.smv-v3-heart { border-radius:4px; color:var(--smv-freund-blue); }
.smv-v3-discount { background:var(--smv-freund-yellow); color:#172033; }

/* Promos, beneficios y footer con colores más cercanos a retail. */
.smv-v3-promo { border-radius:var(--smv-freund-radius); }
.smv-v3-benefit-card { border-radius:var(--smv-freund-radius); }
.smv-v3-benefit-icon { background:var(--smv-freund-yellow-soft); color:var(--smv-freund-red); }
.smv-v3-benefit-card strong { color:#172033; font-size:11px; }
.smv-v3-benefit-card small { font-size:9.5px; }
.smv-v3-seller { background:linear-gradient(95deg,var(--smv-freund-blue-dark),var(--smv-freund-blue)) !important; border-radius:var(--smv-freund-radius); }
.smv-v3-seller-button { background:var(--smv-freund-red) !important; }
.smv-v3-footer { background:var(--smv-freund-blue-dark) !important; }
.smv-v3-footer-bottom { background:rgba(0,0,0,.08); }

/* Tienda, archivo y ficha producto. */
.woocommerce ul.products li.product,
.smv-shop-shell ul.products li.product { border:1px solid var(--smv-freund-line); border-radius:6px; background:#fff; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.035); }
.woocommerce ul.products li.product:hover { box-shadow:0 10px 24px rgba(0,0,0,.08); }
.woocommerce ul.products li.product img { aspect-ratio:1/1; object-fit:contain; padding:10px; background:#fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color:#172033; font-size:13px; line-height:1.28; font-weight:850; min-height:38px; }
.woocommerce ul.products li.product .price { color:var(--smv-freund-red) !important; font-size:18px; font-weight:900; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button { background:var(--smv-freund-red) !important; color:#fff !important; border-radius:4px !important; font-weight:900 !important; text-transform:uppercase; }
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover { background:var(--smv-freund-red-dark) !important; color:#fff !important; }
.woocommerce div.product .product_title { color:#172033 !important; font-size:clamp(24px,3vw,34px); line-height:1.15; font-weight:900; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color:var(--smv-freund-red) !important; font-weight:900; }
.woocommerce-product-gallery img { object-fit:contain; background:#fff; }
.woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel { font-size:16px; line-height:1.72; color:#2b3542; }
.woocommerce-tabs h2,
.woocommerce-Tabs-panel h2 { color:#172033; font-weight:900; }

/* Rendimiento: evita repintado de secciones fuera de viewport en navegadores modernos. */
.smv-v3-section,
.smv-v3-products-section,
.smv-v3-benefits,
.smv-v3-brands,
.smv-v3-seller-section,
.smv-v3-footer { content-visibility:auto; contain-intrinsic-size:1px 420px; }
.smv-freund-stage,
.smv-v3-hero-wrap { content-visibility:visible; contain-intrinsic-size:auto; }

@media (max-width:1199px) {
  body.smv-freund .smv-container,
  body.smv-v3 .smv-container { width:min(calc(100% - 36px),1460px); }
  .smv-v3-header-main { grid-template-columns:190px minmax(330px,1fr) auto; gap:14px; }
  .smv-freund-stage-grid { grid-template-columns:220px minmax(0,1fr); }
  .smv-freund-side-offers { display:none; }
  .smv-freund-hero-col .smv-market-hero-copy h2 { font-size:42px; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 45px)/4); }
}

@media (max-width:959px) {
  .smv-v3-header-main { grid-template-columns:44px minmax(150px,1fr) auto; grid-template-rows:56px auto; }
  .smv-v3-logo .custom-logo { height:44px; }
  .smv-v3-search-row .smv-search { grid-template-columns:128px minmax(0,1fr) 46px; border-width:1px; }
  .smv-freund-stage { padding:10px 0 3px; }
  .smv-freund-stage-grid { display:block; }
  .smv-freund-sidebar { display:none; }
  .smv-freund-hero-col .smv-v3-hero { min-height:350px; }
  .smv-freund-hero-col .smv-market-hero .smv-v3-hero-track { min-height:350px; }
  .smv-freund-hero-col .smv-market-hero-slide { min-height:350px; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 24px)/3); }
}

@media (max-width:639px) {
  body.smv-freund .smv-container,
  body.smv-v3 .smv-container { width:calc(100% - 22px); }
  .smv-v3-topbar { min-height:26px; }
  .smv-v3-header-main { grid-template-columns:40px minmax(120px,1fr) auto; grid-template-rows:50px auto; padding-bottom:8px; }
  .smv-v3-logo .custom-logo { height:38px; }
  .smv-v3-logo .smv-logo__text { font-size:18px; }
  .smv-v3-search-row .smv-search { grid-template-columns:minmax(0,1fr) 44px; border-radius:4px; }
  .smv-v3-search-row .smv-search select { display:none; }
  .smv-freund-hero-col .smv-v3-hero { min-height:480px; border-radius:6px; }
  .smv-freund-hero-col .smv-market-hero .smv-v3-hero-track { min-height:480px; }
  .smv-freund-hero-col .smv-market-hero-slide { min-height:480px; grid-template-columns:1fr; grid-template-rows:auto 220px; }
  .smv-freund-hero-col .smv-market-hero-copy { padding:28px 22px 8px; }
  .smv-freund-hero-col .smv-market-hero-copy h2 { font-size:33px; }
  .smv-freund-hero-col .smv-market-hero-copy p { font-size:13px; }
  .smv-freund-hero-col .smv-market-hero-badge { min-width:84px; min-height:84px; right:8px; top:5px; font-size:7px; }
  .smv-v3-category-rail { grid-auto-columns:118px; gap:10px; }
  .smv-v3-category-image { width:86px; height:78px; }
  .smv-v3-category-name { font-size:10.5px; }
  .smv-v3-product-rail { grid-auto-columns:calc((100% - 10px)/2); gap:10px; }
  .smv-v3-product-image { height:162px; }
  .smv-v3-product-card h3 { font-size:11.2px; min-height:36px; }
  .smv-v3-price strong { font-size:16px; }
  .smv-v3-add-button { font-size:9px !important; min-height:35px !important; }
  .smv-v3-benefit-card { flex-basis:78%; }
  .smv-v3-footer { padding-bottom:74px; }
}

@media (prefers-reduced-motion: reduce) {
  .smv-v3-hero-track,
  .smv-v3-product-card,
  .smv-v3-category,
  .smv-v3-promo { transition:none !important; }
}


/* =========================================================
   Sivar Market v1.7 - Corrección móvil + colores institucionales
   Objetivo: evitar textos gigantes, tablas rotas, botones partidos
   y eliminar el uso del rojo como color primario.
========================================================= */
:root,
body.smv-freund,
body.smv-v3 {
  --smv-brand-blue:#073b73;
  --smv-brand-blue-dark:#052f5c;
  --smv-brand-blue-light:#0b5fa5;
  --smv-brand-yellow:#ffc72c;
  --smv-brand-green:#16a34a;
  --smv-brand-orange:#f7941d;
  --smv-brand-text:#172033;
  --smv-brand-muted:#5f6f82;
  --smv-freund-blue:#073b73;
  --smv-freund-blue-dark:#052f5c;
  --smv-freund-red:#073b73;
  --smv-freund-red-dark:#052f5c;
  --smv-freund-yellow:#ffc72c;
  --smv-primary:#073b73;
  --smv-primary-2:#0b5fa5;
  --smv-accent:#f7941d;
  --smv-danger:#073b73;
}

/* Colores: nada de rojo como primario. */
html body .smv-v3-nav,
html body .smv-desktop-nav,
html body .navigation-bar,
html body .main-navigation {
  background:var(--smv-brand-blue) !important;
}
html body .smv-v3-search-row .smv-search,
html body .smv-search {
  border-color:var(--smv-brand-blue) !important;
}
html body .smv-v3-search-row .smv-search button,
html body .smv-search button,
html body button.search-submit,
html body .product-search button {
  background:var(--smv-brand-blue) !important;
  color:#fff !important;
}
html body .smv-v3-search-row .smv-search button:hover,
html body .smv-search button:hover,
html body button.search-submit:hover {
  background:var(--smv-brand-blue-dark) !important;
}
html body .smv-cart-count,
html body .smv-mobile-cart-count,
html body .woocommerce span.onsale,
html body .smv-v3-discount {
  background:var(--smv-brand-yellow) !important;
  color:#172033 !important;
}
html body .smv-v3-section-head h2::after,
html body .smv-section__title::after {
  background:var(--smv-brand-yellow) !important;
}

/* Ficha de producto en móvil: lectura correcta, sin texto gigante ni columnas rotas. */
.single-product .smv-main,
.single-product .site-main,
.single-product main {
  overflow-x:hidden !important;
}
.single-product .product,
.single-product .summary,
.single-product .woocommerce-tabs,
.single-product .woocommerce-Tabs-panel,
.single-product .entry-summary,
.single-product .woocommerce-product-details__short-description {
  max-width:100% !important;
  min-width:0 !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
  hyphens:none !important;
}
.single-product .summary p,
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-tabs p,
.single-product .woocommerce-Tabs-panel p,
.single-product .woocommerce-tabs li,
.single-product .woocommerce-Tabs-panel li {
  font-size:16px !important;
  line-height:1.62 !important;
  color:#2b3542 !important;
  letter-spacing:0 !important;
}
.single-product .product_title,
.single-product h1.product_title {
  font-size:clamp(21px,5vw,30px) !important;
  line-height:1.2 !important;
  color:var(--smv-brand-text) !important;
  margin-bottom:8px !important;
}
.single-product .woocommerce-tabs h2,
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-tabs h3,
.single-product .woocommerce-Tabs-panel h3 {
  color:var(--smv-brand-text) !important;
  line-height:1.25 !important;
  letter-spacing:-.01em !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}
.single-product .woocommerce-tabs h2,
.single-product .woocommerce-Tabs-panel h2 { font-size:24px !important; }
.single-product .woocommerce-tabs h3,
.single-product .woocommerce-Tabs-panel h3 { font-size:20px !important; }

/* Botones WooCommerce: institucional azul, texto horizontal y sin partir letras. */
html body.woocommerce div.product form.cart .button,
html body.woocommerce div.product form.cart button.button,
html body .woocommerce div.product form.cart .button,
html body .woocommerce div.product form.cart button.button,
html body .single_add_to_cart_button,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .add_to_cart_button {
  background:var(--smv-brand-blue) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:7px !important;
  min-height:46px !important;
  width:auto !important;
  min-width:164px !important;
  max-width:100% !important;
  padding:0 18px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
  letter-spacing:.01em !important;
}
html body.woocommerce div.product form.cart .button:hover,
html body .woocommerce div.product form.cart .button:hover,
html body .single_add_to_cart_button:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .add_to_cart_button:hover {
  background:var(--smv-brand-blue-dark) !important;
  color:#fff !important;
}
html body .buy_now_button,
html body .single-product .buy-now,
html body .product-buy-now,
html body .wc-buy-now-btn {
  background:var(--smv-brand-orange) !important;
  color:#fff !important;
  white-space:nowrap !important;
  min-height:46px !important;
  border-radius:7px !important;
}

/* Cantidad + botón: buen acomodo en celular. */
.single-product form.cart {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:10px !important;
  max-width:100% !important;
}
.single-product form.cart .quantity {
  margin:0 !important;
  width:auto !important;
  max-width:150px !important;
}
.single-product form.cart .quantity input.qty {
  min-height:46px !important;
  max-width:140px !important;
  border:1px solid #d9e2ec !important;
  border-radius:7px !important;
  font-size:16px !important;
  text-align:center !important;
}

/* Tablas de ficha: no permitir que palabras como Categoría o Disponibilidad se partan letra por letra. */
.single-product .woocommerce-tabs table,
.single-product .woocommerce-Tabs-panel table,
.single-product table.shop_attributes,
.single-product .product-facts table,
.single-product .ficha-rapida table,
.single-product .sivar-product-fast-box table {
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:auto !important;
  font-size:14px !important;
  line-height:1.45 !important;
}
.single-product .woocommerce-tabs th,
.single-product .woocommerce-tabs td,
.single-product .woocommerce-Tabs-panel th,
.single-product .woocommerce-Tabs-panel td,
.single-product table.shop_attributes th,
.single-product table.shop_attributes td {
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
  white-space:normal !important;
  vertical-align:top !important;
  padding:10px 12px !important;
}
.single-product .woocommerce-tabs th,
.single-product .woocommerce-Tabs-panel th,
.single-product table.shop_attributes th {
  color:var(--smv-brand-text) !important;
  font-weight:900 !important;
}

/* Precio y stock con colores institucionales. */
.single-product p.price,
.single-product span.price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.smv-v3-price strong {
  color:var(--smv-brand-orange) !important;
  font-weight:900 !important;
}
.single-product .stock,
.woocommerce div.product .stock,
.smv-loop-stock--in {
  color:var(--smv-brand-green) !important;
  font-weight:800 !important;
}

/* En móvil, quitar ruido excesivo de etiquetas largas y dejar la ficha respirando. */
@media (max-width: 767px) {
  body.single-product { padding-bottom:92px !important; }
  .single-product .smv-container,
  .single-product .smv-shop-shell,
  .single-product .site-main,
  .single-product .content-area {
    width:calc(100% - 28px) !important;
    max-width:100% !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
  .single-product .woocommerce-product-gallery,
  .single-product div.product div.images,
  .single-product div.product div.summary {
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  .single-product div.product div.images img,
  .single-product .woocommerce-product-gallery img {
    max-height:360px !important;
    width:100% !important;
    object-fit:contain !important;
    padding:8px !important;
    background:#fff !important;
  }
  .single-product .summary p,
  .single-product .woocommerce-product-details__short-description,
  .single-product .woocommerce-tabs p,
  .single-product .woocommerce-Tabs-panel p,
  .single-product .woocommerce-tabs li,
  .single-product .woocommerce-Tabs-panel li {
    font-size:15.5px !important;
    line-height:1.58 !important;
  }
  .single-product .woocommerce-tabs h2,
  .single-product .woocommerce-Tabs-panel h2 {
    font-size:21px !important;
    line-height:1.25 !important;
    margin-top:24px !important;
    margin-bottom:12px !important;
  }
  .single-product .woocommerce-tabs h3,
  .single-product .woocommerce-Tabs-panel h3 {
    font-size:18px !important;
  }
  .single-product form.cart {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
  }
  .single-product form.cart .quantity,
  .single-product form.cart .quantity input.qty,
  html body .single-product form.cart .button,
  html body .single-product .single_add_to_cart_button {
    width:100% !important;
    max-width:100% !important;
  }
  html body .single-product form.cart .button,
  html body .single-product .single_add_to_cart_button {
    min-height:48px !important;
    font-size:13px !important;
    padding:0 14px !important;
  }
  .single-product .product_meta {
    font-size:14px !important;
    line-height:1.45 !important;
    color:var(--smv-brand-muted) !important;
  }
  .single-product .product_meta .tagged_as {
    display:none !important;
  }
  .single-product .woocommerce-tabs,
  .single-product .woocommerce-Tabs-panel {
    margin-bottom:88px !important;
  }
  .single-product .woocommerce-tabs table,
  .single-product .woocommerce-Tabs-panel table,
  .single-product table.shop_attributes,
  .single-product .product-facts table,
  .single-product .ficha-rapida table,
  .single-product .sivar-product-fast-box table {
    display:block !important;
    overflow-x:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .single-product .woocommerce-tabs table tbody,
  .single-product .woocommerce-Tabs-panel table tbody,
  .single-product table.shop_attributes tbody {
    display:table !important;
    min-width:620px !important;
    width:100% !important;
  }
  .single-product .woocommerce-tabs th,
  .single-product .woocommerce-tabs td,
  .single-product .woocommerce-Tabs-panel th,
  .single-product .woocommerce-Tabs-panel td,
  .single-product table.shop_attributes th,
  .single-product table.shop_attributes td {
    min-width:118px !important;
    font-size:13px !important;
    line-height:1.35 !important;
    white-space:normal !important;
  }
  .smv-mobile-bar {
    background:#fff !important;
    border-top:1px solid #dfe7ef !important;
  }
  .smv-mobile-bar a,
  .smv-mobile-bar button {
    color:var(--smv-brand-blue) !important;
  }
  .smv-mobile-bar .smv-mobile-cart-count {
    background:var(--smv-brand-yellow) !important;
    color:#172033 !important;
  }
  .smv-v3-search-row .smv-search input[type="search"] {
    font-size:15px !important;
  }
}

/* =========================================================
   Sivar Market v1.8 - Corrección definitiva layout PC/móvil
   - Sin rojo institucional
   - Producto centrado en PC, no ocupa toda la pantalla
   - Tablas legibles en móvil
   - Botón de departamentos claro
========================================================= */
:root,
body.smv-v3,
body.smv-freund {
  --smv-brand-blue:#073b73;
  --smv-brand-blue-dark:#052f5c;
  --smv-brand-blue-soft:#0b5fa5;
  --smv-brand-sky:#18a7e1;
  --smv-brand-yellow:#ffc72c;
  --smv-brand-orange:#f7941d;
  --smv-brand-green:#16a34a;
  --smv-brand-text:#172033;
  --smv-brand-muted:#5f6f82;
  --smv-brand-border:#d9e4ef;
  --smv-freund-blue:#073b73;
  --smv-freund-blue-dark:#052f5c;
  --smv-freund-red:#073b73;
  --smv-freund-red-dark:#052f5c;
  --smv-primary:#073b73;
  --smv-primary-2:#0b5fa5;
  --smv-accent:#f7941d;
  --smv-danger:#f7941d;
  --smv-max:1280px;
}

/* Evita que CSS viejo del personalizador vuelva a pintar rojo. */
html body .smv-v3-search-row .smv-search button,
html body .smv-search button,
html body .search-submit,
html body button.search-submit,
html body .product-search button,
html body .aws-search-btn,
html body .dgwt-wcas-search-submit,
html body .woocommerce a.button,
html body .woocommerce button.button,
html body .woocommerce input.button,
html body .woocommerce #respond input#submit,
html body .single_add_to_cart_button,
html body .add_to_cart_button,
html body .smv-v3-add-button,
html body .smv-market-hero-button,
html body .smv-v3-seller-button {
  background:var(--smv-brand-blue) !important;
  border-color:var(--smv-brand-blue) !important;
  color:#fff !important;
}
html body .smv-v3-search-row .smv-search button:hover,
html body .smv-search button:hover,
html body .search-submit:hover,
html body button.search-submit:hover,
html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover,
html body .single_add_to_cart_button:hover,
html body .add_to_cart_button:hover,
html body .smv-v3-add-button:hover {
  background:var(--smv-brand-blue-dark) !important;
  border-color:var(--smv-brand-blue-dark) !important;
  color:#fff !important;
}
html body .buy_now_button,
html body .product-buy-now,
html body .wc-buy-now-btn,
html body .single-product .buy-now {
  background:var(--smv-brand-orange) !important;
  border-color:var(--smv-brand-orange) !important;
  color:#fff !important;
}
html body .smv-cart-count,
html body .smv-mobile-cart-count,
html body .smv-v3-discount,
html body .woocommerce span.onsale {
  background:var(--smv-brand-yellow) !important;
  color:#172033 !important;
}
html body .woocommerce div.product p.price,
html body .woocommerce div.product span.price,
html body .woocommerce-Price-amount,
html body .woocommerce ul.products li.product .price,
html body .smv-v3-price strong {
  color:var(--smv-brand-orange) !important;
}
html body .stock,
html body .woocommerce div.product .stock,
html body .smv-loop-stock--in {
  color:var(--smv-brand-green) !important;
}

/* Header desktop: más limpio, menos alto y más parecido a retail serio sin rojo. */
@media (min-width:960px) {
  html body .smv-v3-header-main {
    min-height:74px !important;
    grid-template-columns:210px minmax(420px, 1fr) auto !important;
    gap:22px !important;
  }
  html body .smv-v3-logo .custom-logo {
    height:54px !important;
    max-width:205px !important;
    object-fit:contain !important;
  }
  html body .smv-v3-search-row .smv-search {
    max-width:820px !important;
    grid-template-columns:188px minmax(0,1fr) 56px !important;
    border:2px solid var(--smv-brand-blue) !important;
    border-radius:6px !important;
  }
  html body .smv-v3-search-row .smv-search select,
  html body .smv-v3-search-row .smv-search input {
    height:46px !important;
  }
}

/* Navegación institucional: azul + departamentos claro. */
html body .smv-v3-nav,
html body .smv-desktop-nav,
html body .navigation-bar,
html body .main-navigation {
  background:var(--smv-brand-blue) !important;
}
html body .smv-v3-nav-inner { min-height:46px !important; }
html body .smv-v3-nav .smv-departments {
  min-width:270px !important;
  flex:0 0 270px !important;
}
html body .smv-v3-nav .smv-departments__toggle,
html body .smv-departments__toggle {
  height:46px !important;
  min-height:46px !important;
  padding:0 16px !important;
  background:var(--smv-brand-blue-dark) !important;
  color:#fff !important;
  border-right:1px solid rgba(255,255,255,.2) !important;
  font-size:13px !important;
  font-weight:900 !important;
  letter-spacing:.02em !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
  gap:10px !important;
}
html body .smv-v3-nav .smv-departments__toggle::after {
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid var(--smv-brand-yellow);
  border-bottom:2px solid var(--smv-brand-yellow);
  transform:rotate(45deg);
  margin-left:auto;
}
html body .smv-v3-nav .smv-departments__toggle .smv-departments__chevron { display:none !important; }
html body .smv-v3-nav .smv-departments__toggle .smv-icon,
html body .smv-departments__toggle .smv-icon {
  color:var(--smv-brand-yellow) !important;
  flex:0 0 18px !important;
}
html body .smv-v3-nav-menu a {
  height:46px !important;
  color:#fff !important;
  padding:0 17px !important;
  font-size:11.5px !important;
  font-weight:850 !important;
  white-space:nowrap !important;
}
html body .smv-v3-nav-menu a:hover,
html body .smv-nav-menu a:hover {
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}
html body .smv-v3-nav .smv-nav-offers {
  color:var(--smv-brand-yellow) !important;
  font-weight:900 !important;
}

/* PC: producto centrado, no a pantalla completa. */
html body.single-product .smv-shop-shell {
  width:min(calc(100% - 64px), 1180px) !important;
  max-width:1180px !important;
  margin:28px auto 56px !important;
  padding:0 !important;
  overflow:visible !important;
}
html body.single-product .smv-shop-main,
html body.single-product .woocommerce,
html body.single-product .woocommerce div.product {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
@media (min-width: 900px) {
  html body.single-product .woocommerce div.product {
    display:grid !important;
    grid-template-columns:minmax(340px, 460px) minmax(0, 1fr) !important;
    gap:34px !important;
    align-items:start !important;
  }
  html body.single-product .woocommerce div.product div.images,
  html body.single-product .woocommerce div.product div.summary {
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    min-width:0 !important;
  }
  html body.single-product .woocommerce div.product .woocommerce-tabs,
  html body.single-product .woocommerce div.product .related,
  html body.single-product .woocommerce div.product .up-sells {
    grid-column:1 / -1 !important;
  }
  html body.single-product .woocommerce-product-gallery img.wp-post-image,
  html body.single-product .woocommerce-product-gallery img {
    max-height:520px !important;
    width:100% !important;
    object-fit:contain !important;
    padding:14px !important;
    background:#fff !important;
  }
  html body.single-product .woocommerce-tabs .panel,
  html body.single-product .woocommerce-Tabs-panel {
    max-width:980px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Texto producto: legible y con buen ancho. */
html body.single-product .summary,
html body.single-product .woocommerce-product-details__short-description,
html body.single-product .woocommerce-tabs .panel,
html body.single-product .woocommerce-Tabs-panel {
  color:#263342 !important;
  font-size:16px !important;
  line-height:1.68 !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  hyphens:none !important;
}
html body.single-product .summary p,
html body.single-product .woocommerce-product-details__short-description p,
html body.single-product .woocommerce-tabs .panel p,
html body.single-product .woocommerce-Tabs-panel p,
html body.single-product .woocommerce-tabs .panel li,
html body.single-product .woocommerce-Tabs-panel li {
  font-size:16px !important;
  line-height:1.68 !important;
  max-width:72ch !important;
}
html body.single-product .woocommerce-tabs .panel h2,
html body.single-product .woocommerce-Tabs-panel h2 {
  font-size:26px !important;
  line-height:1.22 !important;
  color:var(--smv-brand-text) !important;
  margin:30px 0 14px !important;
}
html body.single-product .woocommerce-tabs .panel h3,
html body.single-product .woocommerce-Tabs-panel h3 {
  font-size:21px !important;
  line-height:1.28 !important;
  color:var(--smv-brand-text) !important;
  margin:24px 0 12px !important;
}

/* Ficha rápida en PC: tabla limpia dentro del ancho del contenido. */
html body.single-product .woocommerce-tabs table,
html body.single-product .woocommerce-Tabs-panel table,
html body.single-product table.shop_attributes,
html body.single-product .product-facts table,
html body.single-product .ficha-rapida table,
html body.single-product .sivar-product-fast-box table {
  width:100% !important;
  max-width:980px !important;
  border-collapse:collapse !important;
  table-layout:auto !important;
  background:#fff !important;
  border:1px solid var(--smv-brand-border) !important;
}
html body.single-product .woocommerce-tabs th,
html body.single-product .woocommerce-tabs td,
html body.single-product .woocommerce-Tabs-panel th,
html body.single-product .woocommerce-Tabs-panel td,
html body.single-product table.shop_attributes th,
html body.single-product table.shop_attributes td {
  padding:12px 14px !important;
  border-bottom:1px solid var(--smv-brand-border) !important;
  vertical-align:top !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:break-word !important;
}
html body.single-product .woocommerce-tabs th,
html body.single-product .woocommerce-Tabs-panel th,
html body.single-product table.shop_attributes th {
  width:220px !important;
  color:var(--smv-brand-text) !important;
  font-weight:900 !important;
  text-transform:uppercase !important;
}

/* Móvil: no más texto perdido, no más tabla partida en columnas imposibles. */
@media (max-width: 767px) {
  html, body { overflow-x:hidden !important; }
  html body.single-product .smv-shop-shell {
    width:calc(100% - 28px) !important;
    max-width:calc(100% - 28px) !important;
    margin:14px auto 100px !important;
    padding:0 !important;
  }
  html body.single-product .woocommerce div.product {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
  }
  html body.single-product .woocommerce div.product div.images,
  html body.single-product .woocommerce div.product div.summary {
    float:none !important;
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 18px !important;
    padding:0 !important;
  }
  html body.single-product .woocommerce-product-gallery img.wp-post-image,
  html body.single-product .woocommerce-product-gallery img {
    width:100% !important;
    max-width:100% !important;
    max-height:340px !important;
    object-fit:contain !important;
    padding:8px !important;
    background:#fff !important;
  }
  html body.single-product .product_title,
  html body.single-product h1.product_title {
    font-size:22px !important;
    line-height:1.22 !important;
    margin:0 0 10px !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
  }
  html body.single-product .summary,
  html body.single-product .woocommerce-product-details__short-description,
  html body.single-product .woocommerce-tabs .panel,
  html body.single-product .woocommerce-Tabs-panel {
    font-size:15.5px !important;
    line-height:1.62 !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  html body.single-product .summary p,
  html body.single-product .woocommerce-product-details__short-description p,
  html body.single-product .woocommerce-tabs .panel p,
  html body.single-product .woocommerce-Tabs-panel p,
  html body.single-product .woocommerce-tabs .panel li,
  html body.single-product .woocommerce-Tabs-panel li {
    font-size:15.5px !important;
    line-height:1.62 !important;
    max-width:100% !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    hyphens:none !important;
  }
  html body.single-product .woocommerce-tabs .panel h2,
  html body.single-product .woocommerce-Tabs-panel h2 {
    font-size:21px !important;
    line-height:1.25 !important;
    margin:24px 0 12px !important;
  }
  html body.single-product .woocommerce-tabs .panel h3,
  html body.single-product .woocommerce-Tabs-panel h3 {
    font-size:18px !important;
    line-height:1.3 !important;
  }
  html body.single-product form.cart {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
  }
  html body.single-product form.cart .quantity,
  html body.single-product form.cart .quantity input.qty,
  html body.single-product .single_add_to_cart_button,
  html body.single-product form.cart button.button {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  html body.single-product .single_add_to_cart_button,
  html body.single-product form.cart button.button {
    min-height:48px !important;
    padding:0 14px !important;
    font-size:13px !important;
    white-space:nowrap !important;
  }

  /* La ficha del producto en móvil se convierte en filas tipo ficha, no tabla comprimida. */
  html body.single-product .woocommerce-tabs table,
  html body.single-product .woocommerce-Tabs-panel table,
  html body.single-product table.shop_attributes,
  html body.single-product .product-facts table,
  html body.single-product .ficha-rapida table,
  html body.single-product .sivar-product-fast-box table,
  html body.single-product .woocommerce-tabs table tbody,
  html body.single-product .woocommerce-Tabs-panel table tbody,
  html body.single-product table.shop_attributes tbody,
  html body.single-product .woocommerce-tabs table tr,
  html body.single-product .woocommerce-Tabs-panel table tr,
  html body.single-product table.shop_attributes tr,
  html body.single-product .woocommerce-tabs table th,
  html body.single-product .woocommerce-tabs table td,
  html body.single-product .woocommerce-Tabs-panel table th,
  html body.single-product .woocommerce-Tabs-panel table td,
  html body.single-product table.shop_attributes th,
  html body.single-product table.shop_attributes td {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  html body.single-product .woocommerce-tabs table,
  html body.single-product .woocommerce-Tabs-panel table,
  html body.single-product table.shop_attributes,
  html body.single-product .product-facts table,
  html body.single-product .ficha-rapida table,
  html body.single-product .sivar-product-fast-box table {
    border:1px solid var(--smv-brand-border) !important;
    border-radius:10px !important;
    overflow:hidden !important;
    background:#fff !important;
  }
  html body.single-product .woocommerce-tabs table tr,
  html body.single-product .woocommerce-Tabs-panel table tr,
  html body.single-product table.shop_attributes tr {
    padding:10px 12px !important;
    border-bottom:1px solid var(--smv-brand-border) !important;
  }
  html body.single-product .woocommerce-tabs table tr:last-child,
  html body.single-product .woocommerce-Tabs-panel table tr:last-child,
  html body.single-product table.shop_attributes tr:last-child { border-bottom:0 !important; }
  html body.single-product .woocommerce-tabs table th,
  html body.single-product .woocommerce-Tabs-panel table th,
  html body.single-product table.shop_attributes th {
    padding:0 0 4px !important;
    border:0 !important;
    color:var(--smv-brand-blue-dark) !important;
    font-size:12px !important;
    line-height:1.25 !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
    letter-spacing:.02em !important;
    white-space:normal !important;
  }
  html body.single-product .woocommerce-tabs table td,
  html body.single-product .woocommerce-Tabs-panel table td,
  html body.single-product table.shop_attributes td {
    padding:0 !important;
    border:0 !important;
    color:#263342 !important;
    font-size:15px !important;
    line-height:1.45 !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
  }

  html body.single-product .product_meta .tagged_as { display:none !important; }
  html body .smv-mobile-bar {
    background:#fff !important;
    border-top:1px solid var(--smv-brand-border) !important;
  }
}

/* Menos ancho en pantallas ultra grandes para que no se vea “estirado”. */
@media (min-width: 1280px) {
  html body.single-product .woocommerce-tabs,
  html body.single-product .related.products,
  html body.single-product .up-sells.products {
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}


/* =========================================================
   v1.9 — Departments + category imagery refinement
   ========================================================= */
body.smv-freund .smv-freund-stage-grid {
  grid-template-columns: 272px minmax(0,1fr) 250px;
  gap: 14px;
}
body.smv-freund .smv-freund-sidebar {
  padding-bottom: 4px;
}
body.smv-freund .smv-home-departments-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-height: 414px;
  overflow: auto;
  scrollbar-width: thin;
}
body.smv-freund .smv-home-department-item {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  color: #1f3147;
  text-decoration: none;
  background: #fff;
}
body.smv-freund .smv-home-department-item:hover {
  background: #f6f9fc;
  color: #0a467d;
}
body.smv-freund .smv-home-department-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f6fa;
  border: 1px solid #dde5ee;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.smv-freund .smv-home-department-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}
body.smv-freund .smv-home-department-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,#0b4f8d,#073b73);
  color: #fff;
  font-weight: 900;
}
body.smv-freund .smv-home-department-copy {
  min-width: 0;
  display: block;
}
body.smv-freund .smv-home-department-copy strong {
  display: block;
  color: #12263f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  white-space: normal;
}
body.smv-freund .smv-home-department-copy small {
  display: block;
  margin-top: 2px;
  color: #718096;
  font-size: 11px;
  line-height: 1.2;
}
body.smv-freund .smv-home-department-arrow {
  color: #0a467d;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.smv-freund .smv-home-department-arrow .smv-icon {
  width: 16px;
  height: 16px;
}

/* Photo-style home categories similar in feeling to retail chips */
body.smv-freund .smv-v3-category-rail {
  grid-auto-columns: 148px;
  gap: 18px;
}
body.smv-freund .smv-v3-category {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
body.smv-freund .smv-v3-category:hover {
  border: 0;
  box-shadow: none;
  transform: translateY(-2px);
}
body.smv-freund .smv-v3-category-image {
  width: 116px;
  height: 116px;
  margin: 0 auto 10px;
  border-radius: 999px;
  border: 1px solid #d7e0e8;
  background: linear-gradient(145deg,#fff,#f1f5f9);
  box-shadow: inset 0 0 0 5px #fff, 0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
}
body.smv-freund .smv-v3-category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 8px;
  background: #fff;
}
body.smv-freund .smv-v3-category-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg,#0a4f90,#073b73);
  font-size: 30px;
  font-weight: 900;
}
body.smv-freund .smv-v3-category-name {
  min-height: 34px;
  max-width: 132px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.18;
  color: #172033;
  font-weight: 850;
}

@media (max-width: 1239px) {
  body.smv-freund .smv-freund-stage-grid {
    grid-template-columns: 248px minmax(0,1fr) 230px;
  }
  body.smv-freund .smv-v3-category-rail {
    grid-auto-columns: 138px;
    gap: 14px;
  }
}

@media (max-width: 959px) {
  body.smv-freund .smv-freund-sidebar {
    display: none;
  }
}

@media (max-width: 639px) {
  body.smv-freund .smv-v3-category-rail {
    grid-auto-columns: 118px;
    gap: 10px;
  }
  body.smv-freund .smv-v3-category-image {
    width: 84px;
    height: 84px;
    margin-bottom: 8px;
  }
  body.smv-freund .smv-v3-category-name {
    min-height: 28px;
    max-width: 110px;
    font-size: 10.5px;
  }
}
