/* KIELHAX Storefront v4 - compact premium liquid glass buyer UI */
.storefront{
  --bg:#08090b;--bg-2:#0b0c0f;--panel:rgba(255,255,255,.052);--panel2:rgba(255,255,255,.075);
  --line:rgba(255,255,255,.105);--line-strong:rgba(255,255,255,.17);--text:#f4f5f7;--muted:#959ba5;
  --accent:#f5f7fa;--good:#8ee3aa;--warn:#e7c37a;--bad:#f28d94;--radius:14px;--max:1180px;
  --space-1:4px;--space-2:6px;--space-3:8px;--space-4:10px;--space-5:12px;--space-6:16px;--space-7:20px;
  background:radial-gradient(1200px 500px at 50% -180px,rgba(255,255,255,.05),transparent 55%),var(--bg);
  color:var(--text);font-size:14px;letter-spacing:-.005em;overflow-x:hidden;
}
.storefront *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.storefront ::selection{background:rgba(255,255,255,.18)}
.storefront .site-header{height:52px;min-height:52px;background:rgba(8,9,11,.72);border-bottom:1px solid rgba(255,255,255,.075);backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%)}
.storefront .header-inner{height:52px;min-height:52px;max-width:var(--max);padding:0 16px;gap:16px}
.storefront .brand{font-size:14px;font-weight:850;letter-spacing:.08em;color:#fff}
.storefront .top-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.storefront .top-nav a{min-height:32px;display:inline-flex;align-items:center;padding:0 10px;border-radius:9px;color:#a7adb6;font-size:12px;font-weight:700;transition:background .16s ease,color .16s ease}
.storefront .top-nav a:hover,.storefront .top-nav a[aria-current=page]{background:rgba(255,255,255,.06);color:#fff}
.storefront .menu-button{margin-left:0;min-height:34px;height:34px;padding:0 10px;gap:7px;border-radius:10px;border-color:rgba(255,255,255,.11);background:rgba(255,255,255,.055);box-shadow:inset 0 1px 0 rgba(255,255,255,.035);font-size:12px}
.storefront .menu-button:hover{background:rgba(255,255,255,.085);border-color:rgba(255,255,255,.17)}
.storefront .menu-button .nav-icon{width:16px;height:16px}
.storefront .status-banner{padding:7px 12px;background:rgba(231,195,122,.06);border-color:rgba(231,195,122,.2);font-size:12px}
.storefront .flash{max-width:var(--max);margin:10px auto 0;padding:9px 12px;border-radius:11px;background:rgba(255,255,255,.055);backdrop-filter:blur(10px);font-size:12px}
.storefront .page{max-width:var(--max);padding:16px 16px 42px}
.storefront .site-footer{padding:18px 16px 22px;border-top:1px solid rgba(255,255,255,.065);font-size:11px;background:transparent}
.storefront .site-footer span{color:#626873}

.storefront .panel,.storefront .card{background:linear-gradient(145deg,rgba(255,255,255,.058),rgba(255,255,255,.036));border:1px solid var(--line);border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 12px 36px rgba(0,0,0,.12)}
.storefront .panel{padding:16px}
.storefront .page-title{font-size:clamp(20px,2.6vw,24px);line-height:1.15;letter-spacing:-.035em;font-weight:820}
.storefront .eyebrow{margin:0 0 5px;color:#9198a2;font-size:9px;line-height:1.2;font-weight:800;letter-spacing:.14em}
.storefront .muted{color:var(--muted)}
.storefront .small{font-size:11px}
.storefront h2{font-size:16px;letter-spacing:-.02em}
.storefront h3{letter-spacing:-.015em}
.storefront p{line-height:1.52}
.storefront .section{margin-top:16px}
.storefront .section-head,.storefront .page-head-compact{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}
.storefront .page-head-compact{align-items:center}
.storefront .compact-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;color:#e9ebee;font-size:11px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}
.storefront .compact-section-title a{color:#9fa5ae;font-size:10px;text-transform:none;letter-spacing:0}

.storefront .button{min-height:36px;padding:7px 12px;border-radius:10px;border-color:rgba(255,255,255,.11);background:rgba(255,255,255,.055);font-size:12px;font-weight:760;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:transform .14s ease,background .14s ease,border-color .14s ease,opacity .14s ease}
.storefront .button:hover{background:rgba(255,255,255,.085);border-color:rgba(255,255,255,.17)}
.storefront .button:active{transform:scale(.985)}
.storefront .button.primary{background:#f2f4f7;border-color:#f2f4f7;color:#0a0b0d;box-shadow:0 7px 20px rgba(255,255,255,.07)}
.storefront .button.primary:hover{background:#fff;border-color:#fff}
.storefront .button-row{gap:8px}
.storefront .badge{min-height:21px;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.045);font-size:9px;font-weight:780;line-height:1;border-color:rgba(255,255,255,.11)}
.storefront .badge.Available,.storefront .badge.Approved,.storefront .badge.Answered{color:#a8ebba;background:rgba(89,190,116,.09);border-color:rgba(89,190,116,.23)}
.storefront .badge.Maintenance,.storefront .badge.Pending,.storefront .badge.In\ Review,.storefront .badge.In{color:#ead095;background:rgba(210,166,76,.08);border-color:rgba(210,166,76,.22)}
.storefront .badge.Unavailable,.storefront .badge.Denied,.storefront .badge.Closed,.storefront .badge.Out\ of\ Stock,.storefront .badge.Out{color:#f0a0a5;background:rgba(220,91,100,.08);border-color:rgba(220,91,100,.23)}
.storefront .badge.Promo{color:#dfe4ec;background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.16)}

/* Shop */
.storefront .market-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.storefront .catalog-filters{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.storefront .filter-chip{min-height:29px;padding:5px 10px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:rgba(255,255,255,.035);color:#8f959e;font-size:10px;font-weight:800;transition:background .14s ease,border-color .14s ease,color .14s ease,transform .14s ease}
.storefront .filter-chip:hover{color:#dfe2e7;border-color:rgba(255,255,255,.15)}
.storefront .filter-chip:active{transform:scale(.97)}
.storefront .filter-chip.is-active{background:rgba(255,255,255,.11);border-color:rgba(255,255,255,.18);color:#fff}
.storefront .limited-offers{margin-bottom:14px}
.storefront .offer-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,280px);gap:8px;overflow-x:auto;padding-bottom:2px;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
.storefront .offer-card{scroll-snap-align:start;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;min-height:78px;padding:10px 11px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.035);transition:background .16s ease,border-color .16s ease,transform .16s ease}
.storefront .offer-card:hover{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.16);transform:translateY(-1px)}
.storefront .offer-card>div:first-child{min-width:0;display:grid;gap:3px}
.storefront .offer-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.storefront .offer-card small{color:#8f959e;font-size:9px}
.storefront .offer-card .badge{justify-self:start;margin-bottom:1px}
.storefront .offer-price{display:grid;gap:2px;justify-items:end;white-space:nowrap}
.storefront .offer-price span{font-size:15px;font-weight:850}
.storefront .offer-price del{color:#717781;font-size:9px}
.storefront .catalog-section{min-width:0}
.storefront .product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.storefront .product-card{min-width:0;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.095);border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:transform .16s ease,border-color .16s ease,background .16s ease}
.storefront .product-card:hover{transform:translateY(-2px);background:rgba(255,255,255,.058);border-color:rgba(255,255,255,.16)}
.storefront .product-card:active{transform:scale(.99)}
.storefront .product-card[hidden]{display:none!important}
.storefront .product-card-link{display:block;height:100%}
.storefront .product-media{position:relative;overflow:hidden;background:#0d0e11}
.storefront .product-image,.storefront .product-media .image-placeholder{width:100%;aspect-ratio:1.35/1;object-fit:cover;border:0}
.storefront .product-image{transition:transform .2s ease,filter .2s ease}
.storefront .product-card:hover .product-image{transform:scale(1.018);filter:brightness(1.035)}
.storefront .product-badges{position:absolute;top:7px;left:7px;right:7px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.storefront .product-badges .badge{background:rgba(12,13,16,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.storefront .product-card-body{padding:9px 10px 10px}
.storefront .product-card-body h3{min-height:32px;margin:0 0 7px;font-size:13px;line-height:1.25;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.storefront .product-card-bottom{display:flex;align-items:end;justify-content:space-between;gap:6px}
.storefront .product-card .price{font-size:13px;line-height:1.15}
.storefront .product-card .price small{display:block;margin-bottom:2px;color:#777d86;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.storefront .card-arrow{width:22px;height:22px;display:grid;place-items:center;flex:0 0 22px;border-radius:8px;background:rgba(255,255,255,.055);color:#aeb4bd;font-size:18px;line-height:1}
.storefront .shop-filter-empty{margin-top:10px}

/* Product detail */
.storefront .product-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:14px;align-items:start}
.storefront .product-visuals{display:grid;gap:10px;min-width:0}
.storefront .product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.storefront .product-gallery.single{grid-template-columns:1fr}
.storefront .product-gallery-item{position:relative;overflow:hidden;padding:0;border:1px solid rgba(255,255,255,.095);border-radius:13px;background:#0d0e11;transition:border-color .15s ease,transform .15s ease}
.storefront .product-gallery-item:hover{border-color:rgba(255,255,255,.18)}
.storefront .product-gallery-item:active{transform:scale(.992)}
.storefront .product-gallery-item img{width:100%;aspect-ratio:16/10;object-fit:cover}
.storefront .product-gallery-item.is-primary:first-child{grid-column:1/-1}
.storefront .product-gallery-item.is-primary:first-child img{aspect-ratio:16/9}
.storefront .product-placeholder{min-height:240px;border:1px solid var(--line);border-radius:14px}
.storefront .purchase-panel{position:sticky;top:64px;padding:15px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.038));box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 18px 45px rgba(0,0,0,.16)}
.storefront .product-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.storefront .product-heading-row .eyebrow{margin:0}
.storefront .product-description{margin:8px 0 0;color:#9da3ad;font-size:12px;line-height:1.48;white-space:normal}
.storefront .price-selector{margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.075)}
.storefront .selector-label{margin-bottom:7px;color:#858c96;font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.storefront .price-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.storefront .price-choice{position:relative;display:grid;gap:3px;min-height:57px;padding:8px 9px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:rgba(255,255,255,.03);transition:background .14s ease,border-color .14s ease,transform .14s ease}
.storefront a.price-choice:hover{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}
.storefront a.price-choice:active{transform:scale(.985)}
.storefront .price-choice.is-selected{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.storefront .price-choice.is-selected:after{content:"";position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.storefront .price-choice.is-disabled{opacity:.58}
.storefront .price-choice-label{padding-right:12px;color:#a7adb6;font-size:10px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.storefront .price-choice-value{font-size:14px;font-weight:850;letter-spacing:-.02em}
.storefront .price-choice-promo{color:#878e98;font-size:8px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.storefront .price-choice-promo del{margin-right:3px;color:#666c75}
.storefront .purchase-button{width:100%;margin-top:10px;min-height:39px;font-size:13px}
.storefront .purchase-note{margin-top:7px;text-align:center;color:#686f79;font-size:9px}
.storefront .product-notes{display:grid;gap:7px}
.storefront .product-notes details{border:1px solid rgba(255,255,255,.085);border-radius:11px;background:rgba(255,255,255,.028);overflow:hidden}
.storefront .product-notes summary{padding:10px 11px;cursor:pointer;font-size:11px;font-weight:780;list-style:none}
.storefront .product-notes summary::-webkit-details-marker{display:none}
.storefront .product-notes summary:after{content:"+";float:right;color:#7e858f}
.storefront .product-notes details[open] summary:after{content:"−"}
.storefront .product-notes p{margin:0;padding:0 11px 11px;color:#9299a3;font-size:11px}

/* Preview and promos */
.storefront .preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.storefront .preview-card{overflow:hidden;background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.09);border-radius:13px}
.storefront .preview-card button{background:#0d0e11}
.storefront .preview-card img{aspect-ratio:4/3;object-fit:cover}
.storefront .preview-card .content{padding:8px 9px 9px}
.storefront .preview-card .content h3{margin:0;font-size:11px;line-height:1.3}
.storefront .preview-card .content p{display:-webkit-box;margin:5px 0 0;color:#858c96;font-size:9px;line-height:1.35;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.storefront .preview-product{display:block;margin-top:3px;color:#6f7680;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.storefront .promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.storefront .promo-card{padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.03))}
.storefront .promo-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.storefront .promo-card h2{margin:10px 0 4px;font-size:14px}
.storefront .promo-card h3{margin:8px 0 3px;color:#c7cbd1;font-size:11px}
.storefront .promo-card p{margin:5px 0 10px;color:#858c96;font-size:10px}
.storefront .promo-pricing{display:flex;align-items:baseline;gap:7px}
.storefront .promo-pricing strong{font-size:18px}
.storefront .promo-pricing del{color:#6f7580;font-size:10px}

/* Forms/auth */
.storefront .content-narrow{max-width:620px;margin:18px auto 0}
.storefront .auth-wrap{min-height:calc(100dvh - 150px);display:grid;place-items:center;padding:12px 0 20px}
.storefront .auth-panel{width:min(100%,390px);max-width:390px;margin:0;padding:16px}
.storefront .auth-heading{margin-bottom:13px}
.storefront .auth-heading p{margin:6px 0 0;font-size:11px}
.storefront .stack{gap:10px}
.storefront .field{gap:5px}
.storefront .field label{color:#8d949e;font-size:10px;font-weight:750}
.storefront .field input,.storefront .field select,.storefront .field textarea{min-height:40px;padding:8px 10px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.1);border-radius:10px;color:#f3f4f6;font-size:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.015);transition:border-color .14s ease,background .14s ease,box-shadow .14s ease}
.storefront .field textarea{min-height:92px}
.storefront .field input:focus,.storefront .field select:focus,.storefront .field textarea:focus{border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.052);box-shadow:0 0 0 3px rgba(255,255,255,.035);outline:none}
.storefront .checkbox{gap:7px;font-size:10px}
.storefront .auth-panel .button{width:100%}
.storefront .legal-panel p,.storefront .support-intro p{margin:9px 0 0;color:#a0a6af;font-size:12px}
.storefront .support-intro .button-row{margin-top:13px}

/* Checkout */
.storefront .checkout-layout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:12px;align-items:start;max-width:920px;margin:0 auto}
.storefront .checkout-summary{position:sticky;top:64px}
.storefront .checkout-summary .page-title{margin-bottom:13px}
.storefront .summary-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid rgba(255,255,255,.07);font-size:11px}
.storefront .summary-row span{color:#858c96}
.storefront .summary-row.total strong{font-size:19px}
.storefront .checkout-promo{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:1px;padding:7px 0}
.storefront .checkout-promo del{color:#6c727b;font-size:10px}
.storefront .checkout-summary>p{margin:9px 0 0;font-size:10px}
.storefront .checkout-sheet h2{margin:0 0 10px;font-size:15px}
.storefront .payment-list{display:grid;gap:7px}
.storefront .payment-option{display:grid;gap:7px;padding:10px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:rgba(255,255,255,.028);cursor:pointer;transition:border-color .14s ease,background .14s ease}
.storefront .payment-option:has(input:checked){border-color:rgba(255,255,255,.23);background:rgba(255,255,255,.07)}
.storefront .payment-option-title{display:flex;align-items:center;gap:8px;font-size:12px}
.storefront .payment-option-title input{accent-color:#fff}
.storefront .payment-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.storefront .payment-meta span{display:grid;gap:2px;color:#737a84;font-size:9px}
.storefront .payment-meta strong{color:#c5c9cf;font-size:10px;overflow-wrap:anywhere}
.storefront .payment-option p{margin:0;color:#858c96;font-size:9px}
.storefront .qr{max-width:180px;padding:6px;border-radius:9px}
.storefront .checkout-submit{min-height:40px}

/* Buyer account */
.storefront .admin-shell{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:start}
.storefront .admin-shell>.admin-nav{position:sticky;top:64px;display:grid;gap:4px;padding:7px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.085)}
.storefront .admin-shell>.admin-nav a,.storefront .admin-shell>.admin-nav .link-button{display:flex;align-items:center;min-height:34px;width:100%;padding:7px 9px;border-radius:8px;color:#8f969f;font-size:10px;font-weight:750;text-align:left}
.storefront .admin-shell>.admin-nav a:hover{background:rgba(255,255,255,.055);color:#fff}
.storefront .admin-shell>.admin-nav form{margin:0}
.storefront .admin-shell>.admin-nav .link-button{color:#d58f95}
.storefront .metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.storefront .metric{min-height:82px;padding:11px;border-radius:12px;background:rgba(255,255,255,.038);border:1px solid rgba(255,255,255,.085)}
.storefront .metric span{font-size:9px}
.storefront .metric strong{margin-top:7px;font-size:22px;line-height:1}
.storefront .table-wrap{overflow:auto;border-color:rgba(255,255,255,.085);border-radius:12px}
.storefront .data-table{min-width:680px;background:rgba(255,255,255,.025);font-size:10px}
.storefront .data-table th,.storefront .data-table td{padding:9px 10px;border-color:rgba(255,255,255,.07)}
.storefront .data-table th{font-size:8px}
.storefront .notice-card,.storefront .message{padding:11px;border-radius:11px;background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.085)}
.storefront .message-head{margin-bottom:6px;font-size:9px}
.storefront .thread{gap:7px}
.storefront .key-box{padding:10px;border-radius:9px;background:rgba(0,0,0,.18);border-color:rgba(255,255,255,.085);font-size:11px}
.storefront .form-grid{gap:10px}
.storefront .empty{padding:20px;border-color:rgba(255,255,255,.1);border-radius:11px;font-size:11px}

/* Drawer */
.storefront .nav-overlay{background:rgba(0,0,0,.48);backdrop-filter:blur(2px)}
.storefront .nav-drawer{width:min(338px,88vw);padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) 12px;background:linear-gradient(180deg,rgba(22,23,27,.94),rgba(10,11,13,.95));border-left-color:rgba(255,255,255,.1);box-shadow:-20px 0 50px rgba(0,0,0,.35);backdrop-filter:blur(24px) saturate(120%);-webkit-backdrop-filter:blur(24px) saturate(120%)}
.storefront .drawer-header{padding:2px 2px 11px;border-color:rgba(255,255,255,.075)}
.storefront .drawer-header strong{font-size:15px;letter-spacing:.04em}
.storefront .drawer-kicker,.storefront .drawer-section-label{font-size:8px;color:#777e87}
.storefront .drawer-close{width:34px;height:34px;flex-basis:34px;border-radius:10px;background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1)}
.storefront .drawer-scroll{padding-top:7px}
.storefront .drawer-section{gap:3px;padding:7px 0 9px;border-color:rgba(255,255,255,.06)}
.storefront .drawer-section-label{padding:0 8px 3px}
.storefront .drawer-link{min-height:39px;padding:8px 9px;gap:10px;border-radius:10px;color:#a0a6af;font-size:11px;font-weight:720}
.storefront .drawer-link:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08)}
.storefront .drawer-link.is-active{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.13);color:#fff}
.storefront .drawer-link.is-active .nav-icon,.storefront .drawer-link .nav-icon{color:#aeb4bd}
.storefront .drawer-link .nav-icon{width:17px;height:17px;flex-basis:17px}

/* Lightbox */
.storefront .image-dialog{max-width:min(980px,94vw);padding:8px;border-radius:14px;background:rgba(14,15,18,.96);border-color:rgba(255,255,255,.12);box-shadow:0 28px 80px rgba(0,0,0,.45)}
.storefront .image-dialog::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(4px)}
.storefront .image-dialog img{max-height:82vh;border-radius:9px}
.storefront .dialog-actions{margin-top:7px}

@media(max-width:980px){
  .storefront .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .storefront .preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .storefront .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
  .storefront .top-nav{display:none}
  .storefront .menu-button{margin-left:auto}
  .storefront .product-layout,.storefront .checkout-layout{grid-template-columns:1fr}
  .storefront .purchase-panel,.storefront .checkout-summary{position:static}
  .storefront .promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .storefront .admin-shell{grid-template-columns:1fr}
  .storefront .admin-shell>.admin-nav{position:static;display:flex;overflow-x:auto;gap:4px;padding:5px;white-space:nowrap}
  .storefront .admin-shell>.admin-nav a,.storefront .admin-shell>.admin-nav .link-button{width:auto;flex:0 0 auto;min-height:32px;padding:6px 9px}
  .storefront .admin-shell>.admin-nav form{flex:0 0 auto}
}
@media(max-width:620px){
  .storefront .header-inner{padding:0 10px}
  .storefront .page{padding:12px 10px 34px}
  .storefront .market-head{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:10px}
  .storefront .catalog-filters{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap}
  .storefront .filter-chip{flex:0 0 auto;min-height:30px}
  .storefront .offer-strip{grid-auto-columns:minmax(205px,76vw)}
  .storefront .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .storefront .product-card-body{padding:8px}
  .storefront .product-card-body h3{min-height:30px;margin-bottom:6px;font-size:12px}
  .storefront .product-card .price{font-size:12px}
  .storefront .product-badges{top:6px;left:6px;right:6px}
  .storefront .product-badges .badge{min-height:19px;padding:3px 6px;font-size:8px}
  .storefront .product-layout{gap:9px}
  .storefront .product-gallery{gap:6px}
  .storefront .purchase-panel{padding:12px;border-radius:14px}
  .storefront .product-description{font-size:11px}
  .storefront .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .storefront .promo-grid{grid-template-columns:1fr}
  .storefront .page-head-compact{margin-bottom:9px}
  .storefront .auth-wrap{min-height:calc(100dvh - 125px);padding:4px 0 14px}
  .storefront .auth-panel{padding:14px}
  .storefront .content-narrow{margin-top:4px}
  .storefront .checkout-layout{gap:8px}
  .storefront .checkout-summary,.storefront .checkout-sheet{padding:13px}
  .storefront .payment-meta{grid-template-columns:1fr}
  .storefront .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .storefront .metric{min-height:72px;padding:9px}
  .storefront .metric strong{font-size:20px}
  .storefront .section-head{align-items:flex-start;flex-direction:column;gap:8px}
  .storefront .button-row{width:100%}
  .storefront .button-row>.button{flex:1}
  .storefront .form-grid{grid-template-columns:1fr}
  .storefront .field.full{grid-column:auto}
  .storefront .site-footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}
}
@media(max-width:360px){
  .storefront .page{padding-left:8px;padding-right:8px}
  .storefront .product-grid{gap:7px}
  .storefront .product-card-body{padding:7px}
  .storefront .product-card-body h3{font-size:11px}
  .storefront .product-card .price{font-size:11px}
  .storefront .card-arrow{width:20px;height:20px;flex-basis:20px}
  .storefront .price-choice-grid{gap:6px}
  .storefront .price-choice{padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){
  .storefront *{scroll-behavior:auto!important}
  .storefront .button,.storefront .filter-chip,.storefront .product-card,.storefront .product-image,.storefront .offer-card,.storefront .price-choice,.storefront .product-gallery-item{transition-duration:.01ms!important}
}

/* Compact account records */
.storefront .buyer-nav a.is-active{background:rgba(255,255,255,.085);color:#fff}
.storefront .account-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.storefront .account-action{display:grid;gap:3px;padding:10px 11px;border:1px solid rgba(255,255,255,.085);border-radius:11px;background:rgba(255,255,255,.03);transition:background .14s ease,border-color .14s ease,transform .14s ease}
.storefront .account-action:hover{background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.14);transform:translateY(-1px)}
.storefront .account-action span{font-size:11px;font-weight:780}
.storefront .account-action small{color:#747b85;font-size:9px;line-height:1.35}
.storefront .account-filter-row{display:flex;gap:5px;flex-wrap:wrap}
.storefront .account-filter-row .filter-chip{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.storefront .account-list{display:grid;gap:7px}
.storefront .account-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid rgba(255,255,255,.085);border-radius:11px;background:rgba(255,255,255,.028);transition:background .14s ease,border-color .14s ease,transform .14s ease}
.storefront .account-record:hover{background:rgba(255,255,255,.052);border-color:rgba(255,255,255,.14);transform:translateY(-1px)}
.storefront .account-record-main{min-width:0;display:grid;gap:3px}
.storefront .account-record-top{display:flex;align-items:center;gap:7px;min-width:0}
.storefront .account-record-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.storefront .account-record-main>span{color:#969da7;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.storefront .account-record-main>small{color:#676e78;font-size:8px}
.storefront .account-record-price{flex:0 0 auto;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:820;white-space:nowrap}
.storefront .account-record-price span{color:#777e88;font-size:19px;font-weight:400}
.storefront .concern-compose{margin-bottom:12px}
.storefront .concern-compose h2{margin:0 0 10px}
@media(max-width:620px){
  .storefront .account-actions{grid-template-columns:1fr}
  .storefront .account-action{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .storefront .account-action small{text-align:right}
  .storefront .account-record{padding:9px 10px}
  .storefront .account-record-price{font-size:11px}
}
