/*
Theme Name: Wati For Skin
Template: storefront
Description: Дочерняя тема Storefront для wati-for-skin.ru. Каталог-визитка без корзины и чекаута, с переходом на маркетплейсы. Дизайн «Формула».
Version: 4.2.2
Text Domain: wati-for-skin
*/

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/JetBrainsMono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/Onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/Onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =========================================================
   Wati For Skin RU. Direction: «Формула».
   Ink and uncoated paper, hairline ledger rules, one cobalt
   that marks an active ingredient or the current action.
   Square corners, no shadows, depth by overlap and rules.
   ========================================================= */

:root {
    --ink: #0b0b0c;
    --paper: #f2f2f0;
    --white: #ffffff;
    --ink-2: #38383b;
    --mute: #66666a;
    --rule: #d2d2cd;
    --cobalt: #2437ff;
    --on-ink: #c4c4c8;
    --on-ink-mute: #9a9a9f;
    --ink-rule: #3a3a3d;

    --font-text: 'Onest', 'Golos Text', 'Noto Sans', system-ui, sans-serif;
    --font-data: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --content: calc(1320px + 2 * var(--gutter));
    --edge: max(var(--gutter), calc((100vw - var(--content)) / 2));
    --gap-section: clamp(72px, 9vw, 128px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--cobalt); color: var(--white); }

* { scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper); }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }

h1, h2, h3, h4 { font-family: var(--font-text); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }

.col-full { max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Кнопки ---------- */

.wfs-btn,
a.marketplace-buy-button,
button.marketplace-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper) !important;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.12s var(--ease);
}

.wfs-btn:hover,
a.marketplace-buy-button:hover,
button.marketplace-buy-button:hover {
    background: var(--cobalt);
    border-color: var(--cobalt);
    color: var(--white) !important;
}

.wfs-btn:active,
a.marketplace-buy-button:active { transform: translateY(1px); }

.wfs-btn--ghost {
    background: transparent;
    color: var(--ink) !important;
}

.wfs-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }

.wfs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 48px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
}

.wfs-link:hover { color: var(--cobalt); }

/* ---------- Шапка ---------- */

#masthead,
.site-header-cart { background: var(--ink); }

#masthead.site-header { margin-bottom: 0 !important; border-bottom: 0; padding: 0; }

#masthead .col-full { min-height: 68px; }

#masthead .site-branding {
    padding: 0;
    margin: 0;
    width: fit-content;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#masthead .site-branding .custom-logo-link { display: block; }
#masthead .site-branding img { display: block; width: auto; max-height: 36px; filter: invert(1); }

#masthead .site-search { padding: 0; margin: 0; width: min(280px, 34vw); float: right; }
#masthead .site-search .widget { margin: 0; }
#masthead .site-search form { margin: 0; }

#masthead .site-search input.search-field {
    height: 40px;
    margin-top: 14px;
    padding: 0 12px 0 40px;
    background-color: transparent;
    border: 1px solid var(--ink-rule);
    border-radius: 0;
    color: var(--paper);
    font-family: var(--font-text);
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.25s var(--ease);
}

#masthead .site-search input.search-field::placeholder { color: #9a9a9e; }
#masthead .site-search input.search-field:focus { border-color: var(--paper); outline: none; }
#masthead .site-search form::before { color: #9a9a9e; top: 26px; left: 14px; }

/* ---------- Бургер ---------- */

.wfs-mobile-menu-toggle {
    display: none;
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.wfs-mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--paper);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.wfs-mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.wfs-mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.wfs-mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Навигация ---------- */

.wfs-nav-bar {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: relative;
    z-index: 30;
}

.wfs-nav-bar-inner {
    box-sizing: content-box;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--gutter);
}

.wfs-nav-group { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }

.wfs-nav-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.wfs-nav-bar a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.wfs-nav-bar a:hover { color: var(--ink); }
.wfs-nav-bar a:hover::after { transform: scaleX(1); }

.wfs-nav-dropdown { position: relative; }

.wfs-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-top-color: var(--ink);
    padding: 8px 0;
    z-index: 40;
}

.wfs-nav-dropdown:hover .wfs-dropdown-menu,
.wfs-nav-dropdown.is-open .wfs-dropdown-menu { display: block; }

.wfs-dropdown-menu a { display: flex; min-height: 44px; padding: 0 16px; font-weight: 400; }
.wfs-dropdown-menu a::after { display: none; }
.wfs-dropdown-menu a:hover { background: var(--paper); }

/* ---------- Главная: общие секции ---------- */

.wfs-front-page { padding-bottom: var(--gap-section); }

.wfs-section {
    margin: var(--gap-section) 0 0;
}

.wfs-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(24px, 3vw, 40px);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink);
}

.wfs-section-head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    line-height: 1.1;
}

/* ---------- Hero ---------- */

.wfs-hero2 {
    margin: 0;
    padding: clamp(32px, 5vw, 72px) 0 0;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 4vw, 64px);
    align-items: stretch;
}

.wfs-hero-copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(24px, 4vw, 56px); }

.wfs-hero-copy h1 {
    margin: 0 0 24px;
    font-size: clamp(2.1rem, 4.4vw, 4.1rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.wfs-hero-copy p {
    margin: 0 0 32px;
    max-width: 46ch;
    font-size: clamp(1.02rem, 1.3vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-2);
}

.wfs-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.wfs-hero-media { position: relative; min-height: clamp(320px, 42vw, 560px); background: var(--white); border: 1px solid var(--rule); overflow: hidden; }

.wfs-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.wfs-hero-slide.is-active { opacity: 1; visibility: visible; }

.wfs-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6% 6% 22%;
    box-sizing: border-box;
    display: block;
}

.wfs-hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: stretch;
    background: var(--ink);
    color: var(--paper);
}

.wfs-hero-caption span.wfs-hero-title {
    flex: 1;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.35;
}

.wfs-hero-caption a {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-left: 1px solid var(--ink-rule);
    color: var(--paper);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.wfs-hero-caption a:hover { background: var(--cobalt); color: var(--white); }

.wfs-hero-counter {
    position: absolute;
    top: 0; left: 0;
    padding: 6px 10px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-data);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
    .wfs-hero-copy > * { animation: wfs-rise 0.9s var(--ease) both; }
    .wfs-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
    .wfs-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
    @keyframes wfs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

    .wfs-js .wfs-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
    .wfs-js .wfs-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Реестр активов ---------- */

.wfs-ledger { margin: 0; padding: 0; list-style: none; border-top: 0; }

.wfs-ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 4fr);
    align-items: baseline;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
    transition: background-color 0.3s var(--ease);
}

.wfs-ledger-row:hover { background: var(--white); }

.wfs-ledger-name { font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.wfs-ledger-inci { font-family: var(--font-data); font-size: 13px; color: var(--mute); }
.wfs-ledger-ppm { font-family: var(--font-data); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 500; color: var(--cobalt); font-variant-numeric: tabular-nums; white-space: nowrap; }

.wfs-ledger-where {
    font-size: 14px;
    color: var(--ink-2);
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wfs-ledger-where:hover { color: var(--cobalt); text-decoration: underline; }

/* ---------- Новинки: один крупный и два малых ---------- */

.wfs-featured { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }

.wfs-feature { background: var(--white); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }

.wfs-feature--lead { grid-row: span 2; }

.wfs-feature-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); }
.wfs-feature-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6%; transition: transform 0.8s var(--ease); }
.wfs-feature:hover .wfs-feature-img img { transform: scale(1.03); }

.wfs-feature--lead .wfs-feature-img { aspect-ratio: 1 / 1; max-height: 640px; }

.wfs-feature-body { padding: 20px 24px 24px; border-top: 1px solid var(--rule); margin-top: auto; }
.wfs-feature h3 { margin: 0 0 8px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.25; }
.wfs-feature h3 a { text-decoration: none; }
.wfs-feature p { margin: 0 0 16px; font-size: 14px; color: var(--mute); max-width: 60ch; }

.wfs-feature--small { flex-direction: row; }
.wfs-feature--small .wfs-feature-img { flex: 0 0 42%; aspect-ratio: 1 / 1; }
.wfs-feature--small .wfs-feature-body { border-top: 0; border-left: 1px solid var(--rule); margin-top: 0; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Сетка товаров (каталог, категории, главная) ---------- */

.woocommerce ul.products,
.wfs-front-page ul.products {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 48px;
    padding: 0;
    background: transparent;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
    list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none; }

.woocommerce ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last {
    grid-column: span var(--span, 3);
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--white);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }

.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto;
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--white);
    padding: 8%;
    transition: transform 0.7s var(--ease);
}

.woocommerce ul.products li.product:hover img { transform: scale(1.035); }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    margin: 0 0 12px;
    padding: 4px 16px 0;
    min-height: calc(1.4em * 3 + 4px);
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { display: none; }

.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale { display: none; }

.woocommerce ul.products li.product .wfs-marketplace-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px 16px;
    margin-top: auto;
}

.woocommerce ul.products li.product .wfs-marketplace-buttons a.marketplace-buy-button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
    margin: 0;
}

.woocommerce ul.products li.product .wfs-marketplace-buttons a.marketplace-buy-button + a.marketplace-buy-button {
    background: transparent;
    color: var(--ink) !important;
}

.woocommerce ul.products li.product .wfs-marketplace-buttons a.marketplace-buy-button + a.marketplace-buy-button:hover {
    background: var(--cobalt);
    color: var(--white) !important;
}

/* Подкатегории */

.woocommerce ul.products li.product-category,
.woocommerce ul.products li.product-category.first,
.woocommerce ul.products li.product-category.last { grid-column: span var(--span, 3); background: var(--white); }

.woocommerce ul.products li.product-category + li.product:not(.product-category) { grid-column: 1 / span var(--span, 3); }

.woocommerce ul.products li.product-category a { display: flex; flex: 1; align-items: center; min-height: 64px; padding: 0 20px; text-decoration: none; }
.woocommerce ul.products li.product-category a:hover { background: var(--ink); }
.woocommerce ul.products li.product-category a:hover h2 { color: var(--paper); }
.woocommerce ul.products li.product-category img { display: none !important; }
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title { padding: 0; margin: 0; min-height: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; display: block; }
.woocommerce ul.products li.product-category h2 .count { display: none; }

/* ---------- Каталог: шапка, сортировка, крошки ---------- */

.storefront-breadcrumb { padding: 20px 0 8px !important; margin: 0 !important; font-size: 13px; color: var(--mute); }
.storefront-breadcrumb a { color: var(--mute); }
.woocommerce-breadcrumb { margin: 0 !important; padding: 0 !important; }

.woocommerce-products-header { padding: 24px 0 8px !important; margin: 0 !important; }
.woocommerce-products-header { text-align: left !important; }
.woocommerce-products-header__title.page-title,
.woocommerce-products-header h1 { text-align: left !important; margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

.storefront-sorting { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; font-size: 14px; }
.storefront-sorting .woocommerce-ordering, .storefront-sorting .woocommerce-result-count { margin: 0; padding: 0; float: none; }
.storefront-sorting .woocommerce-pagination, .storefront-sorting .woocommerce-notices-wrapper { display: none; }
.storefront-sorting .woocommerce-result-count { order: 1; margin-right: auto; }
.storefront-sorting .woocommerce-ordering { order: 2; }
.woocommerce-result-count { color: var(--mute); font-family: var(--font-data); font-size: 12px; }

.woocommerce-ordering select,
select.orderby {
    height: 40px;
    padding: 0 36px 0 12px;
    background-color: var(--white);
    border: 1px solid var(--rule);
    border-radius: 0;
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--ink);
}

.woocommerce-pagination ul.page-numbers { display: flex; gap: 0; border: 1px solid var(--rule); width: fit-content; margin: 24px auto; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; margin: 0; }
.woocommerce-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; background: var(--white); color: var(--ink); font-size: 14px; }
.woocommerce-pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

/* ---------- Страница товара ---------- */

.single-product div.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0 clamp(24px, 5vw, 80px); align-items: start; padding-top: 16px; }

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .images { width: 100% !important; float: none !important; margin: 0 !important; background: var(--white); border: 1px solid var(--rule); }

.single-product div.product .woocommerce-product-gallery__image img { width: 100%; height: auto; padding: 6%; background: var(--white); }

.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; padding-top: 8px; }

.woocommerce div.product .summary .product_title {
    margin: 0 0 24px;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.wfs-title-en {
    display: block;
    margin-top: 12px;
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: var(--mute);
}

.single-product div.product .woocommerce-product-details__short-description { display: none; }

.wfs-line-switcher { min-width: 0; max-width: 100%; margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--ink); }

.wfs-line-switcher h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }

.wfs-line-switcher-list { max-width: 100%; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }

.wfs-line-switcher-item { flex: 0 0 104px; scroll-snap-align: start; text-decoration: none; text-align: left; }
.wfs-line-switcher-item img { display: block; width: 104px; height: 104px; object-fit: contain; background: var(--white); border: 1px solid var(--rule); box-sizing: border-box; padding: 4px; transition: border-color 0.25s var(--ease); }
.wfs-line-switcher-item:hover img { border-color: var(--ink); }
.wfs-line-switcher-item.is-current img { border: 2px solid var(--cobalt); }

.wfs-line-switcher-item span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--mute);
}

.wfs-line-switcher-item.is-current span { color: var(--ink); font-weight: 500; }

.single-product .summary .wfs-marketplace-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 24px;
}

.single-product .summary a.marketplace-buy-button { margin: 0; min-height: 56px; font-size: 16px; white-space: normal; text-align: center; padding: 8px 12px; }

.single-product .summary .product_meta { margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--mute); }
.single-product .summary .product_meta > span { display: block; margin-bottom: 4px; }

.wfs-composition { margin: 0 0 24px; }
.wfs-composition h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.wfs-composition p { margin: 0; font-family: var(--font-data); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); overflow-wrap: anywhere; }

.wfs-ppm { color: var(--cobalt); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.single-product div.product::before,
.single-product div.product::after { display: none !important; content: none !important; }

/* Вкладки: описание */

.woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--gap-section); }

.woocommerce-tabs { width: 100% !important; float: none !important; }
.woocommerce-tabs ul.tabs { float: none !important; width: 100% !important; }
.woocommerce-tabs .panel, .woocommerce-tabs .woocommerce-Tabs-panel { float: none !important; width: 100% !important; max-width: 68ch; }

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 32px;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ink) !important;
    list-style: none;
}

.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after, .woocommerce-tabs ul.tabs li a::before, .woocommerce-tabs ul.tabs li a::after { display: none !important; content: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 0 0 12px !important; font-size: 15px; font-weight: 600; color: var(--ink) !important; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--ink); }
.woocommerce-tabs .panel { margin: 0; max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.woocommerce-tabs .panel h2 { display: none; }
.woocommerce-tabs .panel p { margin: 0 0 1em; }

.related.products, .upsells.products { grid-column: 1 / -1; margin-top: var(--gap-section); }
.related.products > h2, .upsells.products > h2 { text-align: left !important; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-size: clamp(1.4rem, 2.2vw, 2rem); }

/* ---------- Внутренние страницы (О бренде, Опт) ---------- */

.wfs-page-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-size: cover;
    background-position: center;
    min-height: clamp(320px, 40vw, 520px);
    display: flex;
    align-items: center;
    margin-bottom: 48px;
}

.wfs-page-hero-inner { max-width: 640px; padding: 32px var(--gutter); margin-left: var(--edge); background: rgba(242, 242, 240, 0.92); }
.wfs-page-hero-inner h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.wfs-page-hero-inner p { margin: 0; color: var(--ink-2); }

.entry-title, .page .entry-header h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }

.entry-content { max-width: none; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3 { max-width: 78ch; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.entry-content p, .entry-content li { line-height: 1.7; }

/* ---------- Блок официального дистрибьютора (главная) ---------- */

.wfs-front-page { padding-bottom: 0; }
.site-content, #primary, .site-main, .site-footer { margin-bottom: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; }
#content .col-full { padding-bottom: 0; }
.wfs-section.wfs-official {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 0;
    padding: clamp(56px, 7vw, 104px) var(--edge);
    background: var(--ink);
    color: var(--on-ink);
}
.wfs-official h2 { color: var(--paper); margin: 0 0 20px; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.wfs-official p { margin: 0 0 16px; max-width: 58ch; }
.wfs-official dl { margin: 0; border-top: 1px solid var(--paper); }
.wfs-official .wfs-btn { background: var(--paper); border-color: var(--paper); color: var(--ink) !important; }
.wfs-official .wfs-btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--white) !important; }
.wfs-official .wfs-link { color: var(--paper); }
.wfs-official .wfs-link:hover { color: var(--white); }
.wfs-official dl div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink-rule); }
.wfs-official dt { font-size: 13px; color: var(--on-ink-mute); }
.wfs-official dd { margin: 0; font-family: var(--font-data); font-size: 13px; color: var(--paper); overflow-wrap: anywhere; }

/* ---------- Подвал ---------- */

#colophon { background: var(--ink); border-top: 1px solid var(--ink-rule); padding: 0; }
#colophon .col-full { max-width: none; margin: 0 !important; padding: 0; }

.wfs-footer {
    width: 100%;
    margin: 0;
    background: var(--ink);
    color: var(--on-ink);
    padding: clamp(48px, 6vw, 80px) 0 0;
}

.wfs-footer-inner {
    box-sizing: content-box;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

.wfs-footer-logo { height: 28px; width: auto; filter: invert(1); margin: 0 0 24px -13.7px; padding: 0; display: block; }
.wfs-footer-col h4 { margin: 0 0 16px; color: var(--paper); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wfs-footer-col p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.wfs-footer-legal-links { display: flex; flex-direction: column; gap: 4px; }
.wfs-footer-legal-links a { display: inline-block; margin: 0; font-size: 14px; color: var(--paper) !important; text-decoration: none; }
.wfs-footer-fine-print { margin-top: 20px !important; font-family: var(--font-text); font-size: 13px !important; line-height: 1.65 !important; color: var(--on-ink-mute); }
.wfs-mono { font-family: var(--font-data); font-size: 12px; color: var(--on-ink); }
.wfs-footer-col a { color: var(--paper) !important; text-decoration: underline; text-decoration-color: var(--ink-rule); text-underline-offset: 0.3em; }
.wfs-footer-col a:hover { color: var(--white) !important; text-decoration-color: var(--paper); }
.wfs-footer-legal-links a { text-decoration: none; }

.wfs-footer-bottom {
    box-sizing: content-box;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: clamp(40px, 5vw, 72px) auto 0;
    padding: 20px var(--gutter);
    border-top: 1px solid var(--ink-rule);
    font-size: 13px;
    color: var(--on-ink-mute);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1000px) {
    .wfs-hero2, .wfs-section.wfs-official, .wfs-featured, .single-product div.product { grid-template-columns: minmax(0, 1fr); }
    .single-product div.product > * { min-width: 0; }
    .wfs-hero-media { min-height: 420px; }
    .wfs-feature--lead { grid-row: auto; }
    .woocommerce ul.products, .wfs-front-page ul.products { --span: 4; }
    .wfs-ledger-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .wfs-ledger-inci { grid-column: 1; }
    .wfs-ledger-ppm { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .wfs-ledger-where { grid-column: 1 / -1; padding-top: 6px; }
}

@media (max-width: 700px) {
    #masthead .col-full { min-height: 56px; }
    #masthead .site-branding img { max-height: 28px; }
    #masthead .site-search { display: none; }

    .wfs-mobile-menu-toggle { display: flex; }

    .wfs-nav-bar { display: none; }
    .wfs-nav-bar.is-menu-open { display: block; }
    .wfs-nav-bar-inner { padding: 0 var(--gutter) 12px; }
    .wfs-nav-group { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .wfs-nav-bar a { display: flex; width: 100%; min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--rule); }
    .wfs-nav-bar a::after { display: none; }
    .wfs-nav-dropdown { width: 100%; }
    .wfs-dropdown-menu { position: static; min-width: 0; border: 0; padding: 0 0 0 16px; background: transparent; }
    .wfs-dropdown-menu a { font-size: 15px; color: var(--ink-2); }
    .wfs-dropdown-menu a:hover { background: transparent; }

    .woocommerce ul.products, .wfs-front-page ul.products { --span: 6; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; padding: 2px 12px 0; margin-bottom: 10px; }
    .woocommerce ul.products li.product .wfs-marketplace-buttons { grid-template-columns: 1fr; padding: 0 12px 12px; }

    .wfs-feature--small { flex-direction: column; }
    .wfs-feature--small .wfs-feature-img { flex: none; }
    .wfs-feature--small .wfs-feature-body { border-left: 0; border-top: 1px solid var(--rule); }

    .single-product .summary .wfs-marketplace-buttons {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 0 calc(-1 * var(--gutter)) 16px;
        padding: 12px var(--gutter);
        background: var(--paper);
        border-top: 1px solid var(--ink);
    }

    .wfs-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .wfs-official dl div { grid-template-columns: 7em minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
