*{box-sizing:border-box}body{margin:0;background:#f6f8fb;color:#0f172a;font:16px system-ui,sans-serif}a{text-decoration:none;color:inherit}header{height:72px;background:white;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;padding:0 max(16px,calc((100% - 1180px)/2));gap:30px;position:sticky;top:0;z-index:5}.logo{font-size:25px;font-weight:900}.logo span,em{color:#0f766e;font-style:normal}nav{display:flex;gap:15px;align-items:center;flex:1}nav a{font-weight:700;color:#334155}main{width:min(1180px,calc(100% - 32px));margin:auto}.hero{padding:80px 0}.hero h1{font-size:clamp(42px,7vw,70px);line-height:1;letter-spacing:-3px;max-width:800px}.hero p{font-size:19px;color:#475569;max-width:700px}.btn{display:inline-block;background:#0f766e;color:white;border:0;border-radius:10px;padding:12px 17px;font-weight:800;margin:6px 5px 6px 0}.btn.light{background:white;color:#0f766e;border:1px solid #cbd5e1}.grid,.products{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.product{background:white;border:1px solid #e2e8f0;border-radius:16px;padding:20px}.product{padding:0;overflow:hidden}.product .pic{height:180px;background:#eef2f7;display:grid;place-items:center;font-size:60px}.product .body{padding:15px}.price{font-size:20px;font-weight:900}.stock{font-size:12px;color:#15803d;font-weight:800}.search,input{padding:12px;border:1px solid #cbd5e1;border-radius:10px}.search{width:100%;margin:10px 0 20px}.hidden{display:none}.form{max-width:550px;margin:70px auto;display:grid;gap:12px}.password-wrap{position:relative;display:flex}.password-wrap input{width:100%;padding-right:70px}.password-toggle{position:absolute;right:8px;top:7px;border:0;background:transparent;padding:7px;font-weight:800;cursor:pointer;color:#0f766e}.text-btn{border:0;background:none;color:#0f766e;font-weight:800;cursor:pointer;padding:0}section{padding:45px 0}footer{margin-top:60px;padding:40px;background:#0b1324;color:#cbd5e1}@media(max-width:800px){nav{display:none}.grid,.products{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.grid,.products{grid-template-columns:1fr}.hero{padding:45px 0}.hero h1{letter-spacing:-2px}}
/* Professional account, checkout and admin-facing store UI */
.nav-spacer{flex:1}.header-signin{border:1px solid #d6dbe3;border-radius:10px;padding:9px 14px;background:#fff;color:#0f766e!important}.profile-menu{position:relative}.profile-trigger{display:flex;align-items:center;gap:8px;border:1px solid #dfe4ea;background:#fff;border-radius:999px;padding:5px 10px 5px 5px;font:inherit;font-weight:800;cursor:pointer}.avatar{width:32px;height:32px;border-radius:50%;background:#0f766e;color:#fff;display:grid;place-items:center;font-size:12px}.profile-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{color:#667085}.profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:250px;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.14);padding:8px;z-index:30}.profile-dropdown a,.profile-dropdown button{display:block;width:100%;padding:10px 11px;border:0;background:transparent;border-radius:9px;text-align:left;font:inherit;font-weight:700;cursor:pointer}.profile-dropdown a:hover,.profile-dropdown button:hover{background:#f3f6f8}.profile-summary{padding:11px;border-bottom:1px solid #edf0f3;margin-bottom:5px}.profile-summary strong,.profile-summary small{display:block}.profile-summary small{color:#667085;margin-top:3px;overflow:hidden;text-overflow:ellipsis}.verified-badge,.verify-badge{display:inline-block;margin-top:7px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800}.verified-badge{background:#e7f7ed;color:#067647}.verify-badge{background:#fff4cc;color:#8a6116}.admin-link{color:#0f766e}.signout{color:#b42318}.auth-card{max-width:470px;margin:72px auto;padding:34px}.auth-brand{text-align:center;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#0f766e}.auth-card h1{text-align:center;margin:8px 0 7px;font-size:32px}.auth-sub{text-align:center;color:#667085;margin:0 0 25px}.auth-fields{display:grid;gap:12px}.auth-card label{display:grid;gap:7px;font-size:14px;font-weight:800}.optional{font-weight:500;color:#98a2b3}.auth-card input{width:100%;font:inherit}.primary-wide{width:100%;text-align:center}.forgot-link{display:block;margin:12px auto;border:0;background:none;color:#0f766e;font-weight:800;cursor:pointer}.auth-switch{text-align:center;color:#667085}.form-message{min-height:20px;color:#b42318;font-weight:700}.icon-only{width:38px;height:38px;display:grid;place-items:center;font-size:16px}.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:grid;place-items:center;padding:20px;z-index:100}.modal-card{width:min(440px,100%);background:#fff;border-radius:20px;padding:32px;box-shadow:0 24px 80px rgba(15,23,42,.25);text-align:center}.modal-card h2{margin:12px 0 8px}.modal-card p{color:#667085;line-height:1.55}.modal-icon{width:52px;height:52px;border-radius:50%;background:#e8f7ef;color:#067647;display:grid;place-items:center;margin:auto;font-size:24px}.modal-actions{display:flex;justify-content:center;gap:10px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#0f766e;font-weight:900}.muted{color:#667085}.small-note{font-size:13px;color:#667085;line-height:1.5}.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px}.order-summary{height:max-content;position:sticky;top:95px}.summary-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf0f3}.summary-line.total{border:0;font-size:20px;padding-top:18px}.cart-row{display:flex;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid #edf0f3}.cart-row:last-child{border-bottom:0}.cart-thumb{width:82px;height:82px;border-radius:12px;background:#f2f4f7;display:grid;place-items:center;overflow:hidden;font-size:28px}.cart-thumb img{width:100%;height:100%;object-fit:cover}.qty-controls{display:flex;align-items:center;gap:9px;margin-top:10px}.qty-controls button{border:1px solid #d6dbe3;background:#fff;border-radius:8px;min-width:30px;height:30px;cursor:pointer;font-weight:800}.qty-controls .remove-link{border:0;color:#b42318;background:transparent;width:auto}.empty-state{text-align:center;padding:50px 20px;color:#667085}.empty-icon{font-size:40px;margin-bottom:8px}.product-link{display:block}.product .pic img{width:100%;height:100%;object-fit:cover}.product .stock.out{color:#b42318}.product .btn.small{margin-top:10px}.product .btn:disabled{opacity:.5;cursor:not-allowed}.orders-list{display:grid;gap:15px;margin-top:22px}.order-card{padding:20px}.order-head{display:flex;justify-content:space-between;gap:15px}.order-items{margin:16px 0;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;padding:10px 0}.order-items>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0}.order-total{display:flex;justify-content:space-between;font-size:18px}.status-pill{padding:6px 10px;border-radius:999px;background:#eef2f7;font-size:12px;font-weight:800;text-transform:capitalize;white-space:nowrap}.status-pending{background:#fff4cc}.status-confirmed,.status-processing{background:#e7f0ff}.status-shipped,.status-completed{background:#e8f7ef}.status-cancelled{background:#fee4e2;color:#b42318}
@media(max-width:800px){.checkout-layout{grid-template-columns:1fr}.order-summary{position:static}.page-heading{align-items:flex-start;flex-direction:column}.profile-name{display:none}}

/* Final professional account experience */
.auth-shell{min-height:calc(100vh - 72px);display:grid;place-items:start center;padding:72px 16px}
.auth-card{width:min(100%,470px);margin:0!important;padding:38px}
.auth-card label{margin:0}
.auth-fields{display:grid;gap:15px}
.auth-fields.hidden{display:none!important}
.password-toggle{right:6px;top:6px;border-radius:8px;width:40px;height:40px}
.eye-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-toggle.active{background:#eef7f6}
.success-message{color:#067647!important}
.verification-modal{padding:38px;max-width:450px}
.modal-card .primary-wide{margin-top:8px}
@media(max-width:800px){
  header{gap:12px}
  nav{display:flex;gap:8px}
  nav>a:not(.cart-link),nav>.nav-spacer{display:none}
  .profile-name{display:none}
  .profile-trigger{padding-right:7px}
}

.stacked-mobile{display:flex;align-items:center;justify-content:center;gap:10px}.stacked-mobile .primary-wide{width:auto;margin:0}@media(max-width:430px){.stacked-mobile{flex-direction:column-reverse}.stacked-mobile .btn{width:100%;margin:4px 0}}
/* Customer account and product detail */
.account-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:25px}.account-card{padding:24px}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.section-head h2{margin:0 0 5px}.account-form{display:grid;gap:13px}.account-form label{display:grid;gap:7px;font-size:14px;font-weight:800}.account-form input,.account-form textarea{width:100%;font:inherit}.account-form textarea{resize:none}.address-editor{margin-top:20px;padding-top:20px;border-top:1px solid #edf0f3}.address-item{border:1px solid #e2e8f0;border-radius:13px;padding:16px;margin-bottom:12px}.address-item p{margin:5px 0;color:#475569;line-height:1.45}.address-top{display:flex;justify-content:space-between;gap:10px}.address-action{margin-left:12px}.danger-text{color:#b42318}.default-badge{display:inline-block;margin-left:8px;padding:3px 7px;border-radius:999px;background:#e7f7ed;color:#067647;font-size:11px;font-weight:800}.check-row{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important}.check-row input{width:auto}.address-empty{padding:25px 10px}.product-clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.product-clickable:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.08)}.product-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:45px;align-items:start;padding:55px 0}.product-detail-image{width:min(100%,520px);aspect-ratio:1/1;min-height:0;background:#eef2f7;border-radius:20px;display:grid;place-items:center;overflow:hidden;font-size:100px}.product-detail-image img{width:100%;height:100%;aspect-ratio:1/1;object-fit:contain}.product-detail-info{padding-top:10px}.back-link{display:inline-block;color:#0f766e;font-weight:800;margin-bottom:28px}.product-detail-info h1{font-size:clamp(34px,5vw,52px);line-height:1.05;margin:7px 0 15px;letter-spacing:-1.5px}.product-price{font-size:30px;font-weight:900;margin-bottom:8px}.product-price del{font-size:18px;color:#98a2b3;margin-left:8px;font-weight:600}.product-description{font-size:17px;line-height:1.7;color:#475569;margin:25px 0}.product-meta{border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;margin:25px 0;padding:12px 0;display:grid;gap:8px}.product-meta div{display:flex;gap:10px}.product-meta strong{min-width:85px}.product-add{min-width:160px}.success-message{color:#067647!important}@media(max-width:800px){.account-grid,.product-detail{grid-template-columns:1fr}.product-detail{gap:25px;padding:35px 0}.product-detail-image{width:100%;height:340px;min-height:340px}.product-detail-image img{height:100%;min-height:0}.section-head{flex-direction:column}}


/* Auth hydration: prevent logged-in users from seeing the sign-in UI flash. */
body.account-auth-pending #authSection,
body.account-auth-pending #accountSection,
.account-auth-pending[data-account-area]{visibility:hidden}
body.account-auth-pending #authSection,
body.account-auth-pending #accountSection{display:none!important}
body.admin-auth-pending #loginPanel,
body.admin-auth-pending #manager{visibility:hidden}
body.admin-auth-pending #loginPanel,
body.admin-auth-pending #manager{display:none!important}

/* Account layout */
.account-grid{grid-template-columns:1fr;gap:22px;margin-top:28px;align-items:start}
.account-card{padding:28px}
.account-card .section-head{padding-bottom:16px;border-bottom:1px solid #edf0f3}
#profileForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#profileForm label:nth-child(2){grid-column:2}
#profileForm label:nth-child(3){grid-column:1}
#profileForm .btn,#profileForm .form-message{grid-column:1/-1}
#addressEditor{background:#f8fafc;border:1px solid #e6ebf0;border-radius:16px;padding:22px;margin-top:20px}
#addressEditor h3{margin:0 0 18px}
#addressForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#addressForm label:nth-child(3),#addressForm label:nth-child(6),#addressForm .check-row,#addressForm>div,#addressForm .form-message{grid-column:1/-1}
#addressForm textarea{min-height:118px;padding:13px 14px;line-height:1.5}
#addressForm input,#addressForm textarea,#profileForm input{box-sizing:border-box;min-height:46px}
#addressForm .check-row{padding:13px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;font-weight:700}
#addressForm .check-row input{min-height:auto;accent-color:#0f766e}
#addressForm>div{display:flex;flex-wrap:wrap;gap:8px}
.address-list{}
.address-item{padding:18px 20px;border-radius:15px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.035)}
.address-item .address-top{align-items:flex-start}
@media(max-width:800px){
 #profileForm,#addressForm{grid-template-columns:1fr}
 #profileForm label:nth-child(2),#profileForm label:nth-child(3),#profileForm .btn,#profileForm .form-message,
 #addressForm label:nth-child(3),#addressForm label:nth-child(6),#addressForm .check-row,#addressForm>div,#addressForm .form-message{grid-column:auto}
 #addressForm label:nth-child(3),#addressForm label:nth-child(6),#addressForm .check-row,#addressForm>div,#addressForm .form-message{grid-column:1}
 .account-card{padding:20px}
}

/* Product cards and checkout polish */
.product .pic{height:180px;min-height:180px;aspect-ratio:1/1;overflow:hidden}.product .pic img{display:block;width:100%;height:100%;object-fit:contain;background:#eef2f7}.product .body{min-width:0;display:flex;flex-direction:column;min-height:220px}.product .body h3{margin:6px 0 7px;line-height:1.25;min-height:2.5em;overflow-wrap:anywhere}.product .body p{line-height:1.45;min-height:2.9em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:auto}.price strong{font-size:20px}.price del{font-size:14px;color:#98a2b3;font-weight:600}.checkout-form-card{margin-top:20px}.checkout-form{display:grid;gap:20px}.checkout-form .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.checkout-form label{display:grid;gap:7px;font-weight:800;font-size:14px}.checkout-form input,.checkout-form select,.checkout-form textarea{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #cbd5e1;border-radius:10px;font:inherit;background:#fff}.checkout-form textarea{resize:none;min-height:100px}.payment-box{border:1px solid #e2e8f0;border-radius:16px;padding:18px;background:#f8fafc}.payment-box h3{margin:0 0 12px}.payment-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.payment-option{display:flex!important;align-items:flex-start;gap:10px;padding:14px;background:#fff;border:1px solid #dfe5ec;border-radius:12px;cursor:pointer}.payment-option input{width:auto;margin-top:3px}.payment-option span{display:grid;gap:4px}.payment-option small{font-weight:500;color:#667085;line-height:1.4}.payment-details{margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0}.checkout-total-box{border:1px solid #dfe5ec;border-radius:14px;padding:16px;background:#fff}.checkout-total-box>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0}.checkout-total-box .grand{border-top:1px solid #e2e8f0;margin-top:5px;padding-top:14px;font-size:21px}.checkout-actions{display:flex;justify-content:flex-end;gap:10px}.order-checkout-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#475467;font-size:13px;margin-top:8px}@media(max-width:800px){.checkout-form .form-grid,.payment-options{grid-template-columns:1fr}.checkout-actions{flex-direction:column-reverse}.checkout-actions .btn{width:100%;text-align:center}.product .pic{height:170px;min-height:170px;aspect-ratio:1/1}}

/* Use the single custom password-eye control; suppress browser-native reveal controls where supported. */
input[type="password"]::-ms-reveal,input[type="password"]::-ms-clear{display:none}
.password-wrap input[type="password"]{padding-right:48px}
.password-toggle svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.8}

/* Final product media sizing: preserve the original compact card footprint while showing the full image. */
.product .pic{height:190px;min-height:190px;padding:10px;overflow:hidden;background:#f1f5f9}
.product .pic img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.product .body{min-height:205px;padding:14px 15px}
.product-detail-image{height:420px;min-height:420px;padding:18px;background:#f1f5f9;overflow:hidden}
.product-detail-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.order-cancel-row{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid #edf0f3}
.btn.danger{background:#b42318;color:#fff}
@media(max-width:800px){.product .pic{height:180px;min-height:180px}.product-detail-image{height:360px;min-height:360px}}

/* Homepage product search */
.home-search-section{margin:28px 0 36px}.home-search-head h2{margin-bottom:5px}.home-search-head p{margin:0 0 14px;color:#667085}.home-search{display:flex;gap:10px;align-items:center}.home-search .search{flex:1;min-width:0}.home-search .btn{white-space:nowrap}@media(max-width:650px){.home-search{flex-direction:column;align-items:stretch}.home-search .btn{width:100%;text-align:center}}

/* Product media: never crop product artwork; scale to fit the standard showcase frame. */
.product .pic{height:190px;min-height:190px;padding:12px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden}.product .pic img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}.product-detail-image{height:420px;min-height:420px;display:flex;align-items:center;justify-content:center}.product-detail-image img{width:100%;height:100%;object-fit:contain;object-position:center}

/* Modern profile menu indicator */
.profile-trigger .chevron{width:20px;height:20px;display:grid;place-items:center;color:#64748b;transition:transform .18s ease,color .18s ease}
.profile-trigger .chevron svg{width:15px;height:15px;display:block}
.profile-trigger .chevron path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-trigger[aria-expanded="true"] .chevron{transform:rotate(180deg);color:#0f766e}
.profile-trigger:hover .chevron{color:#0f766e}

/* Final visual polish: compact product cards with full, uncropped product artwork. */
.product .pic{
  height:180px;
  min-height:180px;
  padding:8px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f8fafc;
}
.product .pic img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center center;
}
.product .body{min-height:200px;padding:12px 14px}
.product .body h3{margin:4px 0 6px}
.product .body p{margin:0}
.home-search-section{
  margin:12px 0 0;
  padding-bottom:10px;
}
.home-search-section + section{
  padding-top:10px;
}
@media(max-width:800px){
  .product .pic{height:170px;min-height:170px;aspect-ratio:1/1}
}

/* Homepage compact spacing and email verification notice */
.home-search-section{margin:6px 0 0;padding-bottom:0}
.home-search-section + section{padding-top:4px}
.home-search{display:block}
.home-search .search{margin:6px 0 0}
.home-search-section h2{margin-top:0;margin-bottom:4px}
.home-search-section p{margin-bottom:8px}
.verification-notice{margin:0 0 22px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid #f1d48a;background:#fffaf0}
.verification-notice h2{margin:4px 0 7px}
.verification-notice .muted{margin:0;line-height:1.5}
.verification-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:max-content}
.verification-notice .form-message{flex-basis:100%;margin:0}
@media(max-width:800px){.verification-notice{align-items:flex-start;flex-direction:column}.verification-actions{min-width:0;justify-content:flex-start}.verification-notice .form-message{width:100%}}

/* Final homepage layout: search sits beside the primary shop actions; categories follow immediately. */
.hero-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.hero-actions .btn{margin:0}
.hero-search{display:flex;align-items:center;gap:8px;margin-left:2px;min-width:min(430px,100%)}
.hero-search span{font-size:13px;font-weight:800;white-space:nowrap}
.hero-search .search{width:260px;max-width:100%;box-sizing:border-box}
.category-section{margin-top:18px}
.category-section h2{margin-top:0}
@media(max-width:800px){.hero-search{width:100%;margin-left:0}.hero-search .search{flex:1;width:auto}.category-section{margin-top:14px}}
/* Remove legacy homepage search spacing rules; the search now lives in the hero action row. */
.home-search-section{display:none!important}

/* Smart homepage redesign */
.hero{padding:46px 0 30px;display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.hero-copy{max-width:860px}
.hero-copy .eyebrow,.section-title-row .eyebrow{margin-bottom:8px}
.hero h1{margin:0;font-size:clamp(42px,6vw,68px);line-height:.98;letter-spacing:-3px}
.hero p{margin:16px 0 0;max-width:700px;font-size:18px;line-height:1.55;color:#64748b}
.hero-tools{display:grid;grid-template-columns:auto auto minmax(300px,1fr);align-items:center;gap:10px;max-width:980px}
.hero-tools .btn{margin:0;height:48px;display:flex;align-items:center;justify-content:center;padding:0 18px;white-space:nowrap}
.hero-search{min-width:0;display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:10px;padding-left:8px}
.hero-search label{font-size:13px;font-weight:900;color:#334155;white-space:nowrap}
.hero-search .search{width:100%;height:48px;margin:0;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.category-section,.featured-section{padding:18px 0 10px}
.section-title-row{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:14px}
.section-title-row h2{margin:0;font-size:28px;letter-spacing:-.7px}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:11px}
.category-card{min-width:0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:14px 13px;background:#fff;border:1px solid #e2e8f0;border-radius:13px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.category-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(15,23,42,.07);border-color:#cbd5e1}
.category-icon{grid-row:1/-1;width:36px;height:36px;border-radius:10px;background:#f0fdfa;display:grid;place-items:center;font-size:18px}
.category-card strong{font-size:14px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-card small{font-size:11px;color:#64748b;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.text-link{font-size:14px;font-weight:900;color:#0f766e;white-space:nowrap}
.featured-section{padding-top:24px;padding-bottom:34px}
.featured-section .products{margin-top:0}
footer{margin-top:0}
@media(max-width:1000px){.category-grid{grid-template-columns:repeat(3,1fr)}.hero-tools{grid-template-columns:auto auto 1fr}.hero-search{grid-template-columns:auto 1fr}}
@media(max-width:700px){.hero{padding:34px 0 20px;gap:20px}.hero h1{letter-spacing:-2px}.hero-tools{grid-template-columns:1fr 1fr}.hero-search{grid-column:1/-1;padding-left:0;grid-template-columns:auto 1fr}.category-grid{grid-template-columns:repeat(2,1fr)}.category-section,.featured-section{padding-top:14px}.section-title-row h2{font-size:24px}}
@media(max-width:520px){.hero-tools{grid-template-columns:1fr}.hero-search{grid-column:auto;grid-template-columns:1fr;gap:6px}.hero-search .search{height:46px}.category-grid{grid-template-columns:1fr 1fr}.category-card{padding:12px 10px}.category-icon{width:32px;height:32px;font-size:16px}.category-card small{display:none}}

/* Account navigation fix: verified users can open My Account normally. */
.account-card{min-width:0}
@media(max-width:800px){.auth-shell{padding-top:40px}.verification-notice{margin-bottom:16px}}

/* Realtime product search dropdown */
.search-box{position:relative;min-width:0;width:100%}
.search-box>.search{width:100%}
.search-suggestions{position:absolute;z-index:1000;top:calc(100% + 2px);left:0;right:0;background:#fff;border:1px solid #dbe2ea;border-radius:0 0 10px 10px;box-shadow:0 12px 28px rgba(15,23,42,.14);overflow:hidden;display:none;max-height:430px;overflow-y:auto}
.search-suggestions.open{display:block}
.search-suggestion{width:100%;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:12px;padding:9px 12px;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left;cursor:pointer;font:inherit;color:#0f172a}
.search-suggestion:last-child{border-bottom:0}
.search-suggestion:hover,.search-suggestion:focus{background:#f7f9fc;outline:0}
.suggestion-image{width:54px;height:54px;border:1px solid #e1e6ec;border-radius:4px;display:flex;align-items:center;justify-content:center;background:#fafbfc;overflow:hidden}
.suggestion-image img{width:100%;height:100%;object-fit:contain}
.suggestion-image>span{font-size:22px}
.suggestion-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.suggestion-copy strong{font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-copy small{font-size:12px;color:#7b8794;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-stock{font-size:11px;font-weight:800;color:#067647;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-stock.out{color:#b42318}
.suggestion-price{font-size:13px;font-weight:800;color:#b45309;white-space:nowrap}
.search-empty{padding:16px;color:#667085;font-size:14px;text-align:center}
@media(max-width:650px){.search-suggestions{max-height:360px}.search-suggestion{grid-template-columns:48px 1fr auto;padding:8px}.suggestion-image{width:46px;height:46px}.suggestion-price{font-size:12px}}

/* Prevent the signed-out header from flashing before Firebase restores the session. */
body.auth-ui-pending [data-account-area]{visibility:hidden!important;}

/* Standard product image frame: compact square footprint across the store and editor. */
.product .pic{
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:1 / 1;
  padding:10px;
  box-sizing:border-box;
  border-radius:12px;
}
.product .pic img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.product-detail-image{
  width:min(100%,520px);
  height:auto;
  min-height:0;
  aspect-ratio:1 / 1;
  padding:14px;
  box-sizing:border-box;
  margin-inline:auto;
}
.product-detail-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.image-editor-stage{
  width:min(620px,100%);
  aspect-ratio:1 / 1;
}
@media(max-width:800px){
  .product .pic{height:auto;min-height:0;aspect-ratio:1 / 1}
  .product-detail-image{width:100%;height:auto;min-height:0;aspect-ratio:1 / 1}
}

.verification-notice.hidden{display:none!important}

.preorder-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0d6;color:#9a5b00;font-size:12px;font-weight:800;margin-left:6px;text-transform:capitalize}.preorder-text{color:#9a5b00;font-weight:800}

/* SEO: product cards contain real crawlable links. */
.product-seo-link{display:block;color:inherit;text-decoration:none}
.product-seo-link:hover{color:inherit}
.product-seo-link h3{color:inherit}


/* =========================================================
   ProtoLabBD — visual system refresh
   Presentation-only layer. Existing commerce/admin logic untouched.
   ========================================================= */
:root{
  --pl-ink:#142b36;
  --pl-ink-2:#203d49;
  --pl-teal:#087e78;
  --pl-teal-dark:#06645f;
  --pl-mint:#e6f3ef;
  --pl-paper:#f7f8f5;
  --pl-white:#fff;
  --pl-muted:#64747a;
  --pl-line:#e2e8e4;
  --pl-gold:#e8a64b;
  --pl-radius:18px;
  --pl-shadow:0 14px 38px rgba(20,43,54,.075);
  --pl-ease:cubic-bezier(.2,.75,.25,1);
}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body:not(.admin-auth-pending){
  background:var(--pl-paper);
  color:var(--pl-ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body:not(.admin-auth-pending) header{
  height:76px;
  padding-inline:max(22px,calc((100% - 1240px)/2));
  gap:38px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid rgba(20,43,54,.08);
  box-shadow:0 4px 22px rgba(20,43,54,.035);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body:not(.admin-auth-pending) .logo{
  color:var(--pl-ink);
  font-size:24px;
  letter-spacing:-1.1px;
  white-space:nowrap;
}
body:not(.admin-auth-pending) .logo span{color:var(--pl-teal)}
body:not(.admin-auth-pending) nav{gap:7px}
body:not(.admin-auth-pending) nav>a{
  color:#53666c;
  font-size:14px;
  font-weight:700;
  padding:10px 13px;
  border-radius:10px;
  transition:background .22s var(--pl-ease),color .22s var(--pl-ease),transform .22s var(--pl-ease);
}
body:not(.admin-auth-pending) nav>a:hover{
  color:var(--pl-teal-dark);
  background:var(--pl-mint);
  transform:translateY(-1px);
}
body:not(.admin-auth-pending) nav .cart-link{
  background:var(--pl-ink);
  color:white;
  padding:10px 15px;
  border-radius:11px;
}
body:not(.admin-auth-pending) nav .cart-link:hover{background:var(--pl-teal-dark);color:white}
body:not(.admin-auth-pending) nav .cart-link b{
  display:inline-grid;place-items:center;min-width:21px;height:21px;
  margin-left:4px;padding:0 5px;border-radius:20px;background:var(--pl-gold);color:var(--pl-ink);font-size:11px
}
body:not(.admin-auth-pending) main{width:min(1240px,calc(100% - 48px))}
body:not(.admin-auth-pending) section{min-width:0}
body:not(.admin-auth-pending) h1,body:not(.admin-auth-pending) h2,body:not(.admin-auth-pending) h3{
  color:var(--pl-ink);letter-spacing:-.035em
}
body:not(.admin-auth-pending) p{color:var(--pl-muted)}
body:not(.admin-auth-pending) .eyebrow{
  color:var(--pl-teal-dark);font-size:11px;font-weight:850;letter-spacing:.15em;text-transform:uppercase
}
body:not(.admin-auth-pending) .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:47px;padding:0 20px;margin:4px 5px 4px 0;
  border:1px solid var(--pl-teal);border-radius:11px;
  background:var(--pl-teal);color:white;font-size:14px;font-weight:800;
  box-shadow:0 5px 12px rgba(8,126,120,.14);
  transition:transform .22s var(--pl-ease),box-shadow .22s var(--pl-ease),background .22s var(--pl-ease),border-color .22s var(--pl-ease);
}
body:not(.admin-auth-pending) .btn:hover{
  transform:translateY(-2px);background:var(--pl-teal-dark);border-color:var(--pl-teal-dark);
  box-shadow:0 9px 20px rgba(8,126,120,.2)
}
body:not(.admin-auth-pending) .btn:active{transform:translateY(0) scale(.985)}
body:not(.admin-auth-pending) .btn.light{
  background:white;color:var(--pl-ink);border-color:#d7e1dc;box-shadow:none
}
body:not(.admin-auth-pending) .btn.light:hover{background:var(--pl-mint);border-color:#b8d8cf;color:var(--pl-teal-dark)}
body:not(.admin-auth-pending) input:not([type=checkbox]):not([type=radio]),
body:not(.admin-auth-pending) select,
body:not(.admin-auth-pending) textarea{
  border:1px solid #d8e1dc;border-radius:11px;background:#fff;color:var(--pl-ink);
  outline:none;transition:border-color .2s,box-shadow .2s,background .2s
}
body:not(.admin-auth-pending) input:focus,
body:not(.admin-auth-pending) select:focus,
body:not(.admin-auth-pending) textarea:focus{
  border-color:var(--pl-teal);box-shadow:0 0 0 4px rgba(8,126,120,.11)
}
body:not(.admin-auth-pending) .hero{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:390px;margin-top:28px;padding:66px clamp(26px,5vw,68px) 56px;
  display:flex;flex-direction:column;justify-content:center;gap:30px;
  border-radius:26px;background:#142f3a;color:#fff;
  box-shadow:0 22px 55px rgba(20,43,54,.13)
}
body:not(.admin-auth-pending) .hero:before{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse at 83% 43%,rgba(18,151,139,.3),transparent 34%),
    linear-gradient(115deg,rgba(10,29,37,.08),transparent 60%),
    repeating-linear-gradient(0deg,transparent 0 39px,rgba(255,255,255,.035) 40px),
    repeating-linear-gradient(90deg,transparent 0 39px,rgba(255,255,255,.035) 40px)
}
body:not(.admin-auth-pending) .hero:after{
  content:"";position:absolute;z-index:-1;right:7%;top:50%;width:250px;aspect-ratio:1;
  transform:translateY(-50%) rotate(12deg);border:1px solid rgba(145,222,208,.22);
  border-radius:38px;box-shadow:0 0 0 22px rgba(145,222,208,.035),0 0 0 52px rgba(145,222,208,.025);
  background:linear-gradient(145deg,rgba(30,137,128,.16),rgba(255,255,255,.015));
  pointer-events:none
}
body:not(.admin-auth-pending) .hero-copy{max-width:760px}
body:not(.admin-auth-pending) .hero .eyebrow{color:#a6ded1;margin-bottom:17px}
body:not(.admin-auth-pending) .hero h1{
  max-width:760px;margin:0;color:#fff;font-size:clamp(46px,6.3vw,76px);
  line-height:.99;letter-spacing:-.065em;font-weight:850
}
body:not(.admin-auth-pending) .hero h1 em{color:#8ed7c7;font-style:normal}
body:not(.admin-auth-pending) .hero p{
  max-width:570px;margin:20px 0 0;color:#c5d6d7;font-size:17px;line-height:1.7
}
body:not(.admin-auth-pending) .hero-tools{
  position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px;align-items:center;max-width:940px
}
body:not(.admin-auth-pending) .hero-tools .btn{margin:0;min-height:49px}
body:not(.admin-auth-pending) .hero-tools .btn.light{
  color:#fff;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.25)
}
body:not(.admin-auth-pending) .hero-tools .btn.light:hover{background:rgba(255,255,255,.15);color:#fff}
body:not(.admin-auth-pending) .hero-search{
  display:grid;grid-template-columns:auto minmax(180px,1fr);gap:10px;align-items:center;
  flex:1;min-width:260px;padding:0 0 0 12px
}
body:not(.admin-auth-pending) .hero-search label{color:#d8e8e5;font-size:12px;font-weight:800;white-space:nowrap}
body:not(.admin-auth-pending) .hero-search .search{
  height:49px;width:100%;margin:0;padding-inline:15px;border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.97);border-radius:11px
}
body:not(.admin-auth-pending) .category-section{padding:42px 0 16px}
body:not(.admin-auth-pending) .featured-section{padding:38px 0 70px}
body:not(.admin-auth-pending) .section-title-row{align-items:end;margin-bottom:19px}
body:not(.admin-auth-pending) .section-title-row h2{margin:4px 0 0;font-size:clamp(25px,3vw,32px);letter-spacing:-.045em}
body:not(.admin-auth-pending) .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
body:not(.admin-auth-pending) .category-card{
  position:relative;min-height:82px;padding:17px 18px;column-gap:13px;
  border:1px solid var(--pl-line);border-radius:14px;background:#fff;
  transition:transform .25s var(--pl-ease),box-shadow .25s var(--pl-ease),border-color .25s
}
body:not(.admin-auth-pending) .category-card:hover{
  transform:translateY(-4px);border-color:#b9d8cf;box-shadow:var(--pl-shadow)
}
body:not(.admin-auth-pending) .category-icon{width:42px;height:42px;border-radius:12px;background:var(--pl-mint);color:var(--pl-teal);font-size:20px}
body:not(.admin-auth-pending) .category-card strong{font-size:14px;color:var(--pl-ink)}
body:not(.admin-auth-pending) .category-card small{font-size:12px;color:#829096}
body:not(.admin-auth-pending) .text-link{color:var(--pl-teal-dark);transition:color .2s}
body:not(.admin-auth-pending) .text-link:hover{color:#b27627}
body:not(.admin-auth-pending) .products{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
body:not(.admin-auth-pending) .product{
  min-width:0;padding:0;overflow:hidden;border:1px solid var(--pl-line);border-radius:16px;
  background:#fff;box-shadow:0 2px 8px rgba(20,43,54,.025);
  transition:transform .28s var(--pl-ease),box-shadow .28s var(--pl-ease),border-color .28s
}
body:not(.admin-auth-pending) .product:hover{
  transform:translateY(-5px);border-color:#c5dcd4;box-shadow:0 17px 35px rgba(20,43,54,.105)
}
body:not(.admin-auth-pending) .product .pic{
  position:relative;aspect-ratio:1/1;height:auto;min-height:0;padding:16px;
  background:#f0f4f1;border-radius:0;overflow:hidden
}
body:not(.admin-auth-pending) .product .pic img{
  transition:transform .45s var(--pl-ease);object-fit:contain
}
body:not(.admin-auth-pending) .product:hover .pic img{transform:scale(1.055)}
body:not(.admin-auth-pending) .product .body{min-height:190px;padding:16px;display:flex;flex-direction:column}
body:not(.admin-auth-pending) .product .body small{color:var(--pl-teal-dark);font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
body:not(.admin-auth-pending) .product .body h3{font-size:15px;line-height:1.35;letter-spacing:-.02em;margin:8px 0;min-height:2.6em}
body:not(.admin-auth-pending) .product .body p{font-size:12px;line-height:1.55;color:#78868a}
body:not(.admin-auth-pending) .price{margin-top:auto;padding-top:12px}
body:not(.admin-auth-pending) .price strong,body:not(.admin-auth-pending) .product-price{color:var(--pl-teal-dark)}
body:not(.admin-auth-pending) .card,body:not(.admin-auth-pending) .account-card{
  border:1px solid var(--pl-line);border-radius:var(--pl-radius);box-shadow:0 5px 20px rgba(20,43,54,.035)
}
body:not(.admin-auth-pending) main>section:not(.hero):not(.category-section):not(.featured-section){padding-top:35px;padding-bottom:48px}
body:not(.admin-auth-pending) .page-heading{margin:25px 0 22px}
body:not(.admin-auth-pending) footer{
  margin-top:25px;padding:30px 24px;text-align:center;background:#142f3a;color:#c6d5d5;
  font-size:13px;letter-spacing:.01em
}
body:not(.admin-auth-pending) footer p{color:#c6d5d5}
body:not(.admin-auth-pending) .search-suggestions{
  border:1px solid #dce6e0;border-radius:12px;box-shadow:0 18px 45px rgba(20,43,54,.16)
}
body:not(.admin-auth-pending) .search-suggestion{padding:11px 13px}
body:not(.admin-auth-pending) .search-suggestion:hover{background:#f0f7f4}
body:not(.admin-auth-pending) .product-detail{gap:clamp(25px,5vw,64px);padding:45px 0}
body:not(.admin-auth-pending) .product-detail-image{
  background:#f0f4f1;border:1px solid var(--pl-line);border-radius:20px
}
body:not(.admin-auth-pending) .product-detail-info h1{letter-spacing:-.05em}
body:not(.admin-auth-pending) .product-description{color:#596d72}
body:not(.admin-auth-pending) .back-link{color:var(--pl-teal-dark)}
body:not(.admin-auth-pending) .auth-shell{padding-top:55px;padding-bottom:65px}
body:not(.admin-auth-pending) .auth-card{padding:clamp(23px,4vw,38px)}
body:not(.admin-auth-pending) .auth-brand{color:var(--pl-teal-dark);font-weight:900;letter-spacing:-.04em}
body:not(.admin-auth-pending) .checkout-form-card,body:not(.admin-auth-pending) .checkout-total-box,
body:not(.admin-auth-pending) .payment-box{border-radius:15px}
body:not(.admin-auth-pending) .payment-option{transition:border-color .2s,background .2s,transform .2s}
body:not(.admin-auth-pending) .payment-option:has(input:checked){border-color:var(--pl-teal);background:#edf8f4}
body:not(.admin-auth-pending) .verification-notice{border-radius:15px;box-shadow:0 5px 18px rgba(20,43,54,.04)}
body:not(.admin-auth-pending) :focus-visible{outline:3px solid rgba(8,126,120,.35);outline-offset:3px}
@keyframes pl-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
body:not(.admin-auth-pending) .hero-copy{animation:pl-rise .65s var(--pl-ease) both}
body:not(.admin-auth-pending) .hero-tools{animation:pl-rise .7s .1s var(--pl-ease) both}
body:not(.admin-auth-pending) .category-card{animation:pl-rise .55s var(--pl-ease) both}
body:not(.admin-auth-pending) .category-card:nth-child(2){animation-delay:.04s}
body:not(.admin-auth-pending) .category-card:nth-child(3){animation-delay:.08s}
body:not(.admin-auth-pending) .category-card:nth-child(4){animation-delay:.12s}
body:not(.admin-auth-pending) .category-card:nth-child(5){animation-delay:.16s}
body:not(.admin-auth-pending) .category-card:nth-child(6){animation-delay:.2s}
@media(max-width:1000px){
  body:not(.admin-auth-pending) .products{grid-template-columns:repeat(3,minmax(0,1fr))}
  body:not(.admin-auth-pending) .hero:after{right:4%;opacity:.65}
}
@media(max-width:800px){
  body:not(.admin-auth-pending) header{height:68px;padding-inline:20px;gap:12px}
  body:not(.admin-auth-pending) nav{gap:3px}
  body:not(.admin-auth-pending) nav>a:not(.cart-link),body:not(.admin-auth-pending) nav>.nav-spacer{display:inline-flex}
  body:not(.admin-auth-pending) nav>a{padding:8px 9px;font-size:12px}
  body:not(.admin-auth-pending) .profile-name{display:none}
  body:not(.admin-auth-pending) main{width:min(100% - 32px,680px)}
  body:not(.admin-auth-pending) .hero{min-height:350px;margin-top:18px;padding:48px 30px;border-radius:21px}
  body:not(.admin-auth-pending) .hero:after{width:170px;right:-25px;opacity:.4}
  body:not(.admin-auth-pending) .hero h1{font-size:clamp(43px,8vw,62px)}
  body:not(.admin-auth-pending) .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body:not(.admin-auth-pending) .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  body:not(.admin-auth-pending) .product .body{min-height:178px;padding:13px}
  body:not(.admin-auth-pending) .product .body h3{font-size:14px}
}
@media(max-width:520px){
  body:not(.admin-auth-pending) header{height:auto;min-height:64px;padding:10px 14px;gap:8px;flex-wrap:wrap}
  body:not(.admin-auth-pending) .logo{font-size:21px}
  body:not(.admin-auth-pending) nav{justify-content:flex-end;gap:2px}
  body:not(.admin-auth-pending) nav>a:not(.cart-link),body:not(.admin-auth-pending) nav>.nav-spacer{display:none}
  body:not(.admin-auth-pending) nav .cart-link{padding:8px 11px}
  body:not(.admin-auth-pending) main{width:calc(100% - 28px)}
  body:not(.admin-auth-pending) .hero{min-height:0;margin-top:13px;padding:39px 22px 25px;gap:24px;border-radius:17px}
  body:not(.admin-auth-pending) .hero:after{width:120px;right:-38px;top:36%;opacity:.32}
  body:not(.admin-auth-pending) .hero h1{font-size:clamp(39px,11vw,53px);letter-spacing:-.06em}
  body:not(.admin-auth-pending) .hero p{font-size:15px;line-height:1.6;margin-top:14px;max-width:95%}
  body:not(.admin-auth-pending) .hero-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  body:not(.admin-auth-pending) .hero-tools>.btn{width:100%;min-width:0;padding-inline:9px;font-size:12px}
  body:not(.admin-auth-pending) .hero-search{grid-column:1/-1;min-width:0;padding:8px 0 0;grid-template-columns:1fr;gap:7px}
  body:not(.admin-auth-pending) .hero-search .search{height:46px}
  body:not(.admin-auth-pending) .category-section{padding-top:31px}
  body:not(.admin-auth-pending) .featured-section{padding-top:28px;padding-bottom:45px}
  body:not(.admin-auth-pending) .section-title-row h2{font-size:24px}
  body:not(.admin-auth-pending) .category-grid{gap:9px}
  body:not(.admin-auth-pending) .category-card{min-height:68px;padding:11px 10px;column-gap:8px}
  body:not(.admin-auth-pending) .category-icon{width:33px;height:33px;font-size:16px}
  body:not(.admin-auth-pending) .category-card strong{font-size:12px}
  body:not(.admin-auth-pending) .category-card small{display:none}
  body:not(.admin-auth-pending) .products{gap:10px}
  body:not(.admin-auth-pending) .product{border-radius:12px}
  body:not(.admin-auth-pending) .product .pic{padding:9px}
  body:not(.admin-auth-pending) .product .body{min-height:166px;padding:11px}
  body:not(.admin-auth-pending) .product .body h3{font-size:13px;min-height:0}
  body:not(.admin-auth-pending) .product .body p{font-size:11px}
  body:not(.admin-auth-pending) .price strong{font-size:17px}
  body:not(.admin-auth-pending) .product-detail{padding:25px 0}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

@media(max-width:520px){
  body:not(.admin-auth-pending) header{display:flex;flex-wrap:wrap;row-gap:5px;padding:9px 14px 8px}
  body:not(.admin-auth-pending) nav{flex:0 0 100%;width:100%;justify-content:space-between;order:3;gap:3px}
  body:not(.admin-auth-pending) nav>a:not(.cart-link){display:inline-flex;padding:7px 9px;font-size:12px}
  body:not(.admin-auth-pending) nav>.nav-spacer{display:none}
  body:not(.admin-auth-pending) nav .cart-link{margin-left:auto}
}

/* Featured product cards: clearer purchase controls and a compact quantity stepper. */
body:not(.admin-auth-pending) .featured-section .product{display:flex;flex-direction:column}
body:not(.admin-auth-pending) .featured-section .product-seo-link{display:block;flex:1;color:inherit;text-decoration:none}
body:not(.admin-auth-pending) .featured-section .product .body{min-height:178px}
body:not(.admin-auth-pending) .product-buy-row{display:flex;align-items:center;gap:9px;padding:0 14px 15px;margin-top:auto}
body:not(.admin-auth-pending) .product-quantity{height:42px;display:inline-flex;align-items:center;justify-content:space-between;flex:0 0 112px;gap:0;border:1px solid #dce6e0;border-radius:11px;background:#f8fbf9;overflow:hidden}
body:not(.admin-auth-pending) .product-quantity button{width:36px;height:40px;flex:0 0 36px;border:0;background:transparent;color:#17665e;font-size:21px;font-weight:700;cursor:pointer;transition:background .18s,color .18s}
body:not(.admin-auth-pending) .product-quantity button:hover:not(:disabled){background:#e5f2ed;color:#104e49}
body:not(.admin-auth-pending) .product-quantity button:disabled{opacity:.32;cursor:not-allowed}
body:not(.admin-auth-pending) .product-quantity output{min-width:22px;text-align:center;color:#20383b;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
body:not(.admin-auth-pending) .product-buy-row .add-cart{flex:1;min-width:0;min-height:42px;margin:0;padding:8px 10px;border-radius:11px;white-space:nowrap;font-size:12px}
body:not(.admin-auth-pending) .product-buy-row .add-cart:disabled{opacity:.48;cursor:not-allowed}
body:not(.admin-auth-pending) .featured-section .product:hover .product-buy-row{border-color:transparent}
@media(max-width:520px){
  body:not(.admin-auth-pending) .featured-section .product .body{min-height:155px}
  body:not(.admin-auth-pending) .product-buy-row{gap:6px;padding:0 9px 11px}
  body:not(.admin-auth-pending) .product-quantity{height:38px;flex-basis:91px}
  body:not(.admin-auth-pending) .product-quantity button{height:36px;width:30px;flex-basis:30px}
  body:not(.admin-auth-pending) .product-buy-row .add-cart{min-height:38px;font-size:11px;padding-inline:7px}
}

/* Product quick-view inspired by a clean retail product-details dialog */
.quick-view-overlay{position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px);display:none;place-items:center;padding:22px;z-index:10020;opacity:0;transition:opacity .2s ease}
.quick-view-overlay.open{display:grid;opacity:1}
.quick-view-dialog{width:min(900px,100%);max-height:min(88vh,780px);overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:18px;box-shadow:0 28px 90px rgba(15,23,42,.3);transform:translateY(10px) scale(.99);transition:transform .22s ease}
.quick-view-overlay.open .quick-view-dialog{transform:translateY(0) scale(1)}
.quick-view-head{height:64px;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:19px}
.quick-view-close{border:0;background:transparent;color:#667085;font-size:30px;line-height:1;cursor:pointer;padding:4px 8px}
.quick-view-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;padding:24px 30px 30px}
.quick-view-image{min-height:280px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;display:grid;place-items:center;padding:18px;align-self:start}
.quick-view-image img{display:block;max-width:100%;max-height:390px;object-fit:contain}
.quick-view-image span{font-size:70px}.quick-view-info h2{font-size:27px;line-height:1.2;margin:5px 0 10px}.quick-view-price{font-size:27px;color:#0f9b55;font-weight:850}.quick-view-price del{font-size:15px;color:#98a2b3;margin-left:7px}.quick-view-stock{font-size:13px;font-weight:750;color:#15803d;margin:8px 0}.quick-view-stock.out{color:#b42318}.quick-view-description{color:#475467;line-height:1.65;margin:15px 0}.quick-view-features{color:#344054}.quick-view-features ul{padding-left:21px;line-height:1.65;margin:6px 0 15px}.quick-view-pack{color:#475467}.quick-view-actions{display:flex;align-items:end;gap:12px;margin-top:22px}.quick-view-actions label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#475467}.quick-view-qty{height:44px;min-width:82px;border:1px solid #d0d5dd;border-radius:10px;padding:0 12px;background:#fff;font:inherit}.quick-view-add{margin:0;min-height:44px;flex:1;cursor:pointer}.quick-view-message{min-height:20px;color:#078044;font-size:13px;font-weight:700;margin-top:10px}.quick-view-open{overflow:hidden}
.product-buy-row{display:flex;gap:9px;padding:0 14px 15px}.product-buy-row .view-details,.product-buy-row .add-cart{flex:1;text-align:center;margin:0;min-width:0;padding:10px 8px;font-size:13px}.product-buy-row .view-details{background:#fff;color:#0f766e;border:1px solid #b8d9d4}.product-buy-row .view-details:hover{background:#edf8f6}
.floating-cart-shortcut{position:fixed;right:18px;bottom:26px;z-index:80;display:flex;align-items:center;gap:11px;min-width:178px;padding:12px 15px;border-radius:15px;background:#0f766e;color:#fff;box-shadow:0 12px 32px rgba(15,118,110,.3);transition:transform .2s ease,box-shadow .2s ease}.floating-cart-shortcut:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(15,118,110,.38)}.floating-cart-icon{font-size:23px}.floating-cart-copy{display:grid;gap:2px}.floating-cart-copy strong{font-size:13px}.floating-cart-copy strong b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;border-radius:20px;background:#fff;color:#0f766e;font-size:11px}.floating-cart-copy small{font-size:12px;color:#d5f5ed}.floating-cart-arrow{margin-left:auto;font-size:19px}
@media(max-width:650px){.quick-view-overlay{padding:10px}.quick-view-dialog{max-height:92vh;border-radius:14px}.quick-view-content{grid-template-columns:1fr;gap:16px;padding:16px}.quick-view-image{min-height:190px;max-height:250px}.quick-view-image img{max-height:220px}.quick-view-info h2{font-size:22px}.quick-view-head{height:56px}.floating-cart-shortcut{right:12px;bottom:14px;min-width:0;padding:10px 12px}.product-buy-row .view-details,.product-buy-row .add-cart{font-size:11px}}
@media(prefers-reduced-motion:reduce){.quick-view-overlay,.quick-view-dialog,.floating-cart-shortcut{transition:none}}

/* Refined quick-view: compact vertical rhythm, tactile quantity stepper and clear close control. */
.quick-view-dialog{width:min(880px,100%);max-height:min(86vh,740px);border-radius:20px}
.quick-view-head{height:58px;padding:0 18px 0 24px;font-size:18px}
.quick-view-close{width:38px;height:38px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid #e1e7ec;background:#f3f6f8;color:#344054;font-size:25px;font-weight:700;line-height:1;box-shadow:0 2px 7px rgba(16,24,40,.08);transition:background .18s ease,color .18s ease,transform .18s ease,border-color .18s ease}
.quick-view-close:hover{background:#fee4e2;border-color:#fecdca;color:#b42318;transform:rotate(90deg)}
.quick-view-content{gap:24px;padding:18px 24px 20px;align-items:start}
.quick-view-image{min-height:230px;max-height:330px;padding:14px;border-radius:14px;background:linear-gradient(145deg,#f8fafc,#f1f5f9)}
.quick-view-image img{max-height:300px}
.quick-view-info .eyebrow{margin:0 0 5px}
.quick-view-info h2{margin:3px 0 7px;font-size:25px}
.quick-view-price{font-size:25px;line-height:1.2}
.quick-view-stock{margin:6px 0}
.quick-view-description{margin:10px 0;line-height:1.5}
.quick-view-features ul{margin:4px 0 9px;line-height:1.48}
.quick-view-pack{margin:7px 0}
.quick-view-actions{margin-top:14px;gap:14px;align-items:end}
.quick-view-quantity{display:grid;gap:7px}
.quick-view-quantity-label{font-size:12px;font-weight:800;color:#475467}
.quick-view-stepper{height:46px;min-width:132px;display:grid;grid-template-columns:42px 1fr 42px;align-items:center;border:1px solid #d7e3e0;border-radius:13px;background:#f8fbfa;box-shadow:inset 0 1px 2px rgba(16,24,40,.03);overflow:hidden}
.quick-view-qty-btn{height:100%;border:0;background:transparent;color:#087f70;font-size:23px;font-weight:700;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}
.quick-view-qty-btn:hover:not(:disabled){background:#e4f4ef;color:#075e54}
.quick-view-qty-btn:active:not(:disabled){transform:scale(.92)}
.quick-view-qty-btn:disabled{color:#aab8b4;cursor:not-allowed;opacity:.6}
.quick-view-qty{display:grid;place-items:center;min-width:28px;color:#172b2a;font-size:15px;font-weight:850;font-variant-numeric:tabular-nums}
.quick-view-add{min-height:46px;border-radius:12px;font-weight:800;box-shadow:0 5px 14px rgba(15,118,110,.16);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.quick-view-add:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,118,110,.22)}
.quick-view-add.is-added{background:#087f70}
.quick-view-message{margin:6px 0 0;min-height:18px}
@media(max-width:650px){
 .quick-view-overlay{padding:8px;align-items:center}
 .quick-view-dialog{max-height:94dvh;border-radius:16px}
 .quick-view-head{height:52px;padding:0 13px 0 17px}
 .quick-view-close{width:35px;height:35px;font-size:23px}
 .quick-view-content{gap:11px;padding:12px 15px 15px}
 .quick-view-image{min-height:145px;max-height:190px;padding:9px}
 .quick-view-image img{max-height:170px}
 .quick-view-info h2{font-size:21px}
 .quick-view-price{font-size:23px}
 .quick-view-description{margin:7px 0;font-size:14px}
 .quick-view-features ul{font-size:13px;line-height:1.4;margin-bottom:7px}
 .quick-view-actions{margin-top:10px;gap:9px}
 .quick-view-stepper{height:43px;min-width:116px;grid-template-columns:36px 1fr 36px}
 .quick-view-add{min-height:43px;font-size:13px}
}
/* Reset legacy select styling because the quantity display is now an output element. */
.quick-view-stepper .quick-view-qty{height:auto;min-width:0;border:0;border-radius:0;padding:0;background:transparent;font:inherit;box-shadow:none}
