:root{--ink:#14202b;--muted:#687482;--line:#e5e8eb;--paper:#fff;--soft:#f4f6f7;--platinum:#dfe3e5;--dark:#11181f;--accent:#9e7c45}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}a{text-decoration:none;color:inherit}.topbar{background:var(--dark);color:#e6eaec;text-align:center;padding:9px;font-size:12px;letter-spacing:.04em}.site-header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px);border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);z-index:10}.brand{display:flex;align-items:center;gap:12px}.brand-mark,.admin-logo{width:42px;height:42px;border:1px solid #8d969d;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-size:24px;background:linear-gradient(145deg,#fff,#cfd5d8);box-shadow:inset 0 0 0 3px #f7f8f8}.brand strong{letter-spacing:.24em;font-size:15px}.brand small{display:block;font-size:9px;letter-spacing:.48em;color:#7f898f}.site-header nav{display:flex;gap:28px;align-items:center;font-size:14px}.site-header nav a:hover{color:var(--accent)}.cart{padding:10px 14px;background:var(--dark);color:white;border-radius:999px}.cart b{background:white;color:var(--dark);border-radius:50%;padding:2px 6px;margin-left:5px}.hero{min-height:620px;padding:70px max(6vw,40px);display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center;background:radial-gradient(circle at 78% 20%,#eef0f1 0,transparent 38%),linear-gradient(120deg,#fbfbfb,#f1f3f4)}.eyebrow{font-size:11px;letter-spacing:.22em;font-weight:800;color:#7c858b}.hero h1,.section h1{font-size:clamp(44px,6vw,78px);line-height:.96;margin:16px 0 24px;letter-spacing:-.05em}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:#727d84}.hero p,.sub{max-width:650px;font-size:17px;line-height:1.7;color:var(--muted)}.actions{display:flex;gap:12px;margin:32px 0}.btn{display:inline-block;border:0;background:var(--dark);color:white;padding:14px 20px;border-radius:5px;font-weight:700;cursor:pointer}.btn.ghost{background:white;color:var(--ink);border:1px solid #ccd1d4}.btn.small{padding:10px 14px;font-size:12px}.btn.block{display:block;text-align:center;width:100%}.trust{display:flex;gap:24px;font-size:12px;color:#59656d}.hero-card{background:#fff;border:1px solid #dfe3e5;padding:26px;box-shadow:0 24px 60px rgba(24,36,45,.10);max-width:430px}.hero-card img{width:100%;height:290px}.hero-tag{display:inline-block;font-size:10px;letter-spacing:.15em;background:#eee7da;color:#71582f;padding:6px 9px}.hero-card h3{font-size:21px;margin:16px 0 8px}.price-row{display:flex;justify-content:space-between;align-items:center}.price-row strong{font-size:25px}.price-row span{font-size:12px;color:var(--muted)}.section{padding:70px max(5vw,28px)}.section.muted{background:var(--soft)}.section.narrow{max-width:1180px;margin:auto}.section-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:28px}.section-title h2{font-size:34px;margin:8px 0}.section-title>a{font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.category{padding:28px 18px;border:1px solid var(--line);background:white;min-height:160px;display:flex;flex-direction:column;justify-content:end}.category>span{font-size:30px;margin:auto 0}.category small{color:var(--muted);margin-top:5px}.category:hover{border-color:#9fa7ad;transform:translateY(-2px)}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.product-card{background:white;border:1px solid var(--line);position:relative}.product-image{display:block;background:#f2f4f5;position:relative;padding:20px}.product-image img{width:100%;height:220px}.condition,.sold-badge{position:absolute;top:12px;left:12px;background:white;padding:6px 9px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.sold-badge{background:var(--dark);color:#fff}.is-sold .product-image img{filter:grayscale(1);opacity:.55}.product-body{padding:18px}.product-body>small{color:var(--muted);font-size:11px}.product-body h3{font-size:17px;line-height:1.35;min-height:46px}.product-body ul{list-style:none;padding:0;margin:12px 0;font-size:12px;color:#56636b;line-height:1.8}.location{font-size:11px;color:#69757c;padding-top:12px;border-top:1px solid var(--line)}.location span{padding:0 5px}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:14px;gap:10px}.product-bottom>strong{font-size:21px}.sold-price{font-size:13px!important;color:#9ba2a7}.sold-text{font-size:11px;font-weight:800}.service-strip{background:var(--dark);color:#fff;padding:34px max(5vw,28px);display:grid;grid-template-columns:repeat(4,1fr)}.service-strip div{text-align:center;border-right:1px solid #34404a}.service-strip div:last-child{border:0}.service-strip strong{display:block;font-size:27px}.service-strip span{font-size:11px;color:#aeb7bd}.filters{display:flex;gap:8px;margin-bottom:24px}.filters button,.filters select{border:1px solid var(--line);background:#fff;padding:10px 13px;border-radius:4px}.filters button.active{background:var(--dark);color:#fff}.empty{padding:60px;text-align:center;background:var(--soft)}.cart-layout,.checkout-grid{display:grid;grid-template-columns:1.6fr .7fr;gap:32px}.cart-item{display:grid;grid-template-columns:90px 1fr auto auto;gap:18px;align-items:center;border-bottom:1px solid var(--line);padding:18px 0}.cart-item img{width:90px;height:90px;background:var(--soft)}.cart-item small{display:block;color:var(--muted);margin-top:7px}.linkbtn{border:0;background:none;text-decoration:underline;color:var(--muted);cursor:pointer}.summary,.panel,.timeline,.info-grid article{border:1px solid var(--line);padding:24px;background:#fff}.summary{height:max-content}.summary>div{display:flex;justify-content:space-between;padding:10px 0;font-size:13px}.summary .total{font-size:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:28px}.form-grid input,.form-grid textarea{padding:13px;border:1px solid #ced4d8;font:inherit}.wide{grid-column:1/-1}.choice{display:flex;gap:10px;padding:14px;border:1px solid var(--line);margin:8px 0}.choice small{display:block;color:var(--muted);margin-top:4px}.pay-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pay-grid button{padding:16px;border:1px solid #cbd1d4;background:#fafbfb;font-weight:800}.pay-grid small{font-weight:400;color:var(--muted)}.legal{font-size:11px;color:var(--muted)}.warranty-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:26px}.timeline>div{display:flex;gap:14px;margin:18px 0}.timeline>div>span{width:30px;height:30px;border-radius:50%;background:var(--dark);color:white;display:grid;place-items:center;font-size:12px;flex:0 0 auto}.timeline p{margin:0}.timeline small{display:block;color:var(--muted);margin-top:4px;line-height:1.4}.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.info-grid p{color:var(--muted);line-height:1.6}.admin-wrap{display:grid;grid-template-columns:220px 1fr;min-height:760px}.admin-nav{background:#141b21;color:#d7dde1;padding:28px 20px;display:flex;flex-direction:column;gap:8px}.admin-nav>b{margin:8px 0 20px}.admin-nav a{padding:11px 12px;border-radius:4px;font-size:13px}.admin-nav a.active{background:#29343d;color:#fff}.admin-logo{color:#141b21;margin-bottom:6px}.admin-main{background:#f5f7f8;padding:38px}.admin-head{display:flex;justify-content:space-between;align-items:center}.admin-head h1{font-size:36px;margin:4px 0 24px}.avatar{width:38px;height:38px;border-radius:50%;background:#222;color:#fff;display:grid;place-items:center;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stats article{background:white;border:1px solid var(--line);padding:20px}.stats small,.stats span{display:block;color:var(--muted);font-size:11px}.stats strong{display:block;font-size:31px;margin:7px 0}.admin-grid{display:grid;grid-template-columns:1.8fr .7fr;gap:18px}.panel-head{display:flex;justify-content:space-between;align-items:center}.smallbtn{border:0;background:var(--dark);color:#fff;padding:9px 11px;border-radius:3px}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:13px 8px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-weight:600}td small{display:block;color:var(--muted);margin-top:3px}.status{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.status.ok{background:#e9f5ef;color:#246345}.status.sold{background:#f0f0f0;color:#666}.permissions p{display:flex;flex-direction:column;gap:7px;font-size:12px}.permissions p b{font-size:14px;margin-bottom:4px}footer{background:#0f151a;color:#ced4d8;padding:48px max(5vw,28px);display:grid;grid-template-columns:repeat(3,1fr);gap:30px}footer p{color:#818d95;font-size:12px}@media(max-width:900px){.hero{grid-template-columns:1fr;padding-top:45px}.hero-card{display:none}.product-grid{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}.service-strip{grid-template-columns:repeat(2,1fr);gap:25px}.cart-layout,.checkout-grid,.warranty-grid,.admin-grid{grid-template-columns:1fr}.admin-wrap{grid-template-columns:1fr}.admin-nav{display:none}.stats{grid-template-columns:repeat(2,1fr)}.info-grid{grid-template-columns:1fr}}@media(max-width:560px){.product-grid{grid-template-columns:1fr}.section{padding:45px 18px}.hero{padding:45px 18px;min-height:auto}.hero h1,.section h1{font-size:44px}.trust{flex-direction:column;gap:8px}.filters{overflow:auto}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.pay-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.admin-main{padding:20px}.cart-item{grid-template-columns:70px 1fr}.cart-item>strong,.cart-item>form{grid-column:2}.service-strip{grid-template-columns:1fr}.service-strip div{border-right:0;border-bottom:1px solid #34404a;padding:12px}}
.flash{max-width:1100px;margin:14px auto;padding:12px 16px;border-radius:5px;font-size:14px}.flash.success{background:#e9f5ef;color:#246345}.flash.error{background:#fdecec;color:#8a2525}.login-card{max-width:520px;margin:auto}.login-card label,.admin-form label,.panel label{display:block;font-size:12px;font-weight:700;margin:12px 0}.login-card input,.admin-form input,.admin-form select,.admin-form textarea,.panel input,.panel select,.panel textarea,.filters input,.buy-box select{width:100%;padding:11px;border:1px solid #cfd5d8;font:inherit;margin-top:5px;background:#fff}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:48px}.main-product-image{width:100%;max-height:520px;object-fit:contain;background:#f3f5f6}.gallery{display:flex;gap:8px;margin-top:10px;overflow:auto}.gallery img{width:86px;height:86px;object-fit:cover;border:1px solid var(--line)}.detail-price{font-size:34px;font-weight:800;margin:22px 0}.buy-box{border:1px solid var(--line);padding:18px}.sold-panel{padding:22px;background:#f1f2f3;margin:20px 0}.sold-panel b{font-size:22px}.specs{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.product-copy{margin-top:34px}.qty{width:70px;padding:8px}.success-card{max-width:700px;margin:auto}.case-updates>div,.case-note{border-left:3px solid #d5dade;padding:8px 14px;margin:12px 0}.case-updates small,.case-note small{display:block;color:var(--muted);margin-top:4px}.table-scroll{overflow:auto}.status.neutral{background:#eef0f1;color:#59636a}.danger{background:#8f2d2d}.admin-form{margin-bottom:18px}.inline-stock{display:grid;grid-template-columns:1.5fr 1fr .7fr auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.inline-stock label{margin:0}.inline-stock small{align-self:center}.image-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.image-admin-grid img{width:100%;height:110px;object-fit:cover;background:#f3f4f5}.upload-box{padding:14px 0;border-top:1px solid var(--line)}.check{display:flex!important;align-items:center;gap:8px}.check input{width:auto!important;margin:0!important}.admin-form .btn{margin-right:8px}.pay-grid label{border:1px solid var(--line);padding:14px;margin:0;cursor:pointer}.pay-grid input{width:auto;margin:0 6px 0 0}.filters input{width:240px;margin:0}.filters select{margin:0}.product-body p{font-size:12px;color:var(--muted);min-height:32px}.panel select{padding:10px}.panel .btn{margin-top:8px}.legal{line-height:1.5}@media(max-width:900px){.product-detail{grid-template-columns:1fr}.inline-stock{grid-template-columns:1fr 1fr}.image-admin-grid{grid-template-columns:repeat(2,1fr)}}
.site-settings{padding:16px 0;border-bottom:1px solid var(--line)}.tag-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 20px}.tag-list span{background:#eef1f3;padding:6px 10px;border-radius:999px;font-size:12px}

.stock-location{border:1px solid var(--line);background:var(--soft);padding:14px 16px;margin:14px 0 10px;border-radius:4px}.stock-location b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:7px}.stock-location span{display:block;font-size:14px;font-weight:700;margin:3px 0}
.multi-site-select{min-height:120px;padding:8px!important}.multi-site-select option{padding:8px 10px;border-radius:3px}.multi-site-select option:checked{font-weight:800}.location-select-label .field-note,.field-note{display:block;font-weight:400;color:var(--muted);font-size:11px;line-height:1.4;margin-top:4px}.selected-site-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.selected-site-summary span{display:inline-block;padding:9px 11px;border:1px solid var(--line);background:var(--soft);border-radius:4px;font-size:12px}

.drop-zone{display:flex!important;min-height:150px;border:2px dashed #b9c1c6;border-radius:8px;background:#f8fafb;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;padding:24px!important;margin:8px 0 12px!important;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.drop-zone:hover,.drop-zone:focus,.drop-zone.is-dragging{border-color:var(--dark);background:#eef2f4;outline:none;transform:translateY(-1px)}.drop-zone strong{font-size:15px}.drop-zone small{font-weight:400;color:var(--muted)}.drop-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--dark);color:#fff;font-size:18px;font-weight:800}.drop-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none}.drop-file-list{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 10px;word-break:break-word}.upload-box .smallbtn{margin-right:12px}
/* Commerce extension — adaptive navigation */
.nav-toggle,.admin-menu-toggle{display:none;appearance:none;border:1px solid #ccd2d6;border-radius:6px;padding:10px 14px;background:#fff;color:#14212c;font-weight:700;cursor:pointer}
.site-header .public-nav{display:flex;gap:18px;align-items:center}
.public-nav a{white-space:nowrap}
.shop-shell{display:grid;grid-template-columns:minmax(195px,240px) minmax(0,1fr);gap:28px;align-items:start}
.category-sidebar{background:#fff;border:1px solid #dbe0e4;border-radius:8px;position:sticky;top:20px;overflow:hidden}
.category-sidebar summary{padding:18px 16px;background:#18232e;color:#fff;cursor:pointer;font-weight:800;list-style:none}
.category-sidebar nav{display:grid;gap:0}.category-sidebar nav a{padding:12px 16px;text-decoration:none;color:#253440;border-bottom:1px solid #eff1f3}.category-sidebar nav a:hover,.category-sidebar nav a.selected{background:#edf3f7;font-weight:800;color:#124b71}
.shop-products{min-width:0}.shop-products .filters{display:flex;flex-wrap:wrap}
.hero-slider{position:relative;min-height:480px;overflow:hidden;background:#0e1a26;color:#fff}
.hero-slides{position:relative;min-height:480px}.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;visibility:hidden;transition:opacity .5s ease,visibility .5s ease}
.hero-slide.is-active{opacity:1;visibility:visible}.hero-slide-content{min-height:480px;max-width:1200px;margin:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:70px 80px}.hero-slide-content h1{max-width:800px;font-size:clamp(38px,5vw,70px);line-height:1.07;margin:20px 0}.hero-slide-content p{max-width:630px;font-size:19px;line-height:1.55}.hero-slide-content .eyebrow{color:#d6e0e7}
.slide-arrow{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #ffffff77;background:#101d27aa;color:#fff;border-radius:50%;font-size:32px;width:42px;height:42px;cursor:pointer}.slide-arrow.prev{left:16px}.slide-arrow.next{right:16px}
.slide-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:10px}.slide-dots button{background:#ffffff88;border:0;border-radius:50%;width:12px;height:12px;cursor:pointer}.slide-dots button.active{background:#fff;transform:scale(1.2)}
.brand-strip{padding:40px 0;text-align:center;background:#fafafa;border-top:1px solid #e4e7e8}
.brand-strip h2{font-size:23px;margin:0 20px 26px}
.brand-track{width:100%;overflow:hidden;scrollbar-width:none;-ms-overflow-style:none}
.brand-track::-webkit-scrollbar{display:none}
.brand-marquee{display:flex;align-items:center;width:max-content}
.brand-logos{display:flex;gap:36px;align-items:center;flex:0 0 auto;width:max-content;padding-right:36px}
.brand-logo{width:152px;height:84px;flex:0 0 152px;display:grid;place-items:center}
.brand-logo img{max-width:142px;max-height:72px;width:auto;height:auto;object-fit:contain}
.brand-track.is-animated .brand-marquee{animation:brand-autoscroll var(--brand-duration,30s) linear infinite;will-change:transform}
.brand-track:hover .brand-marquee,.brand-track:focus-within .brand-marquee{animation-play-state:paused}
@keyframes brand-autoscroll{to{transform:translate3d(var(--brand-offset,0px),0,0)}}
@media (prefers-reduced-motion:reduce){.brand-track{overflow-x:auto}.brand-track.is-animated .brand-marquee{animation:none;will-change:auto}}

.sortable-grid{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:20px}.sortable-item{width:178px;padding:12px;border:1px solid #d6dbde;border-radius:8px;cursor:grab;background:#fafafa;touch-action:pan-y}.sortable-item.dragging{opacity:.5}.sortable-item img{width:100%;height:102px;object-fit:cover}.sortable-item p{margin:8px 0 4px;font-weight:800;font-size:14px}.sortable-item small{color:#65717b}.media-edit-row{padding:15px 0;border-bottom:1px solid #e6e9eb}.manual-product-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(95px,1fr) auto;gap:12px;align-items:end;border-bottom:1px solid #e3e6e8;padding:12px 0}.manual-product-row select{max-width:100%}.manual-product-row .btn{margin-bottom:2px}.account-product{padding:18px 0;border-bottom:1px solid #e6e9eb}.account-product details{margin-top:14px;padding:12px;background:#f4f6f7;border-radius:5px}.account-product summary{font-weight:800;cursor:pointer}
@media(max-width:900px){
.nav-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}.site-header{flex-wrap:wrap;gap:12px}.site-header .public-nav{display:none!important;flex-direction:column;align-items:stretch;width:100%;padding:10px 0;gap:0}.site-header .public-nav.nav-open{display:flex!important}.site-header .public-nav a{display:block;padding:13px;border-top:1px solid #e4e8eb}
.admin-wrap{display:grid!important;grid-template-columns:1fr!important}.admin-menu-toggle{display:block;width:calc(100% - 32px);margin:16px}.admin-nav{display:none!important;position:static!important;min-height:0!important}.admin-nav.nav-open{display:flex!important;flex-direction:column;width:100%;padding:14px 20px}.admin-main{min-width:0}.shop-shell{grid-template-columns:1fr;gap:20px}.category-sidebar{position:static}.category-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-slide-content{padding:70px 50px}
}
@media(max-width:560px){.category-sidebar nav{grid-template-columns:1fr}.hero-slider,.hero-slides,.hero-slide-content{min-height:360px}.hero-slide-content{padding:55px 30px}.hero-slide-content p{font-size:15px}.slide-arrow{width:30px;height:30px;font-size:22px}.slide-arrow.prev{left:4px}.slide-arrow.next{right:4px}.manual-product-row{grid-template-columns:1fr 95px}.manual-product-row button{grid-column:1/-1}.sortable-item{width:calc(50% - 7px)}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none}}

/* Searchable, paginated admin tables */
.table-search{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 16px}.table-search label{min-width:180px;flex:1}.table-search input,.table-search select{margin-top:5px}.table-search label:nth-child(2){max-width:145px;min-width:125px}
.table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:13px 0}.table-pagination span{margin-right:auto;color:var(--muted,#666);font-size:0.9rem}.table-pagination a.is-disabled{opacity:.4;pointer-events:none}
.table-thumb{width:70px;height:54px;object-fit:contain;border-radius:8px;background:#f4f5f7}.upload-preview-existing{width:100%;height:130px;object-fit:contain;display:block;margin:8px 0;border:1px solid #dadde3;border-radius:10px}
.file-drop-zone{position:relative;cursor:pointer;padding:18px;min-height:102px;border:2px dashed #9ca9b8;border-radius:12px;background:rgba(123,142,160,.06);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:8px 0 14px;text-align:center;transition:background .18s,border .18s}
.file-drop-zone:hover,.file-drop-zone:focus,.file-drop-zone.is-dragging{border-color:#245fb4;background:#e9f2ff;outline:none}.file-drop-zone input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-drop-prompt{font-weight:700;pointer-events:none}.file-drop-info{font-size:12px;overflow-wrap:anywhere;pointer-events:none}.file-preview{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;pointer-events:none}.file-preview img{width:70px;height:55px;object-fit:contain;border-radius:6px;border:1px solid #ccd4dd;background:#fff}
.category-grid .category img{height:74px;width:100%;max-width:124px;object-fit:contain}.category-hero{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;background:#182b41;color:white;padding:clamp(30px,6vw,70px);margin-bottom:22px}.category-hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(13,27,45,.9),rgba(13,27,45,.35)),var(--category-banner,none);background-size:cover;background-position:center;z-index:-1}.category-hero h1{margin:0 0 8px;color:white}.category-hero p{max-width:690px;color:#edf2f7}
.manual-product-search{margin:6px 0}.manual-product-row{align-items:end}
@media(max-width:650px){.table-search label{min-width:100%}.table-search label:nth-child(2){min-width:125px;max-width:none}.table-pagination{justify-content:flex-start}}

/* Admin navigation groupings, assignment checklists, and merchant cards */
.admin-nav .nav-group{margin:12px 0 16px}.admin-nav .nav-group-label{display:block;padding:7px 14px;color:#b8c5d5;font-size:.72rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.admin-nav .nav-group a{display:block}.site-checklist{border:1px solid #cbd5e1;border-radius:12px;margin:16px 0;padding:12px}.site-checklist legend{padding:0 6px;font-weight:700}.site-checklist .check{display:flex;align-items:center;gap:10px;margin:8px 0}.provider-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.provider-grid .panel{min-width:0}.provider-grid textarea{width:100%;max-width:100%;resize:vertical}.provider-grid input[type=password]{width:100%}@media(max-width:780px){.provider-grid{grid-template-columns:1fr}}

/* Branding and payment methods (v4) */
.site-logo-image{display:block;max-width:min(240px,55vw);max-height:54px;width:auto;height:auto;object-fit:contain}
.admin-logo img{max-width:36px;max-height:36px;width:auto;height:auto;object-fit:contain}
.footer-logo-image{max-width:210px;max-height:70px;width:auto;height:auto;object-fit:contain;display:block;margin-bottom:12px}
.settings-current-logo{display:flex;align-items:center;gap:18px;border:1px solid var(--line);background:#f9fafb;padding:14px;border-radius:10px;margin:10px 0 14px;flex-wrap:wrap}
.settings-current-logo img{max-width:260px;max-height:110px;object-fit:contain}
.settings-current-logo span{font-size:13px;color:#667085}
.provider-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px;min-height:70px}
.provider-heading h2{font-size:22px;margin:0 0 3px}
.provider-type{font-size:12px;color:#64748b}
.provider-icon{width:100px;height:60px;flex:none;border:1px solid #e2e8f0;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:8px}
.provider-icon img{display:block;width:100%;height:100%;object-fit:contain}
.provider-card{min-width:0}
.payment-choice{display:flex!important;align-items:center;gap:12px;min-height:84px;border-radius:8px;background:#fff;cursor:pointer}
.payment-choice input[type=radio]{width:auto;flex:none;margin:0 0 0 2px}
.payment-choice img{width:65px;height:40px;object-fit:contain;flex:none}
.payment-choice span{display:flex;flex-direction:column;gap:3px}
.payment-choice b{font-size:13px}
.payment-choice small{font-size:11px;font-weight:400;color:#667085}
.payment-choice:has(input:checked){border-color:#31587b;box-shadow:0 0 0 1px #31587b inset;background:#f6faff}
@media(max-width:600px){.provider-heading{gap:10px}.provider-icon{width:85px;height:54px}.payment-choice img{width:55px;height:34px}.site-logo-image{max-height:44px}}

.btn:disabled{opacity:.5;cursor:not-allowed}


/* Editable legal and information pages */
.legal-page-text{max-width:960px;margin:auto;line-height:1.75;padding:clamp(20px,4vw,48px)}
.legal-page-text h2{margin:32px 0 10px;line-height:1.25;font-size:1.4rem}
.legal-page-text h3{margin:25px 0 9px;line-height:1.3;font-size:1.12rem}
.legal-page-text p{margin:0 0 15px}
.legal-page-text ul{padding-left:26px;margin-bottom:18px}
.page-content-head{margin-bottom:22px}.page-content-head h1{margin:8px 0 0}
footer .footer-page-link{display:block;width:max-content;max-width:100%;margin-top:9px;color:inherit;text-decoration:underline;text-underline-offset:3px}
.cookie-settings-link{appearance:none;display:inline-block;border:0;padding:0;margin-top:14px;background:none;color:inherit;text-decoration:underline;text-underline-offset:3px;font:inherit;text-align:left;cursor:pointer}
.admin-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.admin-page-heading .btn{white-space:nowrap}.page-markdown-editor{min-height:360px;width:100%;font:14px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.page-display-checks{display:flex;gap:25px;flex-wrap:wrap;margin:18px 0}.page-display-checks .check{display:flex;gap:9px;align-items:center}
.page-archive-form{margin-top:26px;border-top:1px solid #e2e8f0;padding-top:20px}
/* Accessible, equally prominent Accept / Reject, optional category controls */
.cookie-banner[hidden],.cookie-options[hidden],.cookie-actions [hidden]{display:none!important}
.cookie-banner{position:fixed;bottom:14px;left:14px;right:14px;z-index:9999;max-width:990px;margin:0 auto;padding:0;background:#fff;color:#1e293b;border:1px solid #ccd5e1;border-radius:16px;box-shadow:0 14px 48px rgba(10,25,45,.26)}
.cookie-banner-inner{padding:24px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px}
.cookie-intro{flex:1 1 340px}.cookie-intro strong{font-size:1.15rem}.cookie-intro p{font-size:.9rem;line-height:1.45;margin:5px 0 0;color:#405066}.cookie-intro a{font-weight:700}
.cookie-options{display:flex;gap:16px;flex:1 1 100%;flex-wrap:wrap;padding:13px 0 5px;border-top:1px solid #e2e8f0}
.cookie-options label{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.9rem}.cookie-options input{width:auto;margin:0}
.cookie-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:10px;flex:1 1 100%}
.cookie-actions .btn{margin:0;min-width:138px;flex:1 1 130px;text-align:center;justify-content:center}
.cookie-actions .btn[data-cookie-reject]{background:#17406f;color:#fff;border-color:#17406f}
.cookie-actions .btn[data-cookie-accept]{background:#17406f;color:#fff;border-color:#17406f}
@media(max-width:600px){.cookie-banner{left:8px;right:8px;bottom:8px;max-height:calc(100dvh - 16px);overflow-y:auto}.cookie-banner-inner{padding:16px;gap:12px}.cookie-actions .btn{min-width:0;flex:1 1 115px;padding:11px 9px}.cookie-options{flex-direction:column;gap:12px}}

/* v7: public store directory, responsive cards and full address listing in admin */
.store-locations-page{max-width:1220px}
.store-locations-intro{margin-bottom:34px}
.store-locations-intro h1{margin-bottom:14px}
.store-locations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:24px}
.store-location-card{display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:30px;box-shadow:0 12px 32px rgba(22,38,51,.055)}
.store-location-heading{display:flex;align-items:center;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.store-location-heading h2{font-size:23px;line-height:1.25;margin:7px 0 0}
.store-location-icon{width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;background:#f0f3f5;color:#243544;font-size:32px;font-weight:700}
.store-location-detail h3{margin:0 0 7px;font-size:14px}
.store-location-detail address{font-style:normal;line-height:1.75;color:#44515b}
.store-location-detail address span,.store-admin-address-line{display:block}
.store-location-detail p{margin:0;color:#536271;line-height:1.6}
.store-location-detail .store-location-missing{color:#65717e;font-style:italic}
.store-location-detail .store-location-partial{margin-top:4px;font-size:13px}
.store-location-phone{color:#153e65;font-size:18px;font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.store-location-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.store-location-actions .btn{flex:1;text-align:center;white-space:nowrap}
.store-locations-note{margin-top:34px;font-size:15px;color:var(--muted)}
.store-locations-note a{color:#164872;text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.store-location-card{padding:22px}.store-location-actions{flex-direction:column}}

/* v8: AO-inspired, image-led category browsing. Custom uploaded pictures take precedence. */
.category-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.category-grid .category{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
  min-height:248px;
  padding:0;
  background:#fff;
  border:1px solid #e1e5e8;
  border-radius:14px;
  overflow:hidden;
  color:#172632;
  box-shadow:0 5px 20px rgba(22,38,51,.035);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.category-grid .category:hover{
  transform:translateY(-3px);
  border-color:#c9d2d9;
  box-shadow:0 12px 26px rgba(22,38,51,.09);
}
.category-grid .category:focus-visible{outline:3px solid #245fb4;outline-offset:3px}
.category-grid .category-media{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1 1 auto;
  width:100%;
  min-height:188px;
  padding:14px 18px 4px;
  background:#fff;
  margin:0;
}
.category-grid .category img{
  display:block;
  width:100%;
  max-width:100%;
  height:170px;
  max-height:none;
  object-fit:contain;
  object-position:center;
}
.category-grid .category-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:17px 15px 20px;
  text-align:center;
  min-height:65px;
}
.category-grid .category-label b{font-size:15px;font-weight:750;line-height:1.35}
.category-grid .category-arrow{font-size:18px;line-height:1;color:#72808b;flex:none}
/* White, neutral media surface makes product photos consistent across homepage and shop. */
.product-card{background:#fff;overflow:hidden;border-radius:12px}
.product-card .product-image{display:flex;align-items:center;justify-content:center;min-height:255px;padding:18px;background:#fff!important}
.product-card .product-image img{display:block;width:100%;height:220px;object-fit:contain;object-position:center;background:#fff}
.product-card .condition{z-index:1}
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .category-grid .category{min-height:205px}
  .category-grid .category-media{min-height:143px;padding:10px 8px 0}
  .category-grid .category img{height:133px}
  .category-grid .category-label{min-height:58px;padding:12px 8px 14px}
  .category-grid .category-label b{font-size:13px}
  .category-grid .category-arrow{font-size:15px}
  .product-card .product-image{min-height:220px;padding:14px}
  .product-card .product-image img{height:190px}
}
@media(prefers-reduced-motion:reduce){.category-grid .category{transition:none}}

/* v9 — Accessible mobile menu with a reliable staff-login entry.
   Keep the navigation outside the fixed-height header's document flow,
   and allow scrolling when more links fit than a phone viewport. */
@media(max-width:900px){
  .site-header{height:auto;min-height:78px;flex-wrap:nowrap;isolation:isolate}
  .site-header .nav-toggle{flex:none;margin-left:auto}
  .site-header .public-nav{
    position:absolute;top:100%;left:0;right:0;
    width:100%;max-height:calc(100vh - 78px);max-height:calc(100dvh - 78px);
    overflow-y:auto;overscroll-behavior:contain;
    padding:8px max(20px,5vw) 16px;
    background:#fff;border-bottom:1px solid #e1e5e8;
    box-shadow:0 14px 25px rgba(17,24,31,.12);
    z-index:2;
  }
  .site-header .public-nav .staff-login-link{
    margin-top:8px;padding:14px 16px;border:1px solid #d4dde5;
    border-radius:6px;background:#f2f5f8;color:#14202b;font-weight:800;
  }
  .site-header .public-nav .staff-login-link:focus-visible,
  .site-header .nav-toggle:focus-visible{outline:3px solid #245fb4;outline-offset:2px}
  .site-header .public-nav .cart{margin-top:12px;text-align:center}
}
