/**
 * File: /wp-content/themes/belofis/assets/css/store.css
 * Version: 0.1.0-alpha.9
 *
 * SaaS storefront / tariff product UI.
 * No external dependencies.
 */

.bo-store-main,
.bo-product-main{
    background:var(--bo-color-bg);
    color:var(--bo-color-text);
}
.bo-store-hero{
    border-bottom:1px solid var(--bo-color-border);
    background:
        radial-gradient(circle at 78% 22%,rgba(18,60,122,.08),transparent 32%),
        linear-gradient(180deg,var(--bo-color-bg),var(--bo-color-surface));
}
.bo-store-hero__inner{
    display:grid;
    grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);
    gap:64px;
    align-items:end;
    padding-top:64px;
    padding-bottom:58px;
}
.bo-store-eyebrow,
.bo-product-eyebrow{
    display:block;
    margin-bottom:10px;
    color:var(--bo-color-primary);
    font-size:12px;
    font-weight:500;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.bo-store-hero h1{
    max-width:780px;
    margin:0;
    color:var(--bo-color-text);
    font-size:clamp(34px,4.2vw,58px);
    line-height:1.02;
    letter-spacing:-.045em;
}
.bo-store-hero p{
    max-width:760px;
    margin:20px 0 0;
    color:var(--bo-color-muted);
    font-size:17px;
    line-height:1.65;
}
.bo-store-hero__note{
    display:grid;
    gap:5px;
    padding:18px 20px;
    border:1px solid var(--bo-color-border);
    border-radius:16px;
    background:color-mix(in srgb,var(--bo-color-bg) 88%,transparent);
    box-shadow:var(--bo-shadow-sm);
}
.bo-store-hero__note strong{font-size:14px}
.bo-store-hero__note span{color:var(--bo-color-muted);font-size:13px;line-height:1.5}

.bo-store-browser{padding:34px 0 76px}
.bo-store-services{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin-bottom:42px;
}
.bo-store-service{
    display:grid;
    grid-template-columns:42px 1fr;
    gap:11px;
    min-width:0;
    padding:13px;
    border:1px solid var(--bo-color-border);
    border-radius:14px;
    background:var(--bo-color-bg);
    transition:border-color .16s ease,background-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.bo-store-service:hover,
.bo-store-service:focus-visible{
    transform:translateY(-1px);
    border-color:#cbd9e8;
    box-shadow:var(--bo-shadow-sm);
}
.bo-store-service.is-active{
    border-color:color-mix(in srgb,var(--bo-color-primary) 50%,var(--bo-color-border));
    background:var(--bo-color-primary-soft);
}
.bo-store-service__icon,
.bo-store-heading__icon{
    display:grid;
    width:42px;
    height:42px;
    place-items:center;
    border-radius:11px;
    background:var(--bo-color-surface);
    color:var(--bo-color-primary);
}
.bo-store-service__icon svg,
.bo-store-heading__icon svg{width:21px;height:21px}
.bo-store-service strong{display:block;font-size:14px;line-height:1.25}
.bo-store-service small{
    display:-webkit-box;
    margin-top:4px;
    overflow:hidden;
    color:var(--bo-color-muted);
    font-size:11px;
    line-height:1.35;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.bo-store-heading{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:22px;
}
.bo-store-heading__service{
    display:flex;
    align-items:center;
    gap:13px;
}
.bo-store-heading__service>div>span{
    display:block;
    margin-bottom:2px;
    color:var(--bo-color-subtle);
    font-size:11px;
    font-weight:500;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.bo-store-heading h2{
    margin:0;
    font-size:30px;
    line-height:1.1;
    letter-spacing:-.035em;
}
.bo-period-switch{
    display:inline-flex;
    gap:4px;
    padding:4px;
    border:1px solid var(--bo-color-border);
    border-radius:12px;
    background:var(--bo-color-surface);
}
.bo-period-switch a{
    min-width:94px;
    padding:9px 13px;
    border-radius:9px;
    color:var(--bo-color-muted);
    font-size:13px;
    font-weight:500;
    text-align:center;
}
.bo-period-switch a.is-active{
    background:var(--bo-color-bg);
    color:var(--bo-color-primary);
    box-shadow:0 4px 14px rgba(15,35,65,.08);
}

.bo-tariff-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
}
.bo-tariff-card{
    position:relative;
    display:flex;
    min-width:0;
    min-height:390px;
    padding:24px;
    flex-direction:column;
    border:1px solid var(--bo-color-border);
    border-radius:18px;
    background:var(--bo-color-bg);
    box-shadow:0 5px 20px rgba(15,35,65,.035);
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.bo-tariff-card:hover{
    transform:translateY(-2px);
    border-color:#c9d6e5;
    box-shadow:0 14px 34px rgba(15,35,65,.08);
}
.bo-tariff-card--featured{
    border-color:color-mix(in srgb,var(--bo-color-primary) 56%,var(--bo-color-border));
    box-shadow:0 15px 40px rgba(18,60,122,.10);
}
.bo-tariff-card__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
}
.bo-tariff-card h3{
    margin:0 0 7px;
    font-size:25px;
    line-height:1.1;
    letter-spacing:-.035em;
}
.bo-tariff-period{
    flex:0 0 auto;
    padding:5px 8px;
    border-radius:8px;
    background:var(--bo-color-surface);
    color:var(--bo-color-muted);
    font-size:11px;
    font-weight:500;
}
.bo-tariff-badge{
    display:inline-flex;
    margin-right:4px;
    padding:4px 7px;
    border-radius:999px;
    font-size:10px;
    font-weight:500;
}
.bo-tariff-badge--featured{background:var(--bo-color-primary-soft);color:var(--bo-color-primary)}
.bo-tariff-badge--saving{background:#e9f8f2;color:#08765e}

.bo-tariff-price{
    display:flex;
    min-height:75px;
    margin:24px 0 18px;
    flex-direction:column;
    justify-content:center;
}
.bo-tariff-price__value{
    color:var(--bo-color-text);
    font-size:30px;
    font-weight:500;
    line-height:1.15;
    letter-spacing:-.035em;
}
.bo-tariff-price__value del{
    margin-right:8px;
    color:var(--bo-color-subtle);
    font-size:15px;
    font-weight:500;
    opacity:.8;
}
.bo-tariff-price__value ins{
    color:inherit;
    text-decoration:none;
}
.bo-tariff-price__period{
    margin-top:5px;
    color:var(--bo-color-muted);
    font-size:12px;
}
.bo-tariff-price--request{
    min-height:75px;
    margin:24px 0 18px;
    color:var(--bo-color-text);
    font-size:25px;
    font-weight:500;
}

.bo-tariff-features{
    display:grid;
    gap:11px;
    margin:0 0 24px;
    padding:0;
    list-style:none;
}
.bo-tariff-features li{
    display:grid;
    grid-template-columns:20px 1fr;
    gap:8px;
    align-items:start;
}
.bo-tariff-check{
    display:grid;
    width:18px;
    height:18px;
    margin-top:1px;
    place-items:center;
    border-radius:999px;
    background:#e9f8f2;
    color:#08765e;
    font-size:11px;
    font-weight:500;
}
.bo-tariff-features strong{
    display:block;
    color:var(--bo-color-text);
    font-size:12px;
    line-height:1.35;
}
.bo-tariff-features small{
    display:block;
    margin-top:2px;
    color:var(--bo-color-muted);
    font-size:11.5px;
    line-height:1.35;
}
.bo-tariff-summary{
    margin:0 0 24px;
    color:var(--bo-color-muted);
    font-size:13px;
    line-height:1.6;
}
.bo-tariff-summary--muted{color:var(--bo-color-subtle)}
.bo-tariff-card__actions{
    display:grid;
    gap:8px;
    margin-top:auto;
}
.bo-tariff-cta{
    display:flex!important;
    min-height:44px!important;
    align-items:center;
    justify-content:center;
    padding:10px 14px!important;
    border:1px solid var(--bo-color-primary)!important;
    border-radius:10px!important;
    background:var(--bo-color-primary)!important;
    color:#fff!important;
    font-size:13px!important;
    font-weight:500!important;
    text-align:center;
}
.bo-tariff-cta:hover{background:var(--bo-color-primary-strong)!important}
.bo-tariff-cta--secondary{
    border-color:var(--bo-color-border)!important;
    background:var(--bo-color-bg)!important;
    color:var(--bo-color-primary)!important;
}
.bo-tariff-details{
    padding:6px;
    color:var(--bo-color-muted);
    font-size:12px;
    font-weight:500;
    text-align:center;
}
.bo-tariff-details:hover{color:var(--bo-color-primary)}

.bo-store-footer-note{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:26px;
    padding:15px 17px;
    border:1px solid var(--bo-color-border);
    border-radius:13px;
    background:var(--bo-color-surface);
    color:var(--bo-color-muted);
}
.bo-store-footer-note>span{
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    flex:0 0 30px;
    color:var(--bo-color-primary);
}
.bo-store-footer-note svg{width:18px;height:18px}
.bo-store-footer-note p{margin:0;font-size:12.5px}
.bo-store-empty{
    padding:48px 0;
    text-align:center;
}
.bo-store-empty h1,
.bo-store-empty h2{margin:0 0 8px}
.bo-store-empty p{color:var(--bo-color-muted)}

/* Single tariff product */
.bo-product-main{padding:34px 0 80px}
.bo-product-breadcrumb{
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:24px;
    color:var(--bo-color-muted);
    font-size:12px;
}
.bo-product-breadcrumb a:hover{color:var(--bo-color-primary)}
.bo-product-hero{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);
    gap:54px;
    align-items:start;
}
.bo-product-hero__main{
    padding:34px;
    border:1px solid var(--bo-color-border);
    border-radius:20px;
    background:
        radial-gradient(circle at 92% 10%,rgba(18,60,122,.07),transparent 28%),
        var(--bo-color-bg);
}
.bo-product-service-mark{
    display:inline-flex;
    gap:9px;
    align-items:center;
    margin-bottom:28px;
    color:var(--bo-color-primary);
}
.bo-product-service-mark>span{
    display:grid;
    width:38px;
    height:38px;
    place-items:center;
    border-radius:10px;
    background:var(--bo-color-primary-soft);
}
.bo-product-service-mark svg{width:20px;height:20px}
.bo-product-service-mark strong{font-size:14px}
.bo-product-title-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}
.bo-product-title-row h1{
    margin:0;
    font-size:clamp(38px,5vw,64px);
    line-height:.98;
    letter-spacing:-.05em;
}
.bo-product-pills{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.bo-product-pills span{
    padding:6px 9px;
    border-radius:999px;
    background:var(--bo-color-surface);
    color:var(--bo-color-muted);
    font-size:11px;
    font-weight:500;
}
.bo-product-pills .bo-product-pill--saving{
    background:#e9f8f2;
    color:#08765e;
}
.bo-product-lead{
    max-width:760px;
    margin:24px 0 0;
    color:var(--bo-color-muted);
    font-size:16px;
    line-height:1.7;
}
.bo-product-lead p{margin:0}
.bo-product-features{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:30px;
}
.bo-product-feature{
    display:grid;
    grid-template-columns:30px 1fr;
    gap:10px;
    padding:13px;
    border:1px solid var(--bo-color-border);
    border-radius:13px;
    background:var(--bo-color-surface);
}
.bo-product-feature>span{
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    border-radius:9px;
    background:#e9f8f2;
    color:#08765e;
}
.bo-product-feature svg{width:16px;height:16px}
.bo-product-feature strong{display:block;font-size:12px}
.bo-product-feature p{
    margin:3px 0 0;
    color:var(--bo-color-muted);
    font-size:11.5px;
    line-height:1.4;
}
.bo-product-buybox{
    position:sticky;
    top:calc(var(--bo-header-height) + 22px);
    padding:26px;
    border:1px solid var(--bo-color-border);
    border-radius:18px;
    background:var(--bo-color-bg);
    box-shadow:var(--bo-shadow-md);
}
body.admin-bar .bo-product-buybox{top:calc(var(--bo-header-height) + 54px)}
.bo-product-buybox__label{
    display:block;
    color:var(--bo-color-muted);
    font-size:12px;
    font-weight:500;
}
.bo-product-buybox .bo-tariff-price{margin:18px 0}
.bo-product-add .cart{
    display:grid;
    grid-template-columns:84px 1fr;
    gap:8px;
    margin:0!important;
}
.bo-product-add .quantity .qty{
    width:100%!important;
    height:46px;
    border:1px solid var(--bo-color-border);
    border-radius:10px;
    background:var(--bo-color-bg);
    color:var(--bo-color-text);
    text-align:center;
}
.bo-product-add .single_add_to_cart_button{
    min-height:46px!important;
    border-radius:10px!important;
    background:var(--bo-color-primary)!important;
    font-weight:500!important;
}
.bo-product-back{width:100%;margin-top:6px}
.bo-product-buybox__hint{
    margin:16px 0 0;
    padding-top:14px;
    border-top:1px solid var(--bo-color-border);
    color:var(--bo-color-muted);
    font-size:12px;
    line-height:1.45;
}
.bo-product-cart-link{
    display:flex;
    min-height:46px;
    margin-top:12px;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 14px;
    border:1px solid #9fdcc9;
    border-radius:10px;
    background:#e9f8f2;
    color:#08765e;
    font-size:13px;
    font-weight:500;
    text-align:center;
    transition:background-color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.bo-product-cart-link:hover,
.bo-product-cart-link:focus-visible{
    transform:translateY(-1px);
    border-color:#72ccb0;
    background:#dff5ec;
    color:#05614d;
    box-shadow:0 8px 20px rgba(8,118,94,.10);
}
.bo-product-cart-link>span:first-child{
    display:grid;
    width:19px;
    height:19px;
    place-items:center;
    flex:0 0 19px;
}
.bo-product-cart-link svg{width:18px;height:18px}
html[data-theme="dark"] .bo-product-cart-link{
    border-color:rgba(90,211,176,.24);
    background:rgba(26,154,116,.14);
    color:#7ce0c1;
}
html[data-theme="dark"] .bo-product-cart-link:hover,
html[data-theme="dark"] .bo-product-cart-link:focus-visible{
    border-color:rgba(90,211,176,.38);
    background:rgba(26,154,116,.22);
    color:#a0ecd5;
}

/* Тарифное подтверждение после add-to-cart — без отдельной action-кнопки справа. */
.woocommerce-message{
    border-top-color:var(--bo-color-success)!important;
}
.woocommerce-message::before{
    color:var(--bo-color-success)!important;
}
.bo-product-after{padding-top:64px}
.bo-product-after__head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:18px;
}
.bo-product-after__head h2{
    margin:0;
    font-size:29px;
    letter-spacing:-.035em;
}
.bo-product-siblings{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}
.bo-product-siblings a{
    display:grid;
    gap:7px;
    padding:16px;
    border:1px solid var(--bo-color-border);
    border-radius:13px;
    background:var(--bo-color-bg);
}
.bo-product-siblings a:hover{
    border-color:#c9d6e5;
    box-shadow:var(--bo-shadow-sm);
}
.bo-product-siblings span{font-size:13px;font-weight:500}
.bo-product-siblings strong{
    color:var(--bo-color-primary);
    font-size:13px;
}
.bo-product-siblings del{color:var(--bo-color-subtle);font-size:11px}
.bo-product-siblings ins{text-decoration:none}
.bo-product-description{
    margin-top:28px;
    border:1px solid var(--bo-color-border);
    border-radius:14px;
    background:var(--bo-color-bg);
}
.bo-product-description summary{
    padding:17px 20px;
    cursor:pointer;
    color:var(--bo-color-text);
    font-size:14px;
    font-weight:500;
}
.bo-product-description__content{
    padding:0 20px 22px;
    color:var(--bo-color-muted);
    font-size:14px;
    line-height:1.7;
}
.bo-product-description__content>:first-child{margin-top:0}
.bo-product-description__content>:last-child{margin-bottom:0}

/* Dark */
html[data-theme="dark"] .bo-store-hero{
    background:
        radial-gradient(circle at 78% 22%,rgba(74,127,191,.12),transparent 32%),
        linear-gradient(180deg,var(--bo-color-bg),var(--bo-color-surface));
}
html[data-theme="dark"] .bo-tariff-badge--saving,
html[data-theme="dark"] .bo-product-pills .bo-product-pill--saving,
html[data-theme="dark"] .bo-tariff-check,
html[data-theme="dark"] .bo-product-feature>span{
    background:rgba(26,154,116,.14);
    color:#79ddbd;
}
html[data-theme="dark"] .bo-store-service.is-active{
    background:rgba(48,91,146,.18);
}
html[data-theme="dark"] .bo-period-switch a.is-active{
    box-shadow:0 4px 14px rgba(0,0,0,.24);
}

/* Responsive */
@media (max-width:1100px){
    .bo-store-services{grid-template-columns:repeat(3,minmax(0,1fr))}
    .bo-tariff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .bo-product-hero{grid-template-columns:1fr;gap:22px}
    .bo-product-buybox{position:static}
    body.admin-bar .bo-product-buybox{top:auto}
    .bo-product-siblings{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
    .bo-store-hero__inner{
        grid-template-columns:1fr;
        gap:24px;
        padding-top:42px;
        padding-bottom:38px;
    }
    .bo-store-hero h1{font-size:38px}
    .bo-store-services{
        display:flex;
        margin-inline:calc((100vw - 100%)/-2);
        padding-inline:20px;
        overflow-x:auto;
        scroll-snap-type:x proximity;
        scrollbar-width:none;
    }
    .bo-store-services::-webkit-scrollbar{display:none}
    .bo-store-service{
        width:210px;
        flex:0 0 210px;
        scroll-snap-align:start;
    }
    .bo-store-heading{
        align-items:flex-start;
        flex-direction:column;
    }
    .bo-period-switch{width:100%}
    .bo-period-switch a{flex:1}
    .bo-tariff-grid{grid-template-columns:1fr}
    .bo-tariff-card{min-height:0}
    .bo-product-main{padding-top:22px}
    .bo-product-hero__main{padding:24px 20px}
    .bo-product-title-row{flex-direction:column}
    .bo-product-pills{justify-content:flex-start}
    .bo-product-features{grid-template-columns:1fr}
    .bo-product-buybox{padding:22px 20px}
    .bo-product-after{padding-top:44px}
    .bo-product-after__head{align-items:flex-start;flex-direction:column}
    .bo-product-siblings{grid-template-columns:1fr 1fr}
}
@media (max-width:480px){
    .bo-store-browser{padding-top:24px}
    .bo-store-services{padding-inline:16px}
    .bo-store-service{width:188px;flex-basis:188px}
    .bo-store-heading h2{font-size:26px}
    .bo-product-siblings{grid-template-columns:1fr}
    .bo-product-add .cart{grid-template-columns:70px 1fr}
}
@media (prefers-reduced-motion:reduce){
    .bo-store-service,
    .bo-tariff-card{transition:none!important}
}
