/* P15 presentation layer. All commerce views, actions and tenant data stay shared. */
body[data-theme-family="tech-commerce"],
body[data-theme-family="general-commerce-pro"] {
    --p15-ink:#142338;
    --p15-muted:#5e6e82;
    --p15-line:#e2e9f2;
    --p15-card:#fff;
    --p15-shadow:0 12px 36px rgba(17,43,78,.075);
    background:var(--theme-surface,#f4f8fc);
    color:var(--p15-ink);
}
body[data-theme-family="tech-commerce"] { --p15-radius:18px; --p15-feature:var(--storefront-primary); }
body[data-theme-family="general-commerce-pro"] { --p15-radius:14px; --p15-feature:var(--storefront-accent); }

/* Shared, data-driven chrome. Only the assigned family opts in. */
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) {
    --mc-primary:var(--storefront-primary);
    --mc-secondary:var(--storefront-secondary);
}
.p15-vendor-utility{background:#102c50;color:#e9f1fd;font-size:12px}
.p15-vendor-utility .container{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.p15-vendor-utility .container>span{font-weight:750;max-width:40%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.p15-vendor-utility-links{display:flex;gap:22px;align-items:center}
.p15-vendor-utility a{color:inherit;text-decoration:none;white-space:nowrap}
.p15-vendor-utility a:hover,.p15-vendor-offers a:hover{color:var(--storefront-accent)}
.p15-vendor-utility i{margin-right:5px}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-header{box-shadow:0 7px 22px rgba(15,35,67,.055)}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-desktop-header{grid-template-columns:minmax(150px,230px) minmax(260px,1fr) auto;gap:clamp(12px,2.4vw,30px);height:86px}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-logo img{max-width:210px;max-height:64px}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p15-store-name{color:var(--p15-ink);font-size:18px;max-width:170px;line-height:1.2;overflow-wrap:anywhere;margin-left:9px}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-search{height:51px;background:#fff;border:2px solid var(--storefront-primary);border-radius:11px;box-shadow:0 3px 12px rgba(12,56,112,.04)}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-search input{min-width:0;color:var(--p15-ink);font-weight:550}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-search button{background:var(--storefront-primary);color:#fff}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-action{color:var(--p15-ink)}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-action:hover{color:var(--storefront-primary)}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-desktop-category-bar{background:#fff;border-top:1px solid var(--p15-line);border-bottom:1px solid var(--p15-line)}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-desktop-category-inner a{color:var(--p15-ink);font-weight:750}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-category-all{background:var(--storefront-primary);color:#fff!important;padding:12px 16px;border-radius:9px}
.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-category-item:hover>.mc-category-link,.mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-category-link:focus-visible{color:var(--storefront-primary)}
.p15-vendor-offers{background:#edf4ff;border-bottom:1px solid var(--p15-line)}
.p15-vendor-offers .container{min-height:41px;display:flex;align-items:center;gap:clamp(12px,2.5vw,32px);overflow-x:auto;scrollbar-width:thin}
.p15-vendor-offers a{color:#254362;font-size:12px;text-decoration:none;white-space:nowrap;font-weight:700}
.p15-vendor-offers a:last-child{margin-left:auto}
.p15-vendor-offers i{margin-right:5px;color:var(--storefront-primary)}
body[data-theme-family="general-commerce-pro"] .p15-vendor-utility{background:var(--storefront-secondary)}
body[data-theme-family="general-commerce-pro"] .p15-vendor-offers{background:#fff8ed}
body[data-theme-family="general-commerce-pro"] .mc-storefront-shell .mc-category-all{background:var(--storefront-accent);color:#15263c!important}

/* P11 composition sections carry vendor branding and published campaign banners. */
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-section{max-width:1320px;border-radius:var(--p15-radius);overflow:hidden;margin-top:18px;margin-bottom:18px;border:1px solid var(--p15-line);box-shadow:var(--p15-shadow)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-intro{background:linear-gradient(115deg,color-mix(in srgb,var(--storefront-primary) 12%,#fff),#fff)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-intro h2{font-size:clamp(25px,3vw,43px);font-weight:850;color:var(--p15-ink)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-intro p{margin:0;color:var(--p15-muted)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-banner img{width:100%;height:auto;max-height:400px;aspect-ratio:3.5/1;object-fit:cover}
body[data-theme-family="general-commerce-pro"] .p11-intro{background:linear-gradient(105deg,color-mix(in srgb,var(--storefront-accent) 14%,#fff),#fff)}

/* Theme home: tenant banners, categories and catalog are already resolved by P09/P11. */
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .home-container{max-width:1320px}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .home-hero-grid:has(.p15-hero-categories){grid-template-columns:230px minmax(0,1fr);gap:16px}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .home-hero-grid.has-side-banners:has(.p15-hero-categories){grid-template-columns:230px minmax(0,2fr) minmax(185px,.7fr)}
.p15-hero-categories{min-width:0;border:1px solid var(--p15-line);background:#fff;border-radius:var(--p15-radius);box-shadow:var(--p15-shadow);padding:13px;align-self:stretch}
.p15-hero-categories h2{font-size:15px;font-weight:850;padding:9px 9px 13px;margin:0;border-bottom:1px solid var(--p15-line)}
.p15-hero-categories h2 i{color:var(--storefront-primary);margin-right:7px}
.p15-hero-categories>a{display:flex;gap:10px;align-items:center;min-height:38px;padding:6px 9px;text-decoration:none;color:var(--p15-ink);font-size:13px;font-weight:650;border-radius:8px}
.p15-hero-categories>a:hover,.p15-hero-categories>a:focus-visible{background:color-mix(in srgb,var(--storefront-primary) 8%,#fff);color:var(--storefront-primary)}
.p15-hero-categories>a img{height:19px;width:19px;object-fit:contain}
.p15-hero-categories>a>i:first-child{color:var(--storefront-primary);font-size:16px}
.p15-hero-categories>a>i:last-child{margin-left:auto;font-size:10px}
.p15-hero-categories>a.p15-category-all{margin-top:8px;border-top:1px solid var(--p15-line);color:var(--storefront-primary)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .home-main-banner,
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .side-banner{border-radius:var(--p15-radius);overflow:hidden;box-shadow:var(--p15-shadow)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .p09-widget{border:1px solid var(--p15-line);border-radius:var(--p15-radius);background:#fff;padding:22px 28px}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .p09-banner{width:100%;height:auto;max-height:310px;object-fit:cover;border-radius:var(--p15-radius);margin-top:16px}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] :is(.category-card,.market-product-card,.trust-box){border:1px solid var(--p15-line);border-radius:var(--p15-radius);box-shadow:var(--p15-shadow);background:#fff;overflow:hidden}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .market-product-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(24,53,94,.13)}
body[data-theme-family="general-commerce-pro"][data-theme-page="home"] .section-head{border-left:4px solid var(--storefront-accent);padding-left:13px}

/* Product discovery, contact, cart, checkout and confirmation use shared PHP actions. */
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-shell{max-width:1320px}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) :is(.sdp-hero,.sdp-filter,.sdp-card,.spp-hero,.spp-form,.spp-contact-info,.storefront-cart-item,.storefront-cart-summary-card,.storefront-thank-you-card){border:1px solid var(--p15-line);border-radius:var(--p15-radius);box-shadow:var(--p15-shadow)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-hero{background:linear-gradient(115deg,color-mix(in srgb,var(--storefront-primary) 10%,#fff),#fff)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-cart{background:var(--storefront-primary)!important}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-card{overflow:hidden;transition:transform .2s,box-shadow .2s}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(17,43,78,.16)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-card-media img{object-fit:contain;background:#f6f9fd}
body[data-theme-family="general-commerce-pro"] .sdp-card-media img{object-fit:cover;background:#fff}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) :is(.storefront-product-details-card,.storefront-product-content-card,.storefront-review-card){border:1px solid var(--p15-line);border-radius:var(--p15-radius);box-shadow:var(--p15-shadow);overflow:hidden}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .storefront-product-order-now-button{background:var(--storefront-primary);color:#fff}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .storefront-product-add-cart-button{border-color:var(--storefront-primary);color:var(--storefront-primary)}
body[data-theme-family="tech-commerce"] .storefront-product-main-image img{object-fit:contain;background:#f7faff}
body[data-theme-family="general-commerce-pro"] .storefront-product-main-image img{object-fit:cover;background:#fff}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .spp-hero{background:linear-gradient(120deg,color-mix(in srgb,var(--storefront-primary) 12%,#fff),#fff)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .spp-info-card>i{color:var(--storefront-primary)}
body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .storefront-thank-you-success{background:linear-gradient(120deg,var(--storefront-secondary),var(--storefront-primary))}
body[data-theme-family="general-commerce-pro"] .storefront-thank-you-success{background:linear-gradient(120deg,var(--storefront-primary),var(--storefront-accent))}

/* Footer variants keep the existing links, contacts, social data and policies. */
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]){background:var(--storefront-footer-bg,#102b4c);color:var(--storefront-footer-text,#dce7f6);border-top:5px solid var(--storefront-primary)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .container{max-width:1320px}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-grid{grid-template-columns:1.35fr repeat(3,minmax(120px,.8fr)) 1.2fr;gap:clamp(16px,2.5vw,36px)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) :is(h3,h4){color:var(--storefront-footer-heading,#fff)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) a{color:var(--storefront-footer-link,#d5e4f8)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) p{color:var(--storefront-footer-text,#d5e4f8)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) a:hover{color:var(--storefront-footer-heading,#fff)}
.mc-footer[data-theme-family="general-commerce-pro"]{border-top-color:var(--storefront-accent)}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-footer-variant="minimal"] .mc-footer-grid{grid-template-columns:1.3fr 1fr 1fr!important}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-footer-variant="minimal"] :is(.mc-footer-vendor,.mc-footer-contact){display:none}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-footer-variant="editorial"] .mc-footer-grid{border-top:1px solid currentColor;padding-top:25px}
.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-footer-variant="expanded"] .mc-footer-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:30px}

@media(max-width:1199px){
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-desktop-header{grid-template-columns:160px minmax(180px,1fr) auto;gap:14px}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-market-actions{gap:8px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .home-hero-grid:has(.p15-hero-categories),
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .home-hero-grid.has-side-banners:has(.p15-hero-categories){grid-template-columns:minmax(0,1fr) minmax(190px,.34fr)}
    .p15-hero-categories{display:none}
    .mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:991px){
    .p15-vendor-utility,.p15-vendor-offers{display:none}
    .mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-section{margin:10px 12px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-section-inner{padding:17px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-intro h2{font-size:24px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .p11-banner img{aspect-ratio:2.1/1;max-height:210px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .home-hero-grid:has(.p15-hero-categories),
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .home-hero-grid.has-side-banners:has(.p15-hero-categories){grid-template-columns:minmax(0,1fr)}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"])[data-theme-page="home"] .p09-widget{padding:15px}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-search-row{background:#fff}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-market-search{border:1px solid var(--storefront-primary);border-radius:10px}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-logo .p15-store-name{font-size:14px;max-width:140px}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-bottom-nav{background:#fff;border:1px solid var(--p15-line);box-shadow:0 9px 28px rgba(16,42,76,.18)}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-bottom-nav a{color:#304861}
    .mc-storefront-shell:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-mobile-bottom-nav a:focus-visible{color:var(--storefront-primary)}
    .mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-brand,.mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-contact{grid-column:1/-1}
}
@media(max-width:420px){
    .mc-footer:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .mc-footer-grid{grid-template-columns:1fr 1fr;gap:18px 12px}
    body:is([data-theme-family="tech-commerce"],[data-theme-family="general-commerce-pro"]) .sdp-card-body{padding:9px}
}
