/* Barzinmarket storefront — marketplace layout with published, admin-managed design tokens. */
:root{color-scheme:dark light}
html{scroll-behavior:smooth;scroll-padding-top:170px}
body.storefront-body{background:var(--site-bg)!important;color:var(--site-text)!important;font-family:var(--site-font,Tahoma,sans-serif);min-height:100vh;padding-bottom:0;line-height:1.7}
body.storefront-body a{transition:color .18s,background-color .18s,border-color .18s,transform .18s}
body.storefront-body a:hover{color:var(--site-warm)}
body.storefront-body a:focus-visible,body.storefront-body button:focus-visible,body.storefront-body input:focus-visible,body.storefront-body select:focus-visible{outline:3px solid var(--site-focus)!important;outline-offset:3px}
body.storefront-body .container-page{max-width:var(--site-container,1280px)!important;margin-inline:auto;padding-inline:clamp(12px,2vw,22px)}
body.storefront-body .surface{background:var(--site-surface)!important;color:var(--site-text);border:1px solid var(--site-border);border-radius:var(--site-card-radius)!important}
body.storefront-body .site-muted,body.storefront-body .text-slate-500,body.storefront-body .text-slate-600,body.storefront-body .text-slate-300{color:var(--site-muted)!important}
body.storefront-body .bg-white,body.storefront-body .bg-slate-50,body.storefront-body .bg-slate-100{background-color:var(--site-raised)!important}
body.storefront-body .border-slate-200,body.storefront-body .border-slate-300{border-color:var(--site-border)!important}
body.storefront-body .text-emerald-800,body.storefront-body .text-emerald-700{color:var(--site-warm)!important}
body.storefront-body .btn-primary{display:inline-flex;align-items:center;justify-content:center;background:var(--site-primary)!important;color:var(--site-button-text)!important;border:1px solid transparent;border-radius:var(--site-button-radius)!important;min-height:42px;padding:10px 18px;transition:background .2s}
body.storefront-body .btn-primary:hover{background:var(--site-primary-dark)!important;color:var(--site-button-text)!important}
body.storefront-body .btn-secondary{background:var(--site-raised);color:var(--site-text);border:1px solid var(--site-border);border-radius:var(--site-button-radius)}
body.storefront-body .btn-secondary:hover{border-color:var(--site-warm)}
body.storefront-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),body.storefront-body select,body.storefront-body textarea{background:var(--site-raised);border:1px solid var(--site-border);color:var(--site-text);border-radius:10px;padding:10px;min-height:38px}
body.storefront-body input::placeholder,body.storefront-body textarea::placeholder{color:var(--site-muted);opacity:.85}
body.storefront-body input[type="checkbox"]{accent-color:var(--site-primary)}
body.storefront-body .filter-form{gap:12px;padding:12px;border:1px solid var(--site-border);border-radius:18px;background:var(--site-surface)}
body.storefront-body .faq-row,body.storefront-body .address-card{background:var(--site-surface);border:1px solid var(--site-border);color:var(--site-text)}
body.storefront-body .pause-notice{background:var(--site-raised);color:var(--site-warm);border-radius:12px;margin-block:12px}
body.storefront-body #cart-toast{background:var(--site-primary);border:1px solid var(--site-border);color:var(--site-button-text);box-shadow:0 8px 35px #0005}
body.storefront-body .consumer-price{color:var(--site-muted);text-decoration:line-through;text-decoration-color:var(--site-discount);text-decoration-thickness:2px}
body.storefront-body .site-in-stock{color:var(--site-warm)!important}
body.storefront-body .site-low-stock{color:var(--site-discount)!important}
body.storefront-body .site-product-image{object-fit:var(--site-product-fit,contain);background:#fff;border-radius:10px}
/* Header + navigation */
.store-header.site-header{position:sticky!important;top:0;z-index:80;background:var(--site-header)!important;border-bottom:1px solid var(--site-border)!important;box-shadow:0 3px 18px #0002;backdrop-filter:blur(12px)}
.store-topline{display:flex;align-items:center;justify-content:space-between;gap:clamp(9px,1.4vw,22px);min-height:88px;padding-block:13px;flex-wrap:nowrap!important}
.store-brand{flex:none;display:flex;gap:11px;align-items:center;color:var(--site-text);min-width:150px;text-decoration:none}
.store-brand:hover{color:var(--site-text)!important}.store-brand-emblem{width:47px;height:47px;display:grid;place-items:center;background:#f4f0e9;border:1px solid var(--site-border);border-radius:12px;overflow:hidden;flex-shrink:0}
.store-brand .site-logo-image{height:47px;width:47px;max-width:47px;max-height:47px;object-fit:cover;object-position:center}
.store-brand-copy{display:flex;flex-direction:column;line-height:1.45;white-space:nowrap}.store-brand-copy strong{font-size:clamp(1.16rem,1.6vw,1.6rem);font-weight:900;letter-spacing:-.4px}.store-brand-copy small{font-size:.68rem;color:var(--site-warm)}
.store-address{display:flex;align-items:center;gap:9px;min-width:138px;max-width:200px;padding:9px 12px;border-radius:12px;background:var(--site-raised);border:1px solid var(--site-border);color:var(--site-text);flex:none}
.store-address svg{width:23px;height:23px;stroke:var(--site-warm);fill:none;stroke-width:1.8;flex:none}.store-address>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.store-address small{color:var(--site-muted);font-size:.67rem}.store-address strong{font-size:.8rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.address-caret{margin-inline-start:auto;color:var(--site-muted)}
.store-search{display:flex;align-items:stretch;height:46px;min-width:140px;flex:1;position:relative;direction:rtl}
.store-search input{height:46px!important;width:100%;border-radius:12px!important;background:var(--site-search-bg)!important;color:var(--site-search-text)!important;border:1px solid transparent!important;font-size:.83rem;padding:10px 15px!important;padding-left:58px!important;outline:none}
.store-search input::placeholder{color:var(--site-search-text)!important;opacity:.65!important}.store-search button{position:absolute;inset-inline-end:0;top:0;bottom:0;display:grid;place-items:center;width:53px;border:0;border-radius:11px 0 0 11px;background:var(--site-primary);color:var(--site-button-text);cursor:pointer}
.store-search button:hover{background:var(--site-primary-dark)}.store-search svg,.store-icon-link svg,.store-menu-toggle svg,.store-nav svg,.store-mobile-tabbar svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.store-icon-link{display:flex;align-items:center;gap:8px;white-space:nowrap;font-weight:700;font-size:.81rem;color:var(--site-text);padding:8px 4px}
.store-icon-link svg{width:25px;height:25px}.store-cart-link{position:relative}.store-cart-link b,.store-mobile-tabbar .tab-cart b{display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:99px;background:var(--site-discount);color:white;font-size:.68rem;position:absolute;inset-inline-start:16px;top:2px}
.store-nav-shell{border-top:1px solid var(--site-border);background:var(--site-nav)}.store-nav{display:flex;gap:0;align-items:center;min-height:50px;white-space:nowrap}.store-nav>a{display:flex;align-items:center;gap:6px;color:var(--site-text);font-size:.84rem;font-weight:700;padding:13px 20px;border-left:1px solid var(--site-border)}.store-nav>a span{color:var(--site-warm);font-weight:900;font-size:1.14rem}
.store-nav .category-menu{margin-inline-end:13px;position:relative}.store-nav .category-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;background:var(--site-primary);border-radius:10px;padding:8px 18px;color:var(--site-button-text);font-weight:800;font-size:.85rem}.store-nav .category-menu summary::-webkit-details-marker{display:none}.store-nav .category-menu summary:hover{background:var(--site-primary-dark)}
.store-nav .category-menu aside{right:0;left:auto;top:calc(100% + 6px);width:280px;max-height:60vh;background:var(--site-surface);border:1px solid var(--site-border);box-shadow:0 14px 45px #0008;border-radius:14px;padding:10px;overflow:auto;z-index:90}.store-nav .category-menu aside a{display:block;color:var(--site-text);padding:9px 12px;border-radius:8px}.store-nav .category-menu aside a:hover{background:var(--site-raised)}
.store-menu-toggle,.store-mobile-drawer{display:none}.store-messages{position:fixed;z-index:120;top:135px;left:50%;transform:translateX(-50%);width:min(96vw,650px)}.store-message{display:flex;gap:16px;align-items:start;justify-content:space-between;padding:13px;background:var(--site-surface);border:1px solid var(--site-warm);border-radius:12px;color:var(--site-text);box-shadow:0 8px 30px #0006}.store-message button{font-size:1.7rem}
/* Homepage: six content groups only */
.store-home{padding-bottom:42px}.store-hero-section{padding-top:20px}.store-home-section{margin-top:var(--site-section-gap,40px)}
.store-fallback-hero{height:clamp(265px,25vw,365px);position:relative;overflow:hidden;border:1px solid var(--site-border);border-radius:calc(var(--site-card-radius) + 2px);background:var(--site-surface)}
.store-fallback-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left center}
.store-fallback-hero-shade{position:absolute;inset:0;background:linear-gradient(270deg,color-mix(in srgb,var(--site-bg) 98%,transparent) 1%,color-mix(in srgb,var(--site-header) 91%,transparent) 34%,color-mix(in srgb,var(--site-bg) 35%,transparent) 66%,transparent 100%)}
.store-fallback-hero-content{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;height:100%;max-width:min(59%,650px);padding:clamp(20px,4vw,58px)}
.store-hero-kicker{display:inline-block;font-size:.9rem;color:var(--site-warm);font-weight:700;max-width:100%}
.store-fallback-hero-content h1{font-size:clamp(1.75rem,3.2vw,3.1rem);font-weight:900;color:var(--site-text);margin:8px 0 12px;line-height:1.4}
.store-fallback-hero-content p{font-size:clamp(.83rem,1.25vw,1rem);color:var(--site-text);opacity:.88;max-width:500px;line-height:2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-hero-action{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--site-primary);color:var(--site-button-text)!important;border:1px solid color-mix(in srgb,var(--site-primary) 70%,white);border-radius:10px;font-weight:850;min-height:42px;padding:8px 26px;margin-top:20px}.store-hero-action:hover{background:var(--site-primary-dark);transform:translateY(-2px)}
.store-published-banners{display:flex;flex-direction:column;gap:12px}.store-published-banners .custom-banner{border-radius:var(--site-card-radius);margin-bottom:0;box-shadow:0 12px 34px #0003}.store-published-banners .banner-link{border-radius:var(--site-button-radius)}
.store-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px}.store-section-head h2{font-size:clamp(1.1rem,1.7vw,1.35rem);font-weight:900;line-height:1.4;display:flex;align-items:center;gap:10px}.store-section-head>a{color:var(--site-warm);font-size:.8rem;font-weight:800;white-space:nowrap}.store-head-symbol{display:grid;place-items:center;color:var(--site-warm);background:var(--site-raised);width:29px;height:29px;border-radius:9px}
.store-home .store-product-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(168px,1fr);grid-template-columns:none;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--site-border) transparent;padding:3px 2px 18px;scroll-snap-type:x proximity}
.store-home .store-product-rail .site-product-card{scroll-snap-align:start}
.store-home .store-category-grid{display:grid;grid-template-columns:repeat(var(--site-category-cols-desktop,8),minmax(0,1fr));gap:12px}
.store-home .site-category-card{min-width:0;min-height:135px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:13px 8px;background:var(--site-surface)!important;text-align:center;border-radius:15px!important}.store-home .site-category-card:hover{border-color:var(--site-warm);transform:translateY(-2px)}.store-home .site-category-card b{font-size:.78rem;font-weight:850;line-height:1.6}
.store-home .category-sticker{width:77px;height:75px;margin:0;background:var(--site-raised);box-shadow:none;font-size:2.7rem;border-radius:14px}
/* Product cards: responsive, compact and consistent */
body.storefront-body .site-product-card{background:var(--site-surface)!important;border:1px solid var(--site-border);border-radius:15px!important;min-width:0;overflow:hidden;box-shadow:0 5px 20px #0001;transition:border-color .2s,transform .2s}
body.storefront-body .site-product-card:hover{border-color:color-mix(in srgb,var(--site-warm) 62%,var(--site-border));transform:translateY(-2px)}
body.storefront-body .site-product-image-wrap{padding:10px;background:var(--site-surface)!important;display:block;aspect-ratio:1.12}
body.storefront-body .site-product-image{width:100%;height:100%;border-radius:9px;object-fit:contain}
body.storefront-body .site-discount-badge{position:absolute;top:10px;left:10px;background:var(--site-discount);color:white;border-radius:10px;padding:4px 9px;font-size:.73rem}
body.storefront-body .site-product-card-body{padding:var(--site-card-padding,16px);display:flex;flex-direction:column;flex:1;min-height:175px}
body.storefront-body .site-product-card h3{font-size:.85rem;font-weight:800;line-height:1.7;min-height:46px;margin-top:6px}
body.storefront-body .site-product-card .font-black{font-size:.9rem;color:var(--site-text)}
body.storefront-body .site-product-card .font-black .text-lg{font-size:1.12rem;font-weight:900;font-variant-numeric:tabular-nums}
body.storefront-body .site-product-card .consumer-price{font-size:.83rem;color:var(--site-muted);line-height:1.6}
body.storefront-body .site-product-card select{font-size:.72rem;width:100%;padding:5px 8px;min-height:32px;margin-top:8px}
body.storefront-body .site-product-card .quantity-control{background:var(--site-primary);border:1px solid var(--site-border);color:var(--site-button-text);min-height:38px;margin-top:6px;border-radius:9px;overflow:hidden}
body.storefront-body .site-product-card .quantity-control button{min-width:38px;min-height:38px;display:grid;place-items:center;font-size:1.42rem;font-weight:800}
body.storefront-body .site-product-card .quantity-control button:hover{background:var(--site-primary-dark)}
body.storefront-body .site-product-card .quantity-control output{font-variant-numeric:tabular-nums}
body.storefront-body .site-product-card .quantity-control[data-empty="true"]{justify-content:center}
body.storefront-body .site-product-card .quantity-control[data-empty="true"] .quantity-subtract,body.storefront-body .site-product-card .quantity-control[data-empty="true"] output{display:none}
body.storefront-body .site-product-card .quantity-control[data-empty="true"] .quantity-add{width:100%;font-size:.83rem;gap:5px}
body.storefront-body .site-product-card .quantity-control[data-empty="false"] .quantity-add .quantity-add-label{display:none}
body.storefront-body .site-product-card .favourite-button{font-size:.75rem;color:var(--site-muted);border:1px solid var(--site-border);border-radius:8px;padding:4px 7px;margin-top:9px}
body.storefront-body .site-product-card .favourite-button:hover{color:var(--site-warm)}
body.storefront-body .site-product-grid{gap:12px}
/* Footer */
body.storefront-body .store-footer{width:100%;max-width:none!important;background:var(--site-footer)!important;border-top:1px solid var(--site-border);padding:45px 0 22px;margin:0;color:var(--site-text);border-radius:0}
.store-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:clamp(16px,3vw,50px)}
.store-footer-grid>div{min-width:0}.store-footer-grid h2{font-weight:900;color:var(--site-text);font-size:.95rem;margin:0 0 17px}.store-footer-grid a{display:block;width:max-content;max-width:100%;color:var(--site-muted)!important;text-decoration:none;font-size:.82rem;padding:5px 0}.store-footer-grid a:hover{color:var(--site-warm)!important}
.store-footer-brand{font-size:1.65rem;color:var(--site-text)}.store-footer-about p,.store-footer-grid p{font-size:.83rem;color:var(--site-muted);margin-top:12px;line-height:2}
.store-footnote{color:var(--site-warm)!important}.store-footer-bottom{border-top:1px solid var(--site-border);margin-top:33px;padding-top:18px;display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;font-size:.75rem;color:var(--site-muted)}.store-footer-bottom a{color:var(--site-muted)}
.store-mobile-tabbar{display:none}.draft-theme-ribbon{background:var(--site-warm);color:#191919;font-size:.84rem;text-align:center;padding:8px 16px;font-weight:900;position:relative;z-index:100}
/* responsive */
@media (min-width:1100px){.store-home .store-product-rail{grid-auto-columns:minmax(170px,calc((100% - 5*12px)/6))}}
@media (max-width:1080px){.store-brand-copy small{display:none}.store-topline{gap:10px}.store-address{min-width:118px}.store-icon-link span{display:none}.store-nav>a{padding:12px}.store-footer-grid{grid-template-columns:1.2fr 1fr 1fr}.store-footer-grid>div:last-child{grid-column:auto}}
@media (max-width:767px){
  html{scroll-padding-top:126px}
  body.storefront-body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  .store-header.site-header{position:sticky!important;top:0}
  .store-topline{height:auto;min-height:0;padding-top:10px;padding-bottom:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:46px 42px;gap:8px 10px;align-items:center}
  .store-brand{grid-column:1 / 3;grid-row:1;min-width:0;gap:7px}.store-brand-emblem{width:36px;height:36px;border-radius:9px}.store-brand .site-logo-image{height:36px;width:36px;max-height:36px;max-width:36px}.store-brand-copy strong{font-size:1.03rem}
  .store-icon-link.store-cart-link{grid-column:3;grid-row:1;justify-self:end;padding:4px}.store-cart-link b{inset-inline-start:11px;top:0}.store-icon-link.account-icon-link{display:none}
  .store-menu-toggle{grid-column:4;grid-row:1;display:grid;place-items:center;justify-self:end;width:39px;height:39px;border:1px solid var(--site-border);background:var(--site-raised);border-radius:9px;color:var(--site-text)}
  .store-address{grid-row:2;grid-column:3 / 5;min-width:0;max-width:none;height:42px;padding:5px 9px;gap:5px}.store-address svg{width:18px;height:18px}.store-address small{display:none}.store-address strong{font-size:.67rem}.address-caret{display:none}
  .store-search{grid-column:1 / 3;grid-row:2;min-width:0;height:42px}.store-search input{height:42px!important;padding:8px 10px!important;padding-left:43px!important;font-size:.72rem}.store-search button{width:40px;border-radius:9px 0 0 9px}
  .store-nav-shell{display:none}
  .store-mobile-drawer{position:absolute;left:12px;right:12px;top:calc(100% + 4px);z-index:100;background:var(--site-surface);border:1px solid var(--site-border);box-shadow:0 16px 35px #0007;border-radius:12px;padding:10px;max-height:65vh;overflow-y:auto}
  .store-mobile-drawer:not(.hidden){display:grid;grid-template-columns:1fr 1fr;gap:6px}.store-mobile-drawer a{display:block;padding:11px;font-size:.8rem;border-radius:8px;color:var(--site-text);background:var(--site-raised)}
  .store-mobile-tabbar{position:fixed;inset-inline:0;bottom:0;z-index:95;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 7px calc(8px + env(safe-area-inset-bottom,0px));background:var(--site-nav);border-top:1px solid var(--site-border);box-shadow:0 -6px 18px #0005;min-height:67px}
  .store-mobile-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:700;color:var(--site-muted);font-size:.62rem;position:relative;white-space:nowrap;min-width:0}.store-mobile-tabbar svg{width:23px;height:23px}.store-mobile-tabbar a[aria-current="page"]{color:var(--site-warm)}.store-mobile-tabbar .tab-cart b{inset-inline-start:46%;top:-2px}
  .store-home{padding-bottom:15px}.store-hero-section{padding-top:13px}
  .store-fallback-hero{height:280px;border-radius:15px}.store-fallback-hero-image{object-position:23% center}
  .store-fallback-hero-shade{background:linear-gradient(270deg,color-mix(in srgb,var(--site-bg) 97%,transparent) 0%,color-mix(in srgb,var(--site-header) 88%,transparent) 48%,color-mix(in srgb,var(--site-header) 30%,transparent) 100%)}
  .store-fallback-hero-content{max-width:90%;padding:21px}.store-fallback-hero-content h1{font-size:1.65rem;margin:9px 0}.store-fallback-hero-content p{font-size:.75rem;max-width:300px}.store-hero-kicker{font-size:.73rem}.store-hero-action{margin-top:15px;padding:7px 19px;min-height:38px;font-size:.8rem}
  .store-home-section{margin-top:28px}.store-section-head h2{font-size:1.06rem}.store-section-head>a{font-size:.74rem}
  .store-home .store-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px}.store-home .site-category-card{min-height:109px;padding:9px 4px;gap:6px}.store-home .category-sticker{width:50px;height:53px;font-size:1.9rem}.store-home .site-category-card b{font-size:.67rem}
  .store-home .store-product-rail{grid-auto-columns:minmax(145px,44vw);gap:9px;padding-bottom:12px}
  body.storefront-body .site-product-grid{grid-template-columns:repeat(var(--site-product-cols-mobile,2),minmax(0,1fr))!important;gap:9px}
  body.storefront-body .site-product-card-body{padding:10px!important}.store-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}.store-footer-about{grid-column:span 2}.store-footer-bottom{font-size:.69rem}
  body.storefront-body .store-footer{padding-bottom:25px}
}
@media (max-width:370px){.store-topline{gap:6px}.store-brand-copy strong{font-size:.92rem}.store-address strong{font-size:.61rem}.store-home .store-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.store-home .store-product-rail{grid-auto-columns:minmax(146px,58vw)}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.storefront-body *,body.storefront-body *::before,body.storefront-body *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
/* Keep badge positioning inside icon-only cart variants at tablet widths. */
.store-cart-link{min-width:36px}
