
/* ---- Глобальные токены (как .fs-site на главной) ---- */
:root{
 --fs-bg:#fff;--fs-bg-soft:#f9fafb;--fs-bg-soft2:#fff5f7;--fs-border:#e5e7eb;--fs-accent:#ff4d7e;--fs-accent-soft:#ffe5ef;--fs-accent-dark:#e11d48;--fs-text:#111827;--fs-muted:#6b7280;
 --fs-radius-s:10px;--fs-radius-m:14px;--fs-radius-l:18px;--fs-radius-pill:999px;--fs-max:1180px;--fs-space:16px;
 --fs-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 --theme-palette-color-1:#e11d48;--theme-palette-color-2:#be123c;--theme-palette-color-3:#374151;--theme-palette-color-4:#111827;
 --theme-palette-color-5:#e5e7eb;--theme-palette-color-6:#f3f4f6;--theme-palette-color-7:#f9fafb;--theme-palette-color-8:#ffffff;
 --theme-link-initial-color:#e11d48;--theme-link-hover-color:#be123c;--theme-text-color:#374151;--theme-headings-color:#111827;--theme-heading-color:#111827;
 --theme-border-color:#e5e7eb;--theme-font-family:var(--fs-font);
 --theme-button-background-initial-color:#ff4d7e;--theme-button-background-hover-color:#e11d48;--theme-button-text-initial-color:#fff;--theme-button-text-hover-color:#fff;--theme-button-border-radius:999px;
 --theme-form-field-border-focus-color:#ff4d7e;--theme-form-selection-field-active-color:#ff4d7e;
 --theme-normal-container-max-width:1148px;
}
body{font-family:var(--fs-font);background:#fff;color:#374151}
body h1,body h2,body h3,body h4,body h5,body h6{font-family:var(--fs-font);color:#111827;letter-spacing:-.01em}
/* Blocksy фон-подложки делаем белыми, как на главной */
html body,html body.blog,html body.archive,.ct-main-container,#main-container,main#main{background-color:#fff!important}

/* ---- Шапка/подвал Blocksy скрыты: везде общая fs-шапка ---- */
#header.ct-header,#header[data-id],#offcanvas,.ct-drawer-canvas [data-id="offcanvas"]{display:none!important}
#footer.ct-footer{display:none!important}
.fs-site.fs-shell{margin:0!important;background:#fff;font-family:var(--fs-font);color:var(--fs-text)}
.fs-shell--header{position:sticky;top:0;z-index:100}
.admin-bar .fs-shell--header{top:32px}
.fs-shell--header .fs-header{position:relative}
.fs-shell .fs-container{box-sizing:border-box}
.fs-shell a{text-decoration:none}
.fs-shell ul{margin:0;padding:0}
.fs-shell .fs-nav__list li,.fs-shell .fs-navMobile__list li{margin:0;list-style:none}
.fs-nav__list a.is-current,.fs-navMobile__list a.is-current{color:var(--fs-accent-dark)!important;font-weight:600}
.fs-header .moi-cart{margin-left:auto}
@media (min-width:768px){.fs-header .fs-nav{flex:1 1 auto}.fs-header .moi-cart{margin-left:12px}}
@media (min-width:768px) and (max-width:900px){.fs-nav__list{gap:12px!important}.fs-nav__list a{font-size:13px!important}}
.fs-shell.fs-shell--footer{margin-top:32px!important}
.fs-footer__nap{margin-top:10px;font-size:13px;line-height:1.55;color:var(--fs-muted)}
.fs-footer__nap b{color:var(--fs-text);font-weight:600}
.fs-footer__nap a{color:var(--fs-accent-dark)!important;font-weight:600}
.moicvety-legal-bar{display:none!important}

/* ---- Ширина контейнера как .fs-container главной (1180 + поля 16px) ---- */
html body.blog .site-main,html body.archive .site-main{max-width:none!important;padding:0!important;margin:0!important}
html body.blog .ct-container,html body.archive .ct-container{max-width:var(--fs-max)!important;width:100%!important;padding:18px var(--fs-space) 40px!important;margin:0 auto!important}
html body.blog .page-title,html body.archive .page-title{color:#111827!important;margin:0!important}

/* ---- Компактный заголовок страницы вместо серого hero ---- */
.hero-section[data-type="type-2"]{--min-height:auto!important;min-height:0!important;background:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important}
.hero-section[data-type="type-2"] > figure,.hero-section[data-type="type-2"] .ct-media-container-hero{display:none!important}
.hero-section[data-type="type-2"] .entry-header{max-width:var(--fs-max)!important;width:100%!important;margin:0 auto;padding:22px var(--fs-space) 4px!important;text-align:left!important;align-items:flex-start!important;min-height:0!important;--alignment:left;--horizontal-alignment:flex-start}
.hero-section .page-title,.hero-section .entry-title,.entry-header .page-title{font-size:28px!important;line-height:1.25!important;font-weight:700!important;color:#111827!important;letter-spacing:-.02em;margin:0!important;text-align:left}
.hero-section .page-description,.hero-section .ct-breadcrumbs{font-size:14px;color:var(--fs-muted);text-align:left;margin-top:6px}
.hero-section[data-type="type-1"]{margin-bottom:16px}
html body .hero-section[data-type="type-1"] > .entry-header{padding-left:0!important;padding-right:0!important;background:transparent!important;box-shadow:none!important;border:0!important}
.ct-container[data-vertical-spacing*="top"]{padding-top:18px}
@media (max-width:767.98px){.hero-section .page-title,.hero-section .entry-title,.entry-header .page-title{font-size:22px!important}.hero-section[data-type="type-2"] .entry-header{padding-top:16px!important}}

/* ---- Кнопки: розовый градиент (WooCommerce + тема) ---- */
.button:not(.fs-btn):not(.moi-cart),button.button,a.button,input[type="submit"],button[type="submit"]:not(.fs-header__burger),.wp-element-button,.wp-block-button__link,.ct-button,
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.single_add_to_cart_button,#place_order,.checkout-button,.wc-forward,.added_to_cart,.wc-block-components-button:not(.is-link){
 background:linear-gradient(135deg,#ff4d7e,#ff7aa2)!important;color:#fff!important;border:0!important;border-radius:999px!important;box-shadow:0 10px 24px rgba(248,113,133,.35);font-weight:600;text-decoration:none!important;transition:background .15s,box-shadow .15s,transform .1s}
.button:not(.fs-btn):not(.moi-cart):hover,a.button:hover,button.button:hover,input[type="submit"]:hover,.wp-element-button:hover,.ct-button:hover,.single_add_to_cart_button:hover,#place_order:hover,.checkout-button:hover,.wc-forward:hover{background:linear-gradient(135deg,#ff396f,#ff6c97)!important;color:#fff!important;transform:translateY(-1px)}
.button.disabled,.button:disabled,button:disabled{opacity:.55;transform:none}
/* вторичные кнопки в стиле fs-btn--ghost */
.woocommerce-cart-form button[name="update_cart"],.woocommerce .coupon button.button,.ct-button-ghost,.is-style-outline .wp-block-button__link{background:#fff!important;color:#111827!important;border:1px solid rgba(209,213,219,.9)!important;box-shadow:none!important}
/* пагинация */
.ct-pagination{--theme-text-color:#374151}
.ct-pagination .page-numbers{border-radius:999px!important;border:1px solid #e5e7eb!important;min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:#374151!important;background:#fff}
.ct-pagination .page-numbers.current{background:linear-gradient(135deg,#ff4d7e,#ff7aa2)!important;color:#fff!important;border-color:transparent!important}
.ct-pagination .page-numbers:not(.current):hover{border-color:#ff7aa2!important;color:#e11d48!important}
.ct-pagination .next,.ct-pagination .prev{padding:0 16px}
/* чипы / бейджи / сортировка */
.onsale,.ct-woo-badge-onsale{background:linear-gradient(135deg,#ff4d7e,#ff7aa2)!important;color:#fff!important;border-radius:999px!important}
.woocommerce-ordering select,select.orderby{border-radius:999px!important;border-color:#e5e7eb!important}
.quantity{--quantity-arrows-initial-color:#e11d48}
.quantity input.qty{border-radius:999px}
.woocommerce-message,.woocommerce-info{--theme-palette-color-1:#e11d48;border-radius:14px}
input:focus,select:focus,textarea:focus{border-color:#ff7aa2!important;box-shadow:0 0 0 3px rgba(255,122,162,.18)!important}
input[type="radio"]:checked,input[type="checkbox"]:checked{accent-color:#e11d48}

/* ---- Карточки товаров (каталог, рубрики, похожие, upsell) как витрина главной ---- */
ul.products[data-products]{gap:18px!important;--grid-columns-gap:18px}
ul.products[data-products] li.product{background:#fff;border:1px solid #e8ebf0;border-radius:20px;overflow:hidden;display:flex!important;flex-direction:column;box-shadow:0 10px 26px rgba(15,23,42,.05);transition:box-shadow .15s,transform .15s;padding:0!important;text-align:left;--horizontal-alignment:flex-start;--text-horizontal-alignment:left}
ul.products[data-products] li.product:hover{box-shadow:0 14px 32px rgba(15,23,42,.10);transform:translateY(-2px)}
ul.products[data-products] li.product figure{margin:0!important;order:0}
ul.products[data-products] li.product .ct-media-container{border-radius:0!important;display:block;aspect-ratio:1/1;background:#f9fafb}
ul.products[data-products] li.product .ct-media-container img{aspect-ratio:1/1!important;width:100%;height:100%;object-fit:cover;border-radius:0!important}
ul.products[data-products] li.product > *:not(figure){margin-left:14px!important;margin-right:14px!important}
ul.products[data-products] li.product .woocommerce-loop-product__title{margin-top:12px!important;margin-bottom:6px!important;font-size:15px!important;font-weight:600!important;line-height:1.3!important}
ul.products[data-products] li.product .woocommerce-loop-product__title a{color:#111827!important}
ul.products[data-products] li.product .woocommerce-loop-product__title a:hover{color:#e11d48!important}
ul.products[data-products] li.product .price{font-size:17px!important;font-weight:700!important;color:#111827!important;margin-bottom:10px!important}
ul.products[data-products] li.product .entry-meta{display:none!important}
ul.products[data-products] li.product .ct-woo-card-actions,ul.products[data-products] li.product > .button{margin-top:auto!important;margin-bottom:14px!important;width:auto}
ul.products[data-products] li.product .ct-woo-card-actions{display:flex!important;flex-direction:column;align-items:stretch!important;align-self:stretch!important;justify-content:flex-start}
ul.products[data-products] li.product{align-items:stretch!important}
ul.products[data-products] li.product .ct-woo-card-actions .button,ul.products[data-products] li.product > .button{width:100%!important;justify-content:center;text-align:center;padding:10px 14px!important;min-height:42px;font-size:14px}
ul.products[data-products] li.product .added_to_cart{background:none!important;box-shadow:none!important;color:#e11d48!important;font-size:13px;padding:4px 0 0!important;text-align:center}
@media (max-width:999.98px){ul.products[data-products]{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:767.98px){
 ul.products[data-products]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 ul.products[data-products] li.product{border-radius:16px}
 ul.products[data-products] li.product > *:not(figure){margin-left:10px!important;margin-right:10px!important}
 ul.products[data-products] li.product .woocommerce-loop-product__title{font-size:13.5px!important;margin-top:10px!important}
 ul.products[data-products] li.product .price{font-size:15px!important;margin-bottom:8px!important}
 ul.products[data-products] li.product .ct-woo-card-actions .button,ul.products[data-products] li.product > .button{padding:8px 10px!important;font-size:13px;min-height:38px}
 ul.products[data-products] li.product .ct-woo-card-actions,ul.products[data-products] li.product > .button{margin-bottom:12px!important}
}
/* заголовки секций «Похожие/Вам также» как fs-section__title */
.related > h2,.upsells > h2,.cross-sells > h2,.ct-related-posts .ct-module-title,.ct-related-posts > .ct-container > h3{font-size:20px!important;font-weight:700!important;letter-spacing:-.02em;color:#111827!important}

/* ---- Карточка товара: цена, табы ---- */
.single-product .product_title{font-size:28px;line-height:1.25;font-weight:700}
.single-product .summary .price{color:#111827!important;font-weight:700}
.woocommerce-tabs .tabs li.active a,.woocommerce-tabs .tabs li a:hover{color:#e11d48!important}
.woocommerce-tabs .tabs li.active{--theme-border-color:#e11d48;border-color:#e11d48!important}
.ct-breadcrumbs a{color:#e11d48}

/* ---- Корзина/оформление: аккуратные блоки ---- */
body:not(.home) main h1.moi-checkout-title{font-size:28px;margin:6px 0 18px}
@media (max-width:767.98px){body:not(.home) main h1.moi-checkout-title{font-size:22px}}
.woocommerce-cart .cart_totals,.woocommerce-checkout #order_review,.woocommerce-checkout .woocommerce-checkout-review-order{border-radius:18px}
.woocommerce table.shop_table{border-radius:14px}


/* ---- Типографика контента (масштаб как у секций главной) ---- */
body:not(.home) main h1:not([class*="fs-"]){font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-.02em}
.entry-content h2:not([class*="fs-"]):not([class*="moi-"]){font-size:24px;line-height:1.3;font-weight:700;letter-spacing:-.02em;margin-top:1.4em}
.entry-content h3:not([class*="fs-"]):not([class*="moi-"]){font-size:19px;line-height:1.35;font-weight:700}
.entry-content h4:not([class*="fs-"]){font-size:17px;line-height:1.4}
.entry-content p,.entry-content li{line-height:1.65}
@media (max-width:767.98px){
 body:not(.home) main h1:not([class*="fs-"]){font-size:24px}
 .entry-content h2:not([class*="fs-"]):not([class*="moi-"]){font-size:20px}
 .entry-content h3:not([class*="fs-"]):not([class*="moi-"]){font-size:17px}
}

/* ---- Мобильная: ничего не вылезает ---- */
@media (max-width:767.98px){
 html,body{overflow-x:hidden}
 .ct-container,.ct-container-narrow{width:calc(100% - 2*var(--fs-space))}
}
