/* Shared composition contract: preview and WooCommerce load this LAST.
 * Keep the brand independent; geometry follows a compact marketplace layout.
 */
.ys-market { --ys-max:1200px; --ys-bg:#ebebeb; --ys-radius:6px; }
.ys-market .container { width:min(var(--ys-max),calc(100% - 48px)); }
.ys-market .market-header { padding:0; }
.ys-market .header-primary { grid-template-columns:170px minmax(0,1fr) 250px; height:64px; gap:24px; }
.ys-market .header-secondary { grid-template-columns:170px minmax(0,1fr) auto; height:38px; gap:24px; }
.ys-market .main-nav,.ys-market .user-nav { display:flex; align-items:center; gap:18px; }
.ys-market .user-nav { gap:14px; }
.ys-market .market-search { height:42px; }
.ys-market .category-menu { max-height:min(70vh,560px); overflow:auto; }
.ys-market .campaign { min-height:0; height:auto; margin:0; background:linear-gradient(115deg,#dceafa,#cbdcf0); }
.ys-market .campaign-inner { height:340px; min-height:0; display:grid; grid-template-columns:1fr 1fr; align-items:center; position:relative; padding:24px 48px 40px; }
.ys-market .campaign-copy { padding:0; max-width:470px; z-index:2; }
.ys-market .campaign-copy h1 { font-size:42px; line-height:1.06; letter-spacing:-1.5px; margin:12px 0; }
.ys-market .campaign-copy p { font-size:15px; line-height:1.5; margin-bottom:18px; }
.ys-market .campaign-art { position:relative; width:100%; height:260px; min-width:0; }
.ys-market .campaign-art img { object-fit:contain; background:transparent; box-shadow:none; filter:none; border:0; border-radius:0; mix-blend-mode:multiply; mask-image:none; -webkit-mask-image:none; }
.ys-market .campaign-art .hero-monitor { position:absolute; width:80%; height:90%; right:0; top:0; transform:none; }
.ys-market .campaign-art .hero-laptop { position:absolute; width:42%; height:53%; left:0; bottom:0; transform:none; }
.ys-market .campaign-art::before { display:none; }
.ys-market .campaign-tag { display:none; }
.ys-market .campaign-dots { bottom:12px; }
.ys-market .home-content { margin-top:0; padding-top:18px; padding-bottom:32px; }
.ys-market .delivery-strip { display:flex; align-items:center; justify-content:center; gap:8px; min-height:46px; background:white; border-radius:6px; box-shadow:0 2px 3px #0000000b; color:var(--ys-text); padding:10px 14px; }
.ys-market .delivery-strip svg { color:var(--ys-success); width:22px; }
.ys-market .delivery-strip strong { color:var(--ys-success); }
.ys-market .category-shortcuts { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:18px; padding:24px 12px; overflow:auto; scrollbar-width:none; }
.ys-market .category-shortcut { display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center; color:#595959; font-size:13px; line-height:1.3; min-width:0; }
.ys-market .shortcut-image { display:grid; place-items:center; width:78px; aspect-ratio:1; border-radius:50%; background:white; padding:16px; box-shadow:0 2px 4px #0000000c; overflow:hidden; }
.ys-market .shortcut-image img { width:100%; height:100%; object-fit:contain; }
.ys-market .shortcut-image svg { width:34px; height:34px; color:var(--ys-brand); }
.ys-market .quick-grid { margin:0 0 24px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; }
.ys-market .quick-card { min-width:0; min-height:196px; border:0; box-shadow:0 1px 2px #0000000c; border-radius:6px; }
.ys-market .shelf { background:#fff; padding:0; margin:24px 0; border-radius:6px; overflow:hidden; box-shadow:0 1px 2px #00000010; }
.ys-market .section-heading { margin:0; min-height:66px; padding:18px 24px; display:flex; gap:20px; align-items:center; border-bottom:1px solid var(--ys-line); }
.ys-market .section-heading h2 { margin:0; font-size:22px; line-height:1.3; }
.ys-market .section-heading>a { font-size:13px; }
.ys-market .shelf-arrows { margin-left:auto; }
.ys-market .product-rail { display:grid; grid-auto-flow:column; grid-auto-columns:calc(100% / 5); gap:0; overflow-x:auto; scroll-snap-type:x mandatory; padding:0; scrollbar-width:none; }
.ys-market .product-card { background:#fff; border:0; border-right:1px solid var(--ys-line); border-radius:0; box-shadow:none; min-width:0; overflow:hidden; position:relative; display:flex; flex-direction:column; scroll-snap-align:start; }
.ys-market .product-card:hover { transform:none; box-shadow:inset 0 0 0 1px #cbd7e8; }
.ys-market .product-image { display:flex; align-items:center; justify-content:center; width:100%; height:auto; aspect-ratio:1; padding:20px; background:#fff; border:0; }
.ys-market .product-image img { width:100%; height:100%; max-height:100%; object-fit:contain; }
.ys-market .card-body { padding:16px 20px 22px; display:flex; flex-direction:column; align-items:flex-start; flex:1; }
.ys-market .card-body h3 { font-size:14px; font-weight:400; line-height:1.45; margin:0 0 12px; height:41px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ys-market .card-body h3 a { color:var(--ys-text); }
.ys-market .card-brand { font-size:10px; min-height:15px; }
.ys-market .card-body .price { font-size:25px; }
.ys-market .old-price { min-height:18px; }
.ys-market .stock-label { font-size:12px; line-height:1.4; margin-top:8px; }
.ys-market .category-tiles { grid-template-columns:repeat(6,minmax(0,1fr)); padding:24px; gap:14px; }
.ys-market .category-media { aspect-ratio:1.15; background:#f5f5f5; padding:18px; min-height:0; overflow:hidden; }
.ys-market .category-media img { mix-blend-mode:multiply; min-height:0; }
.ys-market .category-name { min-height:56px; font-weight:400; font-size:14px; overflow-wrap:anywhere; }
.ys-market .store-banners { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; }
.ys-market .store-banner { min-height:220px; }
.ys-market .banner-product img { mask-image:none; -webkit-mask-image:none; filter:none; box-shadow:none; transform:none!important; }
.ys-market .product-top,.ys-market .ys-product-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(260px,.95fr); gap:24px; align-items:start; padding:28px; background:white; border-radius:8px; }
.ys-market .product-top>*,.ys-market .ys-product-layout>* { min-width:0; }
.ys-market .product-summary h1,.ys-market .ys-native-summary h1 { font-size:23px; line-height:1.3; }
.ys-market .main-photo { height:410px; }
.ys-market .buy-box,.ys-market .ys-native-buy { border:1px solid var(--ys-line); border-radius:8px; padding:22px; }
.ys-market .catalog-layout { grid-template-columns:230px minmax(0,1fr); }
.ys-market .product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ys-market .product-grid .product-card { border-radius:6px; }
@media(min-width:761px) and (max-width:1100px) {
 .ys-market .header-primary { display:grid; padding:0; }
 .ys-market .header-secondary { display:grid; min-height:38px; }
 .ys-market .header-secondary .delivery-button { display:flex; }
 .ys-market .main-nav a,.ys-market .main-nav details,.ys-market .main-nav>button { padding:0; }
 .ys-market .user-nav { justify-self:end; }
 .ys-market .user-nav .cart-link { width:32px; height:32px; padding:0; }
 .ys-market .cart-count { right:-2px; top:-3px; }
 .ys-market .header-primary { grid-template-columns:150px minmax(0,1fr) 190px; gap:18px; }
 .ys-market .header-secondary { grid-template-columns:150px minmax(0,1fr) auto; gap:18px; }
 .ys-market .user-nav .purchases-link,.ys-market .user-nav .whatsapp-header { display:none; }
 .ys-market .main-nav,.ys-market .user-nav { gap:12px; }
 .ys-market .campaign-inner { height:290px; padding-inline:24px; }
 .ys-market .campaign-copy h1 { font-size:36px; }
 .ys-market .campaign-art { height:220px; }
 .ys-market .quick-grid { grid-template-columns:repeat(6,170px); overflow:auto; scrollbar-width:none; }
 .ys-market .product-rail { grid-auto-columns:25%; }
 .ys-market .category-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .ys-market .category-shortcuts { grid-template-columns:repeat(8,95px); }
 .ys-market .product-top,.ys-market .ys-product-layout { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
 .ys-market .buy-box,.ys-market .ys-native-buy { grid-column:2; }
 .ys-market .gallery,.ys-market .ys-native-gallery { grid-row:span 2; }
 .ys-market .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:761px) and (max-width:900px) {
 .ys-market .header-primary { grid-template-columns:150px minmax(0,1fr); }
 .ys-market .header-promise { display:none; }
 .ys-market .header-secondary { grid-template-columns:minmax(0,1fr) 44px; }
 .ys-market .header-secondary .delivery-button { display:none; }
 .ys-market .main-nav { grid-column:1; grid-row:1; gap:20px; }
 .ys-market .user-nav { grid-column:2; grid-row:1; }
 .ys-market .user-nav>a:not(.cart-link) { display:none; }
}
@media(max-width:760px) {
 .ys-market .container { width:calc(100% - 32px); }
 .ys-market .market-header { display:grid; grid-template-columns:36px minmax(0,1fr) 32px 32px; grid-template-rows:56px 32px; gap:0 8px; padding:0 12px; align-items:center; }
 .ys-market .header-primary,.ys-market .header-secondary,.ys-market .user-nav { display:contents; }
 .ys-market .wordmark { grid-column:1; grid-row:1; }
 .ys-market .wordmark>span:last-child { display:none; }
 .ys-market .brand-mark { width:32px; height:32px; font-size:23px; }
 .ys-market .search-wrap { grid-column:2; grid-row:1; width:100%; }
 .ys-market .market-search { height:36px; width:100%; }
 .ys-market .market-search input { font-size:13px; padding:8px; }
 .ys-market .market-search button { width:32px; flex-shrink:0; }
 .ys-market .header-promise,.ys-market .user-nav>a:not(.cart-link),.ys-market .main-nav>a { display:none; }
 .ys-market .main-nav { grid-column:3; grid-row:1; margin:0; padding:0; width:32px; overflow:visible; }
 .ys-market .main-nav>button,.ys-market .wp-category-dropdown summary { display:grid; place-items:center; width:32px; height:40px; padding:0; font-size:0; list-style:none; }
 .ys-market .main-nav>button::before,.ys-market .wp-category-dropdown summary::before { content:'☰'; font-size:23px; font-weight:400; line-height:1; }
 .ys-market .main-nav>button svg,.ys-market .wp-category-dropdown summary span { display:none; }
 .ys-market .wp-category-dropdown summary::-webkit-details-marker { display:none; }
 .ys-market .user-nav .cart-link { grid-column:4; grid-row:1; width:32px; height:40px; padding:0; margin:0; }
 .ys-market .cart-count { right:-2px; top:0; }
 .ys-market .main-nav details,.ys-market .main-nav>button { padding:0; }
 .ys-market .header-secondary .delivery-button { grid-column:1/-1; grid-row:2; display:flex; font-size:11px; height:30px; border-top:1px solid #c6d5e6; width:100%; }
 .ys-market .delivery-button svg { width:15px; height:15px; }
 .ys-market .delivery-button small { display:inline; margin-right:4px; font-size:11px; }
 .ys-market .category-menu,.ys-market .wp-category-dropdown .category-menu { position:fixed; top:88px; left:12px; right:12px; width:auto; min-width:0; margin:0; z-index:100; }
 .ys-market .search-suggestions { min-width:0; width:min(85vw,420px); left:-35px; }
 .ys-market .campaign { margin:0; padding:12px 16px 0; }
 .ys-market .campaign-inner { width:100%; height:auto; min-height:162px; padding:18px 16px 26px; grid-template-columns:1fr 1fr; border-radius:8px; background:linear-gradient(120deg,#d4e5f9,#c0d6f1); }
 .ys-market .campaign-copy h1 { font-size:clamp(20px,4.5vw,30px); letter-spacing:-.6px; margin:7px 0 10px; }
 .ys-market .campaign-copy p { display:none; }
 .ys-market .campaign-eyebrow { font-size:7px; letter-spacing:1px; gap:4px; margin:0; }
 .ys-market .campaign-eyebrow svg { width:13px; height:13px; }
 .ys-market .campaign-copy .btn { padding:6px 9px; min-height:30px; font-size:10px; gap:4px; }
 .ys-market .campaign-copy .btn svg { width:13px; height:13px; }
 .ys-market .campaign-art { height:135px; }
 .ys-market .campaign-arrow { display:none; }
 .ys-market .campaign-dots { bottom:6px; }
 .ys-market .campaign-dots button { width:6px; height:6px; }
 .ys-market .home-content { padding-top:12px; }
 .ys-market .delivery-strip { min-height:38px; font-size:11px; padding:8px; justify-content:flex-start; gap:6px; }
 .ys-market .delivery-strip svg { width:18px; height:18px; flex-shrink:0; }
 .ys-market .category-shortcuts { grid-template-columns:repeat(8,70px); gap:16px; padding:20px 0; }
 .ys-market .shortcut-image { width:62px; padding:13px; }
 .ys-market .category-shortcut { font-size:11px; }
 .ys-market .quick-grid { margin:0 0 16px; grid-template-columns:repeat(6,155px); gap:12px; overflow:auto; scrollbar-width:none; }
 .ys-market .quick-card { min-height:190px; padding:16px 12px; }
 .ys-market .shelf { margin:16px 0; }
 .ys-market .section-heading { padding:16px; min-height:58px; gap:12px; flex-wrap:wrap; }
 .ys-market .section-heading h2 { font-size:19px; flex:1; }
 .ys-market .section-heading>a { font-size:11px; }
 .ys-market .shelf-arrows { display:none; }
 .ys-market .home-content .product-rail { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-columns:auto; overflow:visible; }
 .ys-market .home-content .product-rail>.product-card:nth-child(n+5) { display:none; }
 .ys-market .product-rail { grid-auto-columns:50%; }
 .ys-market .product-card { border-bottom:1px solid var(--ys-line); }
 .ys-market .product-image { aspect-ratio:1; padding:12px; }
 .ys-market .card-body { padding:12px 12px 18px; }
 .ys-market .card-body h3 { font-size:13px; height:38px; margin-bottom:10px; }
 .ys-market .card-body .price { font-size:23px; }
 .ys-market .stock-label { font-size:10px; gap:3px; }
 .ys-market .category-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; padding:14px; }
 .ys-market .category-media { aspect-ratio:1; padding:12px; }
 .ys-market .category-name { font-size:11px; min-height:45px; padding:7px 4px; }
 .ys-market .store-banners { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
 .ys-market .store-banner { grid-template-columns:1fr; min-height:260px; align-content:space-between; }
 .ys-market .banner-copy { padding:16px 14px 0; }
 .ys-market .banner-kicker { font-size:7px; letter-spacing:1px; }
 .ys-market .banner-title { font-size:23px; margin:8px 0; }
 .ys-market .banner-description { display:none; }
 .ys-market .banner-action { font-size:9px; padding:7px; }
 .ys-market .banner-product { height:115px; padding:8px 16px; }
 .ys-market .banner-product img,.ys-market .banner-accessories .banner-product img { height:100%; }
 .ys-market .catalog-layout { display:block; }
 .ys-market .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:var(--ys-line); }
 .ys-market .product-grid .product-card { border-radius:0; }
 .ys-market .detail-page { width:100%; padding-top:0; }
 .ys-market .breadcrumbs { padding:12px 16px; font-size:11px; }
 .ys-market .product-top,.ys-market .ys-product-layout { display:flex; flex-direction:column; padding:0; gap:0; border-radius:0; }
 .ys-market .gallery,.ys-market .ys-native-gallery { width:100%; padding:0; order:0; }
 .ys-market .main-photo { height:auto; aspect-ratio:1; width:100%; padding:20px; }
 .ys-market .product-summary,.ys-market .ys-native-summary { padding:22px 20px; width:100%; order:1; }
 .ys-market .product-summary h1,.ys-market .ys-native-summary h1 { font-size:21px; font-weight:500; }
 .ys-market .buy-box,.ys-market .ys-native-buy { width:100%; border:0; border-top:1px solid var(--ys-line); border-radius:0; padding:20px; order:2; }
 .ys-market .buy-box .btn { width:100%; }
 .ys-market .detail-section { padding:24px 20px; }
 .ys-market .detail-section h2 { font-size:22px; }
 .ys-market .spec-table { table-layout:fixed; width:100%; overflow-wrap:anywhere; }
 .ys-market .preview-indicator { max-width:100%; font-size:9px; }
}
@media(prefers-reduced-motion:reduce) { .ys-market *, .ys-market *::before { scroll-behavior:auto!important; transition:none!important; } }
/* Brand artwork is shared taxonomy media; preserve its original proportions/colors. */
.ys-market .brand-cell { height:100px; min-height:100px; padding:18px; border-radius:9px; background:#fff; }
.ys-market .brand-cell img.brand-logo { display:block; width:100%; height:62px; object-fit:contain; border:0; box-shadow:none; filter:none; mix-blend-mode:normal; }
@media(max-width:760px) { .ys-market .brand-strip { grid-auto-columns:140px; } .ys-market .brand-cell { height:90px; min-height:90px; padding:12px; } .ys-market .brand-cell img.brand-logo { height:64px; } }
