/* ============================================================
   PREMIUM B2B CATALOG STYLES (FULL EDITION)
   ============================================================ */

.sp-shell {
    position: relative; border-radius: 28px; border: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,255,255,0.028) 0%, rgba(255,255,255,0.012) 100%), linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ============================================================
   КНОПКИ В ШАПКЕ (КАТАЛОГ И ОТПРАВИТЬ ЗАЯВКУ) - ЖЕЛЕЗОБЕТОННЫЙ СТИЛЬ
   ============================================================ */
html body .sp-header .ast-builder-button-wrap .ast-custom-button,
html body .sp-header .ast-custom-html a.button,
html body .sp-header .ast-custom-html a[href*="/shop/"],
html body .sp-header__cta-btn,
html body .sp-header__catalog-btn,
html body .sp-header [data-pi-request-open] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    
    background-color: transparent !important;
    background-image: 
        linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%), 
        linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%) !important;
    
    border: 1px solid rgba(255,122,0,0.40) !important;
    color: rgba(255,255,255,0.95) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    outline: none !important;
}

html body .sp-header .ast-builder-button-wrap .ast-custom-button:hover,
html body .sp-header .ast-custom-html a[href*="/shop/"]:hover,
html body .sp-header__cta-btn:hover,
html body .sp-header__catalog-btn:hover,
html body .sp-header [data-pi-request-open]:hover {
    background-color: transparent !important;
    background-image: 
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%), 
        linear-gradient(180deg, rgba(10,14,19,0.8) 0%, rgba(11,16,22,0.95) 100%) !important;
    border-color: rgba(255,122,0,0.7) !important;
    color: #fff !important;
    box-shadow: 0 14px 32px rgba(255, 122, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    transform: translateY(-1px) !important;
}

html body .sp-header .ast-builder-button-wrap .ast-custom-button svg,
html body .sp-header .ast-custom-html a[href*="/shop/"] svg,
html body .sp-header__cta-btn svg,
html body .sp-header__catalog-btn svg,
html body .sp-header [data-pi-request-open] svg {
    width: 18px !important;
    height: 18px !important;
    fill: #ff7a00 !important;
    color: #ff7a00 !important;
    transition: transform 0.2s ease !important;
}

/* ============================================================
   ПРЕМИУМ ПОИСК И МОБИЛЬНОЕ МЕНЮ
   ============================================================ */
.ast-search-menu-icon .search-form, .sp-header .search-form, [id*="search"] .search-form { background: transparent !important; }
input.sp-search__input { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; color: #fff !important; outline: none !important; }
input.sp-search__input:focus { background: transparent !important; background-color: transparent !important; border: none !important; box-shadow: none !important; outline: none !important; }
input.sp-search__input:-webkit-autofill, input.sp-search__input:-webkit-autofill:hover, input.sp-search__input:-webkit-autofill:focus, input.sp-search__input:-webkit-autofill:active{ -webkit-box-shadow: 0 0 0 30px #13171c inset !important; -webkit-text-fill-color: white !important; transition: background-color 5000s ease-in-out 0s; }

.sp-mobile-search__input, .widget_product_search .search-field, .woocommerce-product-search .search-field, .sp-header input[type="search"], form.search-form input.search-field, form.search-form input[type="search"] {
    background: rgba(10, 14, 19, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #fff !important; border-radius: 12px !important; padding: 0 16px !important; min-height: 48px !important; box-shadow: inset 0 2px 8px rgba(0,0,0,0.3) !important; transition: all 0.3s ease !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; width: 100% !important; box-sizing: border-box !important;
}
.sp-search__input::placeholder, .sp-mobile-search__input::placeholder, .widget_product_search .search-field::placeholder, .sp-header input[type="search"]::placeholder, form.search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.4) !important; }
.sp-search__input:focus, .sp-mobile-search__input:focus, .widget_product_search .search-field:focus, .sp-header input[type="search"]:focus, form.search-form input[type="search"]:focus { border-color: rgba(255, 122, 0, 0.4) !important; box-shadow: 0 0 16px rgba(255, 122, 0, 0.15), inset 0 2px 8px rgba(0,0,0,0.3) !important; outline: none !important; background: rgba(10, 14, 19, 0.9) !important; }

.sp-search__submit, .sp-mobile-search__submit, .widget_product_search .search-submit, .woocommerce-product-search button[type="submit"], .sp-header button.search-submit, .sp-header input.search-submit, form.search-form button.search-submit, form.search-form input[type="submit"], form.search-form button[type="submit"] {
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%), linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%) !important;
    color: rgba(255,255,255,0.95) !important; border: 1px solid rgba(255,122,0,0.40) !important; border-radius: 12px !important; min-height: 48px !important; padding: 0 24px !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: 0.06em !important; text-transform: uppercase !important; box-shadow: 0 14px 32px rgba(0,0,0,0.28), 0 0 18px rgba(255,122,0,0.10), inset 0 1px 0 rgba(255,255,255,0.04) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; transition: all 0.2s ease !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; width: auto !important; margin-top: 0 !important;
}
.widget_product_search button.search-submit { margin-top: 0 !important; }
.sp-search__submit:hover, .sp-mobile-search__submit:hover, .widget_product_search .search-submit:hover, .sp-header button.search-submit:hover, form.search-form button[type="submit"]:hover { transform: translateY(-1px) !important; border-color: rgba(255,122,0,0.62) !important; color: #fff !important; box-shadow: 0 18px 40px rgba(0,0,0,0.32), 0 0 22px rgba(255,122,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05) !important; }
.sp-search__submit:active, .sp-mobile-search__submit:active, .widget_product_search .search-submit:active, .sp-header button.search-submit:active, form.search-form button[type="submit"]:active { transform: translateY(0) !important; }
.sp-mobile-search__submit, .ast-mobile-popup-inner button.search-submit, .ast-mobile-popup-inner input[type="submit"] { width: 100% !important; margin-top: 12px !important; }

.ast-mobile-popup-inner { background: #050608 !important; }
.ast-mobile-popup-inner .ast-mobile-popup-content .ast-builder-menu-mobile .main-header-menu { background: transparent !important; }
.ast-mobile-popup-inner .main-header-menu > .menu-item > a { border-bottom: 1px solid rgba(255,255,255,0.04) !important; color: rgba(255,255,255,0.85) !important; font-weight: 600 !important; padding-top: 18px !important; padding-bottom: 18px !important; }
.ast-mobile-popup-inner .main-header-menu > .menu-item > a:hover { color: #ff7a00 !important; background: rgba(255,255,255,0.02) !important; }
.ast-mobile-popup-inner .widget-title, .widget_product_search .widget-title { color: rgba(255,255,255,0.4) !important; font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px !important; }

/* ============================================================
   ЛОАДЕР ДЛЯ КОРЗИНЫ WOOCOMMERCE
   ============================================================ */
body .blockUI.blockOverlay::before, body .woocommerce-mini-cart-item .blockUI.blockOverlay::before { display: none !important; content: none !important; }
body .blockUI.blockOverlay {
    background-color: rgba(10, 14, 19, 0.7) !important; backdrop-filter: blur(4px) !important; -webkit-backdrop-filter: blur(4px) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23ff7a00' stroke-width='4' stroke-dasharray='30 100' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: center center !important; background-size: 28px 28px !important; cursor: wait !important; z-index: 9999 !important;
}
body .blockUI.blockOverlay::after { display: none !important; }

/* ============================================================
   ДИЗАЙН МИНИ-КОРЗИНЫ 
   ============================================================ */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons {
    display: flex !important; gap: 12px !important; padding: 16px 0 0 !important; border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button {
    flex: 1 !important; margin: 0 !important; text-align: center !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    height: 44px !important; border-radius: 12px !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: 0.05em !important; text-transform: uppercase !important; padding: 0 !important; text-decoration: none !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%), linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%) !important;
    border: 1px solid rgba(255,122,0,0.40) !important; color: rgba(255,255,255,0.95) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04) !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons a.button:hover {
    border-color: rgba(255,122,0,0.62) !important; color: #fff !important;
    box-shadow: 0 12px 32px rgba(255, 122, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    transform: translateY(-1px) !important;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item { position: relative !important; padding-right: 48px !important; }
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
    position: absolute !important; top: 12px !important; right: 4px !important; width: 30px !important; height: 30px !important;
    background: rgba(255, 255, 255, 0.05) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 50% !important; color: rgba(255, 255, 255, 0.5) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 0 !important; z-index: 10 !important; margin: 0 !important; padding: 0 !important; transition: all 0.2s ease !important; text-decoration: none !important;
}
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover { background: rgba(255, 122, 0, 0.15) !important; border-color: #ff7a00 !important; color: #ff7a00 !important; transform: scale(1.1) !important; }
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove span, ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove svg { display: flex !important; align-items: center !important; justify-content: center !important; width: 14px !important; height: 14px !important; fill: currentColor !important; margin: 0 !important; padding: 0 !important; }

/* ============================================================
   ГЛАВНАЯ СТРАНИЦА: КНОПКИ HERO
   ============================================================ */
html body a.home-hero__btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 10px !important; height: 52px !important; padding: 0 28px !important; border-radius: 14px !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: 0.04em !important; text-transform: uppercase !important; text-decoration: none !important; transition: all 0.3s ease !important; outline: none !important; }
html body a.home-hero__btn svg { width: 20px !important; height: 20px !important; transition: transform 0.3s ease !important; stroke: currentColor !important; fill: none !important; }
html body a.home-hero__btn:hover svg { transform: translateX(4px) !important; }
html body a.home-hero__btn--secondary { background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: rgba(255, 255, 255, 0.8) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; box-shadow: none !important; }
html body a.home-hero__btn--secondary:hover, html body a.home-hero__btn--secondary:focus { background: rgba(255, 122, 0, 0.1) !important; border-color: rgba(255, 122, 0, 0.3) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(255, 122, 0, 0.15) !important; }

/* ============================================================
   CATALOG WRAPPER & ASTRA NEUTRALIZATION
   ============================================================ */
body.woocommerce .site-content, body.woocommerce .ast-container, body.woocommerce #primary, body.woocommerce #main { max-width: 100% !important; padding: 0 !important; margin: 0 !important; background: transparent !important; background-color: transparent !important; box-shadow: none !important; border: none !important; }
.pi-catalog-wrapper { position: relative; z-index: 2; width: 100%; max-width: 1720px; margin: 0 auto; padding: 28px 34px 80px; opacity: 0; transform: translateY(15px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pi-catalog-wrapper.is-visible { opacity: 1; transform: translateY(0); }
.pi-catalog-wrapper::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(circle at 14% 10%, rgba(37,69,104,0.16), transparent 34%), radial-gradient(circle at 88% 16%, rgba(255,122,0,0.032), transparent 30%), radial-gradient(circle at 50% 120%, rgba(0,0,0,0.50), transparent 55%); opacity: 0.70; }
.pi-catalog-wrapper::after { content: ""; position: absolute; inset: -40px -20px; pointer-events: none; z-index: 1; background: radial-gradient(900px 520px at 50% 0%, rgba(0,0,0,0.42), transparent 62%), radial-gradient(1200px 900px at 50% 60%, rgba(0,0,0,0.40), transparent 62%), linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.26) 100%); opacity: 0.70; mask-image: radial-gradient(ellipse 120% 90% at 50% 18%, rgba(0,0,0,0.40) 0%, rgba(0,0,0,1) 62%); }
.pi-catalog-wrapper > * { position: relative; z-index: 2; }

/* WOOCOMMERCE NOTICES */
body.post-type-archive-product .woocommerce-notices-wrapper, body.tax-product_cat .woocommerce-notices-wrapper, body.woocommerce.archive .woocommerce-notices-wrapper { position: relative; z-index: 50; max-width: 1720px; margin: 0 auto 14px; padding: 0 34px; }
body.post-type-archive-product .woocommerce-message, body.post-type-archive-product .woocommerce-error, body.post-type-archive-product .woocommerce-info, body.tax-product_cat .woocommerce-message, body.tax-product_cat .woocommerce-error, body.tax-product_cat .woocommerce-info { border-radius: 18px; border: 1px solid rgba(255,255,255,0.08) !important; background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)), linear-gradient(180deg, rgba(10,14,19,0.82), rgba(11,16,22,0.92)) !important; color: rgba(255,255,255,0.88) !important; box-shadow: 0 18px 55px rgba(0,0,0,0.35) !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px !important; }
body.post-type-archive-product .woocommerce-message::before, body.tax-product_cat .woocommerce-message::before { display: none !important; }
body.post-type-archive-product .woocommerce-error, body.tax-product_cat .woocommerce-error { list-style: none !important; padding-left: 16px !important; }
body.post-type-archive-product .woocommerce-error li, body.tax-product_cat .woocommerce-error li { list-style: none !important; margin: 0 !important; }
body.post-type-archive-product .woocommerce-message a, body.tax-product_cat .woocommerce-message a { color: rgba(255,255,255,0.92) !important; font-weight: 900 !important; text-decoration: none !important; }
body.post-type-archive-product .woocommerce-message a:hover, body.tax-product_cat .woocommerce-message a:hover { color: #FF7A00 !important; }
body.post-type-archive-product .woocommerce-message a.button, body.tax-product_cat .woocommerce-message a.button { height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 18px !important; border-radius: 14px !important; text-decoration: none !important; background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%), linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%) !important; border: 1px solid rgba(255,122,0,0.55) !important; color: rgba(255,255,255,0.96) !important; font-size: 12px !important; font-weight: 950 !important; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 14px 32px rgba(0,0,0,0.28), 0 0 18px rgba(255,122,0,0.10), inset 0 1px 0 rgba(255,255,255,0.04) !important; backdrop-filter: blur(12px); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
body.post-type-archive-product .woocommerce-message a.button:hover, body.tax-product_cat .woocommerce-message a.button:hover { transform: translateY(-1px); border-color: rgba(255,122,0,0.75) !important; box-shadow: 0 18px 40px rgba(0,0,0,0.32), 0 0 22px rgba(255,122,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05) !important; }

@media (max-width: 767px) {
    body.post-type-archive-product .woocommerce-notices-wrapper, body.tax-product_cat .woocommerce-notices-wrapper, body.woocommerce.archive .woocommerce-notices-wrapper { padding: 0 14px; }
    body.post-type-archive-product .woocommerce-message, body.tax-product_cat .woocommerce-message { flex-wrap: wrap; justify-content: flex-start; }
}

/* HUB HEADER */
.pi-shop-hub-header { text-align: center; margin-bottom: 75px; padding-top: 30px; position: relative; z-index: 5; }
.pi-hub-title { font-size: clamp(42px, 5vw, 76px); font-weight: 900; margin: 0; line-height: 1.1; letter-spacing: -0.02em; background: linear-gradient(180deg, #ffffff 0%, #8a95a5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }

/* ROOT SHOP HUB CARDS (4 КОЛОНКИ) */
.pi-shop-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 60px; margin-top: 20px; }
.pi-hub-card { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 400px; border-radius: 28px; overflow: hidden; text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pi-hub-card::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,122,0,0.08), transparent 40%); opacity: 0; transition: opacity 0.4s ease; z-index: 2; pointer-events: none; }
.pi-hub-card-image { position: absolute; inset: 0; z-index: 1; }
.pi-hub-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; }
.pi-hub-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0) 0%, rgba(5,6,8,0.4) 40%, rgba(5,6,8,0.95) 100%); transition: opacity 0.4s ease; }
.pi-hub-card-content { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; flex-grow: 1; padding: 24px; width: 100%; }
.pi-hub-card-count { position: absolute; top: 18px; right: 18px; z-index: 4; padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(255, 122, 0, 0.15); border: 1px solid rgba(255, 122, 0, 0.3); backdrop-filter: blur(10px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.pi-hub-card-subcats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pi-subcat-link { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500; padding: 4px 8px; margin-left: -8px; border-radius: 8px; transition: all 0.2s ease; }
.pi-hub-card-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pi-hub-card-title { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: #fff; margin: 0; line-height: 1.15; text-shadow: 0 4px 16px rgba(0,0,0,0.6); transition: color 0.3s ease; }
.pi-hub-card-action { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: rgba(255, 122, 0, 0.1); border: 1px solid rgba(255, 122, 0, 0.25); color: #FF7A00; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(8px); }
.pi-hub-card-action svg { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pi-hub-card:hover { transform: translateY(-8px); border-color: rgba(255, 122, 0, 0.4); box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(255, 122, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.1); }
.pi-hub-card:hover::before { opacity: 1; }
.pi-hub-card:hover .pi-hub-card-image img { transform: scale(1.08); opacity: 0.9; }
.pi-hub-card:hover .pi-hub-card-title { color: #FF7A00; }
.pi-hub-card:hover .pi-subcat-link { color: #fff; background: rgba(255,255,255,0.08); }
.pi-hub-card:hover .pi-hub-card-action { background: #FF7A00; color: #fff; transform: scale(1.1); border-color: #FF7A00; box-shadow: 0 8px 24px rgba(255, 122, 0, 0.3); }
.pi-hub-card:hover .pi-hub-card-action svg { transform: rotate(-45deg); }

/* CATEGORY ARCHIVE BREADCRUMBS & SIDEBAR */
.pi-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.62); margin: 0 0 22px; padding-left: 2px; }
.pi-breadcrumbs a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.2s ease; }
.pi-breadcrumbs a:hover { color: #FF7A00; }
.pi-breadcrumbs .pi-sep { opacity: 0.35; }
.pi-breadcrumbs .pi-current { color: rgba(255,255,255,0.95); }
.pi-category-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); gap: 34px; align-items: start; }
.pi-main-content { min-width: 0; }
.pi-category-title { margin: 0 0 22px; font-size: 46px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }

.pi-sidebar { position: sticky; top: 24px; padding: 0 !important; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, rgba(17,22,29,0.95) 0%, rgba(10,14,19,0.97) 100%); box-shadow: 0 18px 50px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03); }
.pi-sidebar-header { background: linear-gradient(180deg, rgba(255,122,0,0.14) 0%, rgba(255,122,0,0.08) 100%); border-bottom: 1px solid rgba(255,122,0,0.18); padding: 18px 22px; display: flex; align-items: center; gap: 12px; color: #FF7A00; font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.pi-sidebar-menu { list-style: none; padding: 14px !important; margin: 0; }
.pi-sidebar-item { margin-bottom: 7px; }
.pi-sidebar-item-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 12px 14px; color: rgba(255,255,255,0.92); font-weight: 700; font-size: 14px; text-decoration: none; border-radius: 14px; transition: all 0.22s ease; border: 1px solid transparent; }
.pi-cat-name { flex: 1 1 auto; }
.pi-cat-arrow-wrap { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; margin-right: -6px; cursor: pointer; transition: background-color 0.2s ease; }
.pi-cat-arrow { opacity: 0.34; transition: all 0.22s ease; }
.pi-sidebar-item-link:hover { background: rgba(255,255,255,0.03); color: #fff; }
.pi-sidebar-item-link:hover .pi-cat-arrow-wrap { background-color: rgba(255,255,255,0.05); }
.pi-sidebar-item.active > .pi-sidebar-item-link { background: linear-gradient(180deg, rgba(255,122,0,0.11) 0%, rgba(255,122,0,0.06) 100%); border-color: rgba(255,122,0,0.22); color: #FF7A00; box-shadow: 0 10px 24px rgba(255,122,0,0.08); }
.pi-sidebar-item.is-open > .pi-sidebar-item-link .pi-cat-arrow { transform: rotate(90deg); }
.pi-sidebar-item.active > .pi-sidebar-item-link .pi-cat-arrow, .pi-sidebar-item.is-open > .pi-sidebar-item-link .pi-cat-arrow { opacity: 1; color: #FF7A00; }
.pi-sidebar-submenu { list-style: none; padding: 0 0 0 8px; margin: 0; position: relative; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, margin-top 0.4s ease; }
.pi-sidebar-item.is-open > .pi-sidebar-submenu { max-height: 1500px; margin-top: 8px; margin-bottom: 10px; }
.pi-sidebar-submenu::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 14px; width: 1px; background: linear-gradient(180deg, rgba(255,122,0,0.24) 0%, rgba(255,255,255,0.04) 100%); }
.pi-sidebar-submenu li { margin-bottom: 4px; }
.pi-sidebar-submenu a { position: relative; display: block; padding: 9px 12px 9px 28px; border-radius: 10px; color: rgba(255,255,255,0.68); text-decoration: none; font-size: 13px; font-weight: 500; transition: all 0.2s ease; }
.pi-sidebar-submenu a::before { content: ""; position: absolute; left: 14px; top: 17px; width: 6px; height: 1px; background: rgba(255,122,0,0.45); }
.pi-sidebar-submenu a.current, .pi-sidebar-submenu a:hover { color: #fff; background: rgba(255,122,0,0.06); }

/* SUBCATEGORY CARDS */
.pi-subcats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.pi-subcat-card { position: relative; display: block; text-decoration: none; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 12px 28px rgba(0,0,0,0.2); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease; border: 1px solid rgba(255,255,255,0.08); }
.pi-subcat-card:hover { transform: translateY(-4px); border-color: rgba(255,122,0,0.3); box-shadow: 0 20px 42px rgba(0,0,0,0.3), 0 0 20px rgba(255,122,0,0.1); }
.pi-subcat-card-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.pi-subcat-card:hover .pi-subcat-card-image { transform: scale(1.08); }
.pi-subcat-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,6,8,0) 0%, rgba(5,6,8,0.2) 30%, rgba(5,6,8,0.92) 100%); }
.pi-subcat-card-title { position: absolute; bottom: 14px; left: 16px; right: 16px; margin: 0; z-index: 2; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.28; text-shadow: 0 2px 10px rgba(0,0,0,0.6); display: flex; justify-content: space-between; align-items: center; transition: color 0.25s ease; }
.pi-subcat-arrow { opacity: 0; transform: translateX(-10px); transition: all 0.3s ease; color: #ff7a00; }
.pi-subcat-card:hover .pi-subcat-card-title { color: #FF7A00; }
.pi-subcat-card:hover .pi-subcat-arrow { opacity: 1; transform: translateX(0); }

/* TOOLBAR, SORTING & CUSTOM SELECT */
.pi-toolbar {
    position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between;
    gap: 18px; margin-bottom: 20px; padding: 10px 18px !important; border-radius: 18px;
    background: linear-gradient(180deg, rgba(16,20,27,0.92) 0%, rgba(10,14,19,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.woocommerce-result-count { margin: 0 !important; font-size: 14px; color: rgba(255,255,255,0.4); font-weight: 500; }
.pi-toolbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.ast-woocommerce-container .woocommerce-ordering select,
.ast-woocommerce-container .woocommerce-ordering .ast-custom-select,
.ast-woocommerce-container .woocommerce-ordering .ast-select-wrapper,
.woocommerce-ordering select.orderby,
.woocommerce-ordering .ast-select-wrapper::after { 
    display: none !important; opacity: 0 !important; visibility: hidden !important; width: 0 !important; height: 0 !important;
}

.pi-custom-select { position: relative; user-select: none; min-width: 220px; font-family: inherit; z-index: 40; }
.pi-select-trigger { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background-color: rgba(9,12,17,0.9); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.pi-select-trigger svg { width: 14px; height: 14px; color: rgba(255,255,255,0.5); transition: transform 0.2s ease; }
.pi-select-trigger:hover, .pi-custom-select.is-open .pi-select-trigger { border-color: rgba(255,122,0,0.3); }
.pi-custom-select.is-open .pi-select-trigger svg { transform: rotate(180deg); }
.pi-select-options { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: linear-gradient(180deg, rgba(18,22,28,0.98) 0%, rgba(10,14,19,0.98) 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pi-custom-select.is-open .pi-select-options { opacity: 1; visibility: visible; transform: translateY(0); }
.pi-select-option { padding: 10px 14px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65); cursor: pointer; transition: all 0.2s ease; }
.pi-select-option:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.03); }
.pi-select-option:hover { background: rgba(255,122,0,0.08); color: #fff; padding-left: 18px; }
.pi-select-option.is-selected { color: #ff7a00; background: rgba(255,122,0,0.04); font-weight: 700; }

.pi-view-toggle { display: flex; gap: 8px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.04); }
.pi-view-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: transparent; border: 1px solid transparent; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.22s ease; padding: 0; outline: none;}
.pi-view-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; display: block; }
.pi-view-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.pi-view-btn[data-active="true"] { background: rgba(255, 122, 0, 0.10); border-color: rgba(255, 122, 0, 0.36); color: #ff7a00; box-shadow: 0 8px 18px rgba(0,0,0,0.25), 0 0 18px rgba(255,122,0,0.14); }

/* PRODUCT LIST: SHARED LOGIC */
ul.products { margin: 0 !important; padding: 0 !important; list-style: none !important; }
ul.products::before, ul.products::after { display: none !important; }
ul.products > li.product { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; clear: both !important; }
.pi-catalog-wrapper[data-view="grid"] .pi-product-row, .pi-catalog-wrapper[data-view="grid"] .pi-products-list-header { display: none; }
.pi-catalog-wrapper[data-view="list"] .pi-product-card { display: none; }

/* BRAND BUTTON CTA */
.pi-b2b-btn, .pi-add-cart-btn {
    height: 40px; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 16px !important; border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%), linear-gradient(180deg, rgba(10,14,19,0.72) 0%, rgba(11,16,22,0.86) 100%) !important;
    border: 1px solid rgba(255,122,0,0.40) !important; color: rgba(255,255,255,0.95) !important; text-transform: uppercase; font-size: 12px !important; font-weight: 800 !important; letter-spacing: 0.06em;
    box-shadow: 0 14px 32px rgba(0,0,0,0.28), 0 0 18px rgba(255,122,0,0.10), inset 0 1px 0 rgba(255,255,255,0.04) !important; backdrop-filter: blur(12px); transition: all 0.18s ease; text-decoration: none !important;
}
.pi-b2b-btn:hover, .pi-add-cart-btn:hover { transform: translateY(-1px); border-color: rgba(255,122,0,0.62) !important; color: #fff !important; box-shadow: 0 18px 40px rgba(0,0,0,0.32), 0 0 22px rgba(255,122,0,0.16), inset 0 1px 0 rgba(255,255,255,0.05) !important; }
.pi-b2b-btn--sm { height: 38px; padding: 0 14px !important; font-size: 11px !important; border-radius: 12px !important; }

/* ПРЯЧЕМ СТРЕЛКИ В ИНПУТЕ (NUMBER) */
.pi-row-cart .quantity .input-text.qty {
    width: 60px !important; height: 40px; text-align: center; border-radius: 8px;
    background: rgba(9,12,17,0.8); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 14px; font-weight: 700;
    appearance: textfield; -moz-appearance: textfield; -webkit-appearance: textfield;
}
.pi-row-cart .quantity .input-text.qty::-webkit-outer-spin-button,
.pi-row-cart .quantity .input-text.qty::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

.pi-add-cart-btn { width: 48px; padding: 0 !important; font-size: 0 !important; color: transparent !important; }
.pi-add-cart-btn::before {
    content: '' !important; display: inline-block; width: 20px; height: 20px; background-color: #FF7A00;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5V19M5 12H19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5V19M5 12H19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Состояние добавленного товара */
.pi-b2b-btn.added, .pi-add-cart-btn.added, .woocommerce a.button.add_to_cart_button.added { border-color: rgba(53, 208, 127, 0.5) !important; color: #35d07f !important; }
.pi-row-cart .added_to_cart { display: none !important; }
.woocommerce a.button.add_to_cart_button.added::after { display: none !important; }

/* БРОНЕБОЙНЫЙ ФИКС КНОПКИ КОРЗИНЫ */
.pi-b2b-btn:focus, .pi-add-cart-btn:focus, .woocommerce a.button:focus,
.pi-b2b-btn:active, .pi-add-cart-btn:active, .woocommerce a.button:active {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.2) !important;
}

.pi-b2b-btn.loading, .pi-add-cart-btn.loading, .woocommerce a.button.loading {
    color: transparent !important;
    background: linear-gradient(180deg, rgba(10,14,19,0.8) 0%, rgba(11,16,22,0.9) 100%) !important;
    border-color: rgba(255,122,0,0.6) !important;
    position: relative !important;
}
.pi-b2b-btn.loading::before, .pi-add-cart-btn.loading::before, .woocommerce a.button.loading::before { display: none !important; }

.pi-b2b-btn.loading::after, .pi-add-cart-btn.loading::after, .woocommerce a.button.loading::after {
    content: "" !important; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 122, 0, 0.2) !important; border-top-color: #ff7a00 !important; border-radius: 50% !important; animation: pi-woo-spinner 0.6s linear infinite !important; display: block !important;
}

@keyframes pi-woo-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* GRID VIEW: CARDS */
.pi-catalog-wrapper[data-view="grid"] ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pi-product-card {
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px !important; border-radius: 22px; overflow: hidden;
    background: radial-gradient(900px 240px at 40% -20%, rgba(255,122,0,0.06), transparent 55%), linear-gradient(180deg, rgba(18,22,28,0.96) 0%, rgba(10,14,19,0.985) 100%);
    border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 18px 44px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.03); transition: all 0.28s ease;
}
.pi-product-card::after { content: ""; position: absolute; inset: -2px; border-radius: 24px; pointer-events: none; opacity: 0; background: radial-gradient(circle at 30% 10%, rgba(255,122,0,0.10), transparent 40%); transition: opacity 0.28s ease; }
.pi-product-card:hover { transform: translateY(-5px); border-color: rgba(255,122,0,0.22); box-shadow: 0 24px 56px rgba(0,0,0,0.30), 0 0 22px rgba(255,122,0,0.06), inset 0 1px 0 rgba(255,255,255,0.04); }
.pi-product-card:hover::after { opacity: 1; }
.pi-product-card > * { position: relative; z-index: 2; }
.pi-product-img-wrap { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.012) 100%); border: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px; }
.pi-product-img-wrap img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; transition: transform 0.7s ease; transform-origin: 50% 60%; }
.pi-product-card:hover .pi-product-img-wrap img { transform: scale(1.065); }

/* SKU COPY PILLS */
.pi-product-sku-wrap { margin-bottom: 8px; }
.pi-sku-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.72); font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; transition: all 0.2s ease; appearance: none; outline: none; overflow: hidden;
}
.pi-sku-btn:hover { border-color: rgba(255,122,0,0.18); color: #fff; background: rgba(255,122,0,0.06); }
.pi-sku-val { transition: opacity 0.18s ease; }
.pi-sku-copied {
    position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; opacity: 0; transform: translateY(2px); pointer-events: none;
    color: #fff; background: rgba(255, 122, 0, 0.14); border: 1px solid rgba(255, 122, 0, 0.22); backdrop-filter: blur(8px); transition: all 0.18s ease;
}
.pi-sku-btn.is-copied .pi-sku-val { opacity: 0; }
.pi-sku-btn.is-copied .pi-sku-copied { opacity: 1; transform: translateY(0); }
.pi-sku-btn--row { min-height: 24px; padding: 0 9px; font-size: 11px; letter-spacing: 0.03em; }

/* STOCK STATUS - БРОНЕБОЙНЫЙ ФИКС ОТОБРАЖЕНИЯ */
.pi-row-stock {
    display: flex;
    align-items: center;
    white-space: nowrap !important;
}

.pi-product-stock-status, .pi-stock-status, p.stock {
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    padding: 6px 12px !important; 
    border-radius: 999px !important; 
    font-size: 12px !important; 
    font-weight: 800 !important; 
    letter-spacing: 0.02em !important; 
    line-height: 1 !important; 
    border: 1px solid rgba(255,255,255,0.08) !important; 
    background: rgba(255,255,255,0.03) !important;
    white-space: nowrap !important; /* УБИРАЕТ ПЕРЕНОС ТЕКСТА "169 шт." */
    margin: 0 !important;
    color: rgba(255,255,255,0.7) !important;
}

.pi-product-stock-status { margin-bottom: 10px !important; }
.pi-product-stock-status::before, .pi-stock-status::before, p.stock::before { content: "" !important; display: block !important; width: 7px !important; height: 7px !important; border-radius: 999px !important; background: rgba(255,255,255,0.45) !important; flex-shrink: 0 !important; }

.pi-product-stock-status.in-stock, .pi-stock-status.in-stock, p.stock.in-stock { color: rgba(220, 255, 236, 0.95) !important; background: rgba(53, 208, 127, 0.08) !important; border-color: rgba(53, 208, 127, 0.18) !important; }
.pi-product-stock-status.in-stock::before, .pi-stock-status.in-stock::before, p.stock.in-stock::before { background: #35d07f !important; box-shadow: 0 0 0 3px rgba(53, 208, 127, 0.10), 0 0 16px rgba(53, 208, 127, 0.16) !important; }

.pi-product-stock-status.out-of-stock, .pi-stock-status.out-of-stock, p.stock.out-of-stock { color: rgba(255, 214, 214, 0.95) !important; background: rgba(255, 102, 102, 0.07) !important; border-color: rgba(255, 102, 102, 0.18) !important; }
.pi-product-stock-status.out-of-stock::before, .pi-stock-status.out-of-stock::before, p.stock.out-of-stock::before { background: #ff6666 !important; box-shadow: 0 0 0 3px rgba(255, 102, 102, 0.10), 0 0 16px rgba(255, 102, 102, 0.14) !important; }

.pi-product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; margin: 0 0 14px; color: rgba(255,255,255,0.95); text-decoration: none; font-size: 16px; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; min-height: 44px; transition: color 0.2s ease; }
.pi-product-title:hover { color: #FF7A00; }
.pi-product-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pi-product-price-wrap .price, .pi-product-price-wrap .woocommerce-Price-amount, .pi-product-price-wrap bdi { font-size: 17px; font-weight: 900; color: #fff; }
.pi-product-price-wrap .woocommerce-Price-currencySymbol { color: #FF7A00; }
.pi-product-price-wrap del { opacity: 0.55; font-weight: 700; }
.pi-product-price-wrap ins { text-decoration: none; }

/* LIST VIEW: TABLE */
.pi-catalog-wrapper[data-view="list"] ul.products { display: flex; flex-direction: column; gap: 8px; }
.pi-products-list-header { display: grid; grid-template-columns: 80px minmax(0, 1fr) 180px 140px 120px 240px; gap: 20px; padding: 0 16px; margin-bottom: 12px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; }
.pi-header-col-price, .pi-header-col-cart { justify-self: end; }
.pi-product-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 180px 140px 120px 240px; align-items: center; gap: 20px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(18,22,28,0.92) 0%, rgba(10,14,19,0.96) 100%); border: 1px solid rgba(255,255,255,0.06); transition: all .2s ease; }
.pi-product-row:hover { border-color: rgba(255,122,0,0.15); background: linear-gradient(180deg, rgba(22,27,34,0.92) 0%, rgba(14,18,24,0.96) 100%); }
.pi-row-image img { width: 80px; height: 80px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,0.02); }
.pi-row-info .pi-row-title { font-size: 15px; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 4px; display: block; transition: color .2s ease; }
.pi-row-info .pi-row-title:hover { color: #FF7A00; }
.pi-row-sku { margin-top: 4px; }
.pi-attr-item { font-size: 13px; display: flex; gap: 6px; }
.pi-attr-label { color: rgba(255,255,255,0.4); }
.pi-attr-value { color: #fff; font-weight: 700; }
.pi-row-price { font-size: 16px; font-weight: 900; color: #fff; justify-self: end; }
.pi-row-cart .cart { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1560px) { 
    .pi-catalog-wrapper[data-view="list"] .pi-products-list-header, .pi-catalog-wrapper[data-view="list"] .pi-product-row { grid-template-columns: 80px minmax(0, 1fr) 140px 140px 100px 220px; } 
}
@media (max-width: 1440px) { 
    .pi-shop-hub-grid { grid-template-columns: repeat(3, 1fr); } 
    .pi-catalog-wrapper[data-view="grid"] ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } 
    .pi-subcats-grid { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 1200px) {
    .pi-category-layout { grid-template-columns: 1fr; gap: 28px; } .pi-sidebar { position: relative; top: 0; } .pi-category-title { font-size: 38px; } .pi-products-list-header { display: none; }
    .pi-product-row { grid-template-columns: 80px 1fr auto; grid-template-areas: "img info cart" "img attrs price" "img stock price"; gap: 12px 20px; }
    .pi-row-image { grid-area: img; } .pi-row-info { grid-area: info; } .pi-row-attrs { grid-area: attrs; } .pi-row-stock { grid-area: stock; } .pi-row-price { grid-area: price; text-align: right; } .pi-row-cart { grid-area: cart; }
}
@media (max-width: 1024px) { 
    .pi-catalog-wrapper[data-view="grid"] ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
    .pi-toolbar { flex-direction: column; align-items: stretch; gap: 16px; } 
    .pi-toolbar-left { text-align: center; } 
    .pi-toolbar-right { justify-content: space-between; width: 100%; gap: 12px; }
    .pi-custom-select { flex-grow: 1; min-width: 0; }
}
@media (max-width: 767px) {
    .pi-shop-hub-grid { grid-template-columns: 1fr; } 
    .pi-subcats-grid { grid-template-columns: repeat(2, 1fr); } 
    .pi-catalog-wrapper { padding: 18px 14px 42px; } 
    .pi-catalog-wrapper[data-view="grid"] ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pi-category-title { font-size: 30px; } 
    .pi-hub-title { font-size: 32px; } 

    .pi-product-row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 20px 16px; }
    .pi-row-image { width: 100%; display: flex; justify-content: center; margin-bottom: 8px; }
    .pi-row-image img { width: 140px; height: 140px; }
    .pi-row-info { width: 100%; }
    .pi-row-info .pi-row-title { font-size: 16px; margin-bottom: 8px; word-break: normal; overflow-wrap: break-word; display: block; }
    .pi-row-sku { display: flex; justify-content: center; margin-top: 8px; }
    .pi-row-attrs { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .pi-row-stock { width: 100%; display: flex; justify-content: center; }
    .pi-row-price { width: 100%; font-size: 20px; margin-top: 4px; }
    .pi-row-cart { width: 100%; }
    .pi-row-cart .cart { justify-content: center; flex-wrap: wrap; }
    .pi-row-cart .cart .pi-b2b-btn { flex-grow: 1; }
}
@media (max-width: 480px) { 
    .pi-subcats-grid, .pi-catalog-wrapper[data-view="grid"] ul.products { grid-template-columns: 1fr; } 
}