:root {
    --s-font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --s-ink: #1a2332;
    --s-text: #4a5568;
    --s-muted: #94a3b8;
    --s-line: #e8ecf1;
    --s-bg: #f5f6f8;
    --s-card: #ffffff;
    --s-accent: #dc2626;
    --s-accent-dark: #b91c1c;
    --s-accent-light: #fef2f2;
    --s-price: #0f172a;
    --s-sale: #dc2626;
    --s-success: #16a34a;
    --s-radius: 16px;
    --s-radius-sm: 10px;
    --s-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --s-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --s-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --s-bottom-nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.store-page {
    font-family: var(--s-font);
    background-color: var(--s-bg);
    color: var(--s-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--s-bottom-nav-h);
    overflow-x: hidden;
    position: relative;
}

/* Watermark pattern - scattered store logo (fades from top to middle) */
body.store-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--s-watermark, none);
    background-repeat: repeat;
    background-size: 100px 100px;
    opacity: 0.09;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0) 60%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 35%, rgba(0,0,0,0) 60%);
}

/* ===== HEADER ===== */
.s-header { background: var(--s-card); position: sticky; top: 0; z-index: 200; box-shadow: var(--s-shadow); }
.s-header-top { max-width: 600px; margin: 0 auto; padding: 12px 16px 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-logo { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; color: var(--s-ink); text-decoration: none; white-space: nowrap; }
.s-logo i { color: var(--s-accent); font-size: 1.3rem; }
.s-logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.s-header-actions { display: flex; align-items: center; gap: 8px; }
.s-icon-btn { position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--s-ink); text-decoration: none; font-size: 1.2rem; transition: background .2s; }
.s-icon-btn:active { background: var(--s-bg); }
.s-login-btn { display: flex; }
.s-track-btn { display: flex; }
.s-cart-badge { position: absolute; top: 2px; left: 2px; background: var(--s-accent); color: #fff; font-size: .65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--s-card); }

.s-search-bar { max-width: 600px; margin: 0 auto; padding: 0 16px 12px; }
.s-search-bar form { position: relative; }
.s-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--s-muted); font-size: .9rem; pointer-events: none; }
.s-search-bar input { width: 100%; border: 1.5px solid var(--s-line); border-radius: 12px; padding: 11px 40px 11px 16px; font-size: .9rem; font-family: var(--s-font); background: var(--s-bg); transition: border-color .2s, background .2s; }
.s-search-bar input:focus { outline: none; border-color: var(--s-accent); background: #fff; }

/* ===== CATEGORIES SCROLL ===== */
.s-cats-scroll { background: #fff; border-bottom: 1px solid var(--s-line); display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; position: relative; z-index: 1; }
.s-cats-scroll::-webkit-scrollbar { display: none; }
.s-cats-scroll a { flex-shrink: 0; color: var(--s-muted); text-decoration: none; padding: 8px 16px; font-size: .85rem; font-weight: 600; white-space: nowrap; border-radius: 20px; transition: color .2s, background .2s; }
.s-cats-scroll a:active { background: var(--s-bg); }
.s-cats-scroll a.active { color: #fff; background: var(--s-accent); }

/* Inline search in categories bar */
.s-cats-search { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-right: auto; background: var(--s-bg); border-radius: 20px; padding: 4px 12px; }
.s-cats-search i { color: var(--s-muted); font-size: .8rem; }
.s-cats-search input { border: none; background: transparent; outline: none; font-size: .85rem; font-family: var(--s-font); width: 100px; color: var(--s-ink); }

/* ===== MAIN ===== */
.s-main { max-width: 600px; margin: 0 auto; padding: 16px; min-height: 60vh; background: transparent; position: relative; z-index: 1; }

/* ===== ALERTS ===== */
.s-alert { border-radius: var(--s-radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.s-alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.s-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ===== HERO ===== */
.s-hero { background: linear-gradient(135deg, #1a1a1a 0%, #dc2626 100%); border-radius: var(--s-radius); padding: 32px 20px; margin-bottom: 20px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.s-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 200px; height: 200px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.s-hero h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; position: relative; }
.s-hero p { font-size: .9rem; opacity: .85; position: relative; }

/* ===== WELCOME BANNER ===== */
.s-welcome-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--s-card), var(--s-bg)); border: 1px solid var(--s-line); border-radius: 16px; padding: 16px 20px; margin: 16px 0 8px; }
.s-welcome-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.08); flex-shrink: 0; }
.s-welcome-title { font-size: 1.2rem; font-weight: 800; color: var(--s-ink); margin: 0 0 2px; }
.s-welcome-text { font-size: .85rem; color: var(--s-muted); margin: 0; }

/* ===== SECTION TITLE ===== */
.s-section-title { font-size: 1.1rem; font-weight: 700; color: var(--s-ink); margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.s-section-title i { color: var(--s-accent); }
.s-section-link { margin-right: auto; font-size: .8rem; color: var(--s-accent); text-decoration: none; font-weight: 600; }

/* ===== CAROUSEL ===== */
.s-carousel { position: relative; margin: 0 -16px; }
.s-carousel-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px 4px; scroll-behavior: smooth; }
.s-carousel-track::-webkit-scrollbar { display: none; }
.s-carousel-track > .s-pc { flex: 0 0 130px; scroll-snap-align: start; }
.s-carousel-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.95); border: 1px solid var(--s-line); color: var(--s-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; box-shadow: var(--s-shadow-md); transition: opacity .2s; opacity: 0; }
.s-carousel:hover .s-carousel-btn { opacity: 1; }
.s-carousel-btn:active { background: var(--s-bg); }
.s-carousel-btn.prev { right: 8px; }
.s-carousel-btn.next { left: 8px; }
.s-carousel-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 4px; }
.s-carousel-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-line); transition: background .2s, width .2s; }
.s-carousel-dots .dot.active { background: var(--s-accent); width: 18px; border-radius: 3px; }

/* ===== PRODUCT GRID (Borderless) ===== */
.s-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }

/* Filter bar */
.s-filter-bar { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--s-shadow); position: relative; z-index: 1; }

/* ===== PRODUCT CARD (Cardless / Borderless) ===== */
.s-pc { position: relative; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--s-shadow); z-index: 1; content-visibility: auto; contain-intrinsic-size: 220px; }
.s-pc-link { text-decoration: none; color: inherit; display: block; }
.s-pc-img-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px 14px 0 0; overflow: hidden; background-color: #f8f9fb; }
.s-pc-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.s-pc-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #d1d5db; font-size: 2rem; }
.s-pc-badge { position: absolute; top: 8px; right: 8px; background: var(--s-sale); color: #fff; font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; z-index: 2; }
.s-pc-add { position: absolute; bottom: 8px; left: 8px; width: 36px; height: 36px; border-radius: 50%; background: rgba(26,35,50,.85); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .9rem; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, background .2s; backdrop-filter: blur(4px); z-index: 2; }
.s-pc-add:active { background: var(--s-accent); }

/* Hover: Desktop */
@media (hover: hover) {
    .s-pc-link:hover .s-pc-img { transform: scale(1.04); }
    .s-pc-link:hover .s-pc-add { opacity: 1; transform: translateY(0); }
}

/* Touch: Always show add button on mobile */
@media (hover: none) {
    .s-pc-add { opacity: 1; transform: translateY(0); }
}

.s-pc-info { padding: 8px 8px 10px; background: #fff; border-radius: 0 0 14px 14px; }
.s-pc-cat { font-size: .7rem; color: var(--s-muted); margin-bottom: 2px; }
.s-pc-title { font-size: .82rem; font-weight: 600; color: var(--s-ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; margin-bottom: 4px; }
.s-pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.s-pc-price .price { font-size: .95rem; font-weight: 800; color: var(--s-price); }
.s-pc-price .old-price { font-size: .75rem; color: var(--s-muted); text-decoration: line-through; }

/* ===== PRODUCT DETAILS ===== */
.s-pd { display: flex; flex-direction: column; gap: 0; }
.s-pd-img-wrap { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background-image: var(--s-watermark, none); background-repeat: repeat; background-size: 80px 80px; background-color: #f8f9fb; padding: 8px; }
.s-pd-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.s-pd-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #d1d5db; font-size: 4rem; background: transparent; border-radius: 10px; }
.s-pd-badge { position: absolute; top: 12px; right: 12px; background: var(--s-sale); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 10px; z-index: 2; }
.s-pd-info { padding: 16px 0 90px; }
.s-pd-cat { display: inline-flex; align-items: center; gap: 4px; color: var(--s-accent); text-decoration: none; font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.s-pd-title { font-size: 1.15rem; font-weight: 700; color: var(--s-ink); line-height: 1.4; margin-bottom: 12px; }
.s-pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.s-pd-price .price { font-size: 1.5rem; font-weight: 800; color: var(--s-price); }
.s-pd-price .old-price { font-size: 1rem; color: var(--s-muted); text-decoration: line-through; }
.s-pd-stock { margin-bottom: 14px; }
.s-pd-stock .s-stock-in, .s-pd-stock .s-stock-out { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.s-pd-stock .s-stock-in { background: #f0fdf4; color: var(--s-success); }
.s-pd-stock .s-stock-out { background: #fef2f2; color: var(--s-sale); }
.s-pd-desc { color: var(--s-text); margin-bottom: 14px; line-height: 1.7; font-size: .88rem; }
.s-pd-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.s-pd-qty-label { font-size: .85rem; font-weight: 600; color: var(--s-ink); }

.s-qty { display: flex; align-items: center; }
.s-qty button { width: 40px; height: 40px; border: 1.5px solid var(--s-line); background: #fff; color: var(--s-ink); font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.s-qty button:active { background: var(--s-bg); }
.s-qty button:first-child { border-radius: 10px 0 0 10px; }
.s-qty button:last-child { border-radius: 0 10px 10px 0; }
.s-qty input { width: 50px; height: 40px; text-align: center; border: 1.5px solid var(--s-line); border-right: none; border-left: none; font-size: .95rem; font-weight: 700; font-family: var(--s-font); }

.s-sticky-cart { position: fixed; bottom: var(--s-bottom-nav-h); left: 0; right: 0; background: #fff; border-top: 1px solid var(--s-line); padding: 12px 16px; z-index: 250; display: flex; gap: 12px; align-items: center; box-shadow: 0 -2px 12px rgba(0,0,0,0.06); }
.s-sticky-cart-price { flex-shrink: 0; }
.s-sticky-cart-price .label { font-size: .7rem; color: var(--s-muted); display: block; }
.s-sticky-cart-price .value { font-size: 1.1rem; font-weight: 800; color: var(--s-price); }
.s-sticky-cart-btn { flex: 1; background: var(--s-accent); color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.s-sticky-cart-btn:active { background: var(--s-accent-dark); }

/* ===== CART ===== */
.s-cart-list { display: flex; flex-direction: column; gap: 12px; }
.s-cart-item { background: #fff; border-radius: var(--s-radius); padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background-image: var(--s-watermark, none); background-repeat: repeat; background-size: 40px 40px; background-color: #f0f2f5; flex-shrink: 0; }
.s-cart-item-ph { width: 64px; height: 64px; border-radius: 12px; background-image: var(--s-watermark, none); background-repeat: repeat; background-size: 40px 40px; background-color: #f0f2f5; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 1.3rem; flex-shrink: 0; }
.s-cart-item-info { flex: 1; min-width: 0; }
.s-cart-item-info h6 { font-size: .85rem; color: var(--s-ink); margin-bottom: 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-cart-item-price { font-weight: 700; color: var(--s-price); font-size: .9rem; }
.s-cart-item-price .old-price { font-size: .75rem; color: var(--s-muted); text-decoration: line-through; margin-right: 4px; }
.s-cart-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.s-qty-mini { display: flex; align-items: center; }
.s-qty-mini button { width: 30px; height: 32px; border: 1px solid var(--s-line); background: #fff; cursor: pointer; font-size: .85rem; color: var(--s-ink); }
.s-qty-mini button:first-child { border-radius: 8px 0 0 8px; }
.s-qty-mini button:last-child { border-radius: 0 8px 8px 0; }
.s-qty-mini span { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); font-weight: 700; font-size: .85rem; }
.s-cart-remove { color: var(--s-muted); background: none; border: none; cursor: pointer; font-size: 1rem; padding: 6px; flex-shrink: 0; }
.s-cart-remove:active { color: var(--s-sale); }

.s-cart-summary { background: #fff; border-radius: var(--s-radius); padding: 16px; margin-top: 16px; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-cart-summary .s-row-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--s-text); font-size: .9rem; }
.s-cart-summary .s-row-line.total { border-top: 1px solid var(--s-line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; font-weight: 800; color: var(--s-ink); }

.s-cart-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.s-btn-outline { flex-shrink: 0; border: 1.5px solid var(--s-line); background: #fff; color: var(--s-text); border-radius: 12px; padding: 12px 20px; font-size: .88rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.s-btn-primary { flex: 1; background: var(--s-accent); color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: .95rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; position: relative; z-index: 1; }
.s-btn-primary:active { background: var(--s-accent-dark); }

.s-empty { text-align: center; padding: 48px 20px; position: relative; z-index: 1; }
.s-empty i { font-size: 3rem; color: var(--s-muted); margin-bottom: 16px; opacity: .5; }
.s-empty h4 { color: var(--s-muted); font-size: 1.1rem; margin-bottom: 16px; }

/* ===== CHECKOUT ===== */
.s-checkout { display: flex; flex-direction: column; gap: 16px; }
.s-checkout-card { background: #fff; border-radius: var(--s-radius); padding: 16px; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-checkout-card h5 { font-size: 1rem; font-weight: 700; color: var(--s-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.s-checkout-card h5 i { color: var(--s-accent); }
.s-checkout-card .form-label { font-size: .85rem; font-weight: 600; color: var(--s-ink); margin-bottom: 4px; }
.s-checkout-card .form-control, .s-checkout-card .form-select { border: 1.5px solid var(--s-line); border-radius: 12px; padding: 12px 14px; font-size: .9rem; font-family: var(--s-font); background: var(--s-bg); transition: border-color .2s, background .2s; }
.s-checkout-card .form-control:focus, .s-checkout-card .form-select:focus { border-color: var(--s-accent); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.s-checkout-summary { background: #fff; border-radius: var(--s-radius); padding: 16px; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-checkout-summary h5 { font-size: 1rem; font-weight: 700; color: var(--s-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.s-checkout-item { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .85rem; }
.s-checkout-item .qty-tag { flex-shrink: 0; background: var(--s-bg); border: 1px solid var(--s-line); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: .78rem; }
.s-checkout-item .name { flex: 1; color: var(--s-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-checkout-item .total { font-weight: 700; color: var(--s-price); flex-shrink: 0; }
.s-place-order { width: 100%; background: var(--s-accent); color: #fff; border: none; border-radius: 12px; padding: 16px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 12px; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.s-place-order:active { background: var(--s-accent-dark); }

/* ===== SUCCESS ===== */
.s-success { text-align: center; background: #fff; border-radius: var(--s-radius); padding: 40px 24px; margin: 24px auto; max-width: 420px; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-success .icon { width: 80px; height: 80px; margin: 0 auto 20px; background: #f0fdf4; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--s-success); font-size: 2.5rem; }
.s-success h2 { color: var(--s-ink); margin-bottom: 8px; font-size: 1.3rem; font-weight: 800; }
.s-success p { color: var(--s-muted); margin-bottom: 24px; font-size: .9rem; }
.s-success .s-order-info { background: var(--s-bg); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.s-success .s-order-info .label { color: var(--s-muted); font-size: .8rem; }
.s-success .s-order-info .value { font-weight: 800; color: var(--s-ink); font-size: 1.2rem; margin-bottom: 8px; }

/* ===== CLOSED ===== */
.s-closed { text-align: center; padding: 60px 20px; max-width: 420px; margin: 0 auto; }
.s-closed .icon { font-size: 3.5rem; color: var(--s-muted); margin-bottom: 20px; opacity: .5; }
.s-closed h2 { color: var(--s-ink); margin-bottom: 8px; font-size: 1.3rem; }
.s-closed p { color: var(--s-muted); }

/* ===== FOOTER ===== */
.s-footer { background: var(--s-card); border-top: 1px solid var(--s-line); margin-top: 24px; padding: 20px 16px; text-align: center; color: var(--s-muted); font-size: .8rem; }
.s-footer-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }
.s-footer-info a { color: var(--s-text); text-decoration: none; }
.s-footer-info span { color: var(--s-muted); }
.s-footer-copy { font-size: .75rem; opacity: .7; }

/* ===== BOTTOM NAV ===== */
.s-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--s-card); border-top: 1px solid var(--s-line); display: flex; justify-content: space-around; align-items: center; height: var(--s-bottom-nav-h); z-index: 200; box-shadow: 0 -2px 12px rgba(0,0,0,0.06); }
.s-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--s-muted); text-decoration: none; font-size: .68rem; font-weight: 600; padding: 4px; transition: color .2s; }
.s-bottom-nav a i { font-size: 1.15rem; }
.s-bottom-nav a.active { color: var(--s-accent); }
.s-nav-cart { position: relative; }
.s-nav-cart-badge { position: absolute; top: 0; left: 25%; background: var(--s-accent); color: #fff; font-size: .6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ===== TOAST ===== */
.s-toast { position: fixed; bottom: calc(var(--s-bottom-nav-h) + 16px); left: 50%; transform: translateX(-50%); background: var(--s-ink); color: #fff; padding: 12px 24px; border-radius: 12px; font-size: .88rem; font-weight: 600; z-index: 9999; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; box-shadow: var(--s-shadow-lg); }
.s-toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ===== FLOATING WHATSAPP ===== */
.s-whatsapp-float { position: fixed; bottom: calc(var(--s-bottom-nav-h) + 20px); left: 16px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; z-index: 300; box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: transform .2s, box-shadow .2s; }
.s-whatsapp-float:active { transform: scale(.92); box-shadow: 0 2px 8px rgba(37,211,102,.3); }
.s-whatsapp-float i { line-height: 1; }

/* ===== ABOUT PAGE ===== */
.s-about-page { display: flex; flex-direction: column; gap: 16px; }
.s-about-card { background: #fff; border-radius: var(--s-radius); padding: 24px 20px; box-shadow: var(--s-shadow); position: relative; z-index: 1; text-align: center; }
.s-about-logo { width: 90px; height: 90px; border-radius: 20px; object-fit: cover; box-shadow: var(--s-shadow-md); margin: 0 auto 16px; }
.s-about-logo-ph { width: 90px; height: 90px; border-radius: 20px; background: var(--s-bg); display: flex; align-items: center; justify-content: center; color: var(--s-muted); font-size: 2.5rem; margin: 0 auto 16px; }
.s-about-name { font-size: 1.4rem; font-weight: 800; color: var(--s-ink); margin-bottom: 8px; }
.s-about-welcome { color: var(--s-muted); font-size: .9rem; margin-bottom: 16px; }
.s-about-text { color: var(--s-text); font-size: .9rem; line-height: 1.8; text-align: right; white-space: pre-wrap; }
.s-about-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.s-about-contact { display: flex; align-items: center; gap: 10px; color: var(--s-text); text-decoration: none; font-size: .9rem; padding: 10px 14px; background: var(--s-bg); border-radius: 12px; }
.s-about-contact i { color: var(--s-accent); font-size: 1.1rem; width: 24px; text-align: center; }

/* ===== OTP VERIFY ===== */
.s-otp-verify { background: #fff; border-radius: var(--s-radius); padding: 28px 20px; margin-top: 20px; text-align: center; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-otp-icon { width: 56px; height: 56px; margin: 0 auto 12px; background: var(--s-accent-light); color: var(--s-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.s-otp-verify h3 { font-size: 1.1rem; font-weight: 700; color: var(--s-ink); margin-bottom: 6px; }
.s-otp-hint { font-size: .85rem; color: var(--s-muted); margin-bottom: 20px; line-height: 1.6; }
.s-otp-inputs { display: flex; justify-content: center; margin-bottom: 16px; }
.s-otp-input { width: 180px; text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: 8px; border: 2px solid var(--s-line); border-radius: 12px; padding: 12px; color: var(--s-ink); background: var(--s-bg); transition: border-color .2s; }
.s-otp-input:focus { outline: none; border-color: var(--s-accent); background: #fff; }
.s-otp-resend { margin-top: 16px; font-size: .82rem; color: var(--s-muted); }
.s-otp-resend-btn { background: none; border: none; color: var(--s-accent); font-weight: 600; cursor: pointer; font-size: .82rem; padding: 4px; }
.s-otp-resend-btn:active { opacity: .7; }
.s-otp-msg { margin-top: 12px; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.s-otp-msg.error { background: #fef2f2; color: #dc2626; }
.s-otp-msg.success { background: #f0fdf4; color: #16a34a; }
.s-otp-verified { background: #fff; border-radius: var(--s-radius); padding: 28px 20px; margin-top: 20px; text-align: center; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-otp-verified-icon { width: 64px; height: 64px; margin: 0 auto 12px; background: #f0fdf4; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.s-otp-verified h3 { font-size: 1.15rem; font-weight: 700; color: var(--s-ink); margin-bottom: 6px; }
.s-otp-verified p { font-size: .9rem; color: var(--s-muted); }
.s-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; background: var(--s-bg); color: var(--s-ink); text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid var(--s-line); }
.s-btn-skip { display: block; margin: 10px auto 0; background: none; border: none; color: var(--s-muted); font-size: .82rem; cursor: pointer; text-decoration: underline; }
.s-btn-skip:active { opacity: .7; }
.s-otp-skipped { background: #fff; border-radius: var(--s-radius); padding: 28px 20px; margin-top: 20px; text-align: center; box-shadow: var(--s-shadow); position: relative; z-index: 1; }
.s-otp-skipped-icon { width: 64px; height: 64px; margin: 0 auto 12px; background: #fef3c7; color: #d97706; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.s-otp-skipped h3 { font-size: 1.15rem; font-weight: 700; color: var(--s-ink); margin-bottom: 6px; }
.s-otp-skipped p { font-size: .9rem; color: var(--s-muted); line-height: 1.6; }

/* ===== TABLET/DESKTOP ===== */
@media (min-width: 768px) {
    body.store-page { padding-bottom: 0; }
    .s-header-top, .s-search-bar, .s-main { max-width: 900px; }
    .s-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
    .s-hero { padding: 48px 32px; }
    .s-hero h1 { font-size: 1.8rem; }
    .s-hero p { font-size: 1rem; }
    .s-bottom-nav { display: none; }
    .s-login-btn { display: flex; }
    .s-track-btn { display: flex; }
    .s-sticky-cart { position: sticky; bottom: auto; border-top: none; border: 1px solid var(--s-line); border-radius: var(--s-radius); margin: 16px 0; box-shadow: var(--s-shadow); }
    .s-pd { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .s-pd-info { padding: 0; }
    .s-pd-title { font-size: 1.5rem; }
    .s-pd-price .price { font-size: 1.8rem; }
    .s-carousel-track > .s-pc { flex: 0 0 200px; }
    .s-carousel-btn { opacity: 1; }
    .s-pc-title { font-size: .88rem; }
    .s-pc-price .price { font-size: 1.05rem; }
}
