/* GOBHAM: small-screen layout and accessible interaction targets. */
/* Stay in document flow so the pinned header never covers the page on load. */
html{scroll-padding-top:180px}
.nav-main{position:sticky;top:0;z-index:1020;padding:10px 0;background:#fff;box-shadow:0 4px 18px rgba(10,35,31,.08)}
.nav-main .container{gap:24px!important}
.nav-main .brand{flex-shrink:0}
.nav-main .search{min-width:120px;max-width:none;min-height:44px}
.nav-main .search:focus-within{border-color:var(--gold);outline:2px solid var(--mint)}
.nav-main .search input{min-width:0}
.nav-main .search button{min-width:36px;min-height:36px}
.nav-main .nav-links{margin-left:auto;gap:16px;flex-shrink:0}
.nav-main .nav-links>a{min-height:44px;display:inline-flex;align-items:center;gap:5px}
.nav-main .nav-links>a:first-child{max-width:160px;overflow:hidden;white-space:nowrap}
.nav-main .nav-links form{margin:0}
@media(max-width:991px){
 .nav-main .container{flex-wrap:wrap!important;gap:8px 18px!important}
 .nav-main .search{order:3;flex-basis:100%;min-width:0;max-width:100%}
 .nav-main .nav-links{flex:1;justify-content:flex-end;gap:12px}
}
@media(max-width:650px){
 .brand-logo{width:80px}.nav-main .container{gap:12px!important}
 .nav-links{max-width:100%;gap:12px}.nav-links>a{min-height:44px;display:inline-flex;align-items:center}
 .nav-links .btn{min-height:40px}.btn,.add-btn{min-height:44px}.heart{width:36px;height:36px}
 .section-head{flex-wrap:wrap}.section-head a{display:inline-flex;align-items:center;min-height:40px}
 .section-head .page-title{margin-bottom:0}.hero-copy{padding:26px}.hero h1{font-size:clamp(32px,9.5vw,39px)}
 form.d-flex{flex-wrap:wrap}form.d-flex .form-select{flex:1 1 100%}
 .cart-item{gap:14px!important;align-items:flex-start!important}.cart-item>img{width:60px!important;height:70px!important}
 .summary-row{gap:10px}.stat{font-size:clamp(22px,6vw,30px)}.panel h5{overflow-wrap:anywhere}
 .category-nav .container{scrollbar-width:thin;scrollbar-color:#b7884a transparent}
 .page-title{font-size:26px}.footer-bottom{line-height:1.8}
}
@media(max-width:650px){
 .nav-main{padding:6px 0}
 .nav-main .container{gap:6px 10px!important}
 .nav-main .nav-links{gap:4px 10px;min-width:0}
 .nav-main .nav-links>a:first-child{max-width:110px}
 .nav-main .search input{font-size:16px}
 html{scroll-padding-top:220px}
}
@media(max-width:360px){.nav-links{gap:8px;font-size:10px}.brand-logo{width:72px}.benefit{align-items:flex-start}.benefit b{font-size:11px}.benefit small{font-size:10px}.product-body{padding:10px}.product-body h3{font-size:12px}.price{font-size:15px}.categories{gap:7px}.category-card b{font-size:11px}}

/* One sticky header keeps category controls aligned on every screen. */
:root{--header-height:150px}
html{scroll-padding-top:calc(var(--header-height) + 64px)}
.site-header{position:sticky;top:0;z-index:1020;background:#fff;box-shadow:0 4px 18px #0a231f10}
.site-header .nav-main{position:static;box-shadow:none}
.category-nav{padding:5px 0}
.category-nav .container{position:relative;overflow:visible;align-items:center;gap:20px;white-space:normal}
.category-menu{flex-shrink:0}
.category-menu summary,.refine-menu summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:44px;font-weight:700}
.category-menu summary::-webkit-details-marker,.refine-menu summary::-webkit-details-marker{display:none}
.category-menu summary{border-radius:7px;padding:8px 12px;background:var(--cream)}
.menu-chevron{display:inline-block;margin-left:4px;transition:transform .15s}
details[open]>summary .menu-chevron{transform:rotate(180deg)}
.category-menu-panel{position:absolute;left:12px;right:12px;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;box-shadow:0 16px 36px #0a231f26;max-height:min(calc(100dvh - var(--header-height) - 16px),var(--panel-space,100dvh));overflow-y:auto;overscroll-behavior:contain}
.menu-heading{font-size:16px;font-weight:750;margin-bottom:12px}
.category-all{display:flex;justify-content:space-between;padding:12px 14px;border-radius:8px;background:var(--mint);font-weight:650;margin-bottom:12px}
.category-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.category-menu-grid a{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid var(--line);padding:12px;border-radius:8px;white-space:normal}
.category-menu-grid a>span{font-size:22px;flex-shrink:0}
.category-menu-grid a:hover,.category-menu-grid a[aria-current]{background:var(--cream);border-color:var(--gold)}
.category-shortcuts{display:flex;gap:22px;align-items:center;min-width:0;font-size:11px}
.seller-link{margin-left:auto;flex-shrink:0;min-height:44px;display:flex;align-items:center}
.catalog-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,3fr);gap:24px;align-items:start}
.catalog-filters,.catalog-results{min-width:0}
.catalog-filters{position:sticky;top:calc(var(--header-height) + 16px)}
.refine-menu>summary{display:none}
.refine-panel{margin-bottom:0;max-height:min(calc(100dvh - var(--header-height) - 32px),var(--panel-space,100dvh));overflow-y:auto;overscroll-behavior:contain}
@media(max-width:1199px){.category-shortcuts{gap:12px}.category-nav .container{gap:12px}}
@media(max-width:991px){
 .category-shortcuts{display:none}
 .category-nav .container{justify-content:space-between}
 .category-menu summary{font-size:13px}
 .category-menu-panel{padding:16px}
 .category-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .catalog-layout{display:block}
 .catalog-filters{position:sticky;top:var(--header-height);z-index:1010;margin-bottom:18px;padding:8px 0;background:var(--cream)}
 .refine-menu{position:relative}
 .refine-menu>summary{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:12px 16px;min-height:50px;box-shadow:0 3px 10px #0a231f08}
 .refine-count{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
 .refine-panel{position:absolute;left:0;right:0;top:calc(100% + 6px);max-height:min(calc(100dvh - var(--header-height) - 78px),var(--panel-space,100dvh));overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 36px #0a231f26;padding:20px}
 .refine-panel h5{font-size:18px;margin:0 0 12px}
 .refine-panel .form-control,.refine-panel .form-select{font-size:16px;min-height:44px}
 .catalog-results>.muted{font-size:12px;margin-bottom:12px}
 .category-menu summary:focus-visible,.refine-menu summary:focus-visible{outline-offset:1px}
}
@media(max-width:360px){.category-menu-grid{grid-template-columns:1fr}.seller-link{font-size:11px}.refine-menu>summary{padding:12px;font-size:13px}}

/* Catalog sidebar: grouped filters on desktop, a separate sheet on mobile. */
.catalog-layout{grid-template-columns:260px minmax(0,1fr);gap:24px}
.refine-panel{display:flex;flex-direction:column;padding:0;border-radius:2px;border-color:#e8e8e8;overflow:hidden;color:#212121}
.filter-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px;border-bottom:1px solid #eee;flex-shrink:0}
.filter-heading h2{font-size:22px;font-weight:650;margin:0;letter-spacing:0}
.filter-heading a{color:#173f35;font-size:11px;font-weight:600}
.filter-sections{overflow-y:auto;min-height:0;overscroll-behavior:contain;flex:1}
.filter-section{border-bottom:1px solid #eee}
.filter-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:66px;padding:20px 22px;list-style:none;cursor:pointer;text-transform:uppercase;font-size:13px;font-weight:600}
.filter-section>summary::-webkit-details-marker{display:none}
.filter-section>summary>span{color:#888;font-size:18px;transition:transform .15s}
.filter-section[open]>summary>span{transform:rotate(180deg)}
.filter-section-content{padding:0 22px 22px}
.category-choices{display:flex;flex-direction:column;gap:2px;padding-bottom:18px}
.category-choice{cursor:pointer;position:relative;display:block}
.category-choice input{position:absolute;opacity:0;width:1px;height:1px}
.category-choice>span{display:block;padding:9px 10px;color:#737373;font-size:13px;border-radius:4px;line-height:1.45}
.category-choice input:checked+span{color:#212121;font-weight:650;background:#edf3ee;box-shadow:inset 3px 0 #173f35}
.category-choice input:focus-visible+span{outline:2px solid #173f35;outline-offset:1px}
.category-choice:hover>span{background:#f4f6f2;color:#173f35}
.filter-actions{padding:16px 22px;border-top:1px solid #eee;background:#fff;flex-shrink:0}
.filter-actions .btn{background:#173f35;color:white;min-height:44px;border-radius:3px}
.filter-actions .btn:hover{background:#102d26}
.filter-dialog{border:0;border-radius:18px 18px 0 0;padding:0;width:100%;max-width:640px;max-height:90dvh;height:85dvh;position:fixed;top:auto;bottom:0;margin:0 auto;background:#fff;color:#212121;overflow:hidden;box-shadow:0 -12px 40px #0002}
.filter-dialog::backdrop{background:#101d2c80}
html.filters-open{overflow:hidden}
.filter-dialog[open]{display:flex;flex-direction:column}
.filter-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid #eee;flex-shrink:0}
.filter-dialog-header h2{font-size:19px;margin:0;font-weight:650}
.filter-dialog-header button{border:0;background:#f1f4f7;border-radius:50%;width:44px;height:44px;font-size:18px}
.filter-dialog-body{flex:1;min-height:0;display:flex;flex-direction:column}
.filter-dialog .refine-panel{position:static;max-height:none;box-shadow:none;flex:1;min-height:0;border:0;margin:0;overflow:hidden;padding:0}
.filter-dialog .filter-heading{padding:12px 22px}
.filter-dialog .filter-heading h2{display:none}
.filter-dialog .filter-heading a{margin-left:auto;font-size:13px;min-height:32px;display:flex;align-items:center}
.filter-dialog .filter-actions{padding-bottom:max(16px,env(safe-area-inset-bottom))}
@media(max-width:991px){.catalog-layout{display:block}.filter-section>summary{min-height:60px}.filter-dialog .form-control,.filter-dialog .form-select{font-size:16px;min-height:44px}.category-choice>span{font-size:15px;min-height:44px}}
