html { font-size: 16px; }

body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #111827;
    color: #fff;
    padding: 22px 14px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    padding: 0 12px 24px;
}

.brand span { font-weight: 400; }

.sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
    margin-bottom: 4px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: #1f2937;
    color: #fff;
}

.main-area { margin-left: 250px; width: calc(100% - 250px); }

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 18px;
}

.stat-card, .panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.stat-card { min-height: 125px; }
.stat-label { color: #64748b; font-size: .9rem; }
.stat-value { font-size: 2rem; font-weight: 800; margin-top: 8px; }
.stat-card.warning { border-left: 4px solid #f59e0b; }
.stat-card.danger { border-left: 4px solid #ef4444; }

.amount { font-size: 2rem; font-weight: 800; margin: 12px 0 4px; }

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; width: 100%; }
}

@media (max-width: 575.98px) {
    .stat-card { min-height: 110px; padding: 15px; }
    .stat-value { font-size: 1.6rem; }
    .panel { padding: 16px; }
}

.auth-page{background:#f5f7fb;min-height:100vh}.auth-container{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,100%);background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:28px;box-shadow:0 10px 35px rgba(15,23,42,.08)}.auth-brand{padding:0!important}.auth-card h1{font-size:1.6rem;margin-top:20px}.phase-note{font-size:.78rem;color:#94a3b8;border-top:1px solid #334155;margin:25px 8px 0;padding:18px 5px}.sidebar .nav-link.disabled{opacity:.55}.sidebar .nav-link small{margin-left:auto;color:#94a3b8}.phase-item{height:100%;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}.phase-item strong{display:block;margin-bottom:5px}.phase-item span{color:#64748b;font-size:.9rem}

.stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;min-height:120px}.stat-label{color:#64748b;font-size:.9rem}.stat-value{font-size:2rem;font-weight:800}.stat-card.warning{border-left:4px solid #f59e0b}.stat-card.danger{border-left:4px solid #ef4444}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 2px 10px rgba(15,23,42,.04)}.product-image{height:190px;background:#f1f5f9;display:grid;place-items:center;color:#94a3b8}.product-image img{width:100%;height:100%;object-fit:cover}.edit-product-image,.delete-product-image{max-width:220px;max-height:180px;border-radius:12px;object-fit:cover}.form-control,.form-select{min-height:42px;border-radius:9px}.btn{border-radius:9px}@media(max-width:1199px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-image{height:150px}}@media(max-width:480px){.product-grid{grid-template-columns:1fr}.product-image{height:190px}}

/* Mobile shopping product cards */
.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.product-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #e9edf3;border-radius:16px;box-shadow:0 3px 14px rgba(15,23,42,.06)}
.product-image{position:relative;width:100%;height:210px;flex:0 0 210px;overflow:hidden;background:#f3f5f7;display:flex;align-items:center;justify-content:center}
.product-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.product-body{display:flex;flex:1;flex-direction:column;min-width:0;padding:14px}
.product-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.product-title{min-width:0;margin:0;font-size:1rem;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-stock-badge{flex:0 0 auto;border-radius:999px;padding:4px 8px;font-size:.72rem;font-weight:700}
.product-meta{margin-top:5px;color:#64748b;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-price-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:14px}
.product-sale-price{font-size:1.05rem;font-weight:800}
.product-buy-price{color:#94a3b8;font-size:.74rem}
.product-actions{display:flex;gap:8px;margin-top:12px}
.product-actions .btn{flex:1;min-height:38px;font-size:.82rem}
.product-filter-card{background:#fff;border:1px solid #e9edf3;border-radius:14px;padding:12px}
.stock-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 9px;font-size:.72rem;font-weight:700}
.stock-pill.in{background:#e9f8ef;color:#16834b}.stock-pill.low{background:#fff4d6;color:#9a6700}.stock-pill.out{background:#feecec;color:#c62828}
@media(max-width:1199px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image{height:150px;flex-basis:150px}.product-body{padding:10px}.product-title{font-size:.9rem}.product-meta{font-size:.72rem}.product-sale-price{font-size:.95rem}.product-buy-price{display:none}.product-actions{gap:6px;margin-top:10px}.product-actions .btn{min-height:34px;padding:.25rem .4rem;font-size:.74rem}.product-stock-badge{font-size:.65rem;padding:3px 6px}}
@media(max-width:480px){.product-grid{gap:8px}.product-image{height:135px;flex-basis:135px}.product-body{padding:9px}.product-title{font-size:.84rem}}

.dashboard-action{height:100%;transition:transform .15s ease}.dashboard-action:hover{transform:translateY(-2px)}.dashboard-action strong{display:block;color:#0f172a}.dashboard-action span{display:block;color:#64748b;font-size:.85rem;margin-top:4px}

/* Phase 4A Online Store */
.store-page{max-width:1400px;margin:auto;padding-bottom:100px}.store-hero{border-radius:20px;padding:34px 30px;background:linear-gradient(135deg,#fff7ed,#fef2f2);margin-bottom:16px}.store-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#e85d04}.store-hero h1{font-size:clamp(1.7rem,4vw,2.7rem);font-weight:850;margin:6px 0}.store-hero p{margin:0;color:#64748b}.store-search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:6px 7px 6px 14px;box-shadow:0 4px 18px rgba(15,23,42,.06)}.store-search span{font-size:1.4rem;color:#94a3b8}.store-search input{border:0;outline:0;flex:1;min-width:0}.store-search button{border:0;border-radius:10px;background:#111827;color:#fff;padding:10px 18px;font-weight:700}.store-category-scroller{display:flex;gap:8px;overflow-x:auto;padding:14px 0 18px;scrollbar-width:none}.store-category{flex:0 0 auto;padding:9px 16px;border-radius:999px;background:#fff;border:1px solid #e5e7eb;color:#475569;text-decoration:none;font-size:.84rem;font-weight:700}.store-category.active{background:#111827;color:#fff}.store-section-head{display:flex;justify-content:space-between;margin-bottom:12px}.store-section-head h2{font-size:1.2rem;margin:0}.store-section-head span{color:#94a3b8;font-size:.8rem}.store-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.store-product-card{background:#fff;border:1px solid #e9edf3;border-radius:16px;overflow:hidden;box-shadow:0 3px 14px rgba(15,23,42,.05)}.store-product-image{height:220px;background:#f5f6f8;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;text-decoration:none;color:#94a3b8}.store-product-image img{width:100%;height:100%;object-fit:contain}.store-out-badge{position:absolute;left:10px;bottom:10px;background:#111827;color:#fff;border-radius:999px;padding:5px 9px;font-size:.68rem}.store-product-body{padding:13px}.store-product-category{text-transform:uppercase;color:#94a3b8;font-size:.65rem;font-weight:800;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-product-name{display:block;color:#111827;text-decoration:none;font-weight:750;font-size:.95rem;margin-top:5px;min-height:2.5em}.store-product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.store-product-bottom strong{font-size:1rem}.store-add-btn{border:1px solid #16a34a;background:#fff;color:#15803d;border-radius:9px;padding:7px 14px;font-weight:800;font-size:.75rem}.store-add-btn.disabled{border-color:#e5e7eb;color:#94a3b8}.store-cart-bar{position:fixed;z-index:100;left:50%;bottom:16px;transform:translate(-50%,130px);width:min(560px,calc(100% - 24px));background:#111827;color:#fff;border-radius:15px;padding:11px 12px 11px 16px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 35px rgba(15,23,42,.25);transition:transform .2s}.store-cart-bar.visible{transform:translate(-50%,0)}.store-cart-bar div{display:flex;flex-direction:column}.store-cart-bar span{font-size:.72rem;color:#cbd5e1}.store-cart-bar button{border:0;background:#fff;color:#111827;border-radius:10px;padding:9px 15px;font-weight:800}.store-cart-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:200;display:none;align-items:flex-end;justify-content:center}.store-cart-overlay.open{display:flex}.store-cart-sheet{background:#fff;width:min(620px,100%);max-height:82vh;border-radius:20px 20px 0 0;display:flex;flex-direction:column}.store-cart-header{padding:18px;display:flex;justify-content:space-between;border-bottom:1px solid #eef0f3}.store-cart-header button{border:0;background:#f1f5f9;border-radius:50%;width:34px;height:34px;font-size:1.4rem}.store-cart-item{display:flex;justify-content:space-between;align-items:center;padding:13px 18px;border-bottom:1px solid #eef0f3}.store-cart-item>div:first-child{display:flex;flex-direction:column}.store-cart-item small{color:#64748b}.store-qty{display:flex;align-items:center;gap:10px}.store-qty button{border:1px solid #dbe1e8;background:#fff;border-radius:8px;width:30px;height:30px}.store-cart-footer{padding:15px 18px 18px;border-top:1px solid #eef0f3}.store-cart-footer>div{display:flex;justify-content:space-between;margin-bottom:12px}.store-cart-footer button{width:100%;border:0;background:#111827;color:#fff;border-radius:11px;padding:13px;font-weight:800}.store-cart-empty{text-align:center;padding:40px;color:#94a3b8}.store-detail{max-width:1100px;margin:auto}.store-back{display:inline-block;margin-bottom:14px;color:#475569;text-decoration:none}.store-detail-card{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden}.store-detail-image{min-height:460px;background:#f5f6f8;display:flex;align-items:center;justify-content:center}.store-detail-image img{width:100%;height:100%;max-height:560px;object-fit:contain}.store-detail-info{padding:38px}.store-detail-info h1{font-size:clamp(1.7rem,4vw,2.6rem);font-weight:850;margin:8px 0}.store-detail-sku{color:#94a3b8}.store-detail-price{font-size:1.7rem;font-weight:850;margin:20px 0 8px}.store-available{color:#16834b;font-weight:700}.store-unavailable{color:#c62828;font-weight:700}.store-detail-description{color:#64748b;line-height:1.7;margin-top:20px}.store-detail-add{width:100%;margin-top:25px;border:0;border-radius:12px;background:#111827;color:#fff;padding:14px;font-weight:800}.store-detail-add:disabled{background:#cbd5e1}.store-empty{grid-column:1/-1;text-align:center;padding:55px 20px;background:#fff;border-radius:16px;border:1px dashed #dbe1e8}
@media(max-width:1199px){.store-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:767px){.store-hero{padding:25px 18px}.store-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-product-image{height:155px}.store-product-body{padding:10px}.store-product-name{font-size:.86rem}.store-add-btn{padding:6px 11px}.store-detail-card{grid-template-columns:1fr}.store-detail-image{min-height:300px}.store-detail-info{padding:22px}}@media(max-width:420px){.store-product-image{height:140px}.store-product-name{font-size:.82rem}}

/* Phase 4B server cart */
.cart-page-head{display:flex;align-items:end;justify-content:space-between;margin:10px 0 18px}.cart-page-head h1{margin:4px 0;font-size:clamp(1.6rem,4vw,2.4rem);font-weight:850}.cart-page-head>span{color:#64748b;font-size:.85rem}.cart-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.cart-page-items{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden}.cart-page-item{display:grid;grid-template-columns:88px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:14px;border-bottom:1px solid #eef0f3}.cart-page-item:last-child{border-bottom:0}.cart-page-image{width:88px;height:88px;border-radius:12px;background:#f5f6f8;display:flex;align-items:center;justify-content:center;overflow:hidden}.cart-page-image img{width:100%;height:100%;object-fit:contain}.cart-page-info{min-width:0}.cart-page-info h2{font-size:.95rem;margin:0 0 4px;font-weight:800}.cart-page-info span{display:block;color:#475569;font-size:.8rem}.cart-page-info small{display:block;color:#94a3b8;font-size:.7rem;margin-top:4px}.cart-page-line-total{font-size:.9rem;white-space:nowrap}.cart-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;position:sticky;top:16px}.cart-summary-card h2{font-size:1.05rem;margin:0 0 16px}.cart-summary-card>div{display:flex;justify-content:space-between;padding:8px 0;color:#64748b;font-size:.86rem}.cart-summary-card .cart-summary-total{border-top:1px solid #eef0f3;margin-top:6px;padding-top:14px;color:#111827;font-size:1rem}.cart-summary-card small{display:block;color:#94a3b8;text-align:center;margin-top:9px}.store-checkout-btn:disabled{opacity:.6}
@media(max-width:991.98px){.cart-page-layout{grid-template-columns:1fr}.cart-summary-card{position:static}.cart-page-item{grid-template-columns:62px minmax(0,1fr);gap:10px}.cart-page-image{width:62px;height:62px}.cart-page-item .store-qty{grid-column:2}.cart-page-line-total{grid-column:2;justify-self:end;margin-top:-42px}.cart-page-head{align-items:center}}

/* Phase 4C checkout */
.checkout-page{max-width:1100px;margin:auto}.checkout-head{margin:8px 0 18px}.checkout-head h1{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:850;margin:5px 0}.checkout-head p{color:#64748b;margin:0}.checkout-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.checkout-form h2,.checkout-summary h2{font-size:1.05rem;font-weight:800;margin-bottom:14px}.checkout-summary{position:sticky;top:16px}.checkout-item{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eef0f3}.checkout-item div{display:flex;flex-direction:column}.checkout-item small{color:#64748b;margin-top:3px}.checkout-total,.checkout-grand{display:flex;justify-content:space-between;padding:10px 0}.checkout-grand{border-top:1px solid #e5e7eb;margin-top:6px;font-size:1.08rem}.payment-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin-bottom:9px}.payment-option span{display:flex;flex-direction:column}.payment-option small{color:#64748b;margin-top:3px}.payment-option.disabled{opacity:.5}.checkout-submit{width:100%;border:0;border-radius:12px;background:#111827;color:#fff;padding:14px;font-weight:800;font-size:1rem}.order-success{max-width:650px;margin:30px auto;text-align:center}.order-success-icon{width:64px;height:64px;margin:0 auto 15px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#dcfce7;color:#15803d;font-size:2rem;font-weight:800}.order-success h1{font-size:clamp(1.7rem,4vw,2.4rem);font-weight:850;margin:7px 0}.order-success>p{color:#64748b}.order-number{display:inline-block;background:#f1f5f9;border-radius:999px;padding:8px 14px;font-weight:800;margin:8px 0 18px}.order-success-card{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e5e7eb;border:1px solid #e5e7eb;border-radius:15px;overflow:hidden;text-align:left}.order-success-card div{background:#fff;padding:14px}.order-success-card span{display:block;color:#94a3b8;font-size:.72rem}.order-success-card strong{display:block;margin-top:4px}.order-success-items{background:#fff;border:1px solid #e5e7eb;border-radius:15px;margin-top:14px;padding:4px 16px;text-align:left}.order-success-items div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eef0f3}.order-success-items div:last-child{border-bottom:0}
@media(max-width:767px){.checkout-grid{grid-template-columns:1fr}.checkout-summary{position:static;order:-1}.order-success{margin:10px auto}.order-success-card{grid-template-columns:1fr}.order-success-card div{padding:11px}}

.store-checkout-btn{display:block;text-decoration:none;cursor:pointer;text-align:center}

.checkout-link-form{display:block;width:100%;margin:12px 0 0;position:relative;z-index:50}
.checkout-link-form .store-checkout-btn{display:block;width:100%;border:0;background:#111827;color:#fff;border-radius:11px;padding:13px 16px;font-weight:800;text-align:center;cursor:pointer;pointer-events:auto;position:relative;z-index:51}
.checkout-link-form .store-checkout-btn:hover{background:#1f2937}

.orders-admin-page,.order-admin-detail{max-width:1200px;margin:auto}.orders-admin-head,.order-detail-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.orders-admin-head h1,.order-detail-head h1{font-size:clamp(1.7rem,4vw,2.4rem);font-weight:850;margin:4px 0}.orders-admin-head p,.order-detail-head p{color:#64748b;margin:0}.orders-filter{display:flex;gap:9px;margin-bottom:15px}.orders-filter input,.orders-filter select{min-height:42px;border:1px solid #dbe1e8;border-radius:10px;padding:8px 11px;background:#fff}.orders-filter input{flex:1}.orders-filter button,.orders-filter a{border:0;border-radius:10px;padding:10px 15px;font-weight:700;text-decoration:none}.orders-filter button{background:#111827;color:#fff}.orders-filter a{background:#f1f5f9;color:#334155}.orders-table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:16px}.orders-table{width:100%;border-collapse:collapse;min-width:850px}.orders-table th,.orders-table td{padding:13px 14px;border-bottom:1px solid #eef0f3;text-align:left;font-size:.84rem}.orders-table th{font-size:.72rem;text-transform:uppercase;color:#64748b;background:#f8fafc}.orders-table td small{color:#94a3b8}.orders-empty{text-align:center!important;padding:40px!important;color:#94a3b8}.order-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:.7rem;font-weight:800;background:#f1f5f9;color:#475569}.order-view-btn{display:inline-block;padding:7px 11px;border-radius:8px;background:#111827;color:#fff;text-decoration:none;font-size:.75rem;font-weight:700}.order-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:14px}.order-detail-grid .panel h2,.order-items-admin h2,.status-panel h2{font-size:1rem;margin:0 0 12px}.order-detail-grid .panel p{margin:4px 0;color:#475569}.admin-order-item{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef0f3}.admin-order-item div{display:flex;flex-direction:column}.admin-order-item small{color:#64748b;margin-top:3px}.admin-order-total{display:flex;justify-content:space-between;padding:8px 0}.admin-order-total.grand{border-top:1px solid #e5e7eb;margin-top:5px;padding-top:13px;font-size:1.05rem}.status-panel{margin-top:14px}.status-buttons{display:flex;flex-wrap:wrap;gap:8px}.status-buttons form{margin:0}.status-action{border:1px solid #dbe1e8;background:#fff;border-radius:9px;padding:9px 12px;font-weight:700;cursor:pointer}.status-action.active{background:#111827;color:#fff;border-color:#111827}@media(max-width:767px){.orders-filter{display:grid;grid-template-columns:1fr 1fr}.orders-filter input{grid-column:1/-1}.orders-filter button,.orders-filter a{text-align:center}.order-detail-grid{grid-template-columns:1fr}.status-buttons{display:grid;grid-template-columns:1fr 1fr}.status-action{width:100%}}

.customer-account-page{max-width:1000px;margin:auto}.account-hero{margin-bottom:20px}.account-hero h1{font-size:clamp(1.7rem,4vw,2.5rem);font-weight:850;margin:5px 0}.account-hero p{color:#64748b;margin:0}.account-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:15px}.account-card{display:flex;align-items:center;gap:13px;padding:17px;background:#fff;border:1px solid #e5e7eb;border-radius:16px;text-decoration:none;color:#111827}.account-card>div{display:flex;flex-direction:column;flex:1}.account-card small{color:#64748b;margin-top:3px}.account-icon{font-size:1.7rem}.account-card b{font-size:1.4rem}; .account-logout-form{margin:0}.account-logout-card{width:100%;font:inherit;cursor:pointer;text-align:left}.account-logout-card:hover{border-color:#ef4444;background:#fff7f7}.account-logout-content{display:flex;flex-direction:column;flex:1}.account-logout-content small{color:#64748b;margin-top:3px}.account-profile h2,.tracking-panel h2,.account-detail-grid h2{font-size:1rem;margin-bottom:10px}.profile-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid #eef0f3}.profile-row:last-child{border-bottom:0}.my-orders-list{display:flex;flex-direction:column;gap:10px}.my-order-card{display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:15px;text-decoration:none;color:#111827}.my-order-card>div:first-child{display:flex;flex-direction:column}.my-order-card small{color:#64748b;margin-top:3px}.my-order-right{display:flex;align-items:center;gap:12px}.account-empty{text-align:center;padding:45px 20px}.account-empty>div{font-size:2.4rem}.account-empty h2{margin:8px 0}.account-empty p{color:#64748b}.tracking-steps{display:flex;justify-content:space-between;gap:5px}.tracking-step{flex:1;text-align:center;color:#94a3b8;position:relative}.tracking-step span{display:block;margin:auto auto 5px;width:28px;height:28px;border-radius:50%;background:#f1f5f9;padding-top:4px}.tracking-step.active{color:#166534;font-weight:700}.tracking-step.active span{background:#dcfce7}.account-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.account-detail-grid .panel p{margin:4px 0;color:#475569}@media(max-width:767px){.account-grid,.account-detail-grid{grid-template-columns:1fr}.my-order-card{align-items:flex-start}.my-order-right{flex-direction:column;align-items:flex-end;gap:6px}.tracking-steps{overflow:auto;min-width:620px}.tracking-panel{overflow:auto}.profile-row{font-size:.9rem}}

.shop-page{max-width:1200px;margin:auto}.shop-hero{margin-bottom:18px}.shop-hero h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:850;margin:5px 0}.shop-hero p{color:#64748b;margin:0}.shop-filters{display:grid;grid-template-columns:minmax(220px,1fr) 180px 180px auto auto auto;gap:8px;align-items:center;margin-bottom:15px}.shop-search{display:flex;align-items:center;border:1px solid #dbe1e8;background:#fff;border-radius:11px;padding:0 11px}.shop-search span{font-size:1.3rem;color:#64748b}.shop-search input{border:0;outline:0;width:100%;padding:11px 7px}.shop-filters select{height:43px;border:1px solid #dbe1e8;border-radius:11px;padding:0 10px;background:#fff}.stock-filter{font-size:.82rem;white-space:nowrap;color:#475569}.shop-filters button,.shop-filters a{height:43px;border:0;border-radius:11px;padding:0 15px;font-weight:750;text-decoration:none;text-align:center;line-height:43px}.shop-filters button{background:#111827;color:#fff}.shop-filters a{background:#f1f5f9;color:#334155}.shop-result-bar{display:flex;gap:8px;color:#64748b;font-size:.85rem;margin:8px 0 14px}.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.shop-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.shop-image-wrap{height:190px;background:#f8fafc;display:block;position:relative;overflow:hidden}.shop-media-link{display:block;width:100%;height:100%;color:inherit;text-decoration:none}.shop-media-slide{display:none;position:relative;width:100%;height:100%;align-items:center;justify-content:center}.shop-media-slide.active{display:flex}.shop-image{width:100%;height:100%;object-fit:contain}.shop-video{background:#111827}.shop-video-indicator{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(17,24,39,.78);color:#fff;font-size:18px;pointer-events:none}.shop-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(17,24,39,.72);color:#fff;font-size:24px;line-height:1;cursor:pointer;z-index:4;padding:0}.shop-gallery-prev{left:7px}.shop-gallery-next{right:7px}.shop-gallery-dots{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:flex;gap:4px;z-index:4}.shop-gallery-dot{width:6px;height:6px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.6);cursor:pointer}.shop-gallery-dot.active{width:16px;border-radius:5px;background:#fff}.shop-placeholder{height:100%;display:grid;place-items:center;font-size:3rem}.shop-card-body{padding:13px}.shop-card-category{font-size:.68rem;text-transform:uppercase;color:#94a3b8;font-weight:750}.shop-product-name{display:block;color:#111827;text-decoration:none;font-weight:800;margin:4px 0 7px;min-height:38px}.shop-price{font-weight:850;font-size:1.08rem}.shop-stock{font-size:.72rem;color:#16a34a;margin:4px 0 9px}.shop-stock .out{color:#dc2626}.shop-actions{display:flex;gap:7px}.shop-actions .store-add-btn{flex:1;border:0;border-radius:9px;background:#111827;color:#fff;padding:10px;font-weight:800;cursor:pointer}.shop-actions .store-add-btn:disabled{background:#e2e8f0;color:#64748b}.wish-btn{width:43px;border:1px solid #dbe1e8;background:#fff;border-radius:9px;font-size:1.35rem;cursor:pointer;color:#64748b}.wish-btn.wished{color:#dc2626;border-color:#fecaca;background:#fff5f5}.shop-empty{text-align:center;padding:50px 20px}.shop-empty>div{font-size:2.5rem}.shop-empty h2{margin:8px 0}.shop-empty p{color:#64748b}@media(max-width:1000px){.shop-filters{grid-template-columns:1fr 1fr}.shop-search{grid-column:1/-1}.shop-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.shop-grid{grid-template-columns:repeat(2,1fr);gap:9px}.shop-image-wrap{height:145px}.shop-card-body{padding:10px}.shop-filters{grid-template-columns:1fr}.shop-search{grid-column:auto}.shop-filters button,.shop-filters a{width:100%}}@media(max-width:420px){.shop-grid{grid-template-columns:1fr 1fr}.shop-product-name{font-size:.88rem}.shop-price{font-size:1rem}}


/* Store sticky cart bar - centered, full-width shell with centered content */
.store-cart-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    z-index:9999;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    box-sizing:border-box;
    pointer-events:none;
}
.store-cart-bar[hidden]{display:none!important}
.store-cart-bar-inner{
    width:min(760px, calc(100% - 20px));
    margin:0 auto;
    background:#111827;
    color:#fff;
    border-radius:15px;
    padding:11px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    box-shadow:0 10px 35px rgba(0,0,0,.25);
    box-sizing:border-box;
    pointer-events:auto;
}
.store-cart-info{display:flex;align-items:center;gap:10px;min-width:0}
.store-cart-icon{font-size:1.45rem;flex:0 0 auto}
.store-cart-info div{display:flex;flex-direction:column;min-width:0}
.store-cart-info strong{font-size:.88rem;white-space:nowrap}
.store-cart-info small{font-size:.78rem;color:#cbd5e1;margin-top:2px;white-space:nowrap}
.store-view-cart{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    background:#fff;
    color:#111827;
    text-decoration:none;
    font-weight:850;
    border-radius:10px;
    padding:10px 14px;
    white-space:nowrap;
}
.store-view-cart span{margin-left:4px}
@media(max-width:480px){
    .store-cart-bar{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}
    .store-cart-bar-inner{width:100%;border-radius:13px;padding:10px}
    .store-cart-info strong{font-size:.8rem}
    .store-cart-info small{font-size:.72rem}
    .store-view-cart{padding:9px 11px;font-size:.8rem}
}

/* Store sticky cart bar - final viewport fix */
.store-cart-bar{
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    transform:none!important;
    z-index:2147483000!important;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    pointer-events:none!important;
}
.store-cart-bar[hidden]{display:none!important}
.store-cart-bar-inner{
    width:min(760px,100%)!important;
    max-width:760px!important;
    margin:0 auto!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
}

/* Final Store bottom-cart layout: compact horizontal bar */
.store-cart-bar{
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:auto!important;
    padding:8px 16px calc(8px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    background:transparent!important;
    display:block!important;
    z-index:2147483000!important;
}
.store-cart-bar-inner{
    width:min(760px,100%)!important;
    min-height:54px!important;
    margin:0 auto!important;
    padding:8px 12px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    gap:12px!important;
    background:#111827!important;
    color:#fff!important;
    border-radius:12px!important;
    box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
}
.store-cart-info{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:1 1 auto!important;
    min-width:0!important;
    gap:9px!important;
}
.store-cart-info div{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    min-width:0!important;
}
.store-cart-info strong{
    display:block!important;
    font-size:.86rem!important;
    line-height:1.15!important;
    white-space:nowrap!important;
}
.store-cart-info small{
    display:block!important;
    font-size:.74rem!important;
    line-height:1.15!important;
    margin-top:2px!important;
    white-space:nowrap!important;
}
.store-cart-icon{
    flex:0 0 auto!important;
    font-size:1.25rem!important;
    line-height:1!important;
}
.store-view-cart{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:38px!important;
    padding:0 14px!important;
    border-radius:9px!important;
    white-space:nowrap!important;
    font-size:.82rem!important;
}
@media(max-width:600px){
    .store-cart-bar{
        padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;
    }
    .store-cart-bar-inner{
        width:100%!important;
        min-height:50px!important;
        padding:7px 9px!important;
        border-radius:11px!important;
    }
    .store-cart-info strong{font-size:.78rem!important}
    .store-cart-info small{font-size:.68rem!important}
    .store-cart-icon{font-size:1.1rem!important}
    .store-view-cart{height:36px!important;padding:0 10px!important;font-size:.76rem!important}
}

/* Final Store cart spacing: reserve viewport space for fixed cart bar */
.shop-page{
    padding-bottom:92px!important;
}
.store-cart-bar{
    bottom:0!important;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom))!important;
}
.store-cart-bar-inner{
    min-height:52px!important;
    max-height:64px!important;
}
@media(max-width:600px){
    .shop-page{
        padding-bottom:78px!important;
    }
    .store-cart-bar{
        padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;
    }
    .store-cart-bar-inner{
        min-height:48px!important;
        max-height:58px!important;
    }
}

.store-actions .added-to-cart,.shop-actions .added-to-cart{background:#16a34a!important;color:#fff!important;cursor:default!important}

/* Store card quantity controls */
.store-quantity-control{
    flex:1 1 auto;
    min-height:40px;
    display:grid;
    grid-template-columns:42px 1fr 42px;
    align-items:center;
    border:1px solid #111827;
    border-radius:9px;
    overflow:hidden;
    background:#111827;
}
.store-qty-btn{
    height:40px;
    border:0;
    background:#111827;
    color:#fff;
    font-size:1.25rem;
    font-weight:800;
    cursor:pointer;
}
.store-qty-value{
    height:40px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#111827;
    font-weight:850;
    font-size:.9rem;
}
.store-quantity-control .store-qty-btn:hover{background:#1f2937}

.wishlist-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.wishlist-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.wishlist-image{height:190px;background:#f8fafc;display:grid;place-items:center;text-decoration:none}.wishlist-image img{width:100%;height:100%;object-fit:contain}.wishlist-image span{font-size:3rem}.wishlist-body{padding:14px;display:flex;flex-direction:column}.wishlist-body small{font-size:.68rem;text-transform:uppercase;color:#94a3b8;font-weight:750}.wishlist-body h2{font-size:1rem;font-weight:800;margin:5px 0}.wishlist-body>strong{font-size:1.08rem}.wishlist-stock,.wishlist-out{font-size:.72rem;margin:4px 0 10px}.wishlist-stock{color:#16a34a}.wishlist-out{color:#dc2626}.wishlist-actions{display:flex;gap:7px;margin-top:auto}.wishlist-add-form{flex:1}.wish-remove{height:38px;width:42px;border:1px solid #fecaca;background:#fff5f5;color:#dc2626;border-radius:9px;font-size:1.2rem}@media(max-width:900px){.wishlist-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.wishlist-grid{grid-template-columns:1fr 1fr;gap:9px}.wishlist-image{height:145px}.wishlist-body{padding:10px}.wishlist-body h2{font-size:.88rem}.wishlist-actions .btn{font-size:.75rem;padding:.5rem}.wish-remove{width:38px}}

.store-category-bar{display:flex;gap:9px;overflow-x:auto;padding:4px 2px 10px;margin-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.store-category-bar::-webkit-scrollbar{display:none}.store-category-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 17px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;text-decoration:none;font-size:.84rem;font-weight:750;white-space:nowrap}.store-category-btn:hover{border-color:#111827;color:#111827}.store-category-btn.active{background:#111827;border-color:#111827;color:#fff}@media(max-width:600px){.store-category-bar{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.store-category-btn{min-height:38px;padding:0 14px;font-size:.78rem}}

.checkout-page{max-width:1180px;margin:auto;padding-bottom:50px}.checkout-head{display:flex;justify-content:space-between;align-items:end;margin:10px 0 18px}.checkout-head h1{font-size:clamp(1.8rem,4vw,2.5rem);font-weight:850;margin:4px 0}.checkout-head p{color:#64748b;margin:0}.checkout-step{font-size:.8rem;font-weight:750;color:#64748b}.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:18px}.checkout-main{display:flex;flex-direction:column;gap:15px}.checkout-card,.checkout-summary-card{background:#fff;border:1px solid #e5e7eb;border-radius:17px;padding:20px}.checkout-card-head>div{display:flex;align-items:flex-start;gap:10px}.checkout-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#111827;color:#fff;font-weight:800;flex:0 0 auto}.checkout-card h2,.checkout-summary-card h2{font-size:1.08rem;font-weight:850;margin:1px 0}.checkout-card p{font-size:.78rem;color:#64748b;margin:2px 0 14px}.checkout-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkout-field{display:flex;flex-direction:column;gap:5px}.checkout-field.full{grid-column:1/-1}.checkout-field label{font-size:.8rem;font-weight:750}.checkout-field label span{font-weight:400;color:#94a3b8}.checkout-field .form-control{min-height:43px;border-radius:10px}.payment-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.payment-option{display:flex;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:12px;padding:12px;cursor:pointer}.payment-option:has(input:checked){border-color:#111827;background:#f8fafc}.payment-option input{margin-top:4px}.payment-option span{display:flex;flex-direction:column;gap:3px}.payment-option strong{font-size:.82rem}.payment-option small{font-size:.7rem;color:#64748b}.checkout-summary{position:sticky;top:15px;height:max-content}.checkout-summary-card h2{margin-bottom:12px}.checkout-items{display:flex;flex-direction:column;gap:9px;max-height:390px;overflow:auto}.checkout-item{display:grid;grid-template-columns:46px 1fr auto;gap:8px;align-items:center}.checkout-item-image{width:46px;height:46px;border-radius:8px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.checkout-item-image img{width:100%;height:100%;object-fit:contain}.checkout-item strong,.checkout-item b{font-size:.76rem}.checkout-item div:nth-child(2){display:flex;flex-direction:column;gap:2px}.checkout-item small{font-size:.68rem;color:#64748b}.checkout-total-row,.checkout-grand-total{display:flex;justify-content:space-between;padding-top:11px;margin-top:11px;border-top:1px solid #eef2f7;font-size:.82rem}.checkout-grand-total{font-size:1.05rem;font-weight:850}.checkout-place-order{width:100%;border:0;background:#111827;color:#fff;border-radius:11px;padding:13px;margin-top:16px;font-weight:850}.checkout-safe{display:block;text-align:center;color:#94a3b8;font-size:.68rem;margin-top:9px}.order-success-page{max-width:700px;margin:30px auto}.order-success-card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:35px 22px}.order-success-icon{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#16a34a;font-size:2rem;font-weight:900}.order-success-card h1{font-size:clamp(1.7rem,4vw,2.4rem);font-weight:850;margin:6px 0}.order-success-card>p{color:#64748b}.success-number{background:#f8fafc;border-radius:12px;padding:13px;margin:18px 0}.success-number small,.success-grid small{display:block;color:#64748b;font-size:.7rem}.success-number strong{display:block;font-size:1.15rem;margin-top:3px}.success-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}.success-grid div{background:#f8fafc;border-radius:10px;padding:11px}.success-grid strong{display:block;font-size:.8rem;margin-top:3px}.success-actions{display:flex;gap:8px;justify-content:center;margin-top:20px}.success-actions .btn{flex:1}@media(max-width:850px){.checkout-layout{grid-template-columns:1fr}.checkout-summary{position:static}.checkout-head{align-items:flex-start;flex-direction:column;gap:8px}}@media(max-width:600px){.checkout-card,.checkout-summary-card{padding:14px}.checkout-form-grid,.payment-options{grid-template-columns:1fr}.checkout-field.full{grid-column:auto}.success-grid{grid-template-columns:1fr 1fr}.success-actions{flex-direction:column}}

.order-hero{display:flex;justify-content:space-between;align-items:end;gap:15px}.order-status-large{padding:7px 11px!important}.tracking-head{display:flex;justify-content:space-between;gap:15px;align-items:start}.tracking-head p{color:#64748b;margin:3px 0 0;font-size:.78rem}.tracking-timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:25px}.tracking-timeline-step{position:relative;text-align:center}.tracking-timeline-step:not(:last-child):after{content:"";position:absolute;top:16px;left:calc(50% + 18px);width:calc(100% - 36px);height:2px;background:#e2e8f0}.tracking-timeline-step.active:not(:last-child):after{background:#111827}.tracking-dot{position:relative;z-index:1;width:32px;height:32px;margin:0 auto 7px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#fff;font-size:.75rem;font-weight:850}.tracking-timeline-step.active .tracking-dot{background:#111827}.tracking-timeline-step.current .tracking-dot{box-shadow:0 0 0 5px #e5e7eb}.tracking-timeline-step strong{display:block;font-size:.76rem}.tracking-timeline-step small{display:block;color:#94a3b8;font-size:.65rem;margin-top:3px}.order-items-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.order-items-head>strong{font-size:.75rem;color:#64748b}.order-line{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #eef2f7}.order-line-image{width:48px;height:48px;border-radius:9px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.order-line-image img{width:100%;height:100%;object-fit:contain}.order-line div:nth-child(2){display:flex;flex-direction:column;gap:3px}.order-line small{color:#64748b;font-size:.7rem}.order-line>strong{font-size:.8rem}.order-total-row{display:flex;justify-content:space-between;padding-top:9px;margin-top:9px;font-size:.8rem}.order-total-row.grand{border-top:1px solid #e5e7eb;font-size:1rem;font-weight:850}.order-status{display:inline-block;border-radius:999px;background:#f1f5f9;color:#334155;padding:4px 9px;font-size:.68rem;font-weight:800}.order-status-large{font-size:.78rem}@media(max-width:700px){.order-hero{align-items:flex-start;flex-direction:column}.tracking-head{flex-direction:column}.tracking-timeline{grid-template-columns:1fr;gap:12px;text-align:left}.tracking-timeline-step{display:grid;grid-template-columns:36px 1fr;gap:8px;text-align:left;align-items:center}.tracking-timeline-step:not(:last-child):after{left:15px;top:31px;width:2px;height:calc(100% + 12px)}.tracking-dot{margin:0;width:32px;height:32px}.tracking-timeline-step strong{font-size:.8rem}.tracking-timeline-step small{font-size:.68rem}.order-line{grid-template-columns:42px 1fr auto}.order-line-image{width:42px;height:42px}}

.admin-dashboard-page{max-width:1200px;margin:auto;padding-bottom:50px}.admin-page-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:8px 0 18px}.admin-page-head h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:850;margin:4px 0}.admin-page-head p{color:#64748b;margin:0}.admin-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.admin-stat{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:15px}.admin-stat span{display:block;color:#64748b;font-size:.7rem;font-weight:750}.admin-stat strong{display:block;font-size:1.35rem;font-weight:900;margin:4px 0}.admin-stat small{color:#94a3b8;font-size:.65rem}.admin-stat.warning strong{color:#d97706}.admin-stat.danger strong{color:#dc2626}.admin-dashboard-grid{margin-top:15px}.admin-section-head h2{font-size:1.05rem;margin:0}.admin-section-head p{font-size:.75rem;color:#64748b}.admin-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.admin-quick-grid a{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:#111827;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:14px}.admin-quick-grid a strong{font-size:.85rem}.admin-quick-grid a small{font-size:.68rem;color:#64748b}.admin-order-filters{display:grid;grid-template-columns:1fr 190px auto auto;gap:8px;margin-bottom:12px}.admin-orders{display:flex;flex-direction:column;gap:9px}.admin-order-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:15px}.admin-order-top{display:flex;align-items:center;gap:8px}.admin-order-top>strong{font-size:.9rem}.admin-order-main>small{display:block;color:#94a3b8;font-size:.67rem;margin-top:3px}.admin-customer{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 5px}.admin-customer span{font-size:.7rem;color:#64748b}.admin-customer strong{font-size:.75rem}.admin-order-right{display:flex;flex-direction:column;align-items:flex-end;gap:9px;min-width:230px}.admin-order-right>strong{font-size:1rem}.admin-status-form{display:flex;gap:6px}.admin-status-form .form-select{width:145px;font-size:.72rem}@media(max-width:1000px){.admin-stat-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.admin-page-head{align-items:flex-start;flex-direction:column}.admin-stat-grid{grid-template-columns:1fr 1fr}.admin-quick-grid{grid-template-columns:1fr 1fr}.admin-order-filters{grid-template-columns:1fr 1fr}.admin-order-filters input{grid-column:1/-1}.admin-order-card{grid-template-columns:1fr}.admin-order-right{align-items:flex-start;min-width:0}.admin-status-form{width:100%}.admin-status-form .form-select{flex:1;width:auto}}@media(max-width:480px){.admin-stat-grid{grid-template-columns:1fr}.admin-quick-grid{grid-template-columns:1fr}}

.analytics-page{max-width:1200px;margin:auto;padding-bottom:50px}.analytics-filters{display:flex;align-items:end;gap:9px;margin-bottom:15px}.analytics-filters>div{min-width:180px}.analytics-filters label{display:block;font-size:.7rem;font-weight:750;margin-bottom:4px}.analytics-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.analytics-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:15px;margin-top:15px}.analytics-wide{grid-column:1/-1}.analytics-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.analytics-section-head h2{font-size:1.05rem;margin:0}.analytics-section-head p,.analytics-section-head>span{font-size:.7rem;color:#64748b;margin:3px 0}.analytics-table{width:100%;border-collapse:collapse}.analytics-table th,.analytics-table td{text-align:left;padding:9px;border-bottom:1px solid #eef2f7;font-size:.76rem}.analytics-table th{color:#64748b;font-size:.67rem;text-transform:uppercase}.status-bars{display:flex;flex-direction:column;gap:13px}.status-row>div:first-child{display:flex;justify-content:space-between;font-size:.75rem;margin-bottom:5px}.status-track{height:8px;background:#eef2f7;border-radius:999px;overflow:hidden}.status-track i{display:block;height:100%;background:#111827;border-radius:999px}@media(max-width:1000px){.analytics-stat-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.analytics-filters{display:grid;grid-template-columns:1fr 1fr}.analytics-filters>div{min-width:0}.analytics-filters button{grid-column:1/-1}.analytics-stat-grid{grid-template-columns:1fr 1fr}.analytics-grid{grid-template-columns:1fr}.analytics-wide{grid-column:auto}.analytics-table th,.analytics-table td{padding:7px 5px}}@media(max-width:450px){.analytics-stat-grid{grid-template-columns:1fr}}

.inventory-entry-page{max-width:900px;margin:auto;padding-bottom:50px}.inventory-entry-card{max-width:850px;margin-top:10px}.inventory-submit{margin-top:16px}.admin-head-actions{display:flex;gap:8px}@media(max-width:600px){.admin-head-actions{width:100%;flex-direction:column}.admin-head-actions .btn{width:100%}.inventory-entry-card{padding:14px}}

.admin-navigation{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}
.admin-nav-link{display:inline-flex;align-items:center;text-decoration:none!important;padding:8px 12px;border:1px solid #e2e8f0;border-radius:10px;color:#334155;background:#fff;font-size:.8rem;font-weight:700}
.admin-nav-link:hover{background:#f8fafc;color:#111827}
@media(max-width:600px){.admin-navigation{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.admin-navigation::-webkit-scrollbar{display:none}.admin-nav-link{flex:0 0 auto;white-space:nowrap}}

.inventory-page{max-width:1200px;margin:auto;padding-bottom:55px}.inventory-head{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:18px}.inventory-head h1{font-size:clamp(1.9rem,4vw,2.6rem);font-weight:900;margin:4px 0}.inventory-head p{color:#64748b;margin:0}.inventory-actions{display:flex;gap:8px}.inventory-stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:15px}.inventory-stat{background:#fff;border:1px solid #e5e7eb;border-radius:15px;padding:15px}.inventory-stat span{display:block;font-size:.7rem;color:#64748b;font-weight:750}.inventory-stat strong{display:block;font-size:1.45rem;font-weight:900;margin:3px 0}.inventory-stat small{font-size:.65rem;color:#94a3b8}.inventory-stat.warning strong{color:#d97706}.inventory-stat.danger strong{color:#dc2626}.inventory-feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:15px}.inventory-feature{display:flex;align-items:flex-start;gap:10px;text-decoration:none;color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:13px}.inventory-feature>span{font-size:1.35rem}.inventory-feature div{display:flex;flex-direction:column;gap:3px}.inventory-feature strong{font-size:.78rem}.inventory-feature small{font-size:.65rem;color:#64748b;line-height:1.3}.inventory-section{margin-bottom:15px;padding:0;overflow:hidden}.inventory-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px}.inventory-section-head h2{font-size:1.05rem;font-weight:850;margin:0}.inventory-section-head p{font-size:.7rem;color:#64748b;margin:3px 0 0}.inventory-search{display:flex;gap:6px;min-width:350px}.inventory-status,.inventory-type{display:inline-block;padding:4px 8px;border-radius:999px;font-size:.65rem;font-weight:800}.inventory-ok{background:#dcfce7;color:#166534}.inventory-low{background:#fef3c7;color:#92400e}.inventory-out{background:#fee2e2;color:#991b1b}.inventory-type{background:#f1f5f9;color:#334155}.inventory-section .table{font-size:.75rem}.inventory-section .table th{font-size:.65rem;color:#64748b;white-space:nowrap}.inventory-section .table td{white-space:nowrap}@media(max-width:1000px){.inventory-stat-grid{grid-template-columns:repeat(3,1fr)}.inventory-feature-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.inventory-head{align-items:flex-start;flex-direction:column}.inventory-actions{width:100%;flex-direction:column}.inventory-actions .btn{width:100%}.inventory-stat-grid{grid-template-columns:1fr 1fr}.inventory-feature-grid{grid-template-columns:1fr}.inventory-section-head{align-items:flex-start;flex-direction:column}.inventory-search{width:100%;min-width:0}.inventory-search input{flex:1}}

.profile-layout{display:grid;grid-template-columns:1fr 330px;gap:15px}.profile-card h2{font-size:1.05rem;font-weight:850;margin-bottom:16px}.profile-stats{display:grid;grid-template-columns:1fr;gap:10px}.profile-stat{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}.profile-stat span{display:block;color:#64748b;font-size:.72rem}.profile-stat strong{display:block;font-size:1.4rem;font-weight:900;margin-top:4px}.account-profile-link{margin:10px 0 15px}@media(max-width:750px){.profile-layout{grid-template-columns:1fr}.profile-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:500px){.profile-stats{grid-template-columns:1fr 1fr}}

/* Phase 5J shell polish */
.auth-page{min-height:70vh;display:grid;place-items:center;padding:30px}.auth-card{width:min(100%,480px);background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:34px;box-shadow:0 12px 35px rgba(15,23,42,.06)}.auth-icon{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;background:#f1f5f9;display:grid;place-items:center;font-size:1.6rem}.auth-card h1{font-size:1.65rem;font-weight:900;margin:7px 0}.auth-card p{font-size:.82rem;margin-bottom:18px}.sidebar .nav-link{border-radius:9px;margin:2px 0;transition:background .15s,transform .15s}.sidebar .nav-link:hover{transform:translateX(2px)}.topbar{min-height:58px}.topbar .btn{white-space:nowrap}@media(max-width:600px){.topbar>div{max-width:calc(100% - 45px);overflow-x:auto;white-space:nowrap;padding-bottom:2px}.topbar .btn{font-size:.7rem}.phase-note{font-size:.65rem}}

.notification-panel{padding:0;overflow:hidden}.notification-item{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;padding:15px;text-decoration:none;color:#111827;border-bottom:1px solid #eef2f7}.notification-item:last-child{border-bottom:0}.notification-item:hover{background:#f8fafc}.notification-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-size:1.15rem;background:#f1f5f9}.notification-icon.success{background:#dcfce7}.notification-icon.danger{background:#fee2e2}.notification-content strong{display:block;font-size:.82rem}.notification-content p{margin:3px 0;font-size:.72rem;color:#64748b}.notification-content small{font-size:.63rem;color:#94a3b8}.notification-item>span{font-size:1rem;color:#94a3b8}@media(max-width:600px){.notification-item{grid-template-columns:42px 1fr 12px;padding:12px}.notification-icon{width:38px;height:38px}}

@media(max-width:700px){.analytics-filters .btn{width:100%}.analytics-filters{grid-template-columns:1fr}.analytics-filters .btn{grid-column:auto}}

.order-hero-actions{display:flex;align-items:center;gap:8px}.invoice-page{max-width:950px;margin:auto;padding-bottom:50px}.invoice-toolbar{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}.invoice-paper{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:34px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.invoice-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:2px solid #111827}.invoice-header h1{font-size:2rem;font-weight:900;margin:4px 0}.invoice-header p{margin:0;color:#64748b}.invoice-meta{display:flex;flex-direction:column;align-items:flex-end;font-size:.72rem;color:#64748b;gap:3px}.invoice-meta strong{font-size:.9rem;color:#111827}.invoice-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:22px 0}.invoice-info-grid>div{display:flex;flex-direction:column;gap:4px}.invoice-info-grid span{font-size:.65rem;text-transform:uppercase;color:#94a3b8;font-weight:800}.invoice-info-grid strong{font-size:.8rem}.invoice-info-grid p{font-size:.72rem;color:#64748b;margin:0;line-height:1.5}.invoice-table{width:100%;border-collapse:collapse}.invoice-table th,.invoice-table td{padding:10px 7px;border-bottom:1px solid #e5e7eb;font-size:.76rem}.invoice-table th{font-size:.65rem;color:#64748b;text-transform:uppercase}.invoice-table .num{text-align:right}.invoice-total{margin:18px 0 0 auto;width:min(100%,340px)}.invoice-total>div{display:flex;justify-content:space-between;padding:6px 0;font-size:.78rem}.invoice-total .grand{border-top:2px solid #111827;margin-top:5px;padding-top:10px;font-size:1rem}.invoice-notes{margin-top:25px;padding:12px;background:#f8fafc;border-radius:10px;font-size:.72rem}.invoice-notes p{margin:4px 0;color:#64748b}.invoice-footer{text-align:center;color:#94a3b8;font-size:.7rem;margin-top:30px}@media(max-width:650px){.invoice-paper{padding:18px}.invoice-header{flex-direction:column}.invoice-meta{align-items:flex-start}.invoice-info-grid{grid-template-columns:1fr;gap:12px}.invoice-toolbar{flex-direction:column}.invoice-toolbar .btn{width:100%}.invoice-table{min-width:600px}.invoice-table-wrap{overflow-x:auto}}@media print{body{background:#fff!important}.no-print{display:none!important}.invoice-page{max-width:none;padding:0}.invoice-paper{border:0;box-shadow:none;border-radius:0;padding:0}.invoice-header{border-bottom:2px solid #111827}.invoice-page *{break-inside:avoid}.site-header,.navbar,.topbar,.sidebar,footer{display:none!important}}

.admin-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.admin-detail-grid .panel{margin:0}.admin-detail-grid h2,.admin-items-panel h2{font-size:1rem;font-weight:850;margin:0}.detail-list{display:flex;flex-direction:column;gap:11px;margin-top:15px}.detail-list div{display:flex;flex-direction:column;gap:2px}.detail-list span{font-size:.64rem;text-transform:uppercase;color:#94a3b8;font-weight:800}.detail-list strong{font-size:.78rem}.admin-items-panel{padding:0;overflow:hidden}.admin-items-panel .order-items-head{padding:17px}.admin-status-update-head h2{font-size:1rem;margin:0}.admin-status-update-head p{font-size:.7rem;color:#64748b;margin:3px 0 0}.admin-status-form-wide{display:flex;gap:8px;margin-top:12px}.admin-status-form-wide select{max-width:300px}.admin-order-right{display:flex;flex-direction:column;align-items:flex-end;gap:7px}@media(max-width:800px){.admin-detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.admin-detail-grid{grid-template-columns:1fr}.admin-status-form-wide{flex-direction:column}.admin-status-form-wide select{max-width:none}.admin-status-form-wide .btn{width:100%}.order-hero-actions{align-items:flex-start;flex-direction:column}.admin-order-right{align-items:stretch}.admin-order-right .btn{width:100%}}

.admin-dashboard-grid-two{grid-template-columns:1.25fr 1fr;margin-top:15px}.dashboard-attention-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dashboard-attention-cards>div{border:1px solid #e5e7eb;border-radius:12px;padding:13px}.dashboard-attention-cards span{display:block;font-size:.68rem;color:#64748b;font-weight:750}.dashboard-attention-cards strong{display:block;font-size:1.35rem;font-weight:900;margin:3px 0}.dashboard-attention-cards small{font-size:.62rem;color:#94a3b8}.dashboard-links{height:100%}.dashboard-link-list{display:flex;flex-direction:column}.dashboard-link-list a{display:grid;grid-template-columns:25px 1fr 15px;align-items:center;gap:7px;padding:12px 4px;border-bottom:1px solid #eef2f7;text-decoration:none;color:#111827;font-size:.78rem}.dashboard-link-list a:last-child{border-bottom:0}.dashboard-link-list a:hover{background:#f8fafc}.dashboard-link-list b{color:#94a3b8}@media(max-width:850px){.admin-dashboard-grid-two{grid-template-columns:1fr}}@media(max-width:600px){.dashboard-attention-cards{grid-template-columns:1fr 1fr}.dashboard-attention-cards>div:last-child{grid-column:1/-1}}

.inventory-alert-stats{grid-template-columns:repeat(3,1fr)}.btn-outline-danger{border-color:#dc2626;color:#b91c1c}.btn-outline-danger:hover{background:#fee2e2;color:#991b1b}@media(max-width:600px){.inventory-alert-stats{grid-template-columns:1fr 1fr}.inventory-alert-stats .inventory-stat:last-child{grid-column:1/-1}}

.supplier-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:15px}.supplier-info-grid{display:grid;grid-template-columns:330px 1fr;gap:15px}.supplier-info-grid .panel{margin:0}.supplier-purchase-panel{padding:0;overflow:hidden}@media(max-width:800px){.supplier-info-grid{grid-template-columns:1fr}}@media(max-width:600px){.supplier-summary-grid{grid-template-columns:1fr 1fr}.supplier-summary-grid .inventory-stat:last-child{grid-column:1/-1}.admin-head-actions{width:100%;flex-direction:column}.admin-head-actions .btn{width:100%}}

.stock-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.stock-summary-card{display:flex;flex-direction:column;gap:3px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:13px;text-decoration:none;color:#111827}.stock-summary-card:hover{background:#f8fafc}.stock-summary-card span{font-size:.68rem;color:#64748b;font-weight:750}.stock-summary-card strong{font-size:1.35rem;font-weight:900}.stock-summary-card.warning strong{color:#d97706}.stock-summary-card.danger strong{color:#dc2626}@media(max-width:700px){.stock-summary-strip{grid-template-columns:1fr 1fr}}

.dashboard-low-stock-panel{margin-top:15px}.dashboard-low-stock-list{display:flex;flex-direction:column}.dashboard-alert-row{display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:8px;padding:12px 4px;border-bottom:1px solid #eef2f7;text-decoration:none;color:#111827}.dashboard-alert-row:last-child{border-bottom:0}.dashboard-alert-row:hover{background:#f8fafc}.dashboard-alert-row strong{display:block;font-size:.78rem}.dashboard-alert-row small{display:block;color:#64748b;font-size:.65rem;margin-top:2px}.dashboard-alert-row b{color:#94a3b8}

.inventory-history-actions{display:flex;gap:7px;align-items:center}@media(max-width:600px){.inventory-history-actions{width:100%;flex-direction:column}.inventory-history-actions .btn{width:100%}}

.audit-filter-panel{margin-bottom:15px}.audit-filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.audit-filter-grid label{display:block;font-size:.65rem;text-transform:uppercase;font-weight:800;color:#64748b;margin-bottom:4px}.audit-filter-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.audit-stats{grid-template-columns:repeat(3,1fr)}@media(max-width:800px){.audit-filter-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.audit-filter-grid,.audit-stats{grid-template-columns:1fr}.audit-filter-actions{flex-direction:column}.audit-filter-actions .btn{width:100%}}

.dashboard-audit-panel{margin-top:15px}.dashboard-audit-links{display:flex;flex-direction:column}.dashboard-audit-links a{display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:8px;padding:12px 4px;border-bottom:1px solid #eef2f7;text-decoration:none;color:#111827;font-size:.78rem}.dashboard-audit-links a:last-child{border-bottom:0}.dashboard-audit-links a:hover{background:#f8fafc}.dashboard-audit-links b{color:#94a3b8}

.health-stat-grid{grid-template-columns:repeat(5,1fr)}.health-meter{display:flex;flex-direction:column;gap:13px}.health-meter-row{display:grid;grid-template-columns:90px 1fr 55px;align-items:center;gap:10px;font-size:.75rem}.health-meter-row strong{text-align:right}.health-track{height:10px;background:#eef2f7;border-radius:99px;overflow:hidden}.health-fill{height:100%;border-radius:99px}.health-fill.healthy{background:#16a34a}.health-fill.low{background:#f59e0b}.health-fill.out{background:#dc2626}.health-badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:.62rem;font-weight:800}.health-badge.good{background:#dcfce7;color:#166534}.health-badge.attention{background:#fef3c7;color:#92400e}.health-badge.critical{background:#fee2e2;color:#991b1b}@media(max-width:900px){.health-stat-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.health-stat-grid{grid-template-columns:1fr 1fr}.health-stat-grid .inventory-stat:last-child{grid-column:1/-1}.health-meter-row{grid-template-columns:70px 1fr 48px}}

.reorder-stat-grid{grid-template-columns:repeat(3,1fr)}@media(max-width:600px){.reorder-stat-grid{grid-template-columns:1fr}}


.product-detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 25px;
    margin-top: 15px;
}

.product-detail-image {
    min-height: 420px;
    background: #f8fafc;
    border-radius: 15px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

    .product-detail-image img {
        width: 100%;
        height: 100%;
        max-height: 420px;
        object-fit: contain;
    }

.product-detail-placeholder {
    font-size: 5rem;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-category {
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    font-size: .75rem;
}

.product-detail-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 850;
    margin: 6px 0;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 850;
    margin: 10px 0 15px;
}

.product-detail-stock {
    margin: 10px 0;
    color: #16a34a;
    font-weight: 700;
}

    .product-detail-stock .out {
        color: #dc2626;
    }

.product-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

    .product-detail-meta div {
        background: #f8fafc;
        padding: 12px;
        border-radius: 10px;
    }

    .product-detail-meta small {
        display: block;
        color: #64748b;
    }

    .product-detail-meta strong {
        display: block;
        margin-top: 3px;
    }

.product-shop-button {
    margin-top: 10px;
    width: fit-content;
}

@media (max-width: 700px) {

    .product-detail-card {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 20px;
    }

    .product-detail-image {
        min-height: 280px;
    }

        .product-detail-image img {
            max-height: 280px;
        }

    .product-detail-meta {
        grid-template-columns: 1fr 1fr;
    }

    .product-shop-button {
        width: 100%;
    }
}

.purchase-plan-supplier .inventory-section-head h2{margin:3px 0;font-size:1.15rem}.purchase-plan-supplier .inventory-section-head p{margin:0;color:#64748b;font-size:.8rem}.purchase-plan-page .inventory-stat strong{font-size:1.35rem}.purchase-plan-page .health-badge{white-space:nowrap}
@media(max-width:700px){.purchase-plan-page .inventory-head{gap:12px}.purchase-plan-page .inventory-actions{display:grid;grid-template-columns:1fr 1fr}.purchase-plan-page .inventory-actions .btn:first-child{grid-column:1/-1}.purchase-plan-supplier .inventory-section-head{align-items:flex-start;flex-direction:column}.purchase-plan-supplier .inventory-section-head .btn{width:100%}}
@media print{.purchase-plan-page .panel{break-inside:avoid}.purchase-plan-page .no-print{display:none!important}}

/* Product media gallery enhancement */
.product-gallery{min-width:0}.product-gallery-stage{position:relative;aspect-ratio:1/1;background:#f8fafc;border-radius:16px;overflow:hidden;display:grid;place-items:center}.gallery-slide{display:none;width:100%;height:100%}.gallery-slide.active{display:grid;place-items:center}.gallery-slide img,.gallery-slide video{width:100%;height:100%;object-fit:contain;background:#f8fafc}.gallery-slide video{object-fit:contain}.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(17,24,39,.75);color:#fff;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer;z-index:3}.gallery-prev{left:12px}.gallery-next{right:12px}.product-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:10px 2px 2px;scrollbar-width:thin}.gallery-thumb{position:relative;flex:0 0 72px;width:72px;height:72px;padding:0;border:2px solid transparent;border-radius:10px;background:#f8fafc;overflow:hidden;cursor:pointer}.gallery-thumb.active{border-color:#111827}.gallery-thumb img{width:100%;height:100%;object-fit:cover}.video-thumb{width:100%;height:100%;display:grid;place-items:center;background:#111827;color:#fff;font-size:25px}.video-thumb span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.18)}.media-main-preview{display:inline-flex;padding:8px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc}.admin-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-media-card{border:1px solid #e5e7eb;border-radius:13px;overflow:hidden;background:#fff}.admin-media-card>img,.admin-media-card>video{display:block;width:100%;height:150px;object-fit:cover;background:#f8fafc}.admin-media-meta{padding:9px 10px 5px}.admin-media-actions{padding:0 10px 10px;display:flex;gap:6px;flex-wrap:wrap}.admin-media-actions form{margin:0}.admin-media-card .btn{font-size:.75rem}.media-badge{position:absolute;right:8px;top:8px;background:rgba(17,24,39,.8);color:#fff;border-radius:999px;padding:4px 8px;font-size:.7rem;font-weight:800}
@media(max-width:767px){.product-detail-card{grid-template-columns:1fr!important}.product-gallery-stage{border-radius:13px}.gallery-thumb{flex-basis:62px;width:62px;height:62px}.admin-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-media-card>img,.admin-media-card>video{height:125px}.gallery-nav{width:38px;height:38px;font-size:26px}}
@media(max-width:420px){.admin-media-grid{grid-template-columns:1fr 1fr}.admin-media-actions .btn{padding:.35rem .5rem}}
/* Phase 5AD - Product media fullscreen viewer */
.media-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:54px 70px}.media-lightbox[hidden]{display:none}.media-lightbox-content{width:min(1100px,92vw);height:min(86vh,900px);display:flex;align-items:center;justify-content:center}.media-lightbox-content img,.media-lightbox-content video{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px}.media-lightbox-close,.media-lightbox-nav{position:absolute;border:0;color:#fff;background:rgba(255,255,255,.14);cursor:pointer;display:grid;place-items:center}.media-lightbox-close{right:20px;top:15px;width:44px;height:44px;border-radius:50%;font-size:32px}.media-lightbox-nav{top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;font-size:36px}.media-lightbox-prev{left:18px}.media-lightbox-next{right:18px}.media-lightbox-counter{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#fff;background:rgba(0,0,0,.45);padding:5px 10px;border-radius:999px;font-size:.8rem}.media-lightbox-open{overflow:hidden}.gallery-slide img,.gallery-slide video{cursor:zoom-in}
@media(max-width:600px){.media-lightbox{padding:45px 12px}.media-lightbox-content{width:100%;height:78vh}.media-lightbox-nav{width:38px;height:38px;font-size:28px}.media-lightbox-prev{left:7px}.media-lightbox-next{right:7px}.media-lightbox-close{right:10px;top:8px}}

/* Phase 5AE - premium product media interactions */
.product-gallery-stage{touch-action:pan-y;}
.product-gallery-stage .gallery-slide img{transition:transform .22s ease,filter .22s ease;}
.product-gallery-stage .gallery-slide img:hover{transform:scale(1.035);}
.gallery-thumb{transition:transform .16s ease,opacity .16s ease;}
.gallery-thumb:hover{transform:translateY(-2px);opacity:.92;}
.media-lightbox-content{touch-action:none;overflow:hidden;user-select:none;}
.media-lightbox-content img{transform-origin:center center;transition:transform .12s ease;cursor:grab;}
.media-lightbox-content img:active{cursor:grabbing;}
.media-lightbox-content video{touch-action:auto;}
.media-lightbox-hint{position:absolute;top:18px;left:50%;transform:translateX(-50%);color:#fff;background:rgba(0,0,0,.45);padding:6px 10px;border-radius:999px;font-size:.72rem;pointer-events:none;}
.product-reviews-section{max-width:1200px;margin:28px auto;padding:24px;background:#fff;border-radius:18px;box-shadow:0 4px 20px rgba(0,0,0,.06)}
.reviews-header{display:flex;justify-content:space-between;align-items:center}.reviews-header h2{margin:0 0 8px}.reviews-summary{display:flex;align-items:center;gap:10px}.reviews-summary strong{font-size:28px}.stars{letter-spacing:2px}.review-form{display:grid;gap:8px;max-width:620px;margin:20px 0;padding:18px;border:1px solid #eee;border-radius:14px}.review-form select,.review-form textarea{padding:10px;border:1px solid #ddd;border-radius:10px}.review-card{padding:16px 0;border-top:1px solid #eee}.review-card-top{display:flex;justify-content:space-between;gap:15px}.review-card p{margin:8px 0 0;white-space:pre-wrap}.reviews-list small{color:#777}@media(max-width:600px){.product-reviews-section{margin:16px 10px;padding:18px}.review-card-top{align-items:flex-start;flex-direction:column;gap:4px}}

/* Phase 5AI - Product Questions & Answers */
.product-qa-section{max-width:1200px;margin:22px auto 40px;padding:24px;background:#fff;border-radius:18px;box-shadow:0 4px 20px rgba(0,0,0,.06)}.qa-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.qa-header h2{margin:0 0 5px}.qa-count{min-width:34px;height:34px;border-radius:999px;background:#f1f5f9;display:grid;place-items:center;font-weight:700}.qa-form{display:grid;gap:8px;max-width:700px;margin:18px 0}.qa-form textarea{padding:12px;border:1px solid #ddd;border-radius:12px;resize:vertical}.qa-card{border-top:1px solid #eee;padding:18px 0}.qa-card>div:first-child{display:grid;grid-template-columns:28px 1fr;column-gap:10px}.qa-card>div:first-child strong,.qa-answer strong{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:.78rem}.qa-card p{margin:0;white-space:pre-wrap}.qa-card small{grid-column:2;color:#777}.qa-answer{display:grid;grid-template-columns:28px 1fr;column-gap:10px;margin:14px 0 0 38px;padding:12px;background:#f8fafc;border-radius:12px}.qa-answer small{grid-column:2}.qa-unanswered{margin:12px 0 0 38px;color:#94a3b8;font-size:.85rem}@media(max-width:600px){.product-qa-section{margin:16px 10px;padding:18px}.qa-header{flex-direction:column}.qa-answer{margin-left:20px}}
.qa-admin-card .qa-question{font-size:1rem}.qa-admin-card .qa-answer{display:block;background:#f8fafc;padding:12px;border-radius:10px;line-height:1.6;overflow-wrap:anywhere}.qa-admin-card .qa-answer>strong{display:inline-grid;vertical-align:middle;margin-right:8px}.qa-admin-card .qa-answer .small{display:block;margin-top:8px;line-height:1.4;overflow-wrap:anywhere}.qa-answer-form textarea{resize:vertical}.qa-answer-form{max-width:900px}

/* Phase 5AJ - customer product Q&A notifications */
.account-unread-badge{display:inline-block;margin-left:7px;padding:3px 7px;border-radius:999px;background:#111827;color:#fff;font-size:.68rem;font-weight:700;vertical-align:middle}.notification-unread-summary{display:inline-block;margin-top:8px;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:.78rem;font-weight:700}.notification-item.unread{background:#f8fbff}.notification-item.unread .notification-content strong{font-weight:850}.new-badge{display:inline-block;margin-left:7px;padding:2px 6px;border-radius:999px;background:#111827;color:#fff;font-size:.58rem;letter-spacing:.04em;vertical-align:middle}.qa-header-actions{display:flex;align-items:center;gap:8px}.my-questions-panel{padding:0;overflow:hidden}.my-questions-list{display:flex;flex-direction:column}.my-question-card{padding:20px;border-bottom:1px solid #eef2f7}.my-question-card:last-child{border-bottom:0}.my-question-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.my-question-top small{font-size:.65rem;color:#94a3b8;font-weight:800;letter-spacing:.08em}.my-question-top h2{font-size:1rem;margin:4px 0 0}.my-question-q,.my-question-a{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start}.my-question-q strong,.my-question-a>strong{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:.75rem}.my-question-q p,.my-question-a p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.my-question-a{margin-top:14px;padding:13px;background:#f8fafc;border-radius:12px}.my-question-a>div{min-width:0}.my-question-a small{color:#64748b;display:block;margin-top:7px;overflow-wrap:anywhere}.my-question-pending{margin-top:14px;padding:10px 12px;background:#f8fafc;color:#64748b;border-radius:10px;font-size:.84rem}@media(max-width:600px){.qa-header-actions{width:100%;justify-content:space-between}.my-question-top{flex-direction:column}.my-question-top .btn{width:100%}}

/* Phase 5AK - product detail purchasing */
.product-detail-purchase{margin-top:24px;padding:16px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa}.product-detail-purchase>label{display:block;font-size:.78rem;font-weight:800;color:#475569;margin-bottom:8px}.product-quantity-row{display:flex;align-items:center;gap:8px}.product-qty-btn{width:42px;height:42px;border:1px solid #dbe1e8;background:#fff;border-radius:10px;font-size:1.35rem;cursor:pointer}.product-qty-btn:disabled{opacity:.5;cursor:not-allowed}.product-qty-input{width:72px;height:42px;border:1px solid #dbe1e8;border-radius:10px;text-align:center;font-weight:800;font-size:1rem}.product-purchase-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.product-purchase-actions .btn{width:100%;min-height:44px}.product-cart-feedback{min-height:20px;margin-top:9px;font-size:.8rem;font-weight:700}.product-cart-feedback.success{color:#16834b}.product-cart-feedback.error{color:#b42318}.product-continue-shopping{display:inline-block;margin-top:12px;color:#475569;text-decoration:none;font-size:.85rem;font-weight:700}.product-continue-shopping:hover{text-decoration:underline}@media(max-width:600px){.product-detail-purchase{padding:13px}.product-purchase-actions{grid-template-columns:1fr}.product-qty-btn{width:44px;height:44px}.product-qty-input{flex:1;max-width:100px}}

/* Phase 5AL - Online Store catalog filters */
.price-filter{height:43px;border:1px solid #dbe1e8;border-radius:11px;background:#fff;display:flex;align-items:center;gap:5px;padding:0 8px;min-width:210px}.price-filter input{border:0;outline:0;width:82px;min-width:0;padding:9px 2px;background:transparent}.price-filter span{color:#94a3b8}.shop-rating{display:flex;align-items:center;gap:5px;min-height:20px;font-size:.78rem;margin-bottom:2px}.shop-rating span{font-size:.95rem}.shop-rating strong{font-size:.76rem}.shop-rating small{color:#64748b}.shop-page-label{margin-left:auto}.shop-pagination{display:flex;justify-content:center;align-items:center;gap:6px;margin:24px 0 8px;flex-wrap:wrap}.shop-pagination a{min-width:38px;height:38px;padding:0 11px;border:1px solid #dbe1e8;border-radius:9px;background:#fff;color:#334155;text-decoration:none;display:grid;place-items:center;font-weight:750}.shop-pagination a.active{background:#111827;color:#fff;border-color:#111827}.shop-pagination a:hover{border-color:#94a3b8}
@media(max-width:1200px){.shop-filters{grid-template-columns:minmax(220px,1fr) 160px 160px 1fr 150px auto auto auto}.price-filter{min-width:0}.price-filter input{width:100%}}
@media(max-width:1000px){.shop-filters{grid-template-columns:1fr 1fr}.shop-search{grid-column:1/-1}.price-filter{width:100%}.shop-page-label{margin-left:auto}}
@media(max-width:700px){.shop-page-label{width:100%;margin-left:0}.shop-result-bar{flex-wrap:wrap}.price-filter{min-height:43px}}

/* Phase 5AM - related products */
.related-products-section{max-width:1200px;margin:22px auto 40px;padding:24px;background:#fff;border-radius:18px;box-shadow:0 4px 20px rgba(0,0,0,.06)}
.related-products-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}.related-products-header h2{margin:3px 0 4px}.related-products-header p{margin:0;color:#64748b}.related-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.related-product-card{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff;min-width:0}.related-product-media{position:relative;display:grid;place-items:center;aspect-ratio:1/1;background:#f8fafc;text-decoration:none;overflow:hidden}.related-product-media img,.related-product-media video{width:100%;height:100%;object-fit:cover}.related-video-badge{position:absolute;left:10px;bottom:10px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(17,24,39,.8);color:#fff}.related-placeholder{font-size:42px}.related-product-body{padding:12px}.related-product-name{display:block;color:#111827;text-decoration:none;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.related-product-name:hover{text-decoration:underline}.related-product-rating{margin:6px 0;color:#64748b;font-size:.76rem}.related-product-body strong{display:block;font-size:1rem}.related-stock{display:inline-block;margin-top:5px;color:#16834b;font-size:.72rem;font-weight:800}.related-stock.out{color:#b42318}@media(max-width:900px){.related-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.related-products-section{margin:16px 10px;padding:18px}.related-products-header{align-items:flex-start;flex-direction:column}.related-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.related-product-body{padding:10px}}


/* Phase 5AN - wishlist personalization */
.wishlist-hero-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end}
.wishlist-toolbar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.wishlist-count-pill{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 9px;border-radius:999px;background:#111;color:#fff;font-size:.9rem;vertical-align:middle}
.wishlist-card .wishlist-image{overflow:hidden}
.wishlist-card .wishlist-image video,.wishlist-card .wishlist-image img{width:100%;height:100%;object-fit:cover;display:block}
.wishlist-body h2 a{color:inherit;text-decoration:none}
@media(max-width:700px){.wishlist-hero-row{align-items:stretch;flex-direction:column}.wishlist-toolbar{justify-content:space-between}.wishlist-toolbar form{flex:1}.wishlist-toolbar .btn{width:100%}}


/* Phase 5AN UI Fix 2 - always-visible wishlist header count */
.wishlist-header-link{display:inline-flex!important;align-items:center;gap:.35rem;white-space:nowrap}
.wishlist-header-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#111827;color:#fff!important;font-size:.72rem;font-weight:800;line-height:1}
.media-fallback-empty{display:grid!important;place-items:center;background:#f8fafc}
@media(max-width:700px){.wishlist-header-link{padding:.42rem .55rem!important}.wishlist-header-count{min-width:20px;height:20px;padding:0 5px;font-size:.68rem}}


/* Phase 5AO - Amazon-style search, definitive responsive implementation */
.amazon-search-form{position:relative;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.amazon-search-box{position:relative;display:flex;align-items:stretch;flex:1 1 620px;min-width:280px;height:50px;border:2px solid #111827;border-radius:10px;background:#fff;overflow:visible;box-sizing:border-box;z-index:20}
.amazon-search-category{width:108px;flex:0 0 108px;height:46px;border:0;border-right:1px solid #d1d5db;background:#f3f4f6;padding:0 10px;font-size:.82rem;color:#374151;outline:0;border-radius:8px 0 0 8px}
.amazon-search-input-wrap{position:relative;display:flex;align-items:center;flex:1;min-width:0;height:46px}
.amazon-search-icon{font-size:1.15rem;color:#64748b;margin-left:11px;line-height:1}
.amazon-search-input-wrap input{height:44px;flex:1;border:0;outline:0;padding:0 40px 0 9px;font-size:.95rem;min-width:0;color:#111827;background:#fff}
.amazon-search-button{width:58px;flex:0 0 58px;height:46px;border:0;background:#fbbf24;color:#111827;font-size:1.15rem;cursor:pointer;border-radius:0 7px 7px 0}
.amazon-search-button:hover{background:#f59e0b}
.amazon-clear-search{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#475569;font-size:1.2rem;line-height:30px;cursor:pointer;padding:0}
.amazon-clear-search:hover{background:#f1f5f9}
.amazon-search-suggestions{position:absolute;left:0;right:0;top:52px;background:#fff;border:1px solid #cbd5e1;border-radius:0 0 12px 12px;box-shadow:0 14px 34px rgba(15,23,42,.18);z-index:5000;overflow:hidden;max-height:min(62vh,520px);overflow-y:auto;-webkit-overflow-scrolling:touch}
.suggestion-section{display:block}
.suggestion-heading{padding:9px 14px 7px;font-size:.68rem;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#64748b;background:#f8fafc;border-top:1px solid #eef2f7}
.suggestion-section:first-child .suggestion-heading{border-top:0}
.suggestion-row{display:flex!important;align-items:center!important;gap:11px!important;width:100%!important;min-height:54px!important;box-sizing:border-box!important;padding:8px 14px!important;color:#111827!important;text-decoration:none!important;border-top:1px solid #f1f5f9!important;background:#fff!important;overflow:hidden!important}
.suggestion-row:hover,.suggestion-row.active{background:#f1f5f9!important}
.suggestion-leading{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;font-size:1rem;line-height:1}
.suggestion-thumb{flex:0 0 48px;width:48px;height:48px;border-radius:8px;object-fit:cover;background:#f8fafc;border:1px solid #e5e7eb;display:block}
.suggestion-thumb-fallback{display:grid;place-items:center;font-size:1.05rem}
.suggestion-copy{display:flex!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:2px!important;line-height:1.2!important;overflow:hidden!important;text-align:left!important}
.suggestion-arrow{flex:0 0 auto;font-size:1.5rem;line-height:1;color:#94a3b8;padding-left:4px}
.suggestion-title{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.88rem!important;font-weight:750!important;line-height:1.25!important;color:#111827!important}
.suggestion-meta{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:.7rem!important;line-height:1.25!important;color:#64748b!important}
.suggestion-search-all{display:block;width:100%;min-height:48px;border:0;border-top:1px solid #dbe1e8;background:#fff;padding:0 14px;text-align:left;font-weight:850;color:#111827;cursor:pointer;line-height:1.25}
.suggestion-search-all:hover,.suggestion-search-all.active{background:#f8fafc}
.suggestion-no-results{padding:15px 14px;color:#475569;font-size:.82rem;line-height:1.45}
.suggestion-no-results span{color:#94a3b8}
.amazon-recent-searches{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 9px}
.amazon-recent-searches>span{font-size:.72rem;font-weight:800;color:#64748b}
.amazon-recent-searches button{border:1px solid #dbe1e8;background:#fff;border-radius:999px;padding:6px 10px;color:#334155;font-size:.72rem;cursor:pointer;white-space:nowrap}
.amazon-recent-searches button:hover{background:#f8fafc}
.catalog-sort{min-width:155px}
.store-mobile-filter-toggle{display:none}
.store-mobile-filter-panel{display:contents}

@media(max-width:1000px){
    .amazon-search-form{display:grid;grid-template-columns:1fr 1fr}
    .amazon-search-box{grid-column:1/-1;width:100%}
    .catalog-sort{width:100%}
}

@media(max-width:700px){
    /* PWA83 - keep the Store category rail horizontally scrollable.
       The previous overflow-x:clip on .shop-page could clip/interfere with the
       nested horizontal category scroller on touch devices. */
    .shop-page{width:100%;max-width:100%;overflow-x:visible!important}
    .shop-hero{padding:0 2px;margin-bottom:12px}
    .shop-hero h1{font-size:1.5rem;line-height:1.15}
    .shop-hero p{font-size:.82rem;line-height:1.35}
    .store-category-bar{display:flex!important;width:100%!important;max-width:100vw!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;touch-action:pan-x;cursor:grab;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:7px!important;padding:2px 1px 8px!important;margin:0 -2px 10px!important}
    .store-category-bar:active{cursor:grabbing}
    .store-category-bar::-webkit-scrollbar{display:none}
    .store-category-btn{flex:0 0 auto!important;min-height:36px!important;padding:0 13px!important;white-space:nowrap!important;font-size:.78rem!important}

    .amazon-search-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin-bottom:9px!important}
    .amazon-search-box{display:grid!important;grid-template-columns:82px minmax(0,1fr) 48px!important;width:100%!important;min-width:0!important;height:50px!important;min-height:50px!important;flex:none!important;border:2px solid #111827!important;border-radius:10px!important;background:#fff!important;overflow:visible!important;box-sizing:border-box!important}
    .amazon-search-category{width:100%!important;min-width:0!important;height:46px!important;border-right:1px solid #d1d5db!important;border-radius:8px 0 0 8px!important;padding:0 7px!important;font-size:.72rem!important;background:#f3f4f6!important}
    .amazon-search-input-wrap{width:100%!important;min-width:0!important;height:46px!important}
    .amazon-search-input-wrap input{width:100%!important;min-width:0!important;height:44px!important;padding:0 34px 0 8px!important;font-size:.9rem!important}
    .amazon-search-icon{display:none!important}
    .amazon-search-button{width:100%!important;height:46px!important;min-width:0!important;border-radius:0 7px 7px 0!important;font-size:1rem!important}
    .amazon-clear-search{right:4px!important;width:28px!important;height:28px!important;font-size:1.05rem!important;line-height:28px!important}

    .amazon-search-suggestions{position:absolute!important;left:0!important;right:0!important;top:51px!important;width:100%!important;max-height:min(58vh,460px)!important;border-radius:0 0 12px 12px!important;box-shadow:0 14px 30px rgba(15,23,42,.22)!important;z-index:5000!important}
    .suggestion-heading{padding:8px 12px 6px!important;font-size:.65rem!important}
    .suggestion-row{min-height:64px!important;height:64px!important;padding:8px 12px!important;gap:10px!important;text-align:left!important}
    .suggestion-leading{flex-basis:28px!important;width:28px!important;height:28px!important;font-size:.98rem!important}
    .suggestion-thumb{flex-basis:46px!important;width:46px!important;height:46px!important;border-radius:8px!important}
    .suggestion-copy{gap:2px!important;line-height:1.2!important}
    .suggestion-title{font-size:.84rem!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .suggestion-meta{font-size:.67rem!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
    .suggestion-search-all{min-height:50px!important;height:50px!important;padding:0 12px!important;font-size:.82rem!important}
    .suggestion-no-results{padding:14px 12px!important}

    .store-mobile-filter-toggle{display:flex!important;width:100%!important;min-height:42px!important;align-items:center!important;justify-content:center!important;border:1px solid #d1d5db!important;border-radius:9px!important;background:#fff!important;color:#111827!important;font-weight:800!important;cursor:pointer!important;padding:0 12px!important}
    .store-mobile-filter-toggle[aria-expanded="true"]{background:#f3f4f6!important}
    .store-mobile-filter-panel{display:none!important;width:100%!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#f8fafc!important;box-sizing:border-box!important}
    .amazon-search-form.filters-open .store-mobile-filter-panel{display:grid!important}
    .store-mobile-filter-panel .catalog-sort,.store-mobile-filter-panel>select,.store-mobile-filter-panel>.price-filter,.store-mobile-filter-panel>.stock-filter,.store-mobile-filter-panel>button[type="submit"],.store-mobile-filter-panel>a{width:100%!important;min-width:0!important;box-sizing:border-box!important}
    .store-mobile-filter-panel .catalog-sort,.store-mobile-filter-panel>select{height:42px!important}
    .store-mobile-filter-panel .price-filter{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:5px!important}
    .store-mobile-filter-panel .price-filter input{width:100%!important;min-width:0!important;height:42px!important;box-sizing:border-box!important;border:1px solid #dbe1e8!important;border-radius:9px!important;padding:0 8px!important}
    .store-mobile-filter-panel .stock-filter{min-height:42px!important;display:flex!important;align-items:center!important;gap:7px!important;white-space:normal!important;padding:0 8px!important;background:#fff!important;border:1px solid #dbe1e8!important;border-radius:9px!important}
    .store-mobile-filter-panel>button[type="submit"],.store-mobile-filter-panel>a{height:42px!important;line-height:42px!important;padding:0 10px!important}
    .store-mobile-filter-panel>button[type="submit"]{background:#111827!important;color:#fff!important;border:0!important;border-radius:9px!important;font-weight:800!important}
    .store-mobile-filter-panel>a{background:#fff!important;border:1px solid #dbe1e8!important;border-radius:9px!important;text-align:center!important}
    .amazon-recent-searches{margin:0 0 8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:2px!important}
    .amazon-recent-searches button{flex:0 0 auto!important;min-height:34px!important}
    .shop-result-bar{align-items:center!important;flex-wrap:wrap!important;margin:8px 0 10px!important;font-size:.78rem!important}
    .shop-page-label{margin-left:auto!important}
}

@media(max-width:420px){
    .amazon-search-box{grid-template-columns:76px minmax(0,1fr) 46px!important}
    .amazon-search-category{font-size:.68rem!important}
    .amazon-search-input-wrap input{font-size:.86rem!important}
    .store-mobile-filter-panel{grid-template-columns:1fr!important}
    .shop-grid{gap:8px!important}
    .shop-image-wrap{height:150px!important}
}

/* Phase 5AP - Store quick view */
.shop-actions{flex-wrap:wrap}.store-quick-view-btn{width:100%;border:1px solid #dbe1e8;background:#fff;color:#111827;border-radius:9px;padding:8px 10px;font-weight:800;cursor:pointer}.store-quick-view-btn:hover{background:#f8fafc}.store-quick-view{position:fixed;inset:0;z-index:2147483005;display:grid;place-items:center;padding:20px;isolation:isolate}.store-quick-view[hidden]{display:none}.store-quick-view-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.62);backdrop-filter:blur(3px)}.store-quick-dialog{position:relative;width:min(900px,96vw);max-height:min(720px,92vh);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.35);z-index:1}.store-quick-close{position:absolute;right:12px;top:12px;width:40px;height:40px;border:0;border-radius:50%;background:#111827;color:#fff;font-size:25px;line-height:1;z-index:3;cursor:pointer}.store-quick-content{display:grid;grid-template-columns:1.05fr .95fr;min-height:430px}.quick-media-panel{background:#f8fafc;display:flex;align-items:center;justify-content:center;gap:10px;padding:26px;min-height:430px;overflow:auto}.quick-media{max-width:100%;max-height:430px;width:100%;height:100%;object-fit:contain;border-radius:12px}.quick-media-panel .quick-media~.quick-media{display:none}.quick-media-placeholder{font-size:5rem}.quick-info{padding:42px 34px 30px}.quick-category{font-size:.72rem;text-transform:uppercase;color:#94a3b8;font-weight:850}.quick-info h2{font-size:1.8rem;line-height:1.15;margin:7px 0}.quick-sku{font-size:.8rem;color:#64748b}.quick-rating{margin:12px 0;color:#b45309;font-weight:800}.quick-rating span{color:#64748b;font-weight:600}.quick-price{font-size:1.6rem;font-weight:900;margin:10px 0}.quick-promo{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:8px 0 12px;padding:10px 12px;border:1px solid #fed7aa;background:#fff7ed;border-radius:10px}.quick-promo strong{font-size:.78rem;color:#c2410c}.quick-promo span{font-size:.75rem;font-weight:800;color:#15803d}.quick-promo small{width:100%;font-size:.68rem;color:#64748b}.quick-coupons{margin:12px 0;padding:11px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.quick-offer-title{font-size:.78rem;font-weight:900;margin-bottom:7px;color:#334155}.quick-coupon{padding:7px 0;border-top:1px solid #e2e8f0}.quick-coupon:first-of-type{border-top:0}.quick-coupon>div{display:flex;align-items:center;gap:7px}.quick-coupon strong{font-size:.74rem;padding:3px 7px;border-radius:6px;background:#111827;color:#fff;letter-spacing:.03em}.quick-coupon span{font-size:.74rem;font-weight:850;color:#15803d}.quick-coupon small{display:block;margin-top:3px;font-size:.66rem;color:#64748b}.quick-stock{font-size:.85rem;font-weight:750}.quick-stock.available{color:#16a34a}.quick-stock.unavailable{color:#dc2626}.quick-description{color:#475569;line-height:1.55;white-space:pre-line;max-height:130px;overflow:auto}.quick-actions{display:flex;gap:9px;margin-top:20px}.quick-actions a,.quick-actions button{flex:1;min-height:44px;border-radius:10px;padding:10px 14px;text-align:center;font-weight:850;text-decoration:none}.quick-details{border:1px solid #dbe1e8;color:#111827;background:#fff}.quick-add{border:0;background:#111827;color:#fff;cursor:pointer}.quick-add:disabled{background:#e2e8f0;color:#64748b;cursor:not-allowed}.quick-message{min-height:22px;margin-top:10px;font-size:.82rem;font-weight:750;color:#15803d}.quick-loading,.quick-error{display:grid;place-items:center;min-height:430px;padding:30px;color:#64748b}.quick-error{color:#b91c1c}.quick-view-open{overflow:hidden}
@media(max-width:700px){.store-quick-view{padding:0;align-items:end}.store-quick-dialog{width:100%;max-width:none;max-height:88vh;border-radius:20px 20px 0 0}.store-quick-content{grid-template-columns:1fr;min-height:0}.quick-media-panel{min-height:250px;height:250px;padding:14px}.quick-media{max-height:225px}.quick-info{padding:22px 16px 24px}.quick-info h2{font-size:1.35rem;padding-right:35px}.quick-description{max-height:100px}.quick-actions{position:sticky;bottom:0;background:#fff;padding-top:10px}.store-quick-view-btn{order:3}.shop-actions .store-add-btn{min-width:0}.shop-card{min-width:0}}

/* Phase 5AQ - Enhanced product search UI */
.shop-search-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f8fafc);box-shadow:0 8px 24px rgba(15,23,42,.05)}
.shop-hero-badge{display:grid;grid-template-columns:auto 1fr;column-gap:9px;align-items:center;min-width:175px;padding:11px 13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff}.shop-hero-badge span{grid-row:1/3;font-size:1.4rem}.shop-hero-badge strong{font-size:.78rem}.shop-hero-badge small{font-size:.68rem;color:#64748b}
.search-discovery-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#64748b;margin:4px 0 7px}.store-category-bar{scrollbar-width:none}.store-category-btn{transition:all .15s ease}.store-category-btn:hover{transform:translateY(-1px)}
.amazon-search-form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:15px;padding:10px;box-shadow:0 5px 18px rgba(15,23,42,.04)}
.amazon-search-box{height:52px;border-color:#0f172a;box-shadow:0 2px 0 rgba(15,23,42,.04)}.amazon-search-input-wrap input::placeholder{color:#94a3b8}.amazon-search-button{height:48px;font-weight:900}.amazon-search-category{height:48px}
.amazon-recent-searches{padding:2px 2px 4px}.amazon-recent-searches>span{margin-right:2px}.amazon-recent-searches button{transition:background .15s,border-color .15s}.amazon-recent-searches button:hover{border-color:#94a3b8}
.search-active-bar{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 2px;margin:4px 0 2px}.search-active-left{display:flex;align-items:center;gap:7px;white-space:nowrap}.search-active-left strong{font-size:.92rem;color:#111827}.search-context{font-size:.78rem;color:#64748b}.search-context b{color:#334155}.search-active-chips{display:flex;align-items:center;gap:6px;flex:1;flex-wrap:wrap}.search-filter-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:5px 9px;color:#334155;text-decoration:none;font-size:.7rem;font-weight:750;white-space:nowrap}.search-filter-chip:hover{background:#f8fafc;border-color:#94a3b8}.search-filter-chip span{font-size:.95rem;color:#64748b}.search-results-tools{display:flex;justify-content:space-between;align-items:center;padding:7px 2px 11px;font-size:.72rem;color:#94a3b8}.search-results-tools a{color:#475569;text-decoration:none;font-weight:800}.search-results-tools a:hover{text-decoration:underline}
@media(max-width:700px){.shop-search-hero{padding:14px;border-radius:14px;align-items:flex-start}.shop-search-hero p{max-width:290px}.shop-hero-badge{display:none}.search-discovery-label{margin-top:2px}.amazon-search-form{padding:7px;border-radius:13px}.search-active-bar{display:grid;grid-template-columns:1fr auto;gap:5px;align-items:start;padding-top:7px}.search-active-left{display:block;min-width:0}.search-active-chips{grid-column:1/-1;order:3;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}.search-active-chips::-webkit-scrollbar{display:none}.search-filter-chip{flex:0 0 auto}.shop-page-label{white-space:nowrap;font-size:.7rem}.search-results-tools{padding-bottom:8px}}
@media(max-width:420px){.shop-search-hero h1{font-size:1.35rem}.shop-search-hero p{font-size:.76rem}.search-active-left strong{font-size:.84rem}}

/* Phase 5AR - Recently Viewed */
.recently-viewed-section{max-width:1100px;margin:22px auto;padding:22px;background:#fff;border:1px solid #e5e7eb;border-radius:20px}.recently-viewed-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.recently-viewed-header h2{margin:3px 0 4px;font-size:1.35rem;font-weight:850}.recently-viewed-header p{margin:0;color:#64748b}.recently-viewed-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.recently-viewed-card{display:block;min-width:0;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff;text-decoration:none;color:#111827;transition:transform .15s,box-shadow .15s}.recently-viewed-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.09)}.recently-viewed-image{aspect-ratio:1/1;background:#f8fafc;display:grid;place-items:center;color:#94a3b8;font-size:2rem}.recently-viewed-image img{width:100%;height:100%;object-fit:contain}.recently-viewed-body{padding:9px}.recently-viewed-body strong{display:block;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recently-viewed-body span{display:block;margin-top:4px;font-size:.82rem;font-weight:850}@media(max-width:900px){.recently-viewed-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.recently-viewed-section{margin:16px 10px;padding:16px}.recently-viewed-grid{display:flex;overflow-x:auto;gap:10px;padding-bottom:4px;scrollbar-width:none}.recently-viewed-card{flex:0 0 145px}.recently-viewed-header{align-items:flex-start}}

/* Phase 5AS - customer authentication */
.customer-auth-card{position:relative;width:min(470px,100%)}
.customer-auth-back{display:inline-block;text-decoration:none;color:#64748b;font-size:.82rem;margin-bottom:12px}
.customer-auth-back:hover{color:#111827}
.customer-auth-logo{width:48px;height:48px;display:grid;place-items:center;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;font-size:1.45rem;margin-bottom:12px}
.customer-auth-kicker{margin-top:12px;color:#e85d04;font-size:.68rem;font-weight:850;letter-spacing:.14em}
.customer-auth-card h1{margin-top:6px;margin-bottom:7px}
.customer-auth-submit{padding:12px;border-radius:11px;font-weight:800}
.customer-auth-divider{display:flex;align-items:center;gap:10px;color:#94a3b8;font-size:.75rem;margin:18px 0 12px}
.customer-auth-divider:before,.customer-auth-divider:after{content:"";height:1px;background:#e5e7eb;flex:1}
.customer-auth-admin-link{text-align:center;color:#94a3b8;font-size:.75rem;margin-top:18px}
.customer-auth-admin-link a{color:#475569}
@media(max-width:480px){.customer-auth-card{padding:22px;border-radius:16px}.customer-auth-logo{width:44px;height:44px}}
/* Phase 5AU - customer addresses */
.address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.address-card,.empty-address{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.address-card.is-default{border-color:#111827;box-shadow:0 10px 28px rgba(15,23,42,.08)}.address-card-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.address-card-top>div{display:flex;align-items:center;gap:8px}.address-default-badge{font-size:10px;font-weight:800;padding:4px 7px;border-radius:999px;background:#111827;color:#fff}.address-pin{font-weight:700;color:#6b7280}.address-text{line-height:1.65;color:#374151;margin:16px 0}.address-actions{display:flex;gap:8px;flex-wrap:wrap}.empty-address{text-align:center;padding:50px 20px}.empty-address>div{font-size:38px}.address-form-panel{max-width:850px}.address-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.address-form-grid .full{grid-column:1/-1}.address-form-grid label,.save-address-check{font-weight:650;margin-bottom:7px;display:block}.address-default-check{display:flex;align-items:end;padding-bottom:10px}.address-default-check label{font-weight:600}.checkout-address-fields-collapsible{display:none}.checkout-address-fields-collapsible.is-open{display:block}.saved-addresses-checkout{display:grid;gap:10px;margin-bottom:16px}.saved-address-option{display:flex;align-items:center;gap:12px;border:1px solid #e5e7eb;border-radius:14px;padding:14px;cursor:pointer;background:#fff;transition:.15s}.saved-address-option.selected{border-color:#111827;box-shadow:0 4px 14px rgba(15,23,42,.06)}.saved-address-option>input{accent-color:#111827}.saved-address-copy{display:flex;flex-direction:column;gap:3px;flex:1}.saved-address-copy strong{font-size:14px}.saved-address-copy span{font-size:13px;color:#6b7280}.saved-address-copy em{font-style:normal;font-size:9px;background:#111827;color:#fff;border-radius:999px;padding:3px 6px;margin-left:5px}.saved-address-option>b{opacity:.8}.new-address-option{margin-top:2px}.save-address-check{margin-top:15px;color:#374151}@media(max-width:768px){.address-grid,.address-form-grid{grid-template-columns:1fr}.address-form-grid .full{grid-column:auto}.address-card{padding:16px}.address-actions .btn{flex:1}.saved-address-option{padding:12px}.checkout-header h1{font-size:28px}}
/* Phase 5AV customer order history */
.orders-filter-panel{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(130px,1fr)) auto;gap:10px;align-items:end;margin-bottom:14px}.orders-filter-panel label{display:block;font-size:.72rem;font-weight:800;color:#475569;margin:0 0 5px}.orders-filter-panel input,.orders-filter-panel select{width:100%;min-height:40px;border:1px solid #dbe2ea;border-radius:10px;padding:8px 10px;background:#fff}.orders-search{min-width:0}.orders-filter-actions{display:flex;gap:7px}.orders-result-summary{display:flex;justify-content:space-between;color:#64748b;font-size:.75rem;margin:10px 2px}.my-order-card-enhanced{display:block;padding:0;overflow:hidden}.my-order-main{display:block;padding:15px;text-decoration:none;color:#111827}.my-order-meta{display:flex;justify-content:space-between;gap:10px}.my-order-meta small{color:#64748b}.my-order-products{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.my-order-products span{background:#f8fafc;border:1px solid #edf1f5;border-radius:999px;padding:4px 8px;font-size:.68rem;color:#475569}.my-order-bottom{display:flex;justify-content:space-between;align-items:center}.my-order-actions{display:flex;justify-content:flex-end;gap:7px;padding:10px 15px;background:#fafafa;border-top:1px solid #eef2f7}.my-order-actions form{margin:0}@media(max-width:850px){.orders-filter-panel{grid-template-columns:1fr 1fr}.orders-search{grid-column:1/-1}.orders-filter-actions{grid-column:1/-1}.orders-filter-actions .btn{flex:1}}@media(max-width:600px){.orders-filter-panel{grid-template-columns:1fr}.orders-search,.orders-filter-actions{grid-column:auto}.my-order-meta{flex-direction:column;gap:3px}.my-order-actions{justify-content:stretch}.my-order-actions .btn,.my-order-actions form{flex:1}.my-order-actions form .btn{width:100%}}

/* Phase 5AW - customer order tracking */
.tracking-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 18px}.tracking-summary-item{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #e5e7eb;border-radius:14px;background:#fafafa}.tracking-summary-item>span{font-size:1.25rem}.tracking-summary-item small{display:block;color:#64748b;font-size:.68rem}.tracking-summary-item strong{display:block;color:#111827;font-size:.82rem;margin-top:2px;word-break:break-word}.tracking-progress-wrap{margin:4px 0 22px}.tracking-progress-label{display:flex;justify-content:space-between;font-size:.72rem;font-weight:800;color:#475569;margin-bottom:7px}.tracking-progress-label strong{color:#111827}.tracking-progress{height:9px;border-radius:999px;background:#e5e7eb;overflow:hidden}.tracking-progress span{display:block;height:100%;border-radius:999px;background:#111827;transition:width .25s ease}.tracking-timeline-enhanced .tracking-timeline-step{min-height:62px}.tracking-timeline-enhanced .tracking-dot{font-size:.82rem}.tracking-timeline-enhanced .tracking-timeline-step.current strong{font-weight:900}.tracking-timeline-enhanced .tracking-timeline-step.current .tracking-dot{box-shadow:0 0 0 5px rgba(17,24,39,.08)}
@media(max-width:700px){.tracking-summary-strip{grid-template-columns:1fr}.tracking-summary-item{padding:12px}.tracking-progress-wrap{margin-bottom:18px}}

/* Phase 5AY - checkout/payment polish */
.summary-secure{display:flex;gap:9px;align-items:center;padding:10px 11px;margin-bottom:12px;border:1px solid #dcfce7;background:#f0fdf4;border-radius:11px}.summary-secure>span{font-size:1.15rem}.summary-secure div{display:flex;flex-direction:column;gap:1px}.summary-secure strong{font-size:.76rem}.summary-secure small{font-size:.66rem;color:#64748b}.coupon-box{padding:13px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.coupon-input-row{display:grid;grid-template-columns:1fr auto;gap:8px}.coupon-input-row input{min-width:0}.coupon-input-row button{border:0;border-radius:9px;background:#111827;color:#fff;font-weight:800;padding:0 18px;cursor:pointer}.coupon-input-row button:disabled{opacity:.55}.coupon-message{min-height:18px;margin-top:7px;font-size:.72rem;color:#b91c1c;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.coupon-message.success{color:#15803d}.coupon-message.error{color:#b91c1c}.coupon-remove-btn{border:0;background:transparent;color:#2563eb;font:inherit;font-weight:900;cursor:pointer;padding:0;text-decoration:none}.available-coupon.applied{border-color:#86efac;background:#f0fdf4;box-shadow:inset 0 0 0 1px #bbf7d0}.coupon-select-btn.is-applied{border-color:#86efac;background:#dcfce7;color:#15803d;min-width:96px;cursor:default}.coupon-box>small{font-size:.65rem;color:#64748b}.discount-row strong{color:#15803d}@media(max-width:600px){.coupon-input-row{grid-template-columns:1fr}.coupon-input-row button{height:42px}.checkout-place-order{min-height:48px}}
/* Phase 5AZ - admin coupon management */
.coupon-admin-filters{display:grid;grid-template-columns:minmax(0,1fr) 160px auto auto;gap:8px;margin:14px 0 18px}.coupon-admin-filters input,.coupon-admin-filters select{min-height:40px;border:1px solid #dbe2ea;border-radius:10px;padding:8px 11px;background:#fff}.coupon-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.coupon-admin-card{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 7px 22px rgba(15,23,42,.05)}.coupon-admin-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.coupon-admin-top>div:first-child{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.coupon-code{font-weight:900;font-size:1rem;letter-spacing:.04em}.coupon-status{font-size:.65rem;font-weight:800;border-radius:999px;padding:4px 7px}.coupon-status.on{background:#dcfce7;color:#166534}.coupon-status.off{background:#fee2e2;color:#991b1b}.coupon-discount{font-size:1.2rem;font-weight:900}.coupon-admin-card p{color:#64748b;margin:9px 0}.coupon-meta{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.coupon-meta span,.coupon-scope{font-size:.7rem;background:#f8fafc;border:1px solid #edf1f5;border-radius:999px;padding:5px 8px;color:#475569}.coupon-scope{display:inline-block;border-radius:9px;margin-bottom:12px}.coupon-admin-actions{display:flex;gap:7px;flex-wrap:wrap}.coupon-admin-actions form{margin:0}.coupon-form-panel{max-width:920px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:22px;box-shadow:0 7px 22px rgba(15,23,42,.05)}.coupon-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.coupon-form-grid label{display:block;font-weight:700;font-size:.78rem;margin-bottom:6px}.coupon-form-grid input,.coupon-form-grid select{min-height:42px}.coupon-checks{display:flex;gap:20px;margin:18px 0;font-size:.82rem;font-weight:700}.coupon-checks label{display:flex;gap:7px;align-items:center}.coupon-save-btn{min-height:44px;padding:0 20px}@media(max-width:760px){.coupon-admin-filters{grid-template-columns:1fr 1fr}.coupon-admin-filters input{grid-column:1/-1}.coupon-admin-grid{grid-template-columns:1fr}.coupon-form-grid{grid-template-columns:1fr}.coupon-admin-actions>*{flex:1}.coupon-admin-actions .btn{width:100%}}

/* Phase 5AZ - scrollable admin sidebar */
.sidebar {
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #475569; border-radius: 999px; }
.sidebar .nav { padding-bottom: 18px; }
.phase-note { margin-bottom: 10px; }

@media (max-width: 991.98px) {
    .sidebar { height: 100vh; max-height: 100vh; overflow-y: auto; }
}

/* Phase 5BA - automatic product/category promotions */
.shop-sale-badge,.product-sale-badge{display:inline-flex;align-items:center;width:max-content;background:#111827;color:#fff;border-radius:999px;padding:4px 9px;font-size:.62rem;font-weight:900;letter-spacing:.03em;margin:6px 0}.shop-price del,.product-detail-price del,.related-product-body del{color:#94a3b8;font-size:.78em;margin-right:4px}.shop-price strong,.product-detail-price strong{font-weight:950}.deal-filter-toggle{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;font-size:.75rem;font-weight:700;white-space:nowrap}.coupon-form-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;max-width:900px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.coupon-form-card label{font-size:.72rem;font-weight:800;margin-bottom:5px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}@media(max-width:650px){.form-grid{grid-template-columns:1fr}.deal-filter-toggle{width:100%;justify-content:center}}

/* Phase 5BB - Deals & Offers */
.deals-page{max-width:1200px;margin:0 auto}.deals-hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:stretch;margin-bottom:18px}.deals-hero-copy,.deals-countdown-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px}.deals-hero-copy{padding:28px}.deals-hero-copy h1{font-size:clamp(2rem,5vw,3.2rem);font-weight:950;margin:6px 0 8px}.deals-hero-copy p{color:#64748b;max-width:680px;margin:0}.deals-hero-actions{display:flex;gap:12px;align-items:center;margin-top:18px}.deals-count{font-size:.78rem;font-weight:800;color:#64748b}.deals-countdown-card{padding:24px;display:flex;flex-direction:column;justify-content:center;text-align:center;background:#fff7ed}.deals-countdown-card span{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.deals-countdown-card strong{font-size:2rem;font-weight:950;margin:6px 0}.deals-countdown-card small{color:#64748b}.deals-category-strip{display:flex;gap:8px;overflow-x:auto;padding:3px 1px 14px;scrollbar-width:thin}.deals-category{flex:0 0 auto;text-decoration:none;color:#334155;background:#fff;border:1px solid #dbe1e8;border-radius:999px;padding:9px 14px;font-size:.8rem;font-weight:800}.deals-category:hover,.deals-category.active{background:#111827;color:#fff;border-color:#111827}.deals-section-heading{display:flex;align-items:end;justify-content:space-between;margin:8px 2px 12px}.deals-section-heading span{font-size:.7rem;font-weight:900;letter-spacing:.08em;color:#94a3b8}.deals-section-heading h2{margin:3px 0 0;font-size:1.55rem;font-weight:900}.deals-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.deal-card{background:#fff;border:1px solid #e5e7eb;border-radius:17px;overflow:hidden;display:flex;flex-direction:column}.deal-image-link{display:block;text-decoration:none}.deal-image-wrap{height:220px;background:#f8fafc;display:grid;place-items:center;position:relative;overflow:hidden}.deal-image{width:100%;height:100%;object-fit:contain}.deal-badge{position:absolute;z-index:2;left:10px;top:10px;background:#111827;color:#fff;border-radius:7px;padding:6px 9px;font-size:.66rem;font-weight:950}.deal-placeholder{font-size:3.2rem}.deal-body{padding:13px;display:flex;flex-direction:column;min-height:205px}.deal-category{font-size:.66rem;text-transform:uppercase;color:#94a3b8;font-weight:850}.deal-name{color:#111827;text-decoration:none;font-weight:850;line-height:1.25;margin:5px 0 8px;min-height:38px}.deal-prices strong{font-size:1.18rem;font-weight:950}.deal-prices del{color:#94a3b8;margin-left:4px;font-size:.8rem}.deal-saving{font-size:.72rem;font-weight:800;margin-top:4px}.deal-expiry{font-size:.7rem;color:#64748b;margin:7px 0 10px}.deal-expiry span{font-weight:900}.deal-actions{display:grid;grid-template-columns:auto 1fr;gap:7px;margin-top:auto}.deal-actions .btn{font-size:.78rem;font-weight:800}.deals-empty{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:60px 20px}.deals-empty>div{font-size:3rem}.deals-empty h2{margin:8px 0}.deals-empty p{color:#64748b}.deal-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#111827;color:#fff;padding:11px 16px;border-radius:12px;font-size:.82rem;font-weight:750;z-index:9999;transition:.2s}.deal-toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1000px){.deals-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.deals-hero{grid-template-columns:1fr 260px}}@media(max-width:700px){.deals-hero{grid-template-columns:1fr}.deals-hero-copy{padding:22px}.deals-countdown-card{padding:18px}.deals-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.deal-image-wrap{height:165px}.deal-body{padding:10px;min-height:190px}.deal-name{font-size:.88rem}.deal-actions{grid-template-columns:1fr}.deal-actions .btn:first-child{display:none}.deals-section-heading{margin-top:4px}}

/* Phase 5BD - Keep store search visible while browsing */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.amazon-search-form {
    position: sticky;
    top: 64px;
    z-index: 1020;
    margin-top: 6px;
    margin-bottom: 12px;
}
.amazon-search-form .amazon-search-box {
    position: relative;
}

@media (max-width: 700px) {
    .amazon-search-form {
        top: 64px;
        margin-top: 4px;
        padding: 7px;
        box-shadow: 0 8px 20px rgba(15,23,42,.10);
    }
    .amazon-search-suggestions {
        max-height: min(58vh, 460px) !important;
    }
}

/* Phase 5BE - Store search is first and remains pinned below the app header */
.shop-page > .amazon-search-form {
    position: sticky;
    top: 64px;
    z-index: 1020;
    background: rgba(248,250,252,.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
}
.shop-page > .amazon-search-form + #recentStoreSearches { margin-top: 2px; }
@media (max-width:700px){
    .shop-page > .amazon-search-form { top: 64px; margin-left:-2px; margin-right:-2px; }
}

/* Phase 5BE2 - Make the sticky search surface clearly visible */
.shop-page > .amazon-search-form {
    background: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(148, 163, 184, 0.55) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16), 0 2px 7px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(16px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25) !important;
}

.shop-page > .amazon-search-form::after {
    content: "";
    display: block;
    height: 2px;
    margin: 6px 2px -1px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

@media (max-width: 700px) {
    .shop-page > .amazon-search-form {
        background: rgba(255, 255, 255, 0.91) !important;
        border-color: rgba(100, 116, 139, 0.48) !important;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18), 0 3px 9px rgba(15, 23, 42, 0.10) !important;
        backdrop-filter: blur(18px) saturate(1.3) !important;
        -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
    }
}

/* Phase 5BF - Amazon-style product cards */
.shop-card{position:relative;transition:transform .18s ease,box-shadow .18s ease;border:1px solid #e2e8f0;overflow:hidden;background:#fff}
.shop-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.10)}
.shop-card-deal-badge{position:absolute;left:10px;top:10px;z-index:5;background:#111827;color:#fff;border-radius:7px;padding:6px 9px;font-size:.65rem;font-weight:900;box-shadow:0 3px 10px rgba(15,23,42,.16)}
.shop-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}.shop-wishlist-form{margin:0}.shop-wishlist-form .wish-btn{position:static;width:36px;height:36px;border-radius:50%;background:#fff;border:1px solid #e2e8f0;box-shadow:0 2px 8px rgba(15,23,42,.07);font-size:1.15rem}.shop-product-name{display:block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px}.shop-savings{font-size:.72rem;font-weight:900;color:#15803d;margin-top:4px}.shop-delivery{font-size:.7rem;color:#334155;margin-top:7px}.shop-delivery strong{font-weight:900}.shop-delivery span{color:#64748b}.shop-stock .low{color:#c2410c;font-weight:900}.store-cart-action-slot{flex:1;min-width:0;display:flex}.store-cart-action-slot>.store-add-btn,.store-cart-action-slot>.store-quantity-control{width:100%}.store-quantity-control{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid #dbe1e8;background:#fff;border-radius:9px;min-height:40px;overflow:hidden}.store-quantity-control .store-qty-btn{border:0;background:#f1f5f9;color:#111827;width:34px;height:38px;font-size:1.1rem;font-weight:900;cursor:pointer}.store-quantity-control .store-qty-btn:disabled{opacity:.45;cursor:not-allowed}.store-quantity-control .store-qty-value{min-width:28px;text-align:center;font-weight:900}.shop-actions.is-cart-busy{opacity:.72}.shop-actions.is-cart-busy .store-quick-view-btn{pointer-events:none;opacity:.6}.shop-actions.is-cart-busy .store-buy-now-btn{opacity:.6}.shop-actions.is-cart-busy .store-qty-btn{cursor:wait}.store-add-btn,.store-buy-now-btn{font-weight:900}.store-buy-now-btn{width:100%;border:0;border-radius:9px;padding:9px 10px;background:#f59e0b;color:#111827;cursor:pointer}.store-buy-now-btn:disabled{opacity:.55;cursor:not-allowed}.shop-actions .store-add-btn{width:100%}
@media(max-width:700px){.shop-card:hover{transform:none;box-shadow:none}.shop-card-deal-badge{left:7px;top:7px;font-size:.58rem;padding:5px 7px}.shop-wishlist-form .wish-btn{width:32px;height:32px}.shop-product-name{font-size:.88rem}.shop-delivery{font-size:.64rem}.shop-actions{gap:6px}.store-buy-now-btn{padding:8px 9px;font-size:.72rem}}

/* Phase 5BG - Advanced product media experience */
.product-gallery-stage{position:relative;isolation:isolate}.gallery-stage-tools{position:absolute;right:12px;top:12px;z-index:6;display:flex;align-items:center;gap:7px}.gallery-media-counter{background:rgba(17,24,39,.78);color:#fff;border-radius:999px;padding:6px 9px;font-size:.68rem;font-weight:900;backdrop-filter:blur(7px)}.gallery-fullscreen{width:36px;height:36px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(17,24,39,.78);color:#fff;display:grid;place-items:center;cursor:pointer;font-size:1rem;backdrop-filter:blur(7px)}.gallery-fullscreen:hover{background:#111827}.gallery-slide img{transition:transform .22s ease,filter .22s ease;will-change:transform}.gallery-slide.active img{cursor:zoom-in}.gallery-slide[data-media-type="Video"]:after{content:"VIDEO";position:absolute;left:12px;bottom:12px;background:rgba(17,24,39,.82);color:#fff;border-radius:999px;padding:5px 8px;font-size:.62rem;font-weight:900;pointer-events:none}.gallery-slide{position:relative}.product-gallery-thumbs{padding-top:12px;padding-bottom:4px}.gallery-thumb{box-shadow:0 2px 8px rgba(15,23,42,.06);transition:border-color .15s ease,transform .15s ease}.gallery-thumb:hover{transform:translateY(-1px)}
.quick-media-panel{display:flex;flex-direction:column;gap:10px;padding:18px}.quick-media-stage{position:relative;width:100%;height:390px;display:grid;place-items:center;background:#f8fafc;border-radius:14px;overflow:hidden}.quick-media-item{display:none;width:100%;height:100%;position:relative;place-items:center}.quick-media-item.active{display:grid}.quick-media-item .quick-media{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.quick-media-nav,.quick-media-fullscreen{position:absolute;z-index:4;border:0;display:grid;place-items:center;cursor:pointer;color:#fff;background:rgba(17,24,39,.76);backdrop-filter:blur(7px)}.quick-media-nav{top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;font-size:29px}.quick-media-prev{left:9px}.quick-media-next{right:9px}.quick-media-fullscreen{right:9px;top:9px;width:35px;height:35px;border-radius:50%;font-size:.95rem}.quick-media-counter{position:absolute;z-index:4;left:10px;top:10px;background:rgba(17,24,39,.76);color:#fff;border-radius:999px;padding:6px 9px;font-size:.66rem;font-weight:900}.quick-media-thumbs{display:flex;gap:7px;overflow-x:auto;padding:1px 2px 3px;scrollbar-width:thin}.quick-media-thumb{flex:0 0 58px;width:58px;height:58px;border:2px solid transparent;border-radius:9px;background:#fff;padding:0;overflow:hidden;cursor:pointer;display:grid;place-items:center}.quick-media-thumb.active{border-color:#111827}.quick-media-thumb img{width:100%;height:100%;object-fit:cover}.quick-media-thumb span{width:100%;height:100%;display:grid;place-items:center;background:#111827;color:#fff;font-size:1.1rem}.quick-video-label{position:absolute;left:9px;bottom:9px;background:rgba(17,24,39,.78);color:#fff;border-radius:999px;padding:5px 8px;font-size:.62rem;font-weight:900}.quick-media-panel:has(.quick-media-item:nth-child(1):only-child) .quick-media-nav,.quick-media-panel:has(.quick-media-item:nth-child(1):only-child) .quick-media-counter{display:none}
@media(max-width:700px){.gallery-stage-tools{right:8px;top:8px}.gallery-media-counter{font-size:.62rem}.gallery-fullscreen{width:34px;height:34px}.product-gallery-stage{aspect-ratio:1/1}.quick-media-panel{padding:12px}.quick-media-stage{height:225px}.quick-media{max-height:205px}.quick-media-nav{width:36px;height:36px;font-size:26px}.quick-media-fullscreen{width:32px;height:32px}.quick-media-thumb{flex-basis:52px;width:52px;height:52px}.quick-media-counter{font-size:.62rem}.quick-media-thumbs{padding-bottom:2px}}

/* Ensure Phase 5BG Quick View media items are controlled by their wrapper. */
.quick-media-panel .quick-media-item .quick-media{display:block}.quick-media-panel .quick-media-item{display:none}.quick-media-panel .quick-media-item.active{display:grid}

/* Phase 5BH — Amazon-style cart experience */
.cart-delivery-progress{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px;margin:0 0 16px;box-shadow:0 4px 14px rgba(15,23,42,.04)}
.cart-delivery-progress-icon{width:38px;height:38px;border-radius:50%;background:#f0fdf4;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex:none}.cart-delivery-progress-copy{min-width:0;flex:1}.cart-delivery-progress-copy strong{display:block;font-size:.88rem;color:#111827}.cart-delivery-progress-copy strong span{font-weight:900}.cart-delivery-progress-copy small{display:block;color:#64748b;font-size:.72rem;margin-top:2px}.cart-progress-track{height:5px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin-top:9px}.cart-progress-track span{display:block;height:100%;border-radius:99px;background:#16a34a;transition:width .25s ease}.cart-page-info h2 a{color:inherit;text-decoration:none}.cart-page-info h2 a:hover{text-decoration:underline}.cart-item-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.cart-item-actions button{border:0;background:none;padding:0;color:#2563eb;font-size:.72rem;cursor:pointer}.cart-item-actions button:hover{text-decoration:underline}.cart-inline-form{display:inline}.cart-page-image{text-decoration:none;color:#94a3b8}.cart-summary-row{display:flex;justify-content:space-between;padding:8px 0;color:#64748b;font-size:.86rem}.cart-secure-note{font-size:.7rem!important}.cart-page-item .store-qty button:disabled{opacity:.35;cursor:not-allowed}@media(max-width:767px){.cart-delivery-progress{padding:12px}.cart-item-actions{gap:8px}.cart-page-item{padding:12px}.cart-page-line-total{font-size:.88rem}}

/* Phase 5BJ/5BK - WhatsApp share icon on Product Detail + Quick View only */
.product-share-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.product-whatsapp-share{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.product-whatsapp-share{width:46px;height:46px;min-width:46px;border-radius:50%;padding:0;box-shadow:0 3px 10px rgba(22,101,52,.10)}
.product-whatsapp-share:hover{background:#dcfce7;border-color:#86efac;transform:translateY(-1px)}
.whatsapp-share-icon{display:inline-grid;place-items:center;width:24px;height:24px}
.whatsapp-share-icon svg{width:100%;height:100%;fill:currentColor;display:block}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){.product-share-row{display:flex;width:100%;align-items:center}.product-whatsapp-share{width:48px;height:48px;min-width:48px}.product-continue-shopping{flex:1;min-height:46px}}

/* Phase 5BN - WhatsApp share icon is available on Product Detail and Quick View only. */
.quick-whatsapp-share{flex:0 0 48px;width:48px;height:44px;border:1px solid #bbf7d0;border-radius:10px;padding:0;background:#f0fdf4;color:#166534;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.quick-whatsapp-share:hover{background:#dcfce7;border-color:#86efac;transform:translateY(-1px)}
.quick-actions .quick-whatsapp-share{min-height:44px}
@media(max-width:700px){.quick-actions .quick-whatsapp-share{flex:0 0 48px;width:48px;height:46px}}



/* Phase 5BI-FIX — Quick View close button must remain visible beside media fullscreen control. */
.store-quick-dialog .store-quick-close{
    z-index:10020 !important;
    right:10px !important;
    top:10px !important;
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    min-height:42px !important;
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    opacity:1 !important;
    visibility:visible !important;
    background:#111827 !important;
    color:#fff !important;
    border:2px solid #fff !important;
    box-shadow:0 5px 16px rgba(15,23,42,.28) !important;
    font-size:26px !important;
    line-height:1 !important;
}
.store-quick-dialog .quick-media-fullscreen{right:60px !important;}
@media(max-width:700px){
    .store-quick-dialog .store-quick-close{
        top:10px !important;
        right:10px !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        min-height:42px !important;
        border-radius:50% !important;
        font-size:25px !important;
    }
    .store-quick-dialog .quick-media-fullscreen{right:60px !important;top:8px !important;}
}

/* Phase 5BR — Amazon-style cart drawer */
.store-cart-overlay[hidden]{display:none!important}
.store-cart-overlay{position:fixed;inset:0;z-index:10050;background:rgba(15,23,42,.48);display:block;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.store-cart-overlay.open{opacity:1;visibility:visible}
.store-cart-backdrop{position:absolute;inset:0}
.store-cart-sheet{position:absolute;right:0;top:0;height:100%;width:min(460px,92vw);max-height:none;border-radius:18px 0 0 18px;box-shadow:-16px 0 45px rgba(15,23,42,.22);transform:translateX(102%);transition:transform .22s ease;overflow:hidden;z-index:2}
.store-cart-overlay.open .store-cart-sheet{transform:translateX(0)}
.store-cart-header{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;background:#fff}
.store-cart-header>div{display:flex;flex-direction:column;gap:2px}.store-cart-header strong{font-size:1.1rem}.store-cart-header small{color:#64748b;font-size:.72rem}
.store-cart-header button{border:1px solid #dbe1e8;background:#f8fafc;color:#111827;border-radius:50%;width:38px;height:38px;font-size:1.55rem;line-height:1;cursor:pointer}
.store-cart-delivery{padding:12px 18px;background:#f8fafc;border-top:1px solid #eef0f3;border-bottom:1px solid #eef0f3}.store-cart-delivery strong{display:block;font-size:.76rem}.store-cart-delivery small{display:block;color:#64748b;font-size:.68rem;margin-top:2px}.drawer-progress{height:5px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:8px}.drawer-progress span{display:block;height:100%;background:#16a34a;border-radius:99px;transition:width .2s ease}
.store-cart-items{flex:1;overflow:auto;background:#fff;height:calc(100% - 235px)}
.store-cart-item{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px 16px;border-bottom:1px solid #eef0f3}.store-cart-item img{width:62px;height:62px;object-fit:contain;border-radius:10px;background:#f8fafc}.store-cart-item-image{width:62px;height:62px;display:grid;place-items:center;text-decoration:none;color:#94a3b8;background:#f8fafc;border-radius:10px;overflow:hidden}.store-cart-item-info{min-width:0}.store-cart-item-info a{display:block;color:#111827;text-decoration:none;font-weight:750;font-size:.8rem;line-height:1.3}.store-cart-item-info a:hover{text-decoration:underline}.store-cart-item-info small{display:block;color:#64748b;font-size:.68rem;margin-top:3px}.store-cart-item-price{font-weight:850;font-size:.82rem;white-space:nowrap;align-self:start;padding-top:3px}.store-cart-item-bottom{grid-column:2/-1;display:flex;align-items:center;justify-content:space-between;gap:8px}.store-cart-qty{display:flex;align-items:center;border:1px solid #dbe1e8;border-radius:9px;overflow:hidden}.store-cart-qty button{width:30px;height:30px;border:0;background:#fff;font-size:1rem;cursor:pointer}.store-cart-qty span{min-width:30px;text-align:center;font-size:.76rem;font-weight:800}.store-cart-item-actions{display:flex;gap:10px}.store-cart-item-actions button{border:0;background:none;color:#2563eb;font-size:.68rem;padding:3px 0;cursor:pointer}.store-cart-item-actions button:hover{text-decoration:underline}
.store-cart-empty{text-align:center;padding:55px 20px;color:#64748b}.store-cart-empty-icon{font-size:2.4rem}.store-cart-empty strong{display:block;color:#111827;margin:8px 0 4px}.store-cart-footer{background:#fff;padding:14px 18px calc(16px + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb}.store-cart-footer>div{display:flex;justify-content:space-between;align-items:center}.store-cart-footer>div span{color:#64748b}.store-cart-footer>div strong{font-size:1.05rem}.store-cart-footer>small{display:block;color:#64748b;font-size:.68rem;margin:4px 0 10px}.store-drawer-checkout{display:block;text-align:center;background:#111827;color:#fff;text-decoration:none;border-radius:11px;padding:12px;font-weight:850;font-size:.8rem}.store-drawer-view{display:block;text-align:center;color:#475569;text-decoration:none;font-size:.7rem;margin-top:9px}
body.cart-drawer-open{overflow:hidden}
@media(max-width:767px){.store-cart-sheet{top:auto;bottom:0;right:0;width:100%;height:min(88vh,760px);border-radius:20px 20px 0 0;transform:translateY(102%)}.store-cart-overlay.open .store-cart-sheet{transform:translateY(0)}.store-cart-items{height:calc(100% - 225px)}.store-cart-item{padding:12px}.store-cart-bar{bottom:10px}.store-cart-bar-inner{gap:8px}.store-view-cart{padding:9px 12px!important;font-size:.72rem}}

/* Phase 5BR1 — Mobile cart drawer layout refinement */
body.cart-drawer-open #storeCartBar{display:none!important}
.store-cart-sheet{min-height:0}
.store-cart-items{min-height:0}
.store-cart-footer{flex:0 0 auto}
.store-drawer-checkout{min-height:44px;display:flex;align-items:center;justify-content:center}
@media(max-width:767px){
    .store-cart-sheet{
        height:min(92dvh,760px);
        max-height:92dvh;
        min-height:0;
        display:flex;
        flex-direction:column;
    }
    .store-cart-header{padding:14px 16px}
    .store-cart-delivery{padding:10px 16px}
    .store-cart-items{
        flex:1 1 auto;
        height:auto!important;
        min-height:0;
        overflow-y:auto;
        -webkit-overflow-scrolling:touch;
    }
    .store-cart-item{grid-template-columns:58px minmax(0,1fr) auto;gap:9px;padding:11px 14px}
    .store-cart-item-image,.store-cart-item img{width:58px;height:58px}
    .store-cart-item-bottom{gap:6px}
    .store-cart-footer{padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(15,23,42,.06)}
    .store-cart-footer>div{margin-bottom:4px}
    .store-cart-footer>small{margin:2px 0 7px}
    .store-drawer-checkout{padding:11px;font-size:.82rem}
    .store-drawer-view{margin-top:6px;padding-bottom:1px}
}

/* Phase 5BS: Checkout address & delivery UX */
.checkout-progress{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:0 2px;color:#94a3b8;font-size:.72rem;font-weight:800}.checkout-progress span{display:flex;align-items:center;gap:6px;white-space:nowrap}.checkout-progress b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e2e8f0;color:#64748b;font-size:.7rem}.checkout-progress span.active{color:#111827}.checkout-progress span.active b{background:#111827;color:#fff}.checkout-progress i{height:1px;background:#e2e8f0;flex:1;max-width:80px}.saved-address-option{position:relative;min-height:78px}.saved-address-option.selected{background:#f8fafc;border-color:#111827}.saved-address-option>input{width:18px;height:18px;flex:0 0 auto}.address-select-hint{font-size:.68rem!important;color:#64748b!important;font-weight:650}.address-check{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:.72rem;opacity:0}.saved-address-option.selected .address-check{opacity:1}.delivery-card{padding-bottom:14px}.delivery-choice{display:flex;align-items:center;gap:12px;border:1px solid #dbe2ea;border-radius:13px;padding:13px;background:#fff}.delivery-choice.selected{border-color:#111827;box-shadow:0 4px 14px rgba(15,23,42,.05)}.delivery-radio{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;font-size:.65rem;flex:0 0 auto}.delivery-choice-copy{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.delivery-choice-copy strong{font-size:.84rem}.delivery-choice-copy span,.delivery-choice-copy small{font-size:.69rem;color:#64748b}.delivery-choice-copy b{color:#111827}.delivery-price{font-size:.82rem;white-space:nowrap}.delivery-trust{display:flex;gap:9px;align-items:center;margin-top:10px;padding:9px 10px;border-radius:10px;background:#f8fafc}.delivery-trust>span:first-child{font-size:1rem}.delivery-trust span:last-child{display:flex;flex-direction:column;gap:1px}.delivery-trust strong{font-size:.7rem}.delivery-trust small{font-size:.64rem;color:#64748b}.checkout-delivery-mini{display:flex;gap:8px;align-items:center;padding:9px 10px;margin-top:11px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px}.checkout-delivery-mini>span{font-size:1rem}.checkout-delivery-mini div{display:flex;flex-direction:column;gap:1px}.checkout-delivery-mini strong{font-size:.7rem}.checkout-delivery-mini small{font-size:.64rem;color:#64748b}@media(max-width:600px){.checkout-progress{gap:5px;margin-bottom:12px}.checkout-progress span{font-size:.64rem}.checkout-progress b{width:22px;height:22px}.checkout-progress i{max-width:32px}.saved-address-option{min-height:74px}.delivery-choice{padding:12px 10px}.delivery-price{font-size:.76rem}.checkout-delivery-mini{margin-top:9px}}

/* Phase 5BU - customer coupon & discount UX */
.coupon-box-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.coupon-box-heading>div{display:flex;flex-direction:column;gap:2px}.coupon-box-heading strong{font-size:.82rem;color:#1f2937}.coupon-box-heading small{font-size:.67rem;color:#64748b}.coupon-box-heading>span{font-size:.68rem;font-weight:900;color:#15803d;background:#dcfce7;border-radius:999px;padding:5px 8px}.available-coupons{display:grid;gap:8px}.available-coupon{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}.available-coupon.eligible{border-color:#bbf7d0;background:#f0fdf4}.available-coupon.locked{background:#f8fafc;opacity:.8}.available-coupon-main{min-width:0;display:flex;flex-direction:column;gap:3px}.available-coupon-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.available-coupon-code{font-size:.7rem;font-weight:950;letter-spacing:.04em;background:#111827;color:#fff;border-radius:6px;padding:4px 7px}.available-coupon-offer{font-size:.7rem;font-weight:900;color:#15803d}.available-coupon-main strong{font-size:.72rem;color:#334155}.available-coupon-main small{font-size:.63rem;color:#64748b}.coupon-select-btn{flex:0 0 auto;min-width:72px;min-height:34px;border:1px solid #111827;border-radius:8px;background:#111827;color:#fff;font-size:.7rem;font-weight:900;cursor:pointer}.coupon-select-btn:disabled{border-color:#cbd5e1;background:#e2e8f0;color:#64748b;cursor:not-allowed}.coupon-divider{display:flex;align-items:center;gap:8px;margin:11px 0;color:#94a3b8;font-size:.62rem;font-weight:800;text-transform:uppercase}.coupon-divider:before,.coupon-divider:after{content:"";height:1px;background:#e2e8f0;flex:1}.coupon-empty,.coupon-loading{padding:9px;border-radius:9px;background:#fff;color:#64748b;font-size:.68rem;text-align:center;border:1px dashed #dbe2ea}
@media(max-width:600px){.available-coupon{align-items:flex-start}.coupon-select-btn{min-width:82px}.available-coupon-main strong{font-size:.69rem}.available-coupon-main small{font-size:.6rem}}

.available-coupon.auto-free-shipping{border-color:#86efac;background:#f0fdf4;box-shadow:inset 0 0 0 1px #bbf7d0}.coupon-select-btn.is-applied{min-width:96px}

.shipping-settings-page{max-width:900px;margin:auto}.shipping-settings-panel{padding:22px}.shipping-setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.shipping-setting-grid label{font-weight:800}.shipping-settings-toggle{margin:20px 0;padding:15px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;display:flex;flex-direction:column;gap:6px}.shipping-settings-toggle label{display:flex;align-items:center;gap:8px}.shipping-settings-toggle small{color:#64748b}.shipping-settings-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 20px}.shipping-settings-preview div{padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.shipping-settings-preview span{display:block;color:#64748b;font-size:.72rem}.shipping-settings-preview strong{display:block;margin-top:4px}.shipping-settings-page .page-head p{color:#64748b;margin:0}.shipping-settings-page .alert{margin:14px 0}@media(max-width:700px){.shipping-setting-grid,.shipping-settings-preview{grid-template-columns:1fr}.shipping-settings-panel{padding:16px}}
/* Phase 5BX - admin fulfillment dashboard */
.order-kpi-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin:12px 0}.order-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:13px;min-width:0}.order-kpi span{display:block;color:#64748b;font-size:.62rem;font-weight:800;text-transform:uppercase}.order-kpi strong{display:block;font-size:1.35rem;font-weight:900;margin:3px 0}.order-kpi small{display:block;color:#94a3b8;font-size:.61rem}.order-kpi.warning strong{color:#d97706}.order-kpi.success strong{color:#16a34a}.order-kpi.danger strong{color:#dc2626}.admin-order-count{font-size:.72rem;color:#64748b}.order-status-strip{display:flex;gap:7px;overflow:auto;margin:0 0 12px;padding-bottom:2px}.order-status-strip a{white-space:nowrap;text-decoration:none;color:#334155;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;font-size:.7rem;font-weight:750}.order-status-strip b{margin-left:4px}.fulfillment-filters{grid-template-columns:minmax(220px,1fr) 145px 145px 140px 140px auto auto}.fulfillment-card{align-items:center}.fulfillment-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.fulfillment-meta span{font-size:.65rem;color:#64748b;background:#f8fafc;border-radius:7px;padding:5px 7px}.order-status-pending{background:#fff7ed;color:#c2410c}.order-status-confirmed{background:#eff6ff;color:#1d4ed8}.order-status-preparing{background:#fefce8;color:#a16207}.order-status-ready{background:#f0fdf4;color:#15803d}.order-status-shipped{background:#ecfeff;color:#0e7490}.order-status-delivered{background:#f0fdf4;color:#166534}.order-status-cancelled{background:#fef2f2;color:#b91c1c}.order-status-large{font-size:.78rem;padding:7px 12px}.order-history-panel{margin-top:14px}.order-history-head h2{font-size:1rem;margin:0}.order-history-head p{font-size:.7rem;color:#64748b;margin:3px 0 0}.order-history{position:relative;margin-top:14px;padding-left:20px}.order-history:before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:#e5e7eb}.history-row{position:relative;display:flex;gap:12px;padding:0 0 18px}.history-dot{position:absolute;left:-20px;top:4px;width:12px;height:12px;border-radius:50%;background:#111827;border:3px solid #fff;box-shadow:0 0 0 1px #dbe1e8}.history-content{width:100%}.history-content>div{display:flex;justify-content:space-between;gap:10px}.history-content strong{font-size:.8rem}.history-content span,.history-content small{font-size:.64rem;color:#94a3b8}.history-content p{margin:4px 0 2px;font-size:.72rem;color:#475569}.history-empty{font-size:.75rem;color:#94a3b8;padding-top:14px}.admin-status-form-wide{flex-wrap:wrap}.admin-status-form-wide input[name=note]{flex:1;min-width:220px}.admin-status-form-wide select{min-width:190px}
@media(max-width:1100px){.order-kpi-grid{grid-template-columns:repeat(4,1fr)}.fulfillment-filters{grid-template-columns:1fr 1fr 1fr}.fulfillment-filters input:first-child{grid-column:1/-1}}
@media(max-width:700px){.order-kpi-grid{grid-template-columns:1fr 1fr}.fulfillment-filters{grid-template-columns:1fr 1fr}.fulfillment-filters input:first-child{grid-column:1/-1}.fulfillment-filters button,.fulfillment-filters a{text-align:center}.fulfillment-meta{display:grid;grid-template-columns:1fr}.admin-order-card{padding:12px}.order-history{padding-left:18px}.history-dot{left:-18px}}
@media(max-width:420px){.order-kpi-grid{grid-template-columns:1fr}.fulfillment-filters{grid-template-columns:1fr}.fulfillment-filters input:first-child{grid-column:auto}}

/* Phase 5BX1 - clear status workflow controls */
.admin-status-form select,.admin-status-form-wide select{font-weight:700}.admin-status-form select option:disabled,.admin-status-form-wide select option:disabled{color:#64748b}.fulfillment-card .admin-order-right .admin-status-form{align-items:center}.fulfillment-card .admin-order-right .admin-status-form .btn{white-space:nowrap}.status-workflow-hint{font-size:.68rem;color:#64748b;margin-top:5px}

/* Phase 5BY - Admin order fulfillment workspace */
.admin-order-details-page{max-width:1200px;margin:auto;padding-bottom:55px}.order-hero-actions{display:flex;align-items:center;gap:9px}.detail-links{display:flex;gap:7px;margin-top:13px}.detail-links a{font-size:.7rem;font-weight:800;text-decoration:none;color:#334155;background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:6px 9px}.panel-subtitle{display:block;color:#94a3b8;font-size:.66rem;margin-top:3px}.admin-workspace-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px;margin-top:12px}.payment-tx-list{border-top:1px solid #eef0f3;margin-top:12px;padding-top:10px;display:flex;flex-direction:column;gap:7px}.payment-tx-list div{display:flex;justify-content:space-between;gap:8px;font-size:.67rem}.payment-tx-list span{color:#64748b;text-align:right}.order-line-main{min-width:0;flex:1}.order-line-main>small{display:block;color:#64748b;font-size:.68rem;margin-top:3px}.order-line-main .text-success{color:#15803d!important}.order-total-row.savings{color:#15803d}.workspace-locked{margin-top:12px;padding:12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.75rem}.fulfillment-notes-form{margin-top:12px}.fulfillment-notes-form textarea{resize:vertical;min-height:95px}.fulfillment-notes-form>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.fulfillment-notes-form small{color:#94a3b8;font-size:.64rem}.history-count{font-size:.65rem;color:#64748b;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:5px 8px;white-space:nowrap}.admin-notification-list{display:flex;flex-direction:column;gap:9px;margin-top:14px}.admin-notification{display:flex;gap:9px;padding:10px;border:1px solid #eef0f3;border-radius:10px;background:#fafafa}.notification-icon{font-size:1rem}.admin-notification strong{font-size:.75rem}.admin-notification p{font-size:.68rem;color:#475569;margin:3px 0}.admin-notification small{font-size:.6rem;color:#94a3b8}
@media(max-width:800px){.admin-workspace-grid{grid-template-columns:1fr}.order-hero-actions{align-items:flex-start;flex-direction:column}.fulfillment-notes-form>div{align-items:flex-start;flex-direction:column}.fulfillment-notes-form .btn{width:100%}}

/* Phase 5BZ - packing and shipment management */
.packing-page{max-width:1200px;margin:auto;padding-bottom:55px}.packing-head{align-items:center}.packing-head-badges{display:flex;align-items:center;gap:8px}.packing-progress{font-size:.7rem;font-weight:850;color:#334155;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px}.packing-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:12px}.packing-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.packing-section-head h2{font-size:1rem;margin:0}.packing-section-head p{font-size:.68rem;color:#64748b;margin:4px 0 0}.packing-section-head>span{font-size:.64rem;color:#64748b;background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:5px 8px;white-space:nowrap}.packing-form{display:flex;flex-direction:column;gap:8px}.packing-line{display:grid;grid-template-columns:52px 1fr 105px;align-items:center;gap:11px;padding:10px;border:1px solid #eef0f3;border-radius:12px;background:#fff}.packing-image{width:52px;height:52px;border-radius:10px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.packing-image img{width:100%;height:100%;object-fit:cover}.packing-image span{font-size:1.2rem}.packing-product{min-width:0;display:flex;flex-direction:column;gap:3px}.packing-product strong{font-size:.77rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.packing-product small{font-size:.64rem;color:#64748b}.packing-qty label{display:block;font-size:.61rem;font-weight:800;color:#64748b;margin-bottom:4px}.packing-qty input{width:100%;text-align:center;font-weight:900}.packing-save{align-self:flex-start;margin-top:4px}.packing-checklist{display:grid;gap:7px;margin-top:14px;padding-top:13px;border-top:1px solid #eef0f3}.packing-check{display:flex;gap:9px;align-items:center;padding:9px;border-radius:10px;background:#f8fafc}.packing-check>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#475569;font-size:.68rem;font-weight:900;flex:0 0 auto}.packing-check.done{background:#f0fdf4}.packing-check.done>span{background:#dcfce7;color:#15803d}.packing-check strong,.packing-check small{display:block}.packing-check strong{font-size:.7rem}.packing-check small{font-size:.61rem;color:#64748b;margin-top:2px}.shipment-form{display:grid;gap:10px}.shipment-form label{font-size:.68rem;font-weight:800;color:#334155}.shipment-form input,.shipment-form textarea{margin-top:5px}.shipment-form textarea{resize:vertical}.shipment-locked{padding:22px 14px;text-align:center;border:1px dashed #dbe2ea;border-radius:12px;background:#f8fafc}.shipment-lock-icon{font-size:1.5rem;margin-bottom:6px}.shipment-locked strong{font-size:.78rem}.shipment-locked p{font-size:.66rem;color:#64748b;margin:5px auto 0;max-width:340px}.shipment-card{border:1px solid #dbe4ee;border-radius:13px;padding:13px;background:#fbfdff}.shipment-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.shipment-card-top small{display:block;color:#94a3b8;font-size:.57rem;font-weight:800}.shipment-card-top>div>strong{display:block;font-size:.83rem;margin-top:3px;letter-spacing:.02em}.shipment-status{font-size:.62rem;font-weight:900;border-radius:999px;padding:6px 8px;white-space:nowrap}.shipment-status-created{background:#eff6ff;color:#1d4ed8}.shipment-status-packed{background:#f0fdf4;color:#15803d}.shipment-status-dispatched{background:#ecfeff;color:#0e7490}.shipment-status-intransit{background:#fefce8;color:#a16207}.shipment-status-delivered{background:#dcfce7;color:#166534}.shipment-status-cancelled{background:#fef2f2;color:#b91c1c}.shipment-meta{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.shipment-meta div{padding:8px;border-radius:9px;background:#fff;border:1px solid #eef0f3}.shipment-meta span,.shipment-meta strong{display:block}.shipment-meta span{font-size:.59rem;color:#94a3b8}.shipment-meta strong{font-size:.67rem;color:#334155;margin-top:3px;overflow-wrap:anywhere}.shipment-note{margin-top:10px;padding:9px;border-radius:9px;background:#f8fafc}.shipment-note span{font-size:.6rem;font-weight:800;color:#64748b}.shipment-note p{font-size:.66rem;color:#475569;margin:3px 0 0;white-space:pre-wrap}.shipment-status-form{display:flex;gap:8px;margin-top:12px}.shipment-status-form select{flex:1;font-weight:700}.shipment-closed{margin-top:12px;padding:9px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:.67rem}.packing-order-summary{margin-top:12px}.packing-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.packing-summary-grid div{padding:10px;border:1px solid #eef0f3;border-radius:10px;background:#fff}.packing-summary-grid span,.packing-summary-grid strong{display:block}.packing-summary-grid span{font-size:.59rem;color:#94a3b8}.packing-summary-grid strong{font-size:.68rem;margin-top:3px;color:#334155}.admin-order-right .btn-dark{white-space:nowrap}
@media(max-width:900px){.packing-layout{grid-template-columns:1fr}.packing-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.packing-head{align-items:flex-start}.packing-head-badges{align-items:flex-start;flex-direction:column}.packing-line{grid-template-columns:44px 1fr 86px;gap:8px;padding:8px}.packing-image{width:44px;height:44px}.packing-product strong{font-size:.7rem}.packing-qty input{font-size:.75rem}.packing-save{width:100%}.shipment-meta{grid-template-columns:1fr}.shipment-status-form{flex-direction:column}.shipment-status-form .btn{width:100%}.packing-summary-grid{grid-template-columns:1fr}.packing-section-head{align-items:flex-start}}

/* Phase 5BZ - customer shipment visibility */
.customer-shipment-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border:1px solid #dbe4ee;border-radius:12px;background:#fbfdff}.customer-shipment-card>div{display:flex;align-items:center;gap:9px;min-width:0}.customer-shipment-card>div>span{font-size:1.2rem}.customer-shipment-card small,.customer-shipment-card strong,.customer-shipment-card p{display:block}.customer-shipment-card small{font-size:.58rem;color:#94a3b8}.customer-shipment-card strong{font-size:.72rem;margin-top:2px}.customer-shipment-card p{font-size:.62rem;color:#64748b;margin:2px 0 0}.customer-tracking-ref{font-size:.65rem;font-weight:900;color:#0e7490;background:#ecfeff;border-radius:999px;padding:6px 8px;overflow-wrap:anywhere;text-align:right}.packing-head .order-status{white-space:nowrap}
@media(max-width:600px){.customer-shipment-card{align-items:flex-start;flex-direction:column}.customer-tracking-ref{width:100%;text-align:left}}


/* Phase PWA - mobile app-like experience */
html{background:#f5f7fb}
body{min-height:100vh;-webkit-tap-highlight-color:transparent}
.pwa-topbar-tools{display:flex;align-items:center;gap:7px;margin-right:12px}
.pwa-network-status{font-size:.68rem;font-weight:800;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:999px;padding:5px 8px;white-space:nowrap}
.pwa-network-status.is-offline{color:#b91c1c;background:#fef2f2;border-color:#fecaca}
.pwa-install-btn{border:1px solid #cbd5e1;background:#111827;color:#fff;border-radius:9px;padding:7px 10px;font-size:.72rem;font-weight:800;cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.12)}
.pwa-install-btn:active{transform:scale(.98)}
.pwa-bottom-nav{display:none}
@media(max-width:991.98px){
    body{padding-bottom:calc(68px + env(safe-area-inset-bottom));}
    .main-area main{padding-bottom:18px!important}
    .topbar{height:58px;padding:0 10px;position:sticky;top:0;z-index:1030}
    .pwa-topbar-tools{margin-right:6px;gap:5px}
    .pwa-network-status{font-size:.6rem;padding:4px 7px}
    .pwa-install-btn{font-size:.62rem;padding:6px 8px}
    .pwa-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:flex;justify-content:space-around;align-items:stretch;min-height:62px;padding:5px 5px calc(5px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e2e8f0;box-shadow:0 -8px 24px rgba(15,23,42,.08);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
    .pwa-bottom-nav a{flex:1;min-width:0;text-decoration:none;color:#64748b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:11px;margin:0 2px;font-weight:800}
    .pwa-bottom-nav a:active{background:#f1f5f9;transform:scale(.98)}
    .pwa-bottom-nav a span{font-size:1.05rem;line-height:1}
    .pwa-bottom-nav a small{font-size:.62rem;line-height:1.2}
    .sidebar{z-index:1200}
}
@media(min-width:992px){.pwa-topbar-tools{margin-left:auto}}
@media(display-mode:standalone){
    .topbar{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}
}
@media(max-width:991.98px){
    .main-area{min-height:100dvh}
    input,select,textarea,button{font-size:16px}
}

/* Phase PWA1 - Install App visibility and fallback */
.pwa-install-btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:34px;border:1px solid #111827;background:#111827;color:#fff;border-radius:10px;padding:7px 11px;font-size:.72rem;font-weight:850;cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.14);white-space:nowrap}
.pwa-install-btn:hover{background:#1f2937;color:#fff}.pwa-install-btn:active{transform:scale(.98)}.pwa-install-btn.is-installed{background:#15803d;border-color:#15803d}.pwa-install-btn:disabled{cursor:default;opacity:.95}
.pwa-install-help{position:fixed;inset:0;z-index:3000;background:rgba(15,23,42,.52);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.pwa-install-dialog{position:relative;width:min(440px,100%);max-height:min(90dvh,680px);overflow:auto;background:#fff;border-radius:22px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.28)}
.pwa-install-close{position:absolute;right:12px;top:10px;width:36px;height:36px;border:0;border-radius:50%;background:#f1f5f9;color:#334155;font-size:25px;line-height:1;cursor:pointer}.pwa-install-icon{font-size:2rem}.pwa-install-dialog h2{margin:8px 0 5px;font-size:1.35rem;font-weight:900;color:#111827}.pwa-install-lead{margin:0;color:#64748b;font-size:.78rem;line-height:1.5}.pwa-install-steps{display:grid;gap:8px;margin-top:17px}.pwa-install-steps div{padding:11px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#334155;font-size:.75rem;line-height:1.45}.pwa-install-steps b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#111827;color:#fff;margin-right:6px}.pwa-install-status{margin-top:13px;padding:11px 12px;border-radius:11px;background:#eff6ff;color:#1e40af;font-size:.68rem;line-height:1.5}
@media(max-width:991.98px){.pwa-topbar-tools{min-width:0}.pwa-install-btn{min-height:36px;padding:7px 9px;font-size:.67rem}.pwa-install-dialog{padding:21px;border-radius:18px}}
@media(max-width:430px){.pwa-topbar-tools{gap:4px}.pwa-network-status{padding:5px 6px}.pwa-install-btn{font-size:.63rem;padding:6px 7px}.pwa-install-dialog{padding:18px}}

/* Phase PWA2 - keep Install App visible on authenticated mobile header */
@media(max-width:991.98px){
    #pwaInstallSlot{
        position:fixed;
        top:66px;
        right:10px;
        z-index:2500;
        display:block;
        width:auto;
        max-width:calc(100vw - 20px);
    }
    #pwaInstallSlot .pwa-install-btn{
        display:inline-flex;
        min-height:40px;
        padding:8px 12px;
        font-size:.72rem;
        border-radius:999px;
        box-shadow:0 5px 18px rgba(15,23,42,.22);
    }
}
@media(max-width:430px){
    #pwaInstallSlot{top:66px;right:9px}
    #pwaInstallSlot .pwa-install-btn{min-height:38px;padding:7px 11px;font-size:.68rem}
}

/* Phase PWA4 - offline public-store cache + update prompt */
.pwa-update-bar{position:fixed;left:50%;bottom:76px;transform:translateX(-50%);z-index:3200;width:min(520px,calc(100vw - 24px));display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;background:#111827;color:#fff;border-radius:14px;box-shadow:0 12px 35px rgba(15,23,42,.28)}
.pwa-update-bar div{min-width:0}.pwa-update-bar strong,.pwa-update-bar small{display:block}.pwa-update-bar strong{font-size:.75rem}.pwa-update-bar small{font-size:.65rem;color:#cbd5e1;margin-top:2px}.pwa-update-bar button{border:0;background:#fff;color:#111827;border-radius:9px;padding:7px 12px;font-size:.68rem;font-weight:900;white-space:nowrap}
@media(max-width:991.98px){.pwa-update-bar{bottom:calc(74px + env(safe-area-inset-bottom));width:min(94vw,520px)}}


/* Phase PWA5 - mobile header and search UX refinement */
@media(max-width:991.98px){
    .topbar{display:flex;align-items:center;gap:6px;overflow:hidden}
    .topbar > .ms-auto{min-width:0;flex:1 1 auto;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
    .topbar > .ms-auto::-webkit-scrollbar{display:none}
    .topbar > .ms-auto > a,.topbar > .ms-auto > form{display:inline-flex;vertical-align:middle;margin-right:4px!important}
    .pwa-mobile-hide{display:none!important}
    #pwaInstallSlot{top:64px;right:9px;z-index:2500}
    #pwaInstallSlot .pwa-install-btn{min-height:40px;padding:8px 12px;font-size:.7rem;border-radius:999px;box-shadow:0 6px 20px rgba(15,23,42,.24)}
}
@media(max-width:700px){
    .shop-page > .amazon-search-form{top:112px!important}
    .amazon-search-suggestions{max-height:min(42vh,360px)!important;overflow-y:auto!important}
    .shop-page{padding-top:2px}
}
@media(max-width:430px){
    #pwaInstallSlot{top:63px;right:8px}
    #pwaInstallSlot .pwa-install-btn{min-height:38px;padding:7px 10px;font-size:.67rem}
    .shop-page > .amazon-search-form{top:108px!important}
    .amazon-search-suggestions{max-height:min(40vh,330px)!important}
}


/* Phase PWA5.1 - reserve real layout space for the mobile Install App control */
.pwa-mobile-install-bar{display:none}
@media(max-width:991.98px){
  .pwa-mobile-install-bar{display:flex;position:sticky;top:58px;z-index:1020;min-height:52px;align-items:center;justify-content:flex-end;padding:6px 10px;background:rgba(248,250,252,.96);border-bottom:1px solid #e2e8f0;box-shadow:0 3px 12px rgba(15,23,42,.08);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  .pwa-mobile-install-bar #pwaInstallSlot{position:static!important;display:block;width:auto;max-width:none}
  .pwa-mobile-install-bar #pwaInstallSlot .pwa-install-btn{display:inline-flex;position:static!important;min-height:38px;padding:7px 12px;font-size:.68rem;border-radius:999px;box-shadow:0 4px 14px rgba(15,23,42,.18)}
}
@media(max-width:430px){
  .pwa-mobile-install-bar{min-height:50px;padding:6px 8px}
  .pwa-mobile-install-bar #pwaInstallSlot .pwa-install-btn{min-height:37px;padding:7px 11px;font-size:.66rem}
}

/* Phase PWA5.2 - compact Install App strip: reserve only the space the control needs */
@media(max-width:991.98px){
  .pwa-mobile-install-bar{
    box-sizing:border-box;
    height:46px;
    min-height:46px;
    padding:4px 10px;
    margin:0;
    top:58px;
    align-items:center;
    justify-content:flex-end;
  }
  .pwa-mobile-install-bar #pwaInstallSlot{
    margin:0;
    line-height:1;
  }
  .pwa-mobile-install-bar #pwaInstallSlot .pwa-install-btn{
    box-sizing:border-box;
    min-height:36px;
    height:36px;
    padding:6px 11px;
    font-size:.67rem;
    line-height:1;
  }
}
@media(max-width:430px){
  .pwa-mobile-install-bar{
    height:44px;
    min-height:44px;
    padding:4px 8px;
  }
  .pwa-mobile-install-bar #pwaInstallSlot .pwa-install-btn{
    min-height:34px;
    height:34px;
    padding:6px 10px;
    font-size:.65rem;
  }
}
@media(max-width:700px){
  .shop-page > .amazon-search-form{top:104px!important}
}
@media(max-width:430px){
  .shop-page > .amazon-search-form{top:102px!important}
}


/* Phase PWA5.3 - keep Customer bottom navigation visible above Store cart bar */
@media(max-width:991.98px){
  .pwa-bottom-nav{
    z-index:2147483646!important;
  }
  .store-cart-bar{
    bottom:calc(68px + env(safe-area-inset-bottom))!important;
    z-index:2147483000!important;
  }
  body{
    padding-bottom:calc(136px + env(safe-area-inset-bottom))!important;
  }
  .shop-page{
    padding-bottom:150px!important;
  }
}
@media(max-width:600px){
  .store-cart-bar{
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
  }
  .shop-page{
    padding-bottom:142px!important;
  }
}
@media(max-width:430px){
  .store-cart-bar{
    bottom:calc(64px + env(safe-area-inset-bottom))!important;
  }
  .shop-page{
    padding-bottom:138px!important;
  }
}


.store-active-deal-filter{display:flex;align-items:center;gap:9px;margin:10px 0 14px;padding:10px 14px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;font-size:.82rem}.store-active-deal-filter span{color:#64748b}.store-active-deal-filter a{margin-left:auto;font-weight:800;text-decoration:none}.deal-filter-toggle input{accent-color:#111827;transform:scale(1.08)}
@media(max-width:650px){.store-active-deal-filter{font-size:.76rem;flex-wrap:wrap}.store-active-deal-filter a{margin-left:auto}.deal-filter-toggle{cursor:pointer;min-height:44px}}

/* PWA6 mobile product experience */
.product-mobile-top-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.product-mobile-back{color:#475569;text-decoration:none;font-weight:800;font-size:.82rem}.product-wishlist-form{margin:0}.product-wishlist-btn{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:7px 11px;font-weight:800;font-size:.76rem}.product-savings-pill{display:inline-flex;align-items:center;margin:4px 0 2px;padding:5px 9px;border-radius:999px;background:#ecfdf3;color:#15803d;font-size:.74rem;font-weight:900}.product-benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:15px 0}.product-benefit-grid>div{padding:11px;border:1px solid #e5e7eb;border-radius:12px;background:#fafafa;font-size:.82rem}.product-benefit-grid strong{display:block;margin-top:2px}.product-benefit-grid small{display:block;color:#64748b;margin-top:3px;line-height:1.35}.product-detail-purchase{scroll-margin-bottom:100px}
@media(max-width:600px){.product-detail-info{padding:18px}.product-detail-info h1{font-size:1.55rem;line-height:1.18}.product-detail-price{font-size:1.5rem;margin:13px 0 4px}.product-benefit-grid{grid-template-columns:1fr 1fr}.product-detail-purchase{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));z-index:20;background:#fff;box-shadow:0 -8px 24px rgba(15,23,42,.08);border-radius:15px}.product-purchase-actions{grid-template-columns:1.15fr .85fr}.product-purchase-actions .btn{min-height:48px}.product-wishlist-btn{padding:8px 10px}}
@media(max-width:390px){.product-benefit-grid{grid-template-columns:1fr}.product-purchase-actions{grid-template-columns:1fr 1fr}.product-detail-info{padding:15px}}

/* Phase PWA6.1 - keep cart drawer checkout footer clear of the PWA bottom navigation */
@media(max-width:767px){
  .store-cart-sheet{
    bottom:calc(62px + env(safe-area-inset-bottom));
    height:min(calc(92dvh - 62px - env(safe-area-inset-bottom)),698px);
    max-height:calc(92dvh - 62px - env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
  }
  .store-cart-footer{
    padding-bottom:12px;
  }
}
@media(max-width:430px){
  .store-cart-sheet{
    bottom:calc(62px + env(safe-area-inset-bottom));
    height:min(calc(92dvh - 62px - env(safe-area-inset-bottom)),698px);
    max-height:calc(92dvh - 62px - env(safe-area-inset-bottom));
  }
}

/* Google address picker */
.google-address-picker{margin-bottom:18px;padding:16px;border:1px solid #dbe4ef;border-radius:16px;background:#f8fafc}
.google-address-picker-title{font-weight:850;color:#111827;font-size:.95rem;margin-bottom:3px}
.google-address-picker-help{margin:0 0 10px;color:#64748b;font-size:.78rem;line-height:1.45}
.google-address-picker-note{margin-top:9px;color:#64748b;font-size:.72rem;line-height:1.4}
.google-address-picker #googleAddressPicker{width:100%}
.google-address-autocomplete{width:100%;--gmpx-color-surface:#fff;--gmpx-color-on-surface:#111827;--gmpx-color-on-surface-variant:#64748b;--gmpx-font-family:inherit;--gmpx-font-size-base:15px}
.google-address-selected{margin-top:9px;padding:9px 11px;border-radius:10px;background:#ecfdf5;color:#166534;font-size:.72rem;line-height:1.45}.google-address-selected strong{font-size:.78rem}.google-address-selected span{color:#166534}
.google-address-config-note code{font-size:.72rem}
@media(max-width:768px){.google-address-picker{padding:13px;border-radius:14px}.google-address-picker-title{font-size:.88rem}.google-address-picker-help{font-size:.72rem}.google-address-autocomplete{--gmpx-font-size-base:14px}}


/* PWA8 Google Places custom prediction list */
.google-places-search-wrap{position:relative;display:flex;align-items:center;width:100%;min-height:50px;background:#fff;border:1px solid #2563eb;border-radius:9px;box-shadow:0 0 0 2px rgba(37,99,235,.08)}
.google-places-search-icon{width:44px;text-align:center;color:#64748b;font-size:26px;line-height:1;transform:rotate(-20deg)}
.google-places-search{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;padding:12px 8px!important;font-size:15px!important;color:#111827!important}
.google-places-clear{width:42px;height:42px;border:0;background:transparent;color:#111827;font-size:26px;cursor:pointer}
.google-places-results{position:relative;z-index:100000;background:#fff;border:1px solid #d5dbe5;border-radius:10px;margin-top:5px;overflow:hidden;box-shadow:0 14px 35px rgba(15,23,42,.18);max-height:360px;overflow-y:auto}
.google-place-result{display:flex;width:100%;align-items:center;gap:11px;padding:12px 13px;border:0;border-bottom:1px solid #eef1f5;background:#fff;text-align:left;cursor:pointer;color:#111827}
.google-place-result:last-child{border-bottom:0}.google-place-result:hover,.google-place-result:focus{background:#f8fafc;outline:0}.google-place-pin{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:#2563eb;font-size:11px;flex:none}.google-place-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.google-place-copy strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.google-place-copy small{font-size:.72rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.google-places-no-results{padding:14px;color:#64748b;font-size:.78rem}.google-places-attribution{display:flex;align-items:center;justify-content:flex-end;gap:5px;padding:5px 4px 0;color:#64748b;font-size:.62rem}.google-places-attribution img{width:55px;height:auto;display:block}
@media(max-width:768px){.google-places-search-wrap{min-height:48px}.google-places-search{font-size:14px!important}.google-places-results{max-height:300px}.google-place-result{padding:11px 10px}}

.google-address-map-confirm{margin-top:12px;border:1px solid #dbe4ef;border-radius:14px;overflow:hidden;background:#fff}.google-address-map{height:260px;width:100%;background:#e5e7eb}.google-address-map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px}.google-address-map-footer strong{display:block;color:#111827;font-size:.82rem}.google-address-map-footer small{display:block;color:#64748b;font-size:.7rem;margin-top:2px}.google-address-confirm-btn{border:1px solid #111827;background:#111827;color:#fff;border-radius:9px;padding:8px 12px;font-size:.76rem;font-weight:750;white-space:nowrap}.google-address-confirm-btn.confirmed{background:#166534;border-color:#166534}.google-address-map .gm-style{font-family:inherit}
.google-address-map-error{height:100%;min-height:220px;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#475569;background:#f1f5f9;font-size:.82rem;line-height:1.55}.google-address-map-error strong{color:#111827}.google-address-confirm-btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:768px){.google-address-map{height:220px}.google-address-map-footer{align-items:flex-start;flex-direction:column}.google-address-confirm-btn{width:100%;padding:10px}}


/* PWA10 saved-address map previews */
.address-location-preview{margin:12px 0 14px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;overflow:hidden}
.address-location-preview[hidden]{display:none}
.address-location-preview .saved-address-map{pointer-events:none}
.saved-address-map{height:180px;width:100%}.saved-address-map-thumb{height:120px}.saved-address-map-caption{font-weight:650}
.address-location-preview>small{display:block;padding:8px 10px;color:#64748b;font-size:.72rem}
.saved-address-map-toggle[data-has-location="false"]{opacity:.6;cursor:not-allowed}
.checkout-saved-address-map{margin:12px 0 18px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;overflow:hidden}
.checkout-saved-address-map[hidden]{display:none}
.checkout-saved-address-map-head{padding:10px 12px;display:flex;justify-content:space-between;align-items:center}
.checkout-saved-address-map-head strong{display:block;font-size:.85rem}.checkout-saved-address-map-head small{display:block;color:#64748b;font-size:.72rem;margin-top:2px}
.checkout-saved-address-map-canvas{height:210px;width:100%}
@media(max-width:768px){.saved-address-map{height:165px}.saved-address-map-thumb{height:105px}.checkout-saved-address-map-canvas{height:190px}}

/* PWA11: app-like full-screen checkout address selector */
.checkout-selected-address-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;margin:0 0 12px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc}
.checkout-selected-address-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.checkout-selected-address-copy>span{font-size:.62rem;font-weight:850;letter-spacing:.08em;color:#64748b}.checkout-selected-address-copy strong{font-size:.84rem;color:#111827}.checkout-selected-address-copy small{font-size:.69rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.checkout-address-selector-btn{flex:0 0 auto;border:1px solid #111827;background:#fff;color:#111827;border-radius:9px;padding:8px 13px;font-size:.74rem;font-weight:800;cursor:pointer}.checkout-address-selector{position:fixed;inset:0;z-index:30000}.checkout-address-selector[hidden]{display:none}.checkout-address-selector-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(5px)}.checkout-address-selector-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(680px,100%);max-height:min(88dvh,760px);display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -18px 60px rgba(15,23,42,.25);overflow:hidden}.checkout-address-selector-head{display:flex;justify-content:space-between;gap:15px;padding:18px 18px 13px;border-bottom:1px solid #e5e7eb}.checkout-address-selector-head .store-eyebrow{font-size:.62rem}.checkout-address-selector-head h2{margin:2px 0 3px;font-size:1.15rem}.checkout-address-selector-head p{margin:0;color:#64748b;font-size:.72rem}.checkout-address-selector-close{width:34px;height:34px;border:1px solid #dbe3ef;border-radius:50%;background:#fff;font-size:1.35rem;line-height:1;color:#111827;cursor:pointer;flex:0 0 auto}.checkout-address-selector-list{overflow:auto;padding:12px;display:grid;gap:9px}.checkout-address-selector-item{width:100%;display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:10px;text-align:left;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:13px;cursor:pointer}.checkout-address-selector-item.selected{border-color:#111827;background:#f8fafc;box-shadow:0 4px 14px rgba(15,23,42,.06)}.checkout-selector-radio{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1px solid #cbd5e1;color:#fff;font-size:.7rem;font-weight:900}.checkout-address-selector-item.selected .checkout-selector-radio{background:#111827;border-color:#111827}.checkout-selector-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.checkout-selector-copy strong{font-size:.78rem;color:#111827}.checkout-selector-copy span{font-size:.68rem;color:#64748b;line-height:1.35}.checkout-selector-copy em{font-style:normal;font-size:.55rem;background:#111827;color:#fff;border-radius:999px;padding:2px 5px;margin-left:4px}.checkout-selector-arrow{font-size:1.4rem;color:#94a3b8}.checkout-address-selector-footer{padding:11px 12px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;background:#fff}.checkout-address-selector-add{width:100%;border:1px solid #dbe3ef;background:#fff;color:#111827;border-radius:11px;padding:11px;font-size:.78rem;font-weight:800;cursor:pointer;margin-bottom:8px}.checkout-address-selector-confirm{width:100%;border:1px solid #111827;background:#111827;color:#fff;border-radius:11px;padding:12px;font-size:.8rem;font-weight:800;cursor:pointer}.checkout-address-selector-open{overflow:hidden}
@media(max-width:768px){.checkout-selected-address-bar{padding:11px 12px}.checkout-address-selector-sheet{max-height:92dvh;border-radius:18px 18px 0 0}.checkout-address-selector-head{padding:15px 14px 11px}.checkout-address-selector-list{padding:10px}.checkout-address-selector-item{padding:12px}.checkout-address-selector-btn{padding:8px 11px}.checkout-address-selector-footer{padding-left:10px;padding-right:10px}}

/* PWA11: app-like full-screen checkout address selector */
.checkout-selected-address-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;margin:0 0 12px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc}.checkout-selected-address-copy{display:flex;flex-direction:column;min-width:0;gap:2px}.checkout-selected-address-copy>span{font-size:.62rem;font-weight:850;letter-spacing:.08em;color:#64748b}.checkout-selected-address-copy strong{font-size:.84rem;color:#111827}.checkout-selected-address-copy small{font-size:.69rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.checkout-address-selector-btn{flex:0 0 auto;border:1px solid #111827;background:#fff;color:#111827;border-radius:9px;padding:8px 13px;font-size:.74rem;font-weight:800;cursor:pointer}.checkout-address-selector{position:fixed;inset:0;z-index:30000}.checkout-address-selector[hidden]{display:none}.checkout-address-selector-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(5px)}.checkout-address-selector-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(680px,100%);max-height:min(88dvh,760px);display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -18px 60px rgba(15,23,42,.25);overflow:hidden}.checkout-address-selector-head{display:flex;justify-content:space-between;gap:15px;padding:18px 18px 13px;border-bottom:1px solid #e5e7eb}.checkout-address-selector-head .store-eyebrow{font-size:.62rem}.checkout-address-selector-head h2{margin:2px 0 3px;font-size:1.15rem}.checkout-address-selector-head p{margin:0;color:#64748b;font-size:.72rem}.checkout-address-selector-close{width:34px;height:34px;border:1px solid #dbe3ef;border-radius:50%;background:#fff;font-size:1.35rem;line-height:1;color:#111827;cursor:pointer;flex:0 0 auto}.checkout-address-selector-list{overflow:auto;padding:12px;display:grid;gap:9px}.checkout-address-selector-item{width:100%;display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:10px;text-align:left;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:13px;cursor:pointer}.checkout-address-selector-item.selected{border-color:#111827;background:#f8fafc;box-shadow:0 4px 14px rgba(15,23,42,.06)}.checkout-selector-radio{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1px solid #cbd5e1;color:#fff;font-size:.7rem;font-weight:900}.checkout-address-selector-item.selected .checkout-selector-radio{background:#111827;border-color:#111827}.checkout-selector-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.checkout-selector-copy strong{font-size:.78rem;color:#111827}.checkout-selector-copy span{font-size:.68rem;color:#64748b;line-height:1.35}.checkout-selector-copy em{font-style:normal;font-size:.55rem;background:#111827;color:#fff;border-radius:999px;padding:2px 5px;margin-left:4px}.checkout-selector-arrow{font-size:1.4rem;color:#94a3b8}.checkout-address-selector-footer{padding:11px 12px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;background:#fff}.checkout-address-selector-confirm{width:100%;border:1px solid #111827;background:#111827;color:#fff;border-radius:11px;padding:12px;font-size:.8rem;font-weight:800;cursor:pointer}.checkout-address-selector-open{overflow:hidden}@media(max-width:768px){.checkout-selected-address-bar{padding:11px 12px}.checkout-address-selector-sheet{max-height:92dvh;border-radius:18px 18px 0 0}.checkout-address-selector-head{padding:15px 14px 11px}.checkout-address-selector-list{padding:10px}.checkout-address-selector-item{padding:12px}.checkout-address-selector-btn{padding:8px 11px}.checkout-address-selector-footer{padding-left:10px;padding-right:10px}}

/* PWA14: checkout saved-address map thumbnails */
.checkout-address-map-thumb{width:92px;height:58px;border-radius:9px;overflow:hidden;border:1px solid #dbe3ef;background:#e5e7eb;display:block;flex:0 0 92px;position:relative}
.checkout-address-map-thumb .google-address-map-error{font-size:9px;padding:6px;color:#64748b;background:#f8fafc;height:100%;display:grid;place-items:center;text-align:center}
.checkout-address-map-thumb .gm-style{border-radius:9px}
@media(max-width:600px){.checkout-address-map-thumb{width:82px;height:54px;flex-basis:82px}}

.saved-address-landmark{display:block;color:#64748b;font-size:.78rem;margin-top:4px}

/* PWA17 current location fallback */
.google-address-location-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.google-current-location-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #111827;background:#fff;color:#111827;border-radius:9px;padding:8px 12px;font-size:.78rem;font-weight:750;cursor:pointer}
.google-current-location-btn:hover{background:#f1f5f9}.google-current-location-btn:disabled{opacity:.65;cursor:wait}
.google-current-location-help{color:#64748b;font-size:.7rem}
@media(max-width:768px){.google-address-location-actions{align-items:stretch;flex-direction:column;gap:6px}.google-current-location-btn{width:100%;justify-content:center;padding:10px}.google-current-location-help{font-size:.68rem}}

/* PWA18: precise delivery pin */
.google-address-accuracy{display:block;margin-top:5px;color:#475569;font-size:.68rem;font-weight:700}.google-address-map-footer small{display:block}.google-address-map-footer .confirmed + *{}

.address-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0}.address-search-wrap,.checkout-address-selector-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dbe2ea;border-radius:12px;padding:0 12px;min-height:44px}.address-search-wrap{max-width:520px;flex:1}.address-search-wrap input,.checkout-address-selector-search input{border:0;outline:0;background:transparent;width:100%;font:inherit}.address-filter-pills{display:flex;gap:7px;flex-wrap:wrap}.address-filter-pill{border:1px solid #d5dbe3;background:#fff;border-radius:999px;padding:8px 13px;font-weight:650;cursor:pointer}.address-filter-pill.active{background:#111827;color:#fff;border-color:#111827}.address-filter-empty{text-align:center;padding:24px;color:#6b7280;background:#fff;border:1px dashed #d5dbe3;border-radius:14px}.checkout-address-selector-search{margin:0 0 12px}.checkout-address-selector-search span,.address-search-wrap span{font-size:18px;color:#6b7280}@media(max-width:768px){.address-tools{align-items:stretch;flex-direction:column}.address-search-wrap{max-width:none}.address-filter-pills{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.address-filter-pill{white-space:nowrap}.checkout-address-selector-search{min-height:46px}}

/* PWA21 address quick action */
.address-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;}
@media(max-width:600px){.address-actions .btn{flex:1 1 auto;min-height:42px;}}

/* PWA23 - enhanced product reviews and ratings */
.reviews-header-enhanced{margin-bottom:14px}.reviews-header-enhanced h2{margin:3px 0 2px}.reviews-header-enhanced p{margin:0;color:#64748b;font-size:.86rem}.reviews-overview{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;margin-bottom:16px}.reviews-score-card{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px;border-radius:14px;background:#f8fafc}.reviews-score-card>strong{font-size:2.35rem;line-height:1;font-weight:900;color:#111827}.reviews-score-stars{margin:7px 0 4px;letter-spacing:2px;color:#f59e0b;font-size:1rem}.reviews-score-card>span{font-size:.75rem;color:#64748b;font-weight:700}.reviews-breakdown{display:flex;flex-direction:column;justify-content:center;gap:9px}.rating-row{display:grid;grid-template-columns:38px 1fr 30px;align-items:center;gap:8px;font-size:.75rem;color:#475569}.rating-row>span{font-weight:800}.rating-row>small{text-align:right;color:#64748b}.rating-track{height:8px;background:#eef2f7;border-radius:999px;overflow:hidden}.rating-track>span{display:block;height:100%;background:#f59e0b;border-radius:999px}.review-form-enhanced{display:grid;grid-template-columns:1fr 220px;gap:9px 12px;padding:16px;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa;margin-bottom:16px}.review-form-enhanced>div{grid-column:1/-1;display:flex;flex-direction:column;gap:2px}.review-form-enhanced>div strong{font-size:.95rem}.review-form-enhanced>div small{color:#64748b}.review-form-enhanced label{font-size:.76rem;font-weight:800;color:#475569}.review-form-enhanced select{grid-column:2;grid-row:2/4;height:44px}.review-form-enhanced textarea{grid-column:1;grid-row:2/4}.review-form-enhanced button{grid-column:1/-1;min-height:44px}.reviews-list-enhanced{display:grid;gap:10px}.review-card-enhanced{padding:15px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.review-card-enhanced .review-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.review-card-enhanced .review-card-top>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.verified-review{font-size:.66rem;font-weight:800;color:#15803d;background:#ecfdf3;border-radius:999px;padding:4px 7px}.review-card-enhanced .stars{color:#f59e0b;letter-spacing:1px;white-space:nowrap}.review-date{display:block;color:#94a3b8;margin-top:3px}.review-card-enhanced p{margin:9px 0 0;color:#334155;line-height:1.55}.reviews-empty{text-align:center;padding:28px 16px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}.reviews-empty>div{font-size:1.8rem;color:#f59e0b}.reviews-empty strong{display:block;margin-top:5px}.reviews-empty p{margin:4px 0 0;color:#64748b;font-size:.84rem}@media(max-width:600px){.reviews-overview{grid-template-columns:1fr;gap:12px}.reviews-score-card{min-height:130px}.review-form-enhanced{grid-template-columns:1fr}.review-form-enhanced select,.review-form-enhanced textarea{grid-column:1;grid-row:auto}.review-form-enhanced button{grid-column:1}.review-card-enhanced .review-card-top{align-items:flex-start}.review-card-enhanced .review-card-top>div{gap:5px}.verified-review{font-size:.6rem}}
/* PWA24 - review discovery and helpful controls */
.review-discovery-toolbar{display:grid;gap:10px;margin:0 0 10px}.review-search-box{display:flex;align-items:center;gap:8px;border:1px solid #dbe3ec;background:#fff;border-radius:12px;padding:0 12px;min-height:44px}.review-search-box span{font-size:1.25rem;color:#64748b}.review-search-box input{border:0;outline:0;flex:1;min-width:0;background:transparent}.review-filter-row{display:flex;align-items:center;gap:7px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.review-filter-row::-webkit-scrollbar{display:none}.review-filter-chip{flex:0 0 auto;border:1px solid #dbe3ec;background:#fff;color:#475569;border-radius:999px;padding:7px 11px;font-size:.72rem;font-weight:800;cursor:pointer}.review-filter-chip.active{background:#111827;color:#fff;border-color:#111827}.review-sort-select{margin-left:auto;flex:0 0 auto;border:1px solid #dbe3ec;background:#fff;border-radius:9px;padding:7px 9px;font-size:.72rem;font-weight:700;color:#334155}.reviews-results-meta{font-size:.72rem;font-weight:800;color:#64748b;margin:5px 0 8px}.review-helpful{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px;padding-top:10px;border-top:1px dashed #e5e7eb;font-size:.7rem;color:#64748b}.review-helpful button{border:1px solid #dbe3ec;background:#fff;color:#475569;border-radius:999px;padding:6px 9px;font-size:.68rem;font-weight:800;cursor:pointer}.review-helpful button.selected{background:#ecfdf3;border-color:#86efac;color:#15803d}.review-helpful button b{margin-left:3px}.reviews-no-results{text-align:center;padding:22px 14px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc;margin-top:10px}.reviews-no-results strong{display:block}.reviews-no-results p{margin:4px 0 10px;color:#64748b;font-size:.8rem}@media(max-width:600px){.review-filter-row{margin-right:-4px}.review-sort-select{margin-left:0}.review-helpful{gap:6px}.review-helpful span{width:100%}}

/* PWA25 - premium mobile product-detail experience */
.mobile-product-app-header{display:none}
.mobile-product-rating-row,.mobile-product-tabs,.mobile-product-details-anchor,.product-feature-grid{display:none}
@media(max-width:600px){
  .mobile-product-app-header{display:grid;grid-template-columns:38px minmax(0,1fr) 34px 34px 40px;gap:7px;align-items:center;position:sticky;top:0;z-index:10040;padding:8px 10px;background:rgba(255,255,255,.96);border-bottom:1px solid #e8edf3;backdrop-filter:blur(14px);box-shadow:0 4px 18px rgba(15,23,42,.06)}
  .mobile-product-header-form{margin:0}.mobile-product-header-icon{width:38px;height:38px;border:0;background:transparent;color:#122033;display:grid;place-items:center;text-decoration:none;font-size:1.45rem;border-radius:11px}.mobile-product-header-form .mobile-product-header-icon{width:34px;height:34px;font-size:1.5rem}.mobile-product-cart{font-size:1.18rem;border:1px solid #e5eaf0;background:#fff}
  .mobile-product-header-search{display:flex;align-items:center;gap:7px;min-width:0;height:38px;border:1px solid #dce3eb;border-radius:12px;background:#fff;padding:0 10px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
  .mobile-product-header-search span{font-size:1.2rem;color:#64748b}.mobile-product-header-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:.8rem;color:#334155}
  .product-detail-page{padding:0 10px 78px}.product-detail-page>.store-back{display:none}.product-detail-card{display:block;background:transparent;border:0;box-shadow:none;border-radius:0}.product-gallery{padding:8px 0 0}.product-gallery-stage{border-radius:18px;min-height:330px;overflow:hidden}.gallery-slide img,.gallery-slide video{border-radius:18px}.product-gallery-thumbs{gap:7px;margin-top:8px}.gallery-thumb{width:66px;height:58px;border-radius:10px}.gallery-thumb img{border-radius:9px}
  .product-detail-info{padding:13px 2px 0}.product-mobile-top-actions{display:none}.product-detail-category{display:none}.product-detail-info h1{font-size:1.35rem;line-height:1.2;margin:8px 0 6px;font-weight:950;color:#132238}
  .mobile-product-rating-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.77rem;color:#64748b;margin:0 0 8px}.mobile-rating-stars{font-size:1.35rem;color:#f59e0b;line-height:1}.mobile-product-rating-row strong{font-size:1rem;color:#172033}.mobile-bestseller{font-size:.68rem;color:#15803d;background:#ecfdf3;border-radius:999px;padding:6px 9px}.mobile-stock-pill{margin-left:auto;color:#15803d;background:#ecfdf3;border-radius:999px;padding:7px 12px;font-weight:900;font-size:.7rem}
  .product-detail-price{font-size:1.7rem;margin:12px 0 3px;font-weight:950;color:#132238}.product-detail-price del{font-size:.8rem}.product-sale-badge{position:absolute;z-index:3;top:18px;left:18px;background:#ff3347;font-size:.8rem;padding:8px 13px}.product-savings-pill{display:flex;width:100%;padding:9px 14px;margin:7px 0 10px;border-radius:999px;font-size:.85rem}.product-detail-info>p{font-size:.92rem;line-height:1.55;color:#64748b;margin:9px 0 13px}.product-detail-stock{font-size:1rem;margin:4px 0 12px}.product-detail-meta{display:none}
  .product-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 16px}.product-feature-grid>div{min-width:0;text-align:center;padding:11px 6px 10px;border:1px solid #e7ebf0;border-radius:14px;background:linear-gradient(180deg,#fff,#fafbfd);box-shadow:0 5px 14px rgba(15,23,42,.035)}.product-feature-grid span{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 7px;border-radius:50%;background:#f1f5f9;font-size:1.25rem}.product-feature-grid strong{display:block;font-size:.72rem;color:#172238}.product-feature-grid small{display:block;color:#7a8798;font-size:.61rem;line-height:1.25;margin-top:3px}
  .product-benefit-grid{grid-template-columns:repeat(4,1fr);gap:7px;margin:8px 0 13px}.product-benefit-grid>div{padding:9px 5px;text-align:center;border-radius:13px;background:#fff;font-size:.78rem}.product-benefit-grid>div strong{font-size:.67rem}.product-benefit-grid>div small{font-size:.56rem}.product-detail-purchase{position:relative;bottom:auto;z-index:20;margin:10px 0 0;padding:13px;border-radius:17px;box-shadow:0 -4px 20px rgba(15,23,42,.07);border:1px solid #edf1f5}.product-purchase-actions{grid-template-columns:1fr 1fr}.product-purchase-actions .btn{min-height:50px;font-size:.88rem}.product-qty-row{display:grid;grid-template-columns:48px 1fr 48px;gap:8px}.product-qty-input{max-width:none;width:100%}.product-cart-feedback{background:#ecfdf3;border-radius:13px;padding:9px 11px;margin-top:9px;color:#15803d}.product-share-row{display:none}
  .mobile-product-tabs{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:0;margin:16px -10px 0;border-top:1px solid #e7ebf0;border-bottom:1px solid #e7ebf0;background:#fff;position:sticky;top:55px;z-index:30}.mobile-product-tabs a{position:relative;text-align:center;padding:13px 4px;text-decoration:none;color:#64748b;font-size:.72rem;font-weight:800}.mobile-product-tabs a.active{color:#111827}.mobile-product-tabs a.active:after{content:"";position:absolute;left:14%;right:14%;bottom:-1px;height:3px;border-radius:3px;background:#2563eb}.mobile-product-details-anchor{display:block;scroll-margin-top:110px}
  .product-reviews-section,.product-qa-section{margin-top:12px;border-radius:16px}.reviews-header-enhanced h2{font-size:1.15rem}.reviews-overview{padding:12px}.reviews-score-card>strong{font-size:2rem}.review-discovery-toolbar{position:relative}.review-filter-row{padding-bottom:3px}.review-card-enhanced{padding:12px}.product-qa-section h2{font-size:1.1rem}
}
@media(max-width:390px){.mobile-product-app-header{grid-template-columns:34px minmax(0,1fr) 30px 30px 34px;gap:4px}.mobile-product-header-search{height:36px}.product-feature-grid{gap:5px}.product-feature-grid>div{padding-left:3px;padding-right:3px}.product-feature-grid span{width:36px;height:36px}.product-feature-grid strong{font-size:.64rem}.product-feature-grid small{font-size:.54rem}.product-benefit-grid>div small{display:none}.mobile-product-rating-row{gap:5px}}

/* PWA25.1 - premium mobile polish */
@media(max-width:600px){
  .mobile-product-header-icon svg{width:23px;height:23px;fill:currentColor;display:block}
  .mobile-product-header-icon.mobile-share-icon{font-size:0}
  .product-purchase-actions .product-buy-now{background:#ff3347!important;color:#fff!important;border:1px solid #ff3347!important;font-weight:900;box-shadow:0 6px 14px rgba(255,51,71,.18)}
  .product-purchase-actions .product-shop-button{background:#18202b!important;color:#fff!important;border-color:#18202b!important;font-weight:900}
  .product-detail-card{padding-bottom:0!important;margin-bottom:0!important}
  .mobile-product-tabs{margin-top:8px!important}
  .product-reviews-section{margin-top:8px!important}
  .product-reviews-section .reviews-header-enhanced{padding-top:4px}
}

/* PWA26 - mobile product search + purchase alignment */
@media(max-width:600px){
  .mobile-product-header-search{position:relative;display:flex;align-items:center;gap:6px;min-width:0;height:40px;padding:0 7px 0 10px;overflow:visible;}
  .mobile-product-header-search input{flex:1 1 auto;width:1px;min-width:0;height:38px;}
  .mobile-product-search-icon{flex:0 0 auto;font-size:1.15rem;color:#64748b;line-height:1;}
  .mobile-product-search-clear,.mobile-product-search-submit{flex:0 0 30px;width:30px;height:30px;border:0;background:transparent;color:#475569;border-radius:8px;display:grid;place-items:center;cursor:pointer;font-size:1.05rem;padding:0;}
  .mobile-product-search-submit{font-weight:900;}
  .mobile-product-search-clear[hidden]{display:none;}
  .mobile-product-search-suggestions{position:absolute;top:calc(100% + 7px);left:0;right:0;background:#fff;border:1px solid #dbe3ec;border-radius:14px;box-shadow:0 12px 30px rgba(15,23,42,.18);overflow:hidden;z-index:10080;max-height:300px;overflow-y:auto;}
  .mobile-product-search-suggestions a{display:flex;align-items:center;gap:9px;padding:10px 11px;text-decoration:none;color:#172238;border-bottom:1px solid #eef2f6;min-height:52px;}
  .mobile-product-search-suggestions a:last-child{border-bottom:0;}
  .mobile-product-search-suggestions a:active,.mobile-product-search-suggestions a:hover{background:#f8fafc;}
  .mobile-product-search-suggestions img,.mobile-product-search-suggestion-placeholder{width:38px;height:38px;flex:0 0 38px;border-radius:8px;object-fit:cover;background:#f1f5f9;display:grid;place-items:center;}
  .mobile-product-search-suggestion-text{min-width:0;display:flex;flex-direction:column;gap:2px;}
  .mobile-product-search-suggestion-text strong{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .mobile-product-search-suggestion-text small{font-size:.62rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .mobile-product-search-all{display:block!important;text-align:center;font-weight:850!important;color:#2563eb!important;padding:11px!important;}
  .mobile-product-search-no-results{text-align:center;padding:14px;color:#64748b;font-size:.72rem;}
  .product-purchase-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;gap:10px!important;}
  .product-purchase-actions .btn,.product-purchase-actions .product-buy-now{width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;padding:0 10px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;border-radius:13px!important;line-height:1!important;}
}
@media(max-width:390px){
  .mobile-product-search-submit,.mobile-product-search-clear{flex-basis:28px;width:28px;}
  .product-purchase-actions{gap:8px!important;}
  .product-purchase-actions .btn,.product-purchase-actions .product-buy-now{height:50px!important;min-height:50px!important;max-height:50px!important;font-size:.84rem!important;padding:0 7px!important;}
}


/* Phase 27 - mobile cart & checkout completion */
.checkout-mobile-sticky{display:none}
.cart-mobile-sticky-checkout{display:none}
@media(max-width:991.98px){
  .checkout-page{padding-bottom:88px}
  .checkout-mobile-sticky{position:fixed;left:0;right:0;bottom:0;z-index:25000;display:flex;align-items:center;gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid #e5e7eb;box-shadow:0 -8px 28px rgba(15,23,42,.12)}
  .checkout-mobile-sticky-total{min-width:0;display:flex;flex-direction:column;gap:1px;flex:1}
  .checkout-mobile-sticky-total small{font-size:.62rem;color:#64748b;font-weight:700}
  .checkout-mobile-sticky-total strong{font-size:1.05rem;color:#111827;white-space:nowrap}
  .checkout-mobile-place-order{border:0;border-radius:12px;background:#111827;color:#fff;font-weight:900;min-height:48px;padding:0 19px;font-size:.82rem;box-shadow:0 5px 14px rgba(15,23,42,.16)}
  .checkout-mobile-place-order:disabled{opacity:.65}
  .checkout-summary .checkout-place-order{display:none}
  .cart-page{padding-bottom:82px}
  .cart-mobile-sticky-checkout{position:fixed;left:0;right:0;bottom:0;z-index:24000;display:flex;align-items:center;gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid #e5e7eb;box-shadow:0 -8px 28px rgba(15,23,42,.12)}
  .cart-mobile-sticky-checkout>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
  .cart-mobile-sticky-checkout small{font-size:.62rem;color:#64748b;font-weight:700}
  .cart-mobile-sticky-checkout strong{font-size:1rem;color:#111827}
  .cart-mobile-sticky-checkout .store-checkout-btn{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:12px;text-decoration:none;font-weight:900;white-space:nowrap}
}


/* Phase PWA28 - mobile navigation drawer polish
   The drawer must sit above the mobile header/install strip and bottom navigation,
   while a tappable backdrop closes it without covering the rest of the page. */
.mobile-sidebar-backdrop{
    display:none;
}
@media(max-width:991.98px){
    .sidebar{
        position:fixed!important;
        left:0!important;
        top:0!important;
        bottom:0!important;
        width:min(82vw,330px)!important;
        height:100dvh!important;
        min-height:100dvh!important;
        max-height:none!important;
        padding:20px 14px calc(24px + env(safe-area-inset-bottom))!important;
        overflow-y:auto!important;
        overflow-x:hidden!important;
        transform:translate3d(-105%,0,0);
        transition:transform .24s cubic-bezier(.22,.61,.36,1);
        z-index:2147483647!important;
        box-shadow:12px 0 36px rgba(2,6,23,.28);
        overscroll-behavior:contain;
    }
    .sidebar.open{
        transform:translate3d(0,0,0)!important;
    }
    .mobile-sidebar-backdrop{
        position:fixed;
        inset:0;
        display:block;
        background:rgba(2,6,23,.48);
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transition:opacity .2s ease,visibility .2s ease;
        z-index:2147483646;
        -webkit-backdrop-filter:blur(2px);
        backdrop-filter:blur(2px);
    }
    .mobile-sidebar-backdrop.open{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
    }
    body.mobile-menu-open{
        overflow:hidden!important;
        touch-action:none;
    }
    .sidebar .brand{
        padding-top:4px;
        padding-bottom:24px;
    }
}
@media(max-width:430px){
    .sidebar{
        width:min(84vw,320px)!important;
        padding-left:12px!important;
        padding-right:12px!important;
    }
}
@media(min-width:992px){
    .mobile-sidebar-backdrop{display:none!important;}
}


/* Phase PWA29 - Product detail mobile cleanup
   Remove the promotional feature/benefit tiles and give the product header its own menu button. */
@media(max-width:600px){
  .store-product-layout .topbar .store-product-global-menu{display:none!important;}
  .mobile-product-app-header{
    grid-template-columns:34px 28px minmax(0,1fr) 34px 34px 40px!important;
    gap:5px!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100%;
    box-sizing:border-box;
  }
  .mobile-product-menu-button{
    width:34px!important;height:38px!important;
    padding:0!important;border:0!important;background:transparent!important;
    color:#122033!important;font-size:1.25rem!important;
  }
  .mobile-product-back-button{
    width:28px!important;height:38px!important;font-size:1.25rem!important;
  }
  .mobile-product-app-header + .store-back{display:none!important;}
  .product-feature-grid,.product-benefit-grid{display:none!important;}
}
@media(max-width:390px){
  .mobile-product-app-header{grid-template-columns:32px 26px minmax(0,1fr) 30px 30px 36px!important;gap:4px!important;}
  .mobile-product-menu-button{width:32px!important;}
  .mobile-product-back-button{width:26px!important;}
}

/* Phase PWA30 - compact customer header actions + cart quantity badges */
.header-notification-link{position:relative;display:inline-grid!important;place-items:center;width:42px;height:38px;padding:0!important;font-size:1.05rem;border-radius:10px;vertical-align:middle}
.header-notification-icon{line-height:1;display:block}
.header-notification-badge{position:absolute;top:-5px;right:-3px;min-width:20px;height:20px;padding:2px 5px;border-radius:999px;font-size:.62rem;line-height:16px;text-align:center;border:2px solid #fff}
.cart-badge-host{position:relative!important;overflow:visible!important}
.mobile-cart-count-badge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:2px 5px;border-radius:999px;background:#ef3340;color:#fff;font-size:.58rem;font-weight:950;line-height:16px;text-align:center;border:2px solid #fff;z-index:5}
.bottom-cart-badge{top:-8px;right:-9px;min-width:19px;height:19px;font-size:.56rem}
@media(max-width:991.98px){
  .header-notification-link{margin-right:8px!important}
  .topbar .wishlist-header-link{margin-right:8px!important}
  .topbar .pwa-mobile-hide{display:none!important}
}
@media(max-width:600px){
  .mobile-product-cart{overflow:visible!important}
  .mobile-product-cart .mobile-cart-count-badge{top:-5px;right:-5px}
  .pwa-bottom-nav a.cart-badge-host>span:first-child{position:relative;display:inline-block;line-height:1}
}


/* Phase PWA31 - match mobile customer header design */
@media(max-width:600px){
  /* Product pages use the dedicated shopping header; remove the duplicate customer action row. */
  .store-product-layout .topbar{display:none!important;}
  .store-product-layout .pwa-mobile-install-bar{top:0!important;}

  .store-product-layout .mobile-product-app-header{
    grid-template-columns:34px 28px minmax(0,1fr) 34px 34px 34px 40px!important;
    gap:5px!important;
  }
  .store-product-layout .mobile-product-notification{
    width:34px!important;height:38px!important;padding:0!important;
    display:grid!important;place-items:center!important;
    border:0!important;background:transparent!important;
    font-size:1.2rem!important;
    position:relative!important;overflow:visible!important;
  }
  .mobile-notification-count-badge{
    position:absolute;top:-5px;right:-4px;
    min-width:20px;height:20px;padding:2px 5px;
    border-radius:999px;background:#ef3340;color:#fff;
    font-size:.58rem;font-weight:950;line-height:16px;
    text-align:center;border:2px solid #fff;z-index:6;
  }
  .store-product-layout .mobile-product-cart{
    width:40px!important;height:38px!important;
  }
}
@media(max-width:390px){
  .store-product-layout .mobile-product-app-header{
    grid-template-columns:32px 26px minmax(0,1fr) 30px 30px 30px 36px!important;gap:4px!important;
  }
  .store-product-layout .mobile-product-notification{width:30px!important;}
}

/* Phase PWA32 - exact mobile customer header alignment */
@media(max-width:600px){
  .store-product-layout .pwa-mobile-install-bar{display:none!important;}
  .store-product-layout .mobile-product-app-header{
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    padding:8px 14px!important;
    grid-template-columns:34px 28px minmax(0,1fr) 34px 34px 34px 40px!important;
    gap:6px!important;
    background:#fff!important;
    box-shadow:0 2px 12px rgba(15,23,42,.08)!important;
  }
  .store-product-layout .mobile-product-header-icon{width:34px!important;height:40px!important;}
  .store-product-layout .mobile-product-back-button{width:28px!important;}
  .store-product-layout .mobile-product-header-search{height:40px!important;min-width:0!important;padding:0 7px 0 10px!important;border-radius:14px!important;}
  .store-product-layout .mobile-product-header-search input{font-size:.82rem!important;}
  .store-product-layout .mobile-product-notification{position:relative!important;border:0!important;background:transparent!important;font-size:1.2rem!important;overflow:visible!important;}
  .store-product-layout .mobile-product-notification svg{width:25px!important;height:25px!important;fill:#111827!important;display:block!important;}
  .store-product-layout .mobile-product-cart{position:relative!important;width:40px!important;height:40px!important;border:1px solid #e5eaf0!important;border-radius:11px!important;background:#fff!important;display:grid!important;place-items:center!important;overflow:visible!important;font-size:1.15rem!important;}
  .store-product-layout .mobile-product-cart-icon{line-height:1!important;display:block!important;}
  .store-product-layout .mobile-notification-count-badge,
  .store-product-layout .mobile-cart-count-badge{position:absolute!important;top:-6px!important;right:-5px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important;border:2px solid #fff!important;z-index:20!important;}
  .store-product-layout .mobile-cart-count-badge[hidden]{display:none!important;}
  .store-product-layout .mobile-product-app-header + .store-back{display:none!important;}
}
@media(max-width:390px){
  .store-product-layout .mobile-product-app-header{padding:8px 10px!important;grid-template-columns:32px 26px minmax(0,1fr) 30px 30px 30px 36px!important;gap:4px!important;}
  .store-product-layout .mobile-product-header-icon{width:30px!important;}
  .store-product-layout .mobile-product-back-button{width:26px!important;}
  .store-product-layout .mobile-product-cart{width:36px!important;}
}

/* Phase PWA33 - simplified mobile product header + share moved to product image */
@media(max-width:600px){
  .store-product-layout .mobile-product-app-header{
    grid-template-columns:34px 28px minmax(0,1fr) 34px 34px!important;
    gap:6px!important;
    padding:8px 14px!important;
  }
  .store-product-layout .mobile-product-header-search{
    width:100%!important;
    min-width:0!important;
  }
  .store-product-layout .mobile-product-header-search input{
    font-size:.86rem!important;
  }
  .store-product-layout .mobile-product-app-header .mobile-product-notification{
    width:34px!important;
    height:40px!important;
  }
  .store-product-layout .mobile-product-app-header .mobile-product-header-form{
    width:34px!important;
  }
  .store-product-layout .mobile-product-app-header .mobile-product-header-form .mobile-product-header-icon{
    width:34px!important;
    height:40px!important;
  }
  .store-product-layout .mobile-product-app-header .mobile-product-cart,
  .store-product-layout .mobile-product-app-header .mobile-share-icon{
    display:none!important;
  }

  .store-product-layout .product-gallery-stage{
    position:relative!important;
  }
  .store-product-layout .gallery-share-button{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    z-index:8!important;
    width:40px!important;
    height:40px!important;
    padding:0!important;
    border:1px solid rgba(226,232,240,.9)!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.94)!important;
    color:#172238!important;
    display:grid!important;
    place-items:center!important;
    box-shadow:0 5px 16px rgba(15,23,42,.14)!important;
    backdrop-filter:blur(8px)!important;
    cursor:pointer!important;
  }
  .store-product-layout .gallery-share-button svg{
    width:21px!important;
    height:21px!important;
    fill:currentColor!important;
    display:block!important;
  }
  .store-product-layout .gallery-stage-tools{
    left:12px!important;
    right:auto!important;
    top:12px!important;
    z-index:7!important;
  }
}
@media(max-width:390px){
  .store-product-layout .mobile-product-app-header{
    grid-template-columns:32px 26px minmax(0,1fr) 30px 30px!important;
    gap:4px!important;
    padding:8px 10px!important;
  }
  .store-product-layout .mobile-product-app-header .mobile-product-header-form,
  .store-product-layout .mobile-product-app-header .mobile-product-header-form .mobile-product-header-icon,
  .store-product-layout .mobile-product-app-header .mobile-product-notification{
    width:30px!important;
  }
  .store-product-layout .gallery-share-button{
    top:9px!important;
    right:9px!important;
    width:36px!important;
    height:36px!important;
  }
}


/* Phase PWA36 - Store page uses the same mobile shopping header as Product Details. */
.mobile-store-app-header{display:none}
@media(max-width:600px){
  .store-index-layout .topbar{display:none!important;}
  .store-index-layout .pwa-mobile-install-bar{display:none!important;}
  .store-index-layout .mobile-store-app-header{
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) 38px 38px!important;
    gap:7px!important;
    align-items:center!important;
    position:sticky!important; top:0!important; z-index:2147483000!important;
    width:100vw!important; margin-left:calc(50% - 50vw)!important;
    box-sizing:border-box!important; padding:8px 14px!important;
    background:#fff!important; border-bottom:1px solid #e8edf3!important;
    box-shadow:0 2px 12px rgba(15,23,42,.08)!important;
  }
  .store-index-layout .mobile-store-header-icon{
    width:38px!important;height:40px!important;border:0!important;background:transparent!important;
    color:#122033!important;display:grid!important;place-items:center!important;text-decoration:none!important;
    font-size:1.65rem!important;border-radius:11px!important;position:relative!important;
  }
  .store-index-layout .mobile-store-menu-button{font-size:1.35rem!important;}
  .store-index-layout .mobile-store-header-search{
    position:relative!important;display:flex!important;align-items:center!important;gap:6px!important;
    min-width:0!important;width:100%!important;height:42px!important;padding:0 8px 0 11px!important;
    border:1px solid #dce3eb!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  }
  .store-index-layout .mobile-store-header-search>span{font-size:1.25rem;color:#64748b;line-height:1}
  .store-index-layout .mobile-store-header-search input{flex:1 1 auto!important;width:1px!important;min-width:0!important;height:38px!important;border:0!important;outline:0!important;background:transparent!important;font-size:.9rem!important;color:#334155!important;}
  .store-index-layout .mobile-store-search-submit,.store-index-layout .mobile-store-search-clear{border:0!important;background:transparent!important;color:#122033!important;padding:0!important;width:28px!important;height:32px!important;font-size:1.2rem!important;display:grid!important;place-items:center!important;}
  .store-index-layout .mobile-store-notification svg{width:25px!important;height:25px!important;fill:#111827!important;}
  .store-index-layout .mobile-store-notification{overflow:visible!important;}
  .store-index-layout .mobile-notification-count-badge{position:absolute!important;top:-5px!important;right:-4px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important;border:2px solid #fff!important;z-index:20!important;}
  .store-index-layout .mobile-product-search-suggestions{left:0!important;right:0!important;top:47px!important;max-height:62vh!important;z-index:2147483001!important;}
}
@media(max-width:390px){
  .store-index-layout .mobile-store-app-header{grid-template-columns:32px minmax(0,1fr) 32px 32px!important;gap:4px!important;padding:8px 10px!important;}
  .store-index-layout .mobile-store-header-icon{width:32px!important;}
}


/* Phase PWA37 - Store search functional + restore mobile bottom navigation */
@media(max-width:991.98px){
  .store-index-layout .mobile-store-app-header{
    display:grid!important;
  }
  .store-index-layout .pwa-bottom-nav{
    display:flex!important;
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    z-index:2147483646!important;
  }
  .store-index-layout{
    padding-bottom:150px!important;
  }
}
@media(min-width:992px){
  .store-index-layout .mobile-store-app-header{display:none!important;}
}

/* Phase PWA38 - Store header is structurally identical to Product Details */
@media(max-width:991.98px){
  .store-index-layout .store-mobile-product-header{display:grid!important;position:relative!important;top:auto!important;z-index:10040!important;width:100vw!important;margin-left:calc(50% - 50vw)!important;box-sizing:border-box!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #e8edf3!important;box-shadow:0 4px 18px rgba(15,23,42,.06)!important;}
  .store-index-layout .store-mobile-back-placeholder{display:grid!important;width:28px!important;height:40px!important;font-size:1.1rem!important;}
  .store-index-layout .mobile-product-header-icon{width:34px!important;height:40px!important;border:0!important;background:transparent!important;color:#122033!important;display:grid!important;place-items:center!important;text-decoration:none!important;}
  .store-index-layout .mobile-product-menu-button{font-size:1.35rem!important;}
  .store-index-layout .mobile-product-header-search{position:relative!important;display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;width:100%!important;height:42px!important;padding:0 8px 0 11px!important;border:1px solid #dce3eb!important;border-radius:14px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;}
  .store-index-layout .mobile-product-header-search input{flex:1 1 auto!important;width:1px!important;min-width:0!important;height:38px!important;border:0!important;outline:0!important;background:transparent!important;font-size:.9rem!important;color:#334155!important;}
  .store-index-layout .mobile-product-search-clear,.store-index-layout .mobile-product-search-submit{border:0!important;background:transparent!important;color:#122033!important;padding:0!important;width:28px!important;height:32px!important;display:grid!important;place-items:center!important;}
  .store-index-layout .mobile-product-notification{position:relative!important;overflow:visible!important;}
  .store-index-layout .mobile-product-notification svg{width:25px!important;height:25px!important;fill:#111827!important;display:block!important;}
  .store-index-layout .mobile-notification-count-badge{position:absolute!important;top:-6px!important;right:-5px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important;border:2px solid #fff!important;z-index:20!important;}
  .store-index-layout .mobile-product-search-suggestions{left:0!important;right:0!important;top:48px!important;z-index:2147483001!important;}
  .store-index-layout{padding-bottom:96px!important;}
}
@media(max-width:600px){
  .store-index-layout .store-mobile-product-header{grid-template-columns:32px 26px minmax(0,1fr) 32px 32px!important;gap:4px!important;padding:8px 10px!important;}
  .store-index-layout .mobile-product-header-search{height:40px!important;}
  .store-index-layout .mobile-product-header-search input{font-size:.84rem!important;}
}
@media(max-width:390px){
  .store-index-layout .store-mobile-product-header{grid-template-columns:30px 24px minmax(0,1fr) 29px 29px!important;gap:3px!important;padding:7px 8px!important;}
  .store-index-layout .store-mobile-back-placeholder{width:24px!important;}
  .store-index-layout .mobile-product-header-icon{width:29px!important;}
}
@media(min-width:992px){.store-index-layout .store-mobile-product-header{display:none!important;}}

/* Phase PWA38 - definitive Store page mobile shell fix.
   store-index-layout is on the page wrapper, while the shared topbar/install/nav
   live outside that wrapper in _Layout. Use the body class for those elements. */
@media(max-width:991.98px){
  body.store-index-layout .topbar{display:none!important;}
  body.store-index-layout .pwa-mobile-install-bar{display:none!important;}
  body.store-index-layout .pwa-bottom-nav{display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:2147483646!important;min-height:62px!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;}
  body.store-index-layout main.container-fluid{padding-bottom:92px!important;}
  body.store-index-layout .store-index-layout{padding-bottom:92px!important;}
  body.store-index-layout .store-mobile-product-header{display:grid!important;}
}
@media(max-width:600px){
  body.store-index-layout .store-mobile-product-header{grid-template-columns:32px 24px minmax(0,1fr) 34px 34px!important;gap:5px!important;padding:8px 10px!important;align-items:center!important;}
  body.store-index-layout .store-mobile-back-placeholder{display:grid!important;width:24px!important;height:40px!important;align-items:center!important;justify-content:center!important;font-size:1.05rem!important;color:#122033!important;text-decoration:none!important;}
  body.store-index-layout .mobile-product-header-search{min-width:0!important;width:100%!important;height:40px!important;}
  body.store-index-layout .mobile-product-header-search input{font-size:.86rem!important;}
  body.store-index-layout .mobile-product-header-form,
  body.store-index-layout .store-mobile-wishlist,
  body.store-index-layout .mobile-product-notification{display:grid!important;width:34px!important;height:40px!important;}
  body.store-index-layout .mobile-product-notification{position:relative!important;overflow:visible!important;}
  body.store-index-layout .mobile-product-notification svg{width:25px!important;height:25px!important;fill:#111827!important;}
  body.store-index-layout .mobile-notification-count-badge{position:absolute!important;top:-5px!important;right:-5px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;border:2px solid #fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important;z-index:20!important;}
}
@media(max-width:390px){
  body.store-index-layout .store-mobile-product-header{grid-template-columns:29px 22px minmax(0,1fr) 30px 30px!important;gap:3px!important;padding:7px 8px!important;}
  body.store-index-layout .store-mobile-back-placeholder{width:22px!important;}
  body.store-index-layout .mobile-product-header-icon,
  body.store-index-layout .mobile-product-header-form,
  body.store-index-layout .store-mobile-wishlist,
  body.store-index-layout .mobile-product-notification{width:30px!important;}
}

/* Phase PWA40 - Store header: same visual language as Product Details, without Back */
@media(max-width:991.98px){
  body.store-index-layout .store-mobile-product-header{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 38px 38px!important;
    gap:8px!important;
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    padding:9px 12px!important;
    box-sizing:border-box!important;
    align-items:center!important;
    position:relative!important;
    z-index:10040!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #e8edf3!important;
    box-shadow:0 4px 18px rgba(15,23,42,.06)!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-header-icon{
    width:38px!important;height:42px!important;border:0!important;background:transparent!important;
    color:#122033!important;display:grid!important;place-items:center!important;text-decoration:none!important;
    padding:0!important;margin:0!important;line-height:1!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-menu-button{font-size:1.55rem!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-header-search{
    min-width:0!important;width:100%!important;height:42px!important;box-sizing:border-box!important;
    padding:0 8px 0 12px!important;border:1px solid #dce3eb!important;border-radius:15px!important;
    background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
    display:flex!important;align-items:center!important;gap:5px!important;position:relative!important;margin:0!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-header-search input{
    flex:1 1 auto!important;width:1px!important;min-width:0!important;height:40px!important;
    border:0!important;outline:0!important;background:transparent!important;font-size:.94rem!important;color:#334155!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-search-icon{font-size:1.05rem!important;flex:0 0 auto!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-search-clear,
  body.store-index-layout .store-mobile-product-header .mobile-product-search-submit{
    border:0!important;background:transparent!important;color:#122033!important;padding:0!important;
    width:30px!important;height:32px!important;display:grid!important;place-items:center!important;
    flex:0 0 30px!important;
  }
  body.store-index-layout .store-mobile-product-header .store-mobile-wishlist{
    font-size:2rem!important;font-family:Arial,sans-serif!important;font-weight:400!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-notification{position:relative!important;overflow:visible!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-notification svg{
    width:26px!important;height:26px!important;fill:#111827!important;display:block!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-notification-count-badge{
    position:absolute!important;top:-2px!important;right:-3px!important;min-width:20px!important;height:20px!important;
    padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;
    border:2px solid #fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;
    text-align:center!important;z-index:20!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-search-suggestions{
    left:0!important;right:0!important;top:49px!important;z-index:2147483001!important;
  }
  body.store-index-layout .pwa-bottom-nav{
    display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    z-index:2147483646!important;min-height:62px!important;padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;
  }
  body.store-index-layout main.container-fluid{padding-bottom:96px!important;}
}
@media(max-width:390px){
  body.store-index-layout .store-mobile-product-header{
    grid-template-columns:34px minmax(0,1fr) 34px 34px!important;gap:5px!important;padding:8px 8px!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-header-icon{width:34px!important;height:40px!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-header-search{height:40px!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-header-search input{font-size:.88rem!important;}
}
@media(min-width:992px){body.store-index-layout .store-mobile-product-header{display:none!important;}}


/* Phase PWA41 - sticky mobile headers + remove Wishlist from headers.
   Wishlist remains available from Account/My Wishlist and product-level controls. */
@media(max-width:991.98px){
  /* Store header: sticky at the top while the catalog scrolls. */
  body.store-index-layout .store-mobile-product-header{
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    box-sizing:border-box!important;
  }
  /* Store now has only Menu + Search + Notifications. */
  body.store-index-layout .store-mobile-product-header{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    gap:8px!important;
  }
  body.store-index-layout .store-mobile-product-header .store-mobile-wishlist,
  body.store-index-layout .store-mobile-product-header .mobile-product-header-form{display:none!important;}

  /* Product details header: keep Menu + Back + Search + Notifications, no Wishlist. */
  body.store-product-layout .mobile-product-app-header{
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
  }
  body.store-product-layout .mobile-product-app-header .mobile-product-header-form{display:none!important;}
  body.store-product-layout .mobile-product-app-header{
    grid-template-columns:38px 30px minmax(0,1fr) 38px!important;
    gap:6px!important;
  }
}

@media(max-width:390px){
  body.store-index-layout .store-mobile-product-header{
    grid-template-columns:34px minmax(0,1fr) 34px!important;
    gap:5px!important;
    padding:8px 8px!important;
  }
  body.store-product-layout .mobile-product-app-header{
    grid-template-columns:34px 26px minmax(0,1fr) 34px!important;
    gap:4px!important;
  }
}

@media(min-width:992px){
  /* Desktop header also stays visible while scrolling. */
  .topbar{
    position:sticky!important;
    top:0!important;
    z-index:11000!important;
  }
}

/* Phase PWA42 - Store header filter/sort controls directly under the header search. */
.store-header-filter-form{display:none}
.store-header-filter-row{display:none}
@media(max-width:991.98px){
  body.store-index-layout .store-mobile-product-header{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    grid-template-rows:auto auto!important;
    row-gap:8px!important;
    padding:9px 12px 10px!important;
    align-items:center!important;
    overflow:visible!important;
  }
  body.store-index-layout .store-header-filter-row{
    display:grid!important;
    grid-column:1 / -1!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
  }
  body.store-index-layout .store-header-filter-button{
    min-height:40px!important;
    border:1px solid #dce3eb!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#122033!important;
    font-size:.9rem!important;
    font-weight:850!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  }
  body.store-index-layout .store-header-filter-button[aria-expanded="true"]{background:#f1f5f9!important;}
  body.store-index-layout .store-header-filter-form{
    display:block!important;
    position:absolute!important;
    left:10px!important;
    right:10px!important;
    top:100%!important;
    margin:0!important;
    z-index:2147483002!important;
    background:#fff!important;
    border:1px solid #dce3eb!important;
    border-radius:16px!important;
    box-shadow:0 14px 30px rgba(15,23,42,.16)!important;
  }
  body.store-index-layout .store-header-filter-panel-title{font-size:.9rem!important;font-weight:900!important;color:#122033!important;padding:2px 2px 6px!important;}
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel{
    display:none!important;
    position:static!important;
    padding:12px!important;
    background:#fff!important;
    border:0!important;
    box-shadow:none!important;
    gap:9px!important;
  }
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important;}
  body.store-index-layout .store-header-filter-form select,
  body.store-index-layout .store-header-filter-form input[type="number"]{
    min-height:42px!important;
    width:100%!important;
    box-sizing:border-box!important;
    border:1px solid #dce3eb!important;
    border-radius:10px!important;
    background:#fff!important;
    padding:0 11px!important;
    color:#122033!important;
  }
  body.store-index-layout .store-header-filter-form .price-filter{display:grid!important;grid-template-columns:1fr 18px 1fr!important;align-items:center!important;gap:5px!important;}
  body.store-index-layout .store-header-filter-form .price-filter span{text-align:center!important;color:#64748b!important;}
  body.store-index-layout .store-header-filter-form .stock-filter{display:flex!important;align-items:center!important;gap:7px!important;font-size:.82rem!important;font-weight:750!important;color:#334155!important;}
  body.store-index-layout .store-header-filter-form .stock-filter input{width:auto!important;min-height:0!important;}
  body.store-index-layout .store-header-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  body.store-index-layout .store-header-filter-actions button{min-height:42px!important;border-radius:10px!important;border:1px solid #dce3eb!important;background:#fff!important;font-weight:850!important;}
  body.store-index-layout .store-header-filter-actions button[type="submit"]{background:#122033!important;color:#fff!important;border-color:#122033!important;}
  body.store-index-layout .store-mobile-product-header .mobile-product-search-suggestions{top:49px!important;}
  body.store-index-layout .amazon-search-form{display:none!important;}
  body.store-index-layout .store-active-deal-filter{display:none!important;}
}
@media(max-width:390px){
  body.store-index-layout .store-mobile-product-header{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:5px!important;padding:8px 8px 9px!important;}
  body.store-index-layout .store-header-filter-row{gap:7px!important;}
  body.store-index-layout .store-header-filter-button{min-height:38px!important;font-size:.82rem!important;}
}
@media(min-width:992px){
  .shop-page > .amazon-search-form .deal-filter-toggle{display:none!important;}
}


/* Phase PWA43 desktop cart badge parity. Keep Cart out of the mobile header,
   but expose the same live cart count in the desktop customer topbar. */
.desktop-cart-link{position:relative!important;overflow:visible!important;display:inline-grid!important;place-items:center;width:42px;height:38px;padding:0!important;border-radius:10px;}
.desktop-cart-link .desktop-cart-icon{line-height:1;font-size:1.05rem;}
.desktop-cart-count-badge{top:-6px!important;right:-5px!important;min-width:20px!important;height:20px!important;font-size:.58rem!important;}
@media(max-width:991.98px){.desktop-cart-link{display:none!important;}}

/* Phase PWA45 - Desktop Store header parity with the approved mobile design. */
@media (min-width: 992px){
  body.store-index-layout .topbar{display:none!important;}
  body.store-index-layout .pwa-mobile-install-bar{display:none!important;}
  body.store-index-layout .store-mobile-product-header{
    display:grid!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100%!important;
    margin:0!important;
    box-sizing:border-box!important;
    grid-template-columns:44px minmax(420px,1fr) 44px minmax(360px,auto)!important;
    grid-template-rows:54px 52px!important;
    gap:8px 10px!important;
    align-items:center!important;
    padding:8px 18px 10px!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #e8edf3!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{display:none!important;}
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search{
    grid-column:1 / 3!important;
    grid-row:1!important;
    height:46px!important;
    border-radius:14px!important;
    padding:0 12px!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification{
    grid-column:3!important;
    grid-row:1!important;
    width:44px!important;
    height:44px!important;
  }
  body.store-index-layout .store-mobile-product-header .mobile-product-notification svg{width:27px!important;height:27px!important;}
  body.store-index-layout .store-desktop-account-actions{
    grid-column:4!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  body.store-index-layout .store-desktop-account-link,
  body.store-index-layout .store-desktop-logout{
    min-height:38px!important;
    padding:7px 12px!important;
    border:1px solid #d5dde7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#334155!important;
    text-decoration:none!important;
    font-size:.84rem!important;
    font-weight:700!important;
  }
  body.store-index-layout .store-desktop-logout{border-color:#f87171!important;color:#dc2626!important;}
  body.store-index-layout .store-desktop-user{max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#64748b!important;font-size:.8rem!important;}
  body.store-index-layout .store-desktop-cart-link{position:relative!important;width:42px!important;height:40px!important;display:grid!important;place-items:center!important;border:1px solid #d5dde7!important;border-radius:10px!important;text-decoration:none!important;font-size:1.1rem!important;color:#122033!important;}
  body.store-index-layout .store-desktop-cart-link .desktop-cart-count-badge{position:absolute!important;top:-7px!important;right:-7px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;border:2px solid #fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important;}
  body.store-index-layout .store-header-filter-row{
    display:grid!important;
    grid-column:1 / -1!important;
    grid-row:2!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
  }
  body.store-index-layout .store-header-filter-button{
    min-height:44px!important;
    border:1px solid #dce3eb!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#122033!important;
    font-size:.92rem!important;
    font-weight:850!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  }
  body.store-index-layout .store-header-filter-button[aria-expanded="true"]{background:#f1f5f9!important;}
  body.store-index-layout .store-header-filter-form{display:block!important;position:absolute!important;left:18px!important;right:18px!important;top:114px!important;z-index:2147483002!important;}
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel{display:none!important;}
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important;}
}
@media (min-width: 992px) and (max-width: 1200px){
  body.store-index-layout .store-mobile-product-header{grid-template-columns:44px minmax(300px,1fr) 44px minmax(260px,auto)!important;padding-left:12px!important;padding-right:12px!important;}
  body.store-index-layout .store-desktop-user{display:none!important;}
  body.store-index-layout .store-desktop-account-link{padding-left:8px!important;padding-right:8px!important;font-size:.78rem!important;}
}

/* Phase PWA46 - Store header final responsive parity.
   The Store page owns its shopping header on desktop and mobile. */
.shop-page.store-index-layout > .amazon-search-form{display:none!important;}

/* Mobile: only Menu + Search + Notifications belong in the Store header. */
@media (max-width:991.98px){
  body.store-index-layout .store-mobile-product-header{
    display:grid!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    grid-template-rows:56px 52px!important;
    gap:7px 8px!important;
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    padding:8px 14px 10px!important;
    box-sizing:border-box!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #e5eaf0!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{
    display:grid!important;
    grid-column:1!important;grid-row:1!important;
    width:40px!important;height:40px!important;
    place-items:center!important;
    font-size:1.65rem!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search{
    display:flex!important;
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;height:44px!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification{
    display:grid!important;
    grid-column:3!important;grid-row:1!important;
    width:40px!important;height:40px!important;
    place-items:center!important;
  }
  body.store-index-layout .store-desktop-account-actions{display:none!important;}
  body.store-index-layout .store-header-filter-row{
    display:grid!important;
    grid-column:1/-1!important;grid-row:2!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;width:100%!important;
  }
  body.store-index-layout .store-header-filter-button{min-height:44px!important;border-radius:999px!important;}
  body.store-index-layout .store-header-filter-form{top:114px!important;left:14px!important;right:14px!important;}
  body.store-index-layout main.container-fluid{padding-top:0!important;padding-bottom:96px!important;}
}

/* Desktop: wide search first, notification next, customer actions last. */
@media (min-width:992px){
  body.store-index-layout .topbar{display:none!important;}
  body.store-index-layout .pwa-mobile-install-bar{display:none!important;}
  body.store-index-layout .store-mobile-product-header{
    display:grid!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100%!important;
    margin:0!important;
    padding:10px 18px 12px!important;
    box-sizing:border-box!important;
    grid-template-columns:minmax(420px,1fr) 44px minmax(420px,auto)!important;
    grid-template-rows:50px 50px!important;
    gap:8px 12px!important;
    align-items:center!important;
    background:rgba(255,255,255,.99)!important;
    border-bottom:1px solid #e5eaf0!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{display:none!important;}
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search{
    display:flex!important;
    grid-column:1!important;grid-row:1!important;
    width:100%!important;min-width:0!important;height:46px!important;
    box-sizing:border-box!important;
    border-radius:14px!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification{
    display:grid!important;
    grid-column:2!important;grid-row:1!important;
    width:44px!important;height:44px!important;
    place-items:center!important;
  }
  body.store-index-layout .store-desktop-account-actions{
    display:flex!important;
    grid-column:3!important;grid-row:1!important;
    align-items:center!important;justify-content:flex-end!important;
    gap:8px!important;min-width:0!important;white-space:nowrap!important;
  }
  body.store-index-layout .store-desktop-account-link,
  body.store-index-layout .store-desktop-logout{
    min-height:38px!important;padding:7px 12px!important;
    border:1px solid #d5dde7!important;border-radius:10px!important;
    background:#fff!important;text-decoration:none!important;
    font-size:.84rem!important;font-weight:700!important;
  }
  body.store-index-layout .store-desktop-user{max-width:190px!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#64748b!important;font-size:.8rem!important;}
  body.store-index-layout .store-header-filter-row{
    display:grid!important;grid-column:1/-1!important;grid-row:2!important;
    grid-template-columns:1fr 1fr!important;gap:12px!important;width:100%!important;
  }
  body.store-index-layout .store-header-filter-button{min-height:44px!important;border-radius:999px!important;}
  body.store-index-layout .store-header-filter-form{top:118px!important;left:18px!important;right:18px!important;}
}

/* Phase PWA47 - Desktop Store header: definitive responsive layout.
   Use flex for the desktop first row so the search always receives the available width
   instead of being squeezed by grid min-content sizing. */
@media (min-width: 992px){
  body.store-index-layout .store-mobile-product-header{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:10px!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100%!important;
    min-height:112px!important;
    padding:10px 18px 12px!important;
    box-sizing:border-box!important;
    background:rgba(255,255,255,.99)!important;
    border-bottom:1px solid #e5eaf0!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{display:none!important;}
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search{
    order:1!important;
    flex:1 1 520px!important;
    width:auto!important;
    min-width:420px!important;
    max-width:none!important;
    height:46px!important;
    box-sizing:border-box!important;
    border:1px solid #dce3eb!important;
    border-radius:14px!important;
    background:#fff!important;
    position:relative!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search input{
    flex:1 1 auto!important;
    width:1px!important;
    min-width:0!important;
    font-size:.95rem!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification{
    order:2!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    overflow:visible!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification svg{
    width:27px!important;height:27px!important;fill:#111827!important;
  }
  body.store-index-layout .store-desktop-account-actions{
    order:3!important;
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    min-width:0!important;
    white-space:nowrap!important;
  }
  body.store-index-layout .store-desktop-cart-link{
    position:relative!important;
    width:42px!important;height:40px!important;
    display:grid!important;place-items:center!important;
    flex:0 0 42px!important;
    border:1px solid #d5dde7!important;
    border-radius:10px!important;
    text-decoration:none!important;
    font-size:1.1rem!important;
  }
  body.store-index-layout .store-desktop-cart-link .desktop-cart-count-badge{
    position:absolute!important;top:-7px!important;right:-7px!important;
    min-width:20px!important;height:20px!important;padding:2px 5px!important;
    border-radius:999px!important;background:#ef3340!important;color:#fff!important;
    border:2px solid #fff!important;font-size:.58rem!important;font-weight:950!important;
    line-height:16px!important;text-align:center!important;
  }
  body.store-index-layout .store-desktop-account-link,
  body.store-index-layout .store-desktop-logout{
    min-height:38px!important;
    padding:7px 12px!important;
    border:1px solid #d5dde7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#334155!important;
    text-decoration:none!important;
    font-size:.84rem!important;
    font-weight:700!important;
  }
  body.store-index-layout .store-desktop-logout{border-color:#f87171!important;color:#dc2626!important;}
  body.store-index-layout .store-desktop-user{
    display:block!important;max-width:170px!important;overflow:hidden!important;
    text-overflow:ellipsis!important;color:#64748b!important;font-size:.8rem!important;
  }
  body.store-index-layout .store-header-filter-row{
    order:4!important;
    flex:0 0 100%!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
    margin:0!important;
  }
  body.store-index-layout .store-header-filter-button{
    min-height:44px!important;
    border:1px solid #dce3eb!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#122033!important;
    font-size:.92rem!important;
    font-weight:850!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
  }
  body.store-index-layout .store-header-filter-form{
    display:block!important;
    position:absolute!important;
    left:18px!important;
    right:18px!important;
    top:116px!important;
    z-index:2147483002!important;
  }
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel{display:none!important;}
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important;}
  body.store-index-layout .mobile-product-search-suggestions{
    top:50px!important;
    left:0!important;
    right:auto!important;
    width:min(560px,70vw)!important;
    max-height:520px!important;
    overflow:auto!important;
    z-index:2147483005!important;
  }
  /* Never render the legacy Store filter/search form on desktop. */
  body.store-index-layout > .shop-page.store-index-layout > .amazon-search-form,
  body.store-index-layout .shop-page.store-index-layout > .amazon-search-form{display:none!important;}
}

/* PWA47: keep the mobile Store header exactly as approved. */
@media (max-width:991.98px){
  body.store-index-layout .store-mobile-product-header{position:sticky!important;top:0!important;}
  body.store-index-layout .store-desktop-account-actions{display:none!important;}
  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{display:grid!important;}
}

/* Phase PWA48 - Desktop Store header: clean two-row responsive composition.
   The search field owns its suggestion dropdown; customer/admin actions stay on
   the same first row and the Filters/Sort controls occupy the second row. */
@media (min-width: 992px){
  body.store-index-layout .store-mobile-product-header{
    display:grid!important;
    grid-template-columns:minmax(360px,1fr) 44px minmax(0,auto)!important;
    grid-template-rows:52px 46px!important;
    align-items:center!important;
    column-gap:12px!important;
    row-gap:8px!important;
    width:100%!important;
    min-height:106px!important;
    padding:10px 18px 12px!important;
    box-sizing:border-box!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    background:#fff!important;
    border-bottom:1px solid #e5eaf0!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{
    display:none!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    margin:0!important;
    padding:0 10px 0 13px!important;
    box-sizing:border-box!important;
    border:1px solid #cfd8e3!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(15,23,42,.05)!important;
    overflow:visible!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search .mobile-product-search-icon{
    flex:0 0 auto!important;
    font-size:1.05rem!important;
    color:#64748b!important;
    line-height:1!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search input{
    flex:1 1 auto!important;
    width:1px!important;
    min-width:0!important;
    height:42px!important;
    margin:0!important;
    padding:0 8px!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    font-size:.95rem!important;
    color:#172033!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search input::-webkit-search-decoration,
  body.store-index-layout .store-mobile-product-header > .mobile-product-header-search input::-webkit-search-cancel-button{
    -webkit-appearance:none!important;
    appearance:none!important;
  }

  body.store-index-layout .store-mobile-product-header .mobile-product-search-clear,
  body.store-index-layout .store-mobile-product-header .mobile-product-search-submit{
    flex:0 0 32px!important;
    width:32px!important;
    height:34px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    color:#122033!important;
    display:grid!important;
    place-items:center!important;
    font-size:1.15rem!important;
    cursor:pointer!important;
  }

  /* Critical desktop fix: suggestions must be a dropdown below the search,
     never normal-flow content that stretches/splits the header. */
  body.store-index-layout .store-mobile-product-header .mobile-product-search-suggestions{
    position:absolute!important;
    left:0!important;
    right:auto!important;
    top:calc(100% + 7px)!important;
    width:min(560px,calc(100vw - 320px))!important;
    max-width:560px!important;
    max-height:520px!important;
    overflow-y:auto!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #dbe3ec!important;
    border-radius:14px!important;
    box-shadow:0 14px 32px rgba(15,23,42,.18)!important;
    z-index:2147483647!important;
  }

  body.store-index-layout .store-mobile-product-header > .mobile-product-notification{
    grid-column:2!important;
    grid-row:1!important;
    width:44px!important;
    height:44px!important;
    margin:0!important;
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    overflow:visible!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification svg{
    width:27px!important;
    height:27px!important;
    fill:#111827!important;
  }
  body.store-index-layout .store-mobile-product-header > .mobile-product-notification .mobile-notification-count-badge{
    top:-5px!important;
    right:-4px!important;
  }

  body.store-index-layout .store-desktop-account-actions{
    grid-column:3!important;
    grid-row:1!important;
    min-width:0!important;
    width:max-content!important;
    max-width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  body.store-index-layout .store-desktop-account-actions > *{flex:0 0 auto!important;}
  body.store-index-layout .store-desktop-account-link,
  body.store-index-layout .store-desktop-logout{
    min-height:38px!important;
    padding:7px 12px!important;
    border:1px solid #d5dde7!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#334155!important;
    text-decoration:none!important;
    font-size:.82rem!important;
    font-weight:700!important;
    line-height:1.1!important;
  }
  body.store-index-layout .store-desktop-logout{
    border-color:#f87171!important;
    color:#dc2626!important;
  }
  body.store-index-layout .store-desktop-user{
    display:block!important;
    width:150px!important;
    max-width:150px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    color:#64748b!important;
    font-size:.78rem!important;
  }
  body.store-index-layout .store-desktop-cart-link{
    position:relative!important;
    width:42px!important;
    height:40px!important;
    flex:0 0 42px!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #d5dde7!important;
    border-radius:10px!important;
    text-decoration:none!important;
    color:#122033!important;
    font-size:1.1rem!important;
  }
  body.store-index-layout .store-desktop-cart-link .desktop-cart-count-badge{
    position:absolute!important;
    top:-7px!important;
    right:-7px!important;
    min-width:20px!important;
    height:20px!important;
    padding:2px 5px!important;
    border-radius:999px!important;
    background:#ef3340!important;
    color:#fff!important;
    border:2px solid #fff!important;
    font-size:.58rem!important;
    font-weight:950!important;
    line-height:16px!important;
    text-align:center!important;
  }

  body.store-index-layout .store-header-filter-row{
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:12px!important;
    margin:0!important;
  }
  body.store-index-layout .store-header-filter-button{
    min-height:44px!important;
    width:100%!important;
    border:1px solid #dce3eb!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#122033!important;
    font-size:.9rem!important;
    font-weight:850!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  }

  body.store-index-layout .store-header-filter-form{
    display:block!important;
    position:absolute!important;
    left:18px!important;
    right:18px!important;
    top:114px!important;
    z-index:2147483646!important;
  }
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel{display:none!important;}
  body.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important;}

  /* The old catalog search/filter form must never reappear on desktop. */
  body.store-index-layout .shop-page > .amazon-search-form{display:none!important;}
}

@media (min-width:992px) and (max-width:1180px){
  body.store-index-layout .store-mobile-product-header{
    grid-template-columns:minmax(300px,1fr) 40px minmax(0,auto)!important;
    column-gap:8px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.store-index-layout .store-desktop-account-actions{gap:5px!important;}
  body.store-index-layout .store-desktop-account-link,
  body.store-index-layout .store-desktop-logout{padding-left:8px!important;padding-right:8px!important;font-size:.76rem!important;}
  body.store-index-layout .store-desktop-user{width:105px!important;max-width:105px!important;}
}

/* PWA49 - Store header/filter selector correction.
   The store-index-layout class is on .shop-page, not <body>. Previous
   body.store-index-layout rules therefore never matched. */
.shop-page.store-index-layout .store-header-filter-panel-title{font-size:.9rem;font-weight:900;color:#122033;padding:2px 2px 6px}

@media (min-width:992px){
  .shop-page.store-index-layout .store-mobile-product-header{
    display:grid!important;
    grid-template-columns:minmax(420px,1fr) 46px auto!important;
    grid-template-rows:52px 46px!important;
    align-items:center!important;
    gap:8px 12px!important;
    width:100%!important;
    min-height:108px!important;
    padding:10px 18px 12px!important;
    box-sizing:border-box!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    background:#fff!important;
    border-bottom:1px solid #e5eaf0!important;
    box-shadow:0 4px 18px rgba(15,23,42,.08)!important;
  }
  .shop-page.store-index-layout .mobile-product-menu-button{display:none!important}
  .shop-page.store-index-layout .mobile-product-header-search{
    grid-column:1!important;grid-row:1!important;
    display:flex!important;align-items:center!important;
    width:100%!important;min-width:0!important;height:46px!important;
    position:relative!important;margin:0!important;padding:0 8px 0 13px!important;
    box-sizing:border-box!important;border:1px solid #cfd8e3!important;
    border-radius:12px!important;background:#fff!important;box-shadow:0 2px 7px rgba(15,23,42,.05)!important;
    overflow:visible!important;
  }
  .shop-page.store-index-layout .mobile-product-header-search input{
    flex:1 1 auto!important;width:1px!important;min-width:0!important;height:42px!important;
    margin:0!important;padding:0 8px!important;border:0!important;outline:0!important;
    background:transparent!important;box-shadow:none!important;font-size:.95rem!important;
  }
  .shop-page.store-index-layout .mobile-product-header-search .mobile-product-search-clear,
  .shop-page.store-index-layout .mobile-product-header-search .mobile-product-search-submit{
    flex:0 0 32px!important;width:32px!important;height:34px!important;border:0!important;
    background:transparent!important;display:grid!important;place-items:center!important;
    padding:0!important;margin:0!important;color:#122033!important;cursor:pointer!important;
  }
  .shop-page.store-index-layout .mobile-product-search-suggestions{
    position:absolute!important;left:0!important;right:auto!important;top:calc(100% + 7px)!important;
    width:min(560px,70vw)!important;max-width:560px!important;max-height:520px!important;
    overflow-y:auto!important;margin:0!important;padding:0!important;box-sizing:border-box!important;
    background:#fff!important;border:1px solid #dbe3ec!important;border-radius:14px!important;
    box-shadow:0 14px 32px rgba(15,23,42,.18)!important;z-index:2147483647!important;
  }
  .shop-page.store-index-layout .mobile-product-notification{
    grid-column:2!important;grid-row:1!important;width:46px!important;height:44px!important;
    display:grid!important;place-items:center!important;position:relative!important;margin:0!important;
  }
  .shop-page.store-index-layout .mobile-product-notification svg{width:27px!important;height:27px!important;fill:#111827!important}
  .shop-page.store-index-layout .mobile-notification-count-badge{top:-5px!important;right:-4px!important}
  .shop-page.store-index-layout .store-desktop-account-actions{
    grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;
    justify-content:flex-end!important;gap:8px!important;min-width:0!important;width:max-content!important;
    max-width:100%!important;white-space:nowrap!important;overflow:visible!important;
  }
  .shop-page.store-index-layout .store-desktop-cart-link{position:relative!important;width:42px!important;height:40px!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;border:1px solid #d5dde7!important;border-radius:10px!important;text-decoration:none!important;font-size:1.1rem!important}
  .shop-page.store-index-layout .desktop-cart-count-badge{position:absolute!important;top:-7px!important;right:-7px!important;min-width:20px!important;height:20px!important;padding:2px 5px!important;border-radius:999px!important;background:#ef3340!important;color:#fff!important;border:2px solid #fff!important;font-size:.58rem!important;font-weight:950!important;line-height:16px!important;text-align:center!important}
  .shop-page.store-index-layout .store-desktop-account-link,.shop-page.store-index-layout .store-desktop-logout{min-height:38px!important;padding:7px 12px!important;border:1px solid #d5dde7!important;border-radius:10px!important;background:#fff!important;color:#334155!important;text-decoration:none!important;font-size:.82rem!important;font-weight:700!important;line-height:1.1!important}
  .shop-page.store-index-layout .store-desktop-logout{border-color:#f87171!important;color:#dc2626!important}
  .shop-page.store-index-layout .store-desktop-user{display:block!important;width:150px!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#64748b!important;font-size:.78rem!important}

  .shop-page.store-index-layout .store-header-filter-row{
    grid-column:1/-1!important;grid-row:2!important;width:100%!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;margin:0!important;
  }
  .shop-page.store-index-layout .store-header-filter-button{min-height:44px!important;width:100%!important;border:1px solid #dce3eb!important;border-radius:999px!important;background:#fff!important;color:#122033!important;font-size:.9rem!important;font-weight:850!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;cursor:pointer!important}
  .shop-page.store-index-layout .store-header-filter-button[aria-expanded="true"]{background:#f1f5f9!important}

  /* Closed by default. Only the JS-added .is-open class reveals it. */
  .shop-page.store-index-layout .store-header-filter-form{display:block!important;position:absolute!important;left:18px!important;right:18px!important;top:116px!important;z-index:2147483646!important;pointer-events:none!important}
  .shop-page.store-index-layout .store-header-filter-form .store-mobile-filter-panel{display:none!important;pointer-events:auto!important;position:static!important;padding:12px!important;background:#fff!important;border:1px solid #dce3eb!important;border-radius:16px!important;box-shadow:0 14px 32px rgba(15,23,42,.16)!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
  .shop-page.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important}
  .shop-page.store-index-layout .store-header-filter-form select,.shop-page.store-index-layout .store-header-filter-form input[type=number]{min-height:42px!important;width:100%!important;box-sizing:border-box!important;border:1px solid #dce3eb!important;border-radius:10px!important;background:#fff!important;padding:0 11px!important;color:#122033!important}
  .shop-page.store-index-layout .store-header-filter-form .price-filter{display:grid!important;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;align-items:center!important;gap:5px!important}
  .shop-page.store-index-layout .store-header-filter-form .price-filter span{text-align:center!important;color:#64748b!important}
  .shop-page.store-index-layout .store-header-filter-form .stock-filter{display:flex!important;align-items:center!important;gap:7px!important;font-size:.82rem!important;font-weight:750!important;color:#334155!important;min-height:42px!important}
  .shop-page.store-index-layout .store-header-filter-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .shop-page.store-index-layout .store-header-filter-actions button{min-height:42px!important;border-radius:10px!important;border:1px solid #dce3eb!important;background:#fff!important;font-weight:850!important;cursor:pointer!important}
  .shop-page.store-index-layout .store-header-filter-actions button[type=submit]{background:#122033!important;color:#fff!important;border-color:#122033!important}
  .shop-page.store-index-layout .shop-page > .amazon-search-form,.shop-page.store-index-layout > .amazon-search-form{display:none!important}
}

@media (max-width:991.98px){
  .shop-page.store-index-layout .store-mobile-product-header{display:grid!important;position:sticky!important;top:0!important;z-index:2147483000!important;grid-template-columns:40px minmax(0,1fr) 40px!important;grid-template-rows:56px 52px!important;gap:7px 8px!important;width:100vw!important;margin-left:calc(50% - 50vw)!important;padding:8px 14px 10px!important;box-sizing:border-box!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #e5eaf0!important;box-shadow:0 4px 18px rgba(15,23,42,.08)!important}
  .shop-page.store-index-layout .store-mobile-product-header > .mobile-product-menu-button{display:grid!important;grid-column:1!important;grid-row:1!important;width:40px!important;height:40px!important;place-items:center!important}
  .shop-page.store-index-layout .store-mobile-product-header > .mobile-product-header-search{display:flex!important;grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;height:44px!important}
  .shop-page.store-index-layout .store-mobile-product-header > .mobile-product-notification{display:grid!important;grid-column:3!important;grid-row:1!important;width:40px!important;height:40px!important;place-items:center!important}
  .shop-page.store-index-layout .store-desktop-account-actions{display:none!important}
  .shop-page.store-index-layout .store-header-filter-row{display:grid!important;grid-column:1/-1!important;grid-row:2!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .shop-page.store-index-layout .store-header-filter-button{min-height:44px!important;border-radius:999px!important}
  .shop-page.store-index-layout .store-header-filter-form{top:114px!important;left:14px!important;right:14px!important}
  .shop-page.store-index-layout .store-header-filter-form .store-mobile-filter-panel{display:none!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important;border:1px solid #e2e8f0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 14px 30px rgba(15,23,42,.16)!important}
  .shop-page.store-index-layout .store-header-filter-form .store-mobile-filter-panel.is-open{display:grid!important}
  .shop-page.store-index-layout .shop-page > .amazon-search-form,.shop-page.store-index-layout > .amazon-search-form{display:none!important}
  .shop-page.store-index-layout main.container-fluid{padding-bottom:96px!important}
}

@media (min-width:992px) and (max-width:1180px){
  .shop-page.store-index-layout .store-mobile-product-header{grid-template-columns:minmax(300px,1fr) 42px minmax(0,auto)!important;column-gap:8px!important;padding-left:12px!important;padding-right:12px!important}
  .shop-page.store-index-layout .store-desktop-account-actions{gap:5px!important}
  .shop-page.store-index-layout .store-desktop-account-link,.shop-page.store-index-layout .store-desktop-logout{padding-left:8px!important;padding-right:8px!important;font-size:.76rem!important}
  .shop-page.store-index-layout .store-desktop-user{width:105px!important;max-width:105px!important}
}

/* PWA50 - Cart drawer must always sit above the Store sticky header.
   The Store header intentionally has a very high z-index for sticky search,
   but that caused the cart drawer to slide underneath it. When the drawer is
   open, lower the Store header stacking level and suppress header popovers. */
body.cart-drawer-open .shop-page.store-index-layout .store-mobile-product-header,
body.cart-drawer-open .shop-page.store-index-layout .store-header-filter-form,
body.cart-drawer-open .shop-page.store-index-layout .mobile-product-search-suggestions {
  z-index: 9000 !important;
}
body.cart-drawer-open .shop-page.store-index-layout .store-mobile-product-header {
  position: sticky !important;
}
body.cart-drawer-open .shop-page.store-index-layout .store-header-filter-form,
body.cart-drawer-open .shop-page.store-index-layout .mobile-product-search-suggestions {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.cart-drawer-open .store-cart-overlay {
  z-index: 2147483000 !important;
}
body.cart-drawer-open .store-cart-sheet {
  z-index: 2 !important;
}


/* Phase PWA51 — Quick View must always layer above sticky Store/Product headers. */
.store-quick-view{
    position:fixed!important;
    inset:0!important;
    z-index:2147483005!important;
    isolation:isolate!important;
}
.store-quick-view-backdrop{
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
}
.store-quick-dialog{
    position:relative!important;
    z-index:1!important;
}
/* Keep Quick View above the Store sticky header (2147483000) and search suggestions. */
body.quick-view-open .mobile-store-app-header,
body.quick-view-open .mobile-product-app-header{
    z-index:1!important;
}
body.quick-view-open .mobile-store-search-suggestions,
body.quick-view-open .mobile-product-search-suggestions{
    z-index:1!important;
}
@media(max-width:700px){
    .store-quick-view{
        z-index:2147483005!important;
    }
}


/* Phase PWA52 - Checkout mobile shell: keep the global bottom navigation visible
   and keep the checkout action bar above it. Prevent horizontal page growth on phones. */
@media(max-width:767.98px){
  body.checkout-page-layout{overflow-x:hidden!important;width:100%!important;}
  body.checkout-page-layout .main-area,
  body.checkout-page-layout main.container-fluid{min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important;}
  body.checkout-page-layout .checkout-page{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding-left:12px!important;padding-right:12px!important;padding-bottom:155px!important;box-sizing:border-box!important;overflow-x:hidden!important;}
  body.checkout-page-layout .checkout-layout{width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;}
  body.checkout-page-layout .checkout-main,
  body.checkout-page-layout .checkout-summary,
  body.checkout-page-layout .checkout-card,
  body.checkout-page-layout .checkout-summary-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  body.checkout-page-layout .checkout-card,
  body.checkout-page-layout .checkout-summary-card{overflow:hidden!important;}

  /* Global mobile navigation sits at the very bottom. */
  body.checkout-page-layout .pwa-bottom-nav{
    display:flex!important;
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    z-index:26000!important;
    min-height:62px!important;
    padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
  }

  /* Checkout's Place Order bar sits immediately above the global navigation. */
  body.checkout-page-layout .checkout-mobile-sticky{
    bottom:calc(62px + env(safe-area-inset-bottom))!important;
    z-index:25999!important;
    box-sizing:border-box!important;
  }
}

@media(max-width:390px){
  body.checkout-page-layout .checkout-page{padding-left:9px!important;padding-right:9px!important;padding-bottom:151px!important;}
  body.checkout-page-layout .checkout-mobile-sticky{bottom:calc(62px + env(safe-area-inset-bottom))!important;}
}

/* Phase PWA53: Store advertisement banner carousel */
.store-ad-banner-section{margin:0 0 22px}
.store-ad-banner-carousel{position:relative;width:100%;height:clamp(210px,26vw,320px);border-radius:18px;overflow:hidden;background:#e8edf3;box-shadow:0 10px 28px rgba(15,23,42,.08);border:1px solid #e2e8f0}
.store-ad-banner-carousel:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.store-ad-dot:focus-visible,.store-ad-nav:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.store-ad-banner{display:none;position:absolute;inset:0;width:100%;height:100%;animation:storeAdFade .35s ease}
@keyframes storeAdFade{from{opacity:.45;transform:scale(1.01)}to{opacity:1;transform:scale(1)}}
.store-ad-banner.is-active{display:block}
.store-ad-banner-link{display:block;position:absolute;inset:0;width:100%;height:100%;color:inherit;text-decoration:none}
.store-ad-banner picture{display:block;position:absolute;inset:0;width:100%;height:100%}
.store-ad-banner img{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:center}
.store-ad-banner-copy{position:absolute;inset:0;display:flex;align-items:flex-end;padding:24px 28px;background:linear-gradient(90deg,rgba(15,23,42,.72),rgba(15,23,42,.16) 58%,transparent 82%);pointer-events:none}
.store-ad-banner-text{max-width:min(58%,620px);color:#fff}
.store-ad-banner-label{display:inline-block;font-size:.65rem;letter-spacing:.12em;font-weight:900;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.18);backdrop-filter:blur(8px);margin-bottom:7px}
.store-ad-banner h2{margin:0;font-size:clamp(1.35rem,3vw,2.25rem);font-weight:900;line-height:1.05}
.store-ad-banner p{margin:7px 0 0;font-size:clamp(.78rem,1.5vw,1rem);line-height:1.35;max-width:520px}
.store-ad-banner-button{display:inline-flex;margin-top:12px;padding:8px 15px;border-radius:999px;background:#fff;color:#111827;font-size:.78rem;font-weight:850}
.store-ad-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:38px;height:38px;border:0;border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer}
.store-ad-prev{left:12px}.store-ad-next{right:12px}
.store-ad-toolbar{position:absolute;left:14px;right:14px;bottom:12px;height:30px;display:flex;align-items:center;justify-content:center;z-index:6;pointer-events:none}
.store-ad-dots{display:flex;gap:6px;align-items:center;pointer-events:auto}
.store-ad-dot{width:8px;height:8px;border:0;border-radius:50%;padding:0;background:rgba(255,255,255,.58);cursor:pointer;transition:width .2s ease,transform .2s ease}.store-ad-dot.is-active{width:24px;border-radius:6px;background:#fff}
.store-ad-counter{position:absolute;right:0;min-width:52px;padding:6px 9px;border-radius:999px;background:rgba(15,23,42,.68);color:#fff;font-size:.68rem;font-weight:800;text-align:center;backdrop-filter:blur(8px)}
.store-ad-pause{position:absolute;left:0;width:30px;height:30px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(15,23,42,.68);color:#fff;font-size:.72rem;font-weight:900;cursor:pointer;pointer-events:auto;backdrop-filter:blur(8px)}
.store-ad-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.28);z-index:7;overflow:hidden}
.store-ad-progress span{display:block;width:0;height:100%;background:#fff}
.store-ad-pause:focus-visible,.store-ad-counter:focus-visible,.store-ad-dot:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:700px){
  .store-ad-banner-section{margin:0 -2px 16px}
  .store-ad-banner-carousel{height:170px;border-radius:14px}
  .store-ad-banner,.store-ad-banner-link,.store-ad-banner picture{height:100%;border-radius:14px}
  .store-ad-banner img{height:100%;min-height:0;max-height:none}
  .store-ad-banner-copy{padding:14px 16px;background:linear-gradient(90deg,rgba(15,23,42,.72),rgba(15,23,42,.12) 72%,transparent)}
  .store-ad-banner-text{max-width:78%}
  .store-ad-banner-label{font-size:.55rem;padding:4px 7px;margin-bottom:5px}
  .store-ad-banner h2{font-size:1.08rem}
  .store-ad-banner p{font-size:.7rem;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .store-ad-banner-button{font-size:.65rem;padding:6px 10px;margin-top:7px}
  .store-ad-nav{width:30px;height:30px;font-size:24px}.store-ad-prev{left:7px}.store-ad-next{right:7px}.store-ad-toolbar{left:9px;right:9px;bottom:7px}.store-ad-dots{gap:4px}.store-ad-dot{width:6px;height:6px}.store-ad-dot.is-active{width:16px}.store-ad-counter{font-size:.6rem;min-width:44px;padding:5px 7px}.store-ad-pause{width:27px;height:27px;font-size:.65rem}.store-ad-progress{height:2px}
}

@media (prefers-reduced-motion: reduce){.store-ad-banner-carousel{scroll-behavior:auto}.store-ad-banner,.store-ad-banner-link,.store-ad-banner img{transition:none!important;animation:none!important}.store-ad-dot{transition:none}.store-ad-progress span{transition:none!important}}

/* Phase PWA61: Advertisement banner admin editor */
.ad-admin-head{align-items:center}.ad-admin-head-badge{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;border-radius:999px;font-size:.72rem;font-weight:800;white-space:nowrap}.ad-editor-panel{padding:0;overflow:hidden}.ad-editor-section{padding:22px;border-bottom:1px solid #eef0f3}.ad-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.ad-section-kicker{display:block;font-size:.62rem;letter-spacing:.12em;font-weight:900;color:#64748b}.ad-section-heading h2{margin:3px 0 3px;font-size:1.08rem;font-weight:850}.ad-section-heading p{margin:0;color:#64748b;font-size:.76rem}.ad-section-chip{padding:6px 9px;border-radius:999px;background:#f8fafc;border:1px solid #e5e7eb;color:#64748b;font-size:.65rem;font-weight:750;white-space:nowrap}.ad-creative-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.ad-media-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fff;min-width:0}.ad-media-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.ad-media-card-head strong,.ad-media-card-head small{display:block}.ad-media-card-head strong{font-size:.88rem}.ad-media-card-head small{font-size:.67rem;color:#64748b;margin-top:2px}.ad-media-tag{font-size:.6rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em;padding:5px 7px;border-radius:999px;background:#ecfdf5;color:#166534}.ad-media-tag.optional{background:#f8fafc;color:#64748b}.ad-preview-frame{position:relative;border:1px solid #e5e7eb;border-radius:12px;background:linear-gradient(135deg,#f8fafc,#eef2f7);overflow:hidden;display:flex;align-items:center;justify-content:center}.ad-preview-desktop{aspect-ratio:3/1;min-height:150px}.ad-preview-mobile{width:min(100%,260px);aspect-ratio:4/5;min-height:230px;margin:auto}.ad-preview-frame img{width:100%;height:100%;object-fit:cover;display:block}.ad-current-meta{font-size:.64rem;color:#64748b;margin:7px 1px 10px}.ad-empty-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:22px;color:#64748b}.ad-empty-preview span{font-size:2rem;margin-bottom:7px}.ad-empty-preview strong{font-size:.76rem;color:#334155}.ad-empty-preview small{font-size:.64rem;max-width:180px;margin-top:3px}.ad-dropzone{position:relative;border:1.5px dashed #cbd5e1;border-radius:12px;padding:13px;text-align:center;background:#f8fafc;cursor:pointer;transition:.18s ease}.ad-dropzone:hover,.ad-dropzone.is-dragging{border-color:#2563eb;background:#eff6ff;transform:translateY(-1px)}.ad-dropzone strong,.ad-dropzone span{display:block}.ad-dropzone strong{font-size:.72rem;color:#334155}.ad-dropzone span{font-size:.64rem;color:#64748b;margin-top:3px}.ad-drop-icon{font-size:1.15rem;font-weight:900;color:#2563eb;line-height:1;margin-bottom:5px}.ad-hidden-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ad-selected-preview{display:flex;align-items:center;gap:9px;margin-top:8px;padding:7px;border:1px solid #dbeafe;background:#eff6ff;border-radius:10px}.ad-selected-preview img{width:52px;height:40px;object-fit:cover;border-radius:6px}.ad-selected-preview>div{min-width:0;flex:1}.ad-selected-preview strong,.ad-selected-preview small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-selected-preview strong{font-size:.66rem}.ad-selected-preview small{font-size:.59rem;color:#64748b;margin-top:2px}.ad-clear-file{border:0;background:#fff;color:#b91c1c;border:1px solid #fecaca;border-radius:7px;padding:5px 7px;font-size:.59rem;font-weight:800;cursor:pointer}.ad-schedule-grid{display:grid;grid-template-columns:1fr 34px 1fr 1fr;gap:10px;align-items:center}.ad-schedule-card{padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}.ad-schedule-card>span{display:block;font-size:.58rem;letter-spacing:.1em;font-weight:900;color:#64748b;margin-bottom:7px}.ad-schedule-card small{display:block;font-size:.6rem;color:#94a3b8;margin-top:5px}.ad-schedule-arrow{text-align:center;color:#94a3b8;font-weight:900}.ad-active-card{display:flex;align-items:center;gap:9px;padding:13px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:13px;cursor:pointer}.ad-active-card span{display:flex;flex-direction:column}.ad-active-card strong{font-size:.75rem;color:#166534}.ad-active-card small{font-size:.6rem;color:#4d7c5a;margin-top:2px}.ad-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 22px;background:#fbfcfe}.ad-save-state{font-size:.66rem;color:#64748b}.ad-save-state.is-dirty{color:#b45309;font-weight:800}.ad-editor-panel .form-label{font-size:.76rem;font-weight:700}.ad-editor-panel .form-control{min-height:42px}@media(max-width:900px){.ad-creative-grid{grid-template-columns:1fr}.ad-schedule-grid{grid-template-columns:1fr 1fr}.ad-schedule-arrow{display:none}.ad-active-card{min-height:68px}}@media(max-width:600px){.ad-admin-head{align-items:flex-start;flex-direction:column}.ad-admin-head-badge{display:none}.ad-editor-section{padding:16px}.ad-section-heading{flex-direction:column;gap:8px}.ad-section-chip{align-self:flex-start}.ad-preview-desktop{min-height:120px}.ad-preview-mobile{width:210px;min-height:220px}.ad-schedule-grid{grid-template-columns:1fr}.ad-editor-actions{padding:13px 16px;align-items:stretch;flex-direction:column}.ad-editor-actions .d-flex{width:100%}.ad-editor-actions .btn{flex:1}.ad-selected-preview{align-items:flex-start}}


/* Phase PWA64: Product Category thumbnails */
.category-list-cell{display:flex;align-items:center;gap:12px;min-width:180px}.category-list-thumb{width:48px;height:48px;flex:0 0 48px;border-radius:12px;object-fit:cover;border:1px solid #e2e8f0;background:#f8fafc}.category-list-thumb-empty{display:inline-flex;align-items:center;justify-content:center;font-size:22px}.category-editor-thumb{width:96px;height:96px;border-radius:16px;object-fit:cover;border:1px solid #e2e8f0;background:#f8fafc}
.store-category-btn{display:inline-flex;align-items:center;gap:7px}.store-category-thumb{width:24px;height:24px;border-radius:50%;object-fit:cover;background:#fff;border:1px solid rgba(15,23,42,.08)}
@media(max-width:700px){.category-list-thumb{width:42px;height:42px;flex-basis:42px}.category-list-cell{gap:9px}.category-editor-thumb{width:82px;height:82px}}


/* PWA65 - Premium Store category rail */
.store-departments{margin:18px 0 20px;padding:0 2px}
.store-departments-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 2px 12px}
.store-departments-kicker{display:block;font-size:.66rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#94a3b8;margin-bottom:2px}
.store-departments-head h2{margin:0;font-size:1.12rem;line-height:1.2;font-weight:850;color:#0f172a}
.store-departments-hint{font-size:.72rem;font-weight:750;color:#94a3b8;white-space:nowrap}
.store-category-bar{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding:3px 3px 12px;margin:0;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.store-category-bar::-webkit-scrollbar{display:none}
/* PWA84: show the category scrollbar on desktop so horizontal overflow is obvious and mouse-wheel/drag scrolling is discoverable. */
@media(min-width:768px){
  .store-category-bar{scrollbar-width:thin;scrollbar-color:#94a3b8 #e2e8f0;cursor:grab}
  .store-category-bar:active{cursor:grabbing}
  .store-category-bar::-webkit-scrollbar{display:block;height:9px}
  .store-category-bar::-webkit-scrollbar-track{background:#e2e8f0;border-radius:999px}
  .store-category-bar::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px;border:2px solid #e2e8f0}
  .store-category-bar::-webkit-scrollbar-thumb:hover{background:#64748b}
}

.store-category-btn{position:relative;flex:0 0 116px;min-height:128px;padding:12px 8px 10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;border:1px solid #e7ebf1;border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);color:#334155;text-decoration:none;white-space:normal;box-shadow:0 4px 14px rgba(15,23,42,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;color .18s ease;scroll-snap-align:start}
.store-category-btn:hover{transform:translateY(-2px);border-color:#cbd5e1;box-shadow:0 8px 20px rgba(15,23,42,.09);color:#0f172a}
.store-category-btn.active{border-color:#111827;background:linear-gradient(180deg,#1f2937 0%,#111827 100%);color:#fff;box-shadow:0 9px 22px rgba(15,23,42,.18)}
.store-category-media{width:68px;height:68px;flex:0 0 68px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e5e7eb;box-shadow:0 3px 10px rgba(15,23,42,.08);overflow:hidden}
.store-category-thumb{width:100%;height:100%;display:block;border:0;border-radius:50%;object-fit:cover;background:#f8fafc}
.store-category-all-media{background:#f1f5f9;border-color:#dbe1e8;color:#111827;font-size:1.5rem;font-weight:850}
.store-category-btn.active .store-category-media{border-color:rgba(255,255,255,.72);box-shadow:0 0 0 3px rgba(255,255,255,.12)}
.store-category-btn.active .store-category-all-media{background:#fff;color:#111827}
.store-category-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;font-weight:850;color:#475569;background:linear-gradient(135deg,#f8fafc,#e2e8f0)}
.store-category-name{width:100%;display:block;text-align:center;font-size:.78rem;line-height:1.25;font-weight:800;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.store-category-arrow{position:absolute;right:8px;top:8px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f1f5f9;color:#64748b;font-size:.9rem;line-height:1;opacity:0;transition:opacity .15s ease}
.store-category-btn:hover .store-category-arrow,.store-category-btn.active .store-category-arrow{opacity:1}
.store-category-btn.active .store-category-arrow{background:rgba(255,255,255,.14);color:#fff}
@media(max-width:767px){
  .store-departments{margin:14px -2px 18px;padding:0}
  .store-departments-head{margin:0 2px 10px;align-items:center}
  .store-departments-kicker{font-size:.6rem}
  .store-departments-head h2{font-size:1rem}
  .store-departments-hint{font-size:.68rem}
  .store-category-bar{gap:10px;padding:2px 4px 11px}
  .store-category-btn{flex-basis:104px;min-height:118px;padding:10px 7px 9px;border-radius:16px;gap:7px}
  .store-category-media{width:62px;height:62px;flex-basis:62px}
  .store-category-name{font-size:.74rem}
  .store-category-arrow{right:7px;top:7px}
}
@media(min-width:768px){.store-category-bar{scroll-snap-type:none}.store-category-btn{flex-basis:122px;min-height:132px}}
@media(prefers-reduced-motion:reduce){.store-category-btn{transition:none}}

/* PWA66 - Softer selected Store category state */
.store-category-btn.active{
  border-color:#86efac;
  background:linear-gradient(180deg,#ffffff 0%,#f0fdf4 100%);
  color:#166534;
  box-shadow:0 8px 20px rgba(22,101,52,.10),0 0 0 2px rgba(34,197,94,.08);
  transform:translateY(-1px);
}
.store-category-btn.active .store-category-media{
  border-color:#4ade80;
  box-shadow:0 0 0 3px rgba(34,197,94,.12),0 4px 12px rgba(15,23,42,.09);
}
.store-category-btn.active .store-category-all-media{
  background:#ecfdf5;
  color:#166534;
  border-color:#86efac;
}
.store-category-btn.active .store-category-arrow{
  background:#dcfce7;
  color:#15803d;
}
.store-category-btn.active::after{
  content:'✓';
  position:absolute;
  left:8px;
  top:8px;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#16a34a;
  color:#fff;
  font-size:.68rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 2px 6px rgba(22,101,52,.18);
}
@media(max-width:767px){
  .store-category-btn.active::after{left:7px;top:7px;width:19px;height:19px;font-size:.64rem}
}

/* Phase PWA68: clean advertisement presentation — image only, no dark overlay or banner-name pill */
.store-ad-banner-copy{display:none!important}
.store-ad-banner-link{background:transparent!important}
.store-ad-banner img{filter:none!important}
/* Phase PWA69: advertisement banner video playback */
.store-ad-banner-media{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;object-fit:cover;object-position:center;display:block;background:#e8edf3}.store-ad-banner-video .store-ad-banner-link{z-index:1}.store-ad-banner-video .store-ad-banner-media{z-index:0}
.store-ad-banner-media{display:block;width:100%;height:100%;object-fit:cover;object-position:center;background:#e8edf3}
.store-ad-banner-video .store-ad-banner-link{z-index:1}
.store-ad-video-toggle{position:absolute;left:14px;bottom:44px;z-index:8;width:34px;height:34px;border:0;border-radius:50%;background:rgba(15,23,42,.72);color:#fff;font-weight:800;font-size:.78rem;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.store-ad-video-toggle:hover{background:rgba(15,23,42,.86)}
.store-ad-video-toggle:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media(max-width:700px){.store-ad-video-toggle{left:9px;bottom:37px;width:29px;height:29px;font-size:.68rem}}

/* PWA69 admin video controls */
.ad-video-edit{padding:12px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:none}.ad-video-edit.ad-video-active{display:block}.ad-video-current video{display:block;width:100%;max-height:180px;border-radius:10px;background:#0f172a;margin-bottom:7px}.ad-video-current small{display:block;color:#64748b;margin-bottom:8px}


/* PWA71: single advertisement play/pause control */
.store-ad-video-toggle{display:none!important}

/* Product edit image/primary controls */
.product-main-image-editor{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;padding:1rem;border:1px solid rgba(0,0,0,.1);border-radius:14px;background:#fafafa}.product-main-image-preview{width:150px;height:150px;border-radius:12px;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}.product-main-image-preview img{width:100%;height:100%;object-fit:contain}.product-main-image-actions{flex:1;min-width:220px}.admin-media-primary{border:2px solid rgba(25,135,84,.35);box-shadow:0 0 0 2px rgba(25,135,84,.06)}
@media(max-width:575.98px){.product-main-image-preview{width:110px;height:110px}.product-main-image-editor{align-items:flex-start}}


/* PWA90 - Store rendering performance: keep below-the-fold cards out of the rendering
   work until they approach the viewport. This does not change layout or interaction. */
@media (min-width: 700px){
  .shop-grid .shop-card{content-visibility:auto;contain-intrinsic-size:132px 520px;}
}
@media (max-width: 699.98px){
  .shop-grid .shop-card{content-visibility:auto;contain-intrinsic-size:118px 470px;}
}
.shop-image{background:#f8fafc;}

/* Store enhancement - category navigation without full page refresh */
.store-catalog-content{transition:opacity .16s ease,filter .16s ease;min-height:80px}
.store-catalog-content.is-loading{opacity:.58;filter:saturate(.75);pointer-events:none}
@media(max-width:991.98px){.store-catalog-content{scroll-margin-top:10px}}


/* Store category + Cart mobile fixes
   - Category AJAX replacement must not jump the viewport.
   - Cart uses the same global mobile bottom navigation as Store/Product/Checkout.
   - Cart's sticky Checkout bar sits immediately above the navigation. */
@media(max-width:991.98px){
  body.cart-page-layout .topbar{display:none!important;}
  body.cart-page-layout .pwa-mobile-install-bar{display:none!important;}
  body.cart-page-layout{overflow-x:hidden!important;width:100%!important;}
  body.cart-page-layout .main-area,
  body.cart-page-layout main.container-fluid{min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:hidden!important;box-sizing:border-box!important;}
  body.cart-page-layout .pwa-bottom-nav{
    display:flex!important;
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    z-index:26000!important;
    min-height:62px!important;
    padding:5px 5px calc(5px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
  }
  body.cart-page-layout .cart-mobile-sticky-checkout{
    bottom:calc(62px + env(safe-area-inset-bottom))!important;
    z-index:25999!important;
    box-sizing:border-box!important;
  }
  body.cart-page-layout .store-detail{padding-bottom:155px!important;min-width:0!important;}
}
@media(max-width:390px){
  body.cart-page-layout .store-detail{padding-bottom:151px!important;}
}


/* Product Master search/list enhancement - Store-style catalog browsing */
.product-master-page{position:relative}
.product-master-search-card{position:relative;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;margin-bottom:14px;box-shadow:0 3px 14px rgba(15,23,42,.05);z-index:20}
.product-master-search-row{position:relative}
.product-master-search-box{display:flex;align-items:center;gap:8px;min-height:52px;border:1px solid #dbe1e8;border-radius:14px;background:#fff;padding:5px 6px 5px 13px;box-shadow:0 3px 14px rgba(15,23,42,.05)}
.product-master-search-icon{font-size:1.55rem;line-height:1;color:#64748b;transform:rotate(-15deg)}
.product-master-search-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:1rem;padding:9px 4px;color:#111827}
.product-master-search-box input::placeholder{color:#94a3b8}
.product-master-clear{width:34px;height:34px;border:0;border-radius:50%;background:#f1f5f9;color:#475569;font-size:1.3rem;line-height:1;cursor:pointer}
.product-master-search-button{border:0;border-radius:10px;background:#111827;color:#fff;min-height:40px;padding:0 17px;font-weight:800;cursor:pointer}
.product-master-filter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto auto;gap:8px;margin-top:10px}
.product-master-filter-row .form-select,.product-master-filter-row .btn{min-height:42px}
.product-master-filter-row .btn{padding-left:16px;padding-right:16px}
.product-master-search-hint{margin:9px 3px 1px;color:#64748b;font-size:.76rem}
.product-master-suggestions{position:absolute;left:0;right:0;top:59px;background:#fff;border:1px solid #dbe1e8;border-radius:14px;box-shadow:0 18px 35px rgba(15,23,42,.16);overflow:hidden;z-index:100;padding:5px}
.product-master-suggestion{width:100%;display:flex;align-items:center;gap:10px;border:0;background:#fff;text-align:left;padding:9px;border-radius:10px;cursor:pointer;color:#111827}
.product-master-suggestion:hover,.product-master-suggestion.active{background:#f8fafc}
.product-master-suggestion img,.product-master-suggestion-icon{width:44px;height:44px;flex:0 0 44px;border-radius:9px;background:#f5f6f8;display:grid;place-items:center;object-fit:contain;color:#94a3b8}
.product-master-suggestion-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.product-master-suggestion-copy strong{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-master-suggestion-copy small{font-size:.7rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.product-master-suggestion-arrow{font-size:1.35rem;color:#94a3b8}
.product-master-suggestion-empty{padding:18px;text-align:center;color:#64748b;font-size:.84rem}
.product-master-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 2px;font-size:.86rem;color:#64748b}
.product-master-results-head strong{color:#111827}
.product-master-results-head span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-master-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-master-card{min-width:0;background:#fff;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 3px 14px rgba(15,23,42,.05);display:flex;flex-direction:column}.product-master-card.product-master-selected{box-shadow:0 0 0 3px rgba(37,99,235,.22),0 12px 28px rgba(15,23,42,.14);border-color:#3b82f6;transition:box-shadow .2s,border-color .2s;}
.product-master-media{position:relative;display:flex;align-items:center;justify-content:center;height:220px;background:#f5f6f8;text-decoration:none;overflow:hidden;color:#94a3b8}
.product-master-media img{width:100%;height:100%;object-fit:contain}
.product-master-placeholder{font-size:3rem}
.product-master-stock{position:absolute;left:10px;bottom:10px;border-radius:999px;padding:5px 9px;font-size:.68rem;font-weight:800;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.1)}
.product-master-stock.in{color:#16834b}.product-master-stock.low{color:#9a6700}.product-master-stock.out{color:#c62828}
.product-master-body{padding:13px;display:flex;flex-direction:column;flex:1}
.product-master-category{text-transform:uppercase;color:#94a3b8;font-size:.65rem;font-weight:800;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-master-name{display:block;color:#111827;text-decoration:none;font-weight:800;font-size:.98rem;margin-top:5px;min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-master-name:hover{text-decoration:underline}
.product-master-sku{color:#64748b;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}
.product-master-price-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:auto;padding-top:13px}
.product-master-price-row strong{font-size:1.05rem;font-weight:850;color:#111827}
.product-master-price-row span{font-size:.7rem;color:#94a3b8;white-space:nowrap}
.product-master-actions{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:11px}
.product-master-actions .btn{min-height:38px;font-size:.76rem;font-weight:800}
.product-master-empty{grid-column:1/-1;text-align:center;padding:55px 20px;background:#fff;border:1px dashed #dbe1e8;border-radius:16px;color:#64748b}
.product-master-empty>div{font-size:2.5rem}.product-master-empty h2{margin:8px 0;color:#111827;font-size:1.25rem}.product-master-empty p{margin:0 0 14px}
@media(max-width:1199px){.product-master-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.product-master-search-card{padding:10px;border-radius:14px}.product-master-search-box{min-height:48px}.product-master-search-button{padding:0 13px}.product-master-filter-row{grid-template-columns:1fr 1fr}.product-master-filter-row select:first-child{grid-column:1/-1}.product-master-filter-row .btn{width:100%}.product-master-search-hint{font-size:.7rem}.product-master-suggestions{top:55px}.product-master-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-master-media{height:155px}.product-master-body{padding:10px}.product-master-name{font-size:.86rem}.product-master-price-row strong{font-size:.92rem}.product-master-price-row span{display:none}.product-master-actions{grid-template-columns:1fr;gap:5px}.product-master-actions .btn{min-height:34px;font-size:.72rem}}
@media(max-width:420px){.product-master-media{height:140px}.product-master-grid{gap:8px}.product-master-body{padding:9px}.product-master-name{font-size:.82rem}.product-master-sku{font-size:.66rem}.product-master-stock{font-size:.62rem;padding:4px 7px}}

/* Product Master - keep search and filters pinned while browsing */
.product-master-page .product-master-search-card{
    position:sticky;
    top:64px;
    z-index:1020;
    background:rgba(255,255,255,.97);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 8px 20px rgba(15,23,42,.09);
}
.product-master-page .product-master-search-card::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-1px;
    height:1px;
    pointer-events:none;
}
@media(max-width:991.98px){
    .product-master-page .product-master-search-card{
        top:64px;
        margin-left:-2px;
        margin-right:-2px;
    }
}


/* Product Master - responsive pagination */
.product-master-paging-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 14px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.product-master-page-size{display:flex;align-items:center;gap:6px;font-size:.8rem;color:#64748b}.product-master-page-size a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:32px;padding:0 9px;border:1px solid #e2e8f0;border-radius:9px;color:#334155;text-decoration:none;background:#fff;font-weight:600}.product-master-page-size a.active{background:#111827;color:#fff;border-color:#111827}.product-master-page-count{font-size:.8rem;font-weight:700;color:#475569}
.product-master-range{color:#64748b;font-weight:400}.product-master-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;margin:20px 0 8px;padding:12px 0}.product-master-pagination .page-link{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;text-decoration:none;font-size:.82rem;font-weight:700}.product-master-pagination .page-link.active{background:#111827;color:#fff;border-color:#111827}.product-master-pagination .page-link.disabled{opacity:.45;pointer-events:none}.product-master-pagination .page-link:hover:not(.disabled):not(.active){background:#f8fafc}
@media(max-width:767px){.product-master-paging-top{align-items:flex-start;flex-direction:column;margin-bottom:10px}.product-master-page-size{width:100%;overflow-x:auto;padding-bottom:2px}.product-master-page-count{width:100%}.product-master-pagination{gap:5px;margin-top:14px}.product-master-pagination .page-link{min-width:34px;height:36px;padding:0 9px;font-size:.76rem}.product-master-pagination .page-link:first-child,.product-master-pagination .page-link:last-child{padding:0 10px}}

/* Product Master mobile header - Store-style search, notification, Filters and Sort. */
.product-master-mobile-header{display:none}
@media(max-width:991.98px){
  .product-master-page .product-master-mobile-header{
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    grid-template-rows:auto auto!important;
    gap:10px 8px!important;
    align-items:center!important;
    position:sticky!important;
    top:0!important;
    z-index:2147483000!important;
    width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    box-sizing:border-box!important;
    padding:10px 14px 9px!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid #e8edf3!important;
    box-shadow:0 3px 14px rgba(15,23,42,.07)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
  .product-master-page .product-master-mobile-icon{
    width:38px!important;height:42px!important;border:0!important;background:transparent!important;
    color:#122033!important;display:grid!important;place-items:center!important;text-decoration:none!important;
    border-radius:11px!important;position:relative!important;padding:0!important;
  }
  .product-master-page .product-master-mobile-menu{font-size:1.7rem!important;line-height:1!important;}
  .product-master-page .product-master-mobile-notification svg{width:26px!important;height:26px!important;fill:#111827!important;}
  .product-master-page .product-master-mobile-search{
    position:relative!important;display:flex!important;align-items:center!important;gap:6px!important;
    min-width:0!important;width:100%!important;height:44px!important;padding:0 8px 0 11px!important;
    border:1px solid #dce3eb!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  }
  .product-master-page .product-master-mobile-search-icon{font-size:1.35rem!important;color:#64748b!important;line-height:1!important;}
  .product-master-page .product-master-mobile-search input{flex:1 1 auto!important;width:1px!important;min-width:0!important;height:40px!important;border:0!important;outline:0!important;background:transparent!important;font-size:1rem!important;color:#334155!important;padding:0!important;}
  .product-master-page .product-master-mobile-search input::placeholder{color:#8b9098!important;}
  .product-master-page .product-master-mobile-search-submit,.product-master-page .product-master-mobile-search-clear{border:0!important;background:transparent!important;color:#122033!important;padding:0!important;width:30px!important;height:34px!important;display:grid!important;place-items:center!important;font-size:1.35rem!important;cursor:pointer!important;}
  .product-master-page .product-master-mobile-search-clear{font-size:1.55rem!important;color:#172238!important;}
  .product-master-page .product-master-mobile-suggestions{position:absolute!important;left:0!important;right:0!important;top:50px!important;max-height:62vh!important;overflow:auto!important;background:#fff!important;border:1px solid #dbe1e8!important;border-radius:14px!important;box-shadow:0 18px 35px rgba(15,23,42,.16)!important;z-index:2147483001!important;padding:5px!important;}
  .product-master-page .product-master-mobile-filter-row{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;}
  .product-master-page .product-master-mobile-filter-button{min-height:48px!important;height:48px!important;border:1px solid #e1e5eb!important;border-radius:24px!important;background:#fff!important;color:#172238!important;font-size:.95rem!important;font-weight:800!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important;cursor:pointer!important;padding:0 14px!important;}
  .product-master-page .product-master-mobile-filter-button[aria-expanded="true"]{box-shadow:0 0 0 2px rgba(17,24,39,.08),0 5px 14px rgba(15,23,42,.08)!important;background:#fafafa!important;}
  .product-master-page .product-master-mobile-filter-panel{grid-column:1/-1;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:13px;box-shadow:0 12px 30px rgba(15,23,42,.10);}
  .product-master-page .product-master-mobile-filter-title{font-weight:850;font-size:.95rem;margin-bottom:10px;color:#172238;}
  .product-master-page .product-master-mobile-filter-fields{display:grid;gap:10px;}
  .product-master-page .product-master-mobile-filter-fields label{font-size:.75rem;font-weight:750;color:#475569;}
  .product-master-page .product-master-mobile-filter-fields .form-select{margin-top:5px;min-height:42px;}
  .product-master-page .product-master-mobile-filter-actions{display:flex;gap:8px;margin-top:11px;}
  .product-master-page .product-master-mobile-filter-actions .btn{flex:1;min-height:40px;font-weight:800;}
  .product-master-page .product-master-search-card{display:none!important;}
  .product-master-page>.d-flex:first-of-type{margin-top:14px!important;}
  .product-master-page .stock-summary-strip{margin-top:8px!important;}
}
@media(max-width:420px){
  .product-master-page .product-master-mobile-header{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:8px 5px!important;padding:8px 9px 8px!important;}
  .product-master-page .product-master-mobile-icon{width:34px!important;height:40px!important;}
  .product-master-page .product-master-mobile-menu{font-size:1.55rem!important;}
  .product-master-page .product-master-mobile-notification svg{width:24px!important;height:24px!important;}
  .product-master-page .product-master-mobile-search{height:42px!important;}
  .product-master-page .product-master-mobile-filter-row{gap:8px!important;}
  .product-master-page .product-master-mobile-filter-button{min-height:46px!important;height:46px!important;font-size:.92rem!important;padding:0 12px!important;border-radius:23px!important;}
}
@media(min-width:992px){.product-master-mobile-header{display:none!important;}}

/* Phase PWA76 - Web Push Notifications */
.push-notification-card{align-items:flex-start}
.push-notification-card>div{min-width:0}
.push-notification-card button{margin-top:2px}
.push-admin-card{max-width:760px;padding:24px}
@media(max-width:600px){
  .push-notification-card{padding:14px}
  .push-admin-card{padding:16px}
}


.push-notification-help{display:block;margin-top:.35rem;font-size:.75rem;line-height:1.35;color:#6b7280}


/* PWA77 notification center and preferences */
.push-preferences-card{max-width:760px;padding:24px}
.push-preference-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #e5e7eb;cursor:pointer}
.push-preference-row:last-of-type{border-bottom:0}
.push-preference-row span{display:flex;flex-direction:column;gap:4px}
.push-preference-row small{color:#6b7280;line-height:1.4}
.push-preference-row .form-check-input{width:2.7rem;height:1.45rem;flex:0 0 auto}
.header-notification-link.has-unread{box-shadow:0 0 0 2px rgba(220,38,38,.08)}
.push-admin-card select{max-width:100%}
@media(max-width:767.98px){.push-preferences-card{padding:16px}.push-preference-row{align-items:flex-start;padding:15px 0}.push-preference-row .form-check-input{margin-top:3px}}


/* PWA77.3 mobile push diagnostics */
.push-device-tools{border-top:1px solid #e5e7eb;padding-top:10px}
.push-diagnostics-output{margin:10px 0 0;padding:10px;border-radius:10px;background:#f8fafc;color:#334155;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto}
@media(max-width:600px){.push-device-tools .btn{margin-bottom:6px}.push-diagnostics-output{font-size:11px}}

/* PWA79 - production system health */
.admin-health-page .health-summary-card{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 6px 24px rgba(15,23,42,.06)}
.admin-health-page .health-summary-card.is-healthy{border-color:#bbf7d0;background:#f0fdf4}.admin-health-page .health-summary-card.is-unhealthy{border-color:#fecaca;background:#fef2f2}
.admin-health-page .health-summary-card strong{font-size:1.05rem}.admin-health-page .health-summary-card span{color:#64748b}
.admin-health-page .health-check-card{height:100%;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(15,23,42,.05)}
.admin-health-page .health-check-card.is-healthy{border-left:4px solid #16a34a}.admin-health-page .health-check-card.is-unhealthy{border-left:4px solid #dc2626;background:#fffafa}
.admin-health-page .health-check-icon{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:10px;font-weight:800;background:#dcfce7;color:#166534}.admin-health-page .is-unhealthy .health-check-icon{background:#fee2e2;color:#991b1b}

/* Phase PWA81 - centralized PWA app icon branding */
.pwa-branding-panel{max-width:980px}.pwa-branding-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pwa-icon-preview-card{border:1px solid #e5e7eb;border-radius:14px;padding:14px;background:#fff}.pwa-preview-label{display:block;font-size:.62rem;font-weight:900;color:#64748b;letter-spacing:.08em;margin-bottom:10px}.pwa-icon-preview{display:grid;place-items:center;min-height:190px;border-radius:12px;background:#f8fafc;border:1px dashed #dbe2ea;overflow:hidden}.pwa-icon-preview-192 img{width:128px;height:128px;object-fit:contain;border-radius:22px}.pwa-icon-preview-512 img{width:180px;height:180px;object-fit:contain;border-radius:28px}.pwa-icon-preview-card small{display:block;color:#64748b;font-size:.68rem;line-height:1.45;margin-top:10px}.pwa-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pwa-branding-note{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#475569;font-size:.7rem;line-height:1.45}.pwa-branding-note strong{color:#1e293b}@media(max-width:700px){.pwa-branding-grid,.pwa-upload-grid{grid-template-columns:1fr}.pwa-icon-preview{min-height:160px}}

/* PWA91: Store media resilience + offline awareness */
.store-offline-notice{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 10px;padding:9px 12px;border:1px solid #fed7aa;border-radius:11px;background:#fff7ed;color:#9a3412;font-size:.8rem}
.store-offline-notice strong{font-weight:900}
.store-offline-notice span:last-child{color:#7c2d12}
@keyframes storeMediaShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.store-category-fallback[hidden]{display:none}

/* PWA91: Store resilience, media loading and offline awareness */
.store-offline-notice{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 10px;padding:9px 12px;border:1px solid #fed7aa;border-radius:11px;background:#fff7ed;color:#9a3412;font-size:.8rem}
.store-offline-notice strong{font-weight:900}.store-offline-notice span:last-child{color:#7c2d12}
@keyframes storeMediaShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.store-category-fallback[hidden]{display:none}

/* PWA91: Store resilience, media loading and offline awareness */
.store-offline-notice{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 10px;padding:9px 12px;border:1px solid #fed7aa;border-radius:11px;background:#fff7ed;color:#9a3412;font-size:.8rem}
.store-offline-notice strong{font-weight:900}.store-offline-notice span:last-child{color:#7c2d12}
@keyframes storeMediaShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.store-category-fallback[hidden]{display:none}

/* PWA93: robust media loading indicator - shimmer is a separate overlay, never painted on the image itself */
.shop-media-gallery .shop-media-slide,
.store-category-media{position:relative}
.shop-media-gallery .shop-media-slide.media-host-loading::after,
.store-category-media.media-host-loading::after{
    content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
    background:linear-gradient(100deg,#f1f5f9 20%,#e2e8f0 40%,#f1f5f9 60%);
    background-size:200% 100%;animation:storeMediaShimmer 1.2s ease-in-out infinite;
}
.shop-media-gallery .shop-media-slide.media-host-loaded::after,
.store-category-media.media-host-loaded::after{content:none;display:none;animation:none}
@media(prefers-reduced-motion:reduce){
 .shop-media-gallery .shop-media-slide.media-host-loading::after,
 .store-category-media.media-host-loading::after{animation:none}
}

/* PWA94: shimmer exists only on the host overlay; image elements themselves never animate. */
.shop-image.media-loading,.shop-image.media-loaded,.store-category-thumb.media-loading,.store-category-thumb.media-loaded{animation:none !important;background:transparent !important;}

/* PWA96 — Store cart-drawer action hardening */
.store-cart-item-actions button[aria-busy="true"]{opacity:.62;cursor:wait;pointer-events:none}
.store-cart-item-actions button:disabled{opacity:.62;cursor:not-allowed}


/* PWA100 - Android Product Details width + iOS safe-area header hardening
   Applied after all legacy responsive rules so the final viewport behavior is
   deterministic on narrow Android phones and iOS standalone/PWA mode. */

/* Never allow the product details shell or its media to establish a wider
   layout than the actual phone viewport. */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.product-detail-page,
.product-detail-card,
.product-gallery,
.product-gallery-stage,
.product-gallery-thumbs,
.product-detail-info {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.product-detail-page {
  width: 100%;
  overflow-x: clip;
}

.product-detail-card {
  width: 100%;
}

.product-gallery,
.product-gallery-stage {
  width: 100%;
}

.product-gallery-stage img,
.product-gallery-stage video,
.gallery-slide,
.gallery-slide img,
.gallery-slide video {
  max-width: 100%;
  min-width: 0;
}

/* Prevent long product content, URLs, review text or controls from creating
   horizontal layout growth on Android WebView/Chrome. */
.product-detail-info,
.product-detail-info h1,
.product-detail-info p,
.product-detail-info a,
.product-detail-info button,
.product-reviews-section,
.product-qa-section {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  /* iOS standalone uses a translucent status bar. The custom Store/Product
     headers are outside the shared .topbar, so they must reserve the
     safe-area themselves. On normal browsers env(...) resolves to 0. */
  body.store-index-layout .store-mobile-product-header,
  body.store-product-layout .mobile-product-app-header {
    box-sizing: border-box !important;
    padding-top: calc(8px + env(safe-area-inset-top)) !important;
  }

  /* Keep the header background behind the status-area while moving all
     interactive content below the clock/notch. */
  body.store-index-layout .store-mobile-product-header,
  body.store-product-layout .mobile-product-app-header {
    min-height: calc(56px + env(safe-area-inset-top)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.store-index-layout .store-mobile-product-header > *,
  body.store-product-layout .mobile-product-app-header > * {
    min-width: 0 !important;
  }

  /* Product Details: keep every column inside the phone viewport. */
  body.store-product-layout .mobile-product-app-header {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.store-product-layout .product-detail-page {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: clip !important;
  }

  body.store-product-layout .product-detail-card,
  body.store-product-layout .product-gallery,
  body.store-product-layout .product-gallery-stage,
  body.store-product-layout .product-detail-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.store-product-layout .product-gallery-stage {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.store-product-layout .product-gallery-stage img,
  body.store-product-layout .product-gallery-stage video {
    max-width: 100% !important;
  }
}

@media (display-mode: standalone) {
  /* The iOS/standalone safe-area is already supplied by env(); this rule
     ensures the custom shopping headers remain above the status content. */
  body.store-index-layout .store-mobile-product-header,
  body.store-product-layout .mobile-product-app-header {
    padding-top: calc(8px + env(safe-area-inset-top)) !important;
  }
}

@media (max-width: 390px) {
  body.store-index-layout .store-mobile-product-header,
  body.store-product-layout .mobile-product-app-header {
    padding-top: calc(7px + env(safe-area-inset-top)) !important;
  }
}
