/* ============================================
   BEST PRICE WHOLESALERS - Storefront styles
   Palette: deep green #E36D0B / #262728, fresh green #F7931E,
   amber #F5A524 for prices and deals, warm off-white #FAF8F3.
   Legacy component styles first; the "bp-" design system is at the end.
   ============================================ */

/* === CSS Variables === */
:root {
    --primary-blue: #E36D0B;
    --primary-blue-light: #F7931E;
    --primary-blue-lighter: #FAB060;
    --primary-blue-pale: #FDDFC2;
    --primary-blue-50: #FFF4EA;
    --primary-red: #E36D0B;
    --primary-red-light: #F7931E;
    --primary-red-pale: #FDDFC2;
    --primary-red-dark: #B95407;
    --gradient-primary: linear-gradient(135deg, #E36D0B 0%, #F7931E 100%);
    --gradient-accent: linear-gradient(135deg, #B95407 0%, #E36D0B 100%);
    --gradient-hero: linear-gradient(135deg, #262728 0%, #3D3E40 50%, #E36D0B 100%);
    --text-dark: #13201A;
    --text-medium: #34433B;
    --text-light: #5E6B64;
    --text-lighter: #8C968F;
    --bg-white: #FFFFFF;
    --bg-light: #FAF8F3;
    --bg-gray: #F1EEE6;
    --border-light: #E6E1D6;
    --border-medium: #D4CEC1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

main {
    flex: 1;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background: var(--primary-blue);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: white;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === Header / Navbar === */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 24px;
}

/* === Logo === */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-esio {
    color: var(--primary-blue);
}

.logo-med {
    color: var(--primary-red);
}

.logo-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    margin-left: 2px;
    animation: pulse-dot 2s infinite;
}

.logo-name {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-name .logo-esio {
    color: var(--primary-red);
}

.logo-name .logo-med {
    color: var(--text-dark);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-right: 8px;
    position: relative;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* === Search Bar === */
.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-bar form {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px var(--primary-blue-pale);
}

.search-bar input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-bar button:hover {
    opacity: 0.9;
}

.search-bar button svg {
    width: 18px;
    height: 18px;
}

/* === Nav Actions === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-action-btn:hover {
    background: var(--bg-gray);
    color: var(--primary-blue);
}

.nav-action-btn svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #DC2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-white);
    animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.update-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* === Category Nav === */
.category-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.category-nav .container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav .container::-webkit-scrollbar {
    display: none;
}

.category-nav a {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* === Category Nav Scroll === */
.category-nav {
    position: relative;
}

.category-nav-scroll-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--text-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: var(--transition);
}

.category-nav-scroll-btn:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.category-nav-scroll-btn.visible {
    display: flex;
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* === Hero Section === */
.hero {
    background: var(--gradient-hero);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.hero-slide .container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-image {
    flex: 1;
    max-width: 480px;
    max-height: 380px;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(227, 109, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 109, 11, 0.5);
}

.btn-red {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(194, 65, 12, 0.4);
}

.btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-outline-blue {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-blue:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-red);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === Section Styles === */
.section {
    padding: 60px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-blue {
    background: var(--primary-blue-50);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-header a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-header a:hover {
    gap: 8px;
}

/* === Category Grid === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue-lighter);
}

.category-card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.category-card:hover .category-card-image img {
    transform: scale(1.02);
}

.category-card-body {
    padding: 14px 12px;
}

.category-card-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* === Product Grid === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--primary-red);
    color: white;
}

.badge-new {
    background: var(--primary-blue);
    color: white;
}

.badge-prescription {
    background: #F59E0B;
    color: white;
}

.badge-out-of-stock {
    background: var(--text-light);
    color: white;
}

.product-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.02);
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-name a:hover {
    color: var(--primary-blue);
}

.product-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 12px;
    min-height: 24px;
}

.price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-red);
    white-space: nowrap;
    line-height: 1;
}

.price-original {
    font-size: 13px;
    color: var(--text-lighter);
    text-decoration: line-through;
    white-space: nowrap;
    line-height: 1;
}

.price-normal {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    line-height: 1;
}

.btn-add-cart {
    padding: 9px 10px;
    background: var(--primary-blue-50);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue-pale);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-cart svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-buy-now {
    flex: 1;
    padding: 9px 8px;
    background: #E36D0B;
    color: white;
    border: 1px solid #E36D0B;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    min-width: 0;
}

.btn-buy-now:hover {
    background: #B95407;
    border-color: #B95407;
}

.product-card-footer {
    display: flex;
    flex-direction: row;
    gap: 6px;
    padding: 0 12px 12px;
}

.product-card-footer .btn-add-cart {
    flex: 1;
    margin-top: 0;
}

.product-card-footer .btn-add-cart:only-child {
    flex: 1 1 100%;
}

/* === Features Strip === */
.features-strip {
    background: var(--bg-white);
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon.blue {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.feature-icon.red {
    background: var(--primary-red-pale);
    color: var(--primary-red);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-light);
}

/* === Banner Section === */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.promo-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 200px;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28,25,23,0.85), rgba(227, 109, 11, 0.75));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: white;
}

.promo-banner-overlay h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-banner-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* === CTA Section === */
.cta-section {
    background: var(--gradient-hero);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Footer === */
.footer {
    background: #262728;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo .logo-esio {
    color: white;
}

.footer-brand .logo .logo-med {
    color: #FAB060;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.75);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links a:hover {
    color: white;
}

/* === Products Page === */
.page-header {
    background: var(--gradient-primary);
    padding: 20px 0;
    color: white;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.page-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.page-header .breadcrumb a {
    color: white;
    opacity: 0.8;
}

.page-header .breadcrumb a:hover {
    opacity: 1;
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 40px 0;
}

.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 16px;
    position: relative;
    transition: var(--transition);
}

.mobile-filter-toggle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.mobile-filter-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.mobile-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* === Sidebar Filters === */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filter-group {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-group h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.filter-group ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-medium);
    transition: var(--transition);
}

.filter-group ul li a:hover,
.filter-group ul li a.active {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.filter-group ul li a .count {
    font-size: 12px;
    color: var(--text-lighter);
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* === Filter Checkbox List === */
.filter-checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.filter-checkbox-item:hover {
    background: var(--primary-blue-50);
}

.filter-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox-label {
    flex: 1;
    font-size: 14px;
    color: var(--text-medium);
}

.filter-checkbox-item:hover .filter-checkbox-label {
    color: var(--primary-blue);
}

.filter-checkbox-item .count {
    font-size: 12px;
    color: var(--text-lighter);
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.filter-clear-btn {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-blue);
    transition: var(--transition);
}

.filter-clear-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* === Filter Results Count === */
.filter-results-group {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 20px;
}

.filter-results-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.filter-results-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-lighter);
}

/* === Price Range Filter === */
.price-range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}

.price-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-lighter);
}

.price-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    font-family: inherit;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-50);
}

.price-range-separator {
    color: var(--text-lighter);
    font-size: 16px;
    padding-bottom: 8px;
}

.filter-apply-btn {
    width: 100%;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.filter-apply-btn:hover {
    opacity: 0.9;
}

.filter-clear-all-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #DC2626;
    text-decoration: none;
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    background: #FEF2F2;
    transition: var(--transition);
}

.filter-clear-all-btn:hover {
    background: #DC2626;
    color: #fff;
    border-color: #DC2626;
}

/* === Sort Bar === */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.sort-bar .results-count {
    font-size: 14px;
    color: var(--text-light);
}

.sort-bar .results-count strong {
    color: var(--text-dark);
}

.sort-bar select {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-medium);
    background: var(--bg-white);
    cursor: pointer;
    outline: none;
}

.sort-bar select:focus {
    border-color: var(--primary-blue-light);
}

/* === Product Detail === */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.product-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-gray);
    aspect-ratio: 1;
}

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

.product-detail-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-category {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.product-detail-price .price-current {
    font-size: 32px;
}

.product-detail-price .price-original {
    font-size: 20px;
}

.product-detail-price .discount-badge {
    background: var(--primary-red-pale);
    color: var(--primary-red);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.product-detail-description {
    margin-bottom: 24px;
}

.product-detail-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-detail-description p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
}

.product-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
}

.meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.meta-item span {
    font-size: 13px;
    color: var(--text-medium);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-light);
    background: var(--bg-gray);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-selector button:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quantity-selector button:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-selector button:hover {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.quantity-selector input {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border-light);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.stock-status.in-stock {
    color: #16A34A;
}

.stock-status.out-of-stock {
    color: var(--primary-red);
}

.stock-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-status.in-stock .dot {
    background: #16A34A;
}

.stock-status.out-of-stock .dot {
    background: var(--primary-red);
}

/* === Cart Page === */
.cart-page {
    padding: 40px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.cart-items {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-info h3 a:hover {
    color: var(--primary-blue);
}

.cart-item-info .category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.cart-item-info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.cart-item-quantity button:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cart-item-quantity button:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-item-quantity button:hover {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.cart-item-quantity span {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 14px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--primary-red);
    background: var(--primary-red-pale);
}

.cart-item-remove svg {
    width: 18px;
    height: 18px;
}

/* === Cart Summary === */
.cart-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-light);
}

.cart-summary-row.total .amount {
    color: var(--primary-red);
}

.cart-summary .btn {
    margin-top: 20px;
}

/* === Cart Empty === */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: var(--text-lighter);
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* === Checkout Page === */
.checkout-page {
    padding: 40px 0;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.checkout-form {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.checkout-form h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--primary-red);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px var(--primary-blue-pale);
}

.form-control::placeholder {
    color: var(--text-lighter);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.radio-option input:checked + label {
    border-color: var(--primary-blue);
    background: var(--primary-blue-50);
}

.radio-option label svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

.radio-option input:checked + label svg {
    color: var(--primary-blue);
}

.radio-option label .radio-title {
    font-weight: 600;
    font-size: 14px;
}

.radio-option label .radio-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* === Delivery Method Collapsible === */
.delivery-method-section {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.delivery-method-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.delivery-method-toggle:hover,
.delivery-method-toggle.open {
    background: var(--primary-blue-50);
}

.delivery-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.delivery-toggle-left svg {
    flex-shrink: 0;
    color: var(--primary-red);
}

.delivery-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--text-light);
}

.delivery-method-panel {
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
}

.delivery-zones-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-zone-item {
    position: relative;
}

.delivery-zone-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delivery-zone-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.delivery-zone-label:hover {
    border-color: var(--primary-blue-lighter);
    background: var(--primary-blue-50);
}

.delivery-zone-item input:checked + .delivery-zone-label {
    border-color: var(--primary-blue);
    background: var(--primary-blue-50);
}

.delivery-zone-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.delivery-zone-item input:checked + .delivery-zone-label .delivery-zone-icon {
    background: var(--primary-blue-pale);
    border-color: var(--primary-blue-lighter);
    color: var(--primary-red);
}

.delivery-zone-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-zone-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.delivery-zone-desc {
    font-size: 12px;
    color: var(--text-light);
}

.delivery-zone-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition);
}

.delivery-zone-item input:checked + .delivery-zone-label .delivery-zone-check {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* === Mpesa Section === */
.mpesa-section {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.mpesa-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.mpesa-logo {
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

/* === Payment Page === */
.payment-page {
    padding: 60px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.payment-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.payment-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
}

.payment-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon.pending {
    background: #FEF3C7;
    color: #D97706;
}

.payment-icon.success {
    background: #D1FAE5;
    color: #059669;
}

.payment-icon.failed {
    background: var(--primary-red-pale);
    color: var(--primary-red);
}

.payment-icon svg {
    width: 40px;
    height: 40px;
}

.payment-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.payment-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.payment-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.payment-phone {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.payment-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-status-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === Receipt Page === */
.receipt-page {
    padding: 40px 0;
    background: #F3F4F6;
}

.receipt-container {
    max-width: 720px;
    margin: 0 auto;
}

.receipt-card {
    background: var(--bg-white);
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.receipt-header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 40px 40px 0;
    text-align: left;
    border-bottom: none;
}

.receipt-letterhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--text-dark);
}

.receipt-letterhead-left .logo {
    font-size: 24px;
    margin-bottom: 8px;
}

.receipt-letterhead-left p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.receipt-letterhead-right {
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.receipt-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.receipt-title-row h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.receipt-title-row .receipt-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.receipt-status.paid {
    background: #D1FAE5;
    color: #065F46;
}

.receipt-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.receipt-header .receipt-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.receipt-header .logo .logo-esio {
    color: var(--text-dark);
}

.receipt-header .logo .logo-med {
    color: var(--primary-red);
}

.receipt-success-icon {
    display: none;
}

.receipt-body {
    padding: 0 40px 32px;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.receipt-info-item {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.receipt-info-item label {
    display: block;
    font-size: 11px;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.receipt-info-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.receipt-table thead th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: transparent;
    border-bottom: 2px solid var(--text-dark);
}

.receipt-table thead th:last-child {
    text-align: right;
}

.receipt-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-medium);
}

.receipt-table tbody td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.receipt-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-totals {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 280px;
    margin-left: auto;
}

.receipt-totals .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-medium);
}

.receipt-totals .row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid var(--text-dark);
}

.receipt-totals .row.total .amount {
    color: var(--text-dark);
}

.receipt-footer {
    text-align: left;
    padding: 24px 40px 32px;
    border-top: 1px solid var(--border-light);
    background: #F9FAFB;
}

.receipt-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.receipt-footer p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.receipt-footer .receipt-footer-note {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.receipt-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* === Track Order === */
.track-order-page {
    padding: 60px 0;
}

.track-form {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.track-form h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.track-form p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.track-form form {
    display: flex;
    gap: 12px;
}

.track-form .form-control {
    flex: 1;
}

.order-timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding-bottom: 32px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-gray);
    color: var(--text-lighter);
}

.timeline-dot.active {
    background: var(--primary-blue);
    color: white;
}

.timeline-dot.completed {
    background: #16A34A;
    color: white;
}

.timeline-dot svg {
    width: 18px;
    height: 18px;
}

.timeline-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    padding-top: 8px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--text-light);
}

/* === 404 Page === */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 {
    font-size: 120px;
    font-weight: 900;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-page p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* === About Page === */
.about-content {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--primary-blue-50);
    border-radius: var(--radius-lg);
}

.stat-item .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-item .label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === Contact Page === */
.contact-content {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.contact-info-card .icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.contact-info-card .icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* === Pagination === */
.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-load-more:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-load-more:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    color: var(--text-medium);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-blue-50);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.pagination .active span {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === Toast Notification === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideIn 0.3s ease;
    transition: var(--transition);
}

.toast.success {
    border-left: 4px solid #16A34A;
}

.toast.error {
    border-left: 4px solid var(--primary-red);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #16A34A;
}

.toast.error .toast-icon {
    color: var(--primary-red);
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lighter);
    padding: 4px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Alert Messages === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: var(--primary-red-pale);
    color: var(--primary-red-dark);
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* === Validation Errors === */
.validation-errors {
    background: var(--primary-red-pale);
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.validation-errors ul {
    list-style: disc;
    padding-left: 20px;
}

.validation-errors li {
    font-size: 13px;
    color: var(--primary-red-dark);
    margin-bottom: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--primary-red);
    margin-top: 4px;
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 140px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* === Mobile Menu Drawer === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 9999;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s ease;
    overflow-y: auto;
    display: none;
}

.mobile-menu.active {
    left: 0;
    display: block;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-header .logo {
    font-size: 22px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-medium);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--bg-gray);
}

.mobile-menu-close svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-body {
    padding: 12px 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 20px;
}

.mobile-menu-label {
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-lighter);
}

/* === Auth Pages === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-card-header {
    padding: 0 0 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-card-header .logo {
    font-size: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.auth-card-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.auth-card-header .auth-header-links {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
    line-height: 1.6;
}

.auth-card-header .auth-header-links a {
    color: var(--primary-red);
    font-weight: 600;
}

.auth-card-header .auth-header-links a:hover {
    text-decoration: underline;
}

.auth-card-body {
    padding: 28px 0 0;
}

.auth-card-body .form-group {
    margin-bottom: 20px;
}

.auth-card-body .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 6px;
    display: block;
}

.auth-card-body .form-control {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    transition: var(--transition);
    background: var(--bg-white);
}

.auth-card-body .form-control:focus {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px var(--primary-blue-pale);
    outline: none;
}

.auth-card-body .btn-primary {
    background: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
    border-radius: var(--radius-full);
    padding: 14px 32px;
    font-size: 16px;
}

.auth-card-body .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.auth-card-footer {
    padding: 24px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-card-footer a {
    color: var(--primary-red);
    font-weight: 600;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    font-size: 13px;
}

.auth-links a {
    color: var(--primary-red);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-medium);
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    font-size: 13px;
    color: var(--text-lighter);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-password-toggle {
    position: relative;
}

.auth-password-toggle .form-control {
    padding-right: 44px;
}

.auth-password-toggle .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lighter);
    padding: 4px;
}

.auth-password-toggle .toggle-password:hover {
    color: var(--text-medium);
}

.auth-password-toggle .toggle-password svg {
    width: 18px;
    height: 18px;
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    min-width: 100%;
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    max-height: 480px;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-slide:nth-child(1) {
    background: var(--gradient-hero);
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, #059669 0%, #10B981 50%, #1E40AF 100%);
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #0891B2 100%);
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-slider-dot.active {
    background: white;
    width: 28px;
    border-radius: var(--radius-full);
}

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
}

.hero-slider-arrow:hover {
    background: rgba(255,255,255,0.35);
}

.hero-slider-arrow svg {
    width: 22px;
    height: 22px;
}

.hero-slider-arrow.prev {
    left: 20px;
}

.hero-slider-arrow.next {
    right: 20px;
}

/* === Dashboard Styles === */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.dashboard-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.dashboard-sidebar-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-sidebar-header p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.dashboard-nav-group {
    padding: 8px 0;
}

.dashboard-nav-label {
    padding: 8px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-lighter);
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dashboard-nav-link:hover {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.dashboard-nav-link.active {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 600;
}

.dashboard-nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dashboard-nav-link .nav-badge {
    margin-left: auto;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.dashboard-content {
    padding: 32px;
    background: var(--bg-gray);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-content::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar on admin pages but keep scroll functionality */
.dashboard-layout {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-layout::-webkit-scrollbar {
    display: none;
}

.admin-layout {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-layout::-webkit-scrollbar {
    display: none;
}

.admin-layout .data-card {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-layout .data-card::-webkit-scrollbar {
    display: none;
}

.admin-layout .data-table-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-layout .data-table-wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar on all admin content areas */
.dashboard-sidebar {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-sidebar::-webkit-scrollbar {
    display: none;
}

.admin-layout .container,
.admin-layout .dashboard-content,
.admin-layout .data-card,
.admin-layout .data-table-wrapper,
.admin-layout .section {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-layout .container::-webkit-scrollbar,
.admin-layout .dashboard-content::-webkit-scrollbar,
.admin-layout .data-card::-webkit-scrollbar,
.admin-layout .data-table-wrapper::-webkit-scrollbar,
.admin-layout .section::-webkit-scrollbar {
    display: none;
}

.dashboard-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-content-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.dashboard-content-header p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === Stats Cards === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon.blue {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.stat-card-icon.red {
    background: var(--primary-red-pale);
    color: var(--primary-red);
}

.stat-card-icon.green {
    background: #D1FAE5;
    color: #059669;
}

.stat-card-icon.yellow {
    background: #FEF3C7;
    color: #D97706;
}

.stat-card-icon svg {
    width: 22px;
    height: 22px;
}

.stat-card-info h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-card-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* === Data Table === */
.data-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.data-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    text-align: left;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody td {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.confirmed {
    background: var(--primary-blue-pale);
    color: var(--primary-blue);
}

.status-badge.processing {
    background: #E0E7FF;
    color: #3730A3;
}

.status-badge.shipped {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-badge.delivered {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.cancelled {
    background: var(--primary-red-pale);
    color: var(--primary-red-dark);
}

.status-badge.paid {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.active {
    background: #D1FAE5;
    color: #065F46;
}

.status-badge.inactive {
    background: var(--bg-gray);
    color: var(--text-light);
}

/* === Action Buttons === */
.action-btns {
    display: flex;
    gap: 6px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
    border-color: var(--primary-blue-pale);
}

.action-btn.danger:hover {
    background: var(--primary-red-pale);
    color: var(--primary-red);
    border-color: #FECACA;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* === Unauthorized Modal === */
.unauthorized-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unauthorized-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.unauthorized-modal-header {
    background: var(--gradient-primary);
    padding: 32px;
    text-align: center;
    color: white;
}

.unauthorized-modal-header svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.unauthorized-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.unauthorized-modal-header p {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 8px;
}

.unauthorized-modal-body {
    padding: 32px;
    text-align: center;
}

.unauthorized-modal-body p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.6;
}

.unauthorized-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container,
    .hero-slide .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero h1 { font-size: 36px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-image { max-width: 400px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .products-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        overflow-y: auto;
        background: var(--bg-white);
        z-index: 9999;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12);
    }
    .sidebar.open { left: 0; }
    .mobile-filter-toggle { display: inline-flex; }
    .mobile-filter-overlay.active { display: block; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        border-right: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        padding: 24px 0;
    }
    .dashboard-sidebar.open {
        left: 0;
    }
    .dashboard-sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    .dashboard-sidebar-overlay.active {
        display: block;
    }
    .dashboard-sidebar-toggle {
        display: flex !important;
    }
    .dashboard-content { padding: 24px 16px; }

    .hero-slider-arrow { display: none; }

    /* Admin form two-column layouts go single column */
    .data-card-header h3 { font-size: 15px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }

    .header .container {
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 10px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .logo {
        font-size: 22px;
        min-width: 0;
        overflow: hidden;
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        gap: 2px;
    }

    .logo-name {
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(14px, 3.8vw, 18px);
    }

    .logo img {
        height: clamp(28px, 8vw, 40px) !important;
        width: auto;
    }

    .search-bar {
        order: initial;
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        flex-basis: 100%;
    }

    .search-bar input { padding: 8px 14px; font-size: 13px; }
    .search-bar button { padding: 8px 14px; }

    .mobile-menu-toggle {
        display: flex;
        order: initial;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .nav-action-desktop { display: none !important; }
    .nav-action-text { display: none; }
    .nav-action-btn { padding: 8px; }

    .nav-actions {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        justify-self: end;
        min-width: 0;
    }

    .category-nav { display: none; }

    .hero, .hero-slide { padding: 20px 0; min-height: 500px; max-height: none; flex-direction: column; text-align: center; }
    .hero .container { flex-direction: column; align-items: center; gap: 20px; }
    .hero-content { order: 2; max-width: 100%; }
    .hero h1 { font-size: 26px; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px; }
    .hero p { font-size: 15px; margin-bottom: 20px; line-height: 1.4; }
    .hero-badge { font-size: 12px; padding: 6px 12px; margin-bottom: 12px; }
    .hero-image { order: 1; max-width: 280px; max-height: 200px; margin: 0 auto; }
    .hero-image img { max-height: 200px; width: auto; }
    .hero-actions { justify-content: center; flex-wrap: wrap; gap: 12px; }
    .hero-actions .btn { font-size: 14px; padding: 10px 20px; }
    
    .hero-slide .container { flex-direction: column !important; gap: 20px !important; }

    .section { padding: 40px 0; }
    .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .section-header h2 { font-size: 22px; }

    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card-image { height: 100px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-image { height: 160px; }
    .product-card-body { padding: 12px; }
    .product-card-name { font-size: 13px; }
    .price-current { font-size: 15px; }
    .price-normal { font-size: 15px; }
    .price-original { font-size: 12px; }
    .product-card-footer { padding: 0 12px 12px; }
    .btn-add-cart, .btn-buy-now { font-size: 11px; padding: 8px 6px; }

    .promo-banners { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 16px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-brand {
        padding-bottom: 20px;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-collapsible {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0;
    }

    .footer-collapse-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 14px 0;
        margin-bottom: 0;
    }

    .footer-chevron {
        display: inline-block;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .footer-chevron.rotated {
        transform: rotate(180deg);
    }

    .footer-collapse-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-collapse-content.open {
        max-height: 300px;
        padding-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
    .cart-item-quantity { grid-column: 2; }
    .cart-item-remove { grid-column: 2; }
    .form-row { grid-template-columns: 1fr; }
    .receipt-info-grid { grid-template-columns: 1fr; }
    .error-page h1 { font-size: 80px; }
    .payment-card { padding: 32px 24px; }
    .receipt-header { padding: 24px 24px 0; }
    .receipt-body { padding: 0 24px 24px; }
    .receipt-footer { padding: 20px 24px 24px; }
    .receipt-footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .receipt-letterhead { flex-direction: column; gap: 16px; }
    .receipt-letterhead-right { text-align: left; }
    .receipt-actions { justify-content: center; }

    .page-header { padding: 16px 0; }
    .page-header h1 { font-size: 22px; }

    .cta-section { padding: 48px 0; }
    .cta-section h2 { font-size: 24px; }
    .cta-section p { font-size: 15px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; gap: 12px; }
    .stat-card-info h3 { font-size: 22px; }

    .whatsapp-float { width: 48px; height: 48px; bottom: 120px; right: 16px; }
    .whatsapp-float svg { width: 24px; height: 24px; }

    /* Data tables - horizontal scroll */
    .data-card { overflow-x: auto; }
    .data-table { min-width: 600px; }
    .data-table thead th { padding: 10px 14px; font-size: 11px; }
    .data-table tbody td { padding: 10px 14px; font-size: 13px; }

    /* Admin form grid single column */
    [style*="grid-template-columns: 1fr 360px"],
    [style*="grid-template-columns:1fr 360px"] {
        display: block !important;
    }

    /* Dashboard content header stacking */
    .dashboard-content-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .dashboard-content-header h1 { font-size: 20px; }

    /* Radio group stacking */
    .radio-group { flex-direction: column; }

    /* Checkout form */
    .checkout-form { padding: 16px; }
    .checkout-form h2 { font-size: 17px; }
    .checkout-page { padding: 20px 0; }
    .checkout-layout { gap: 16px; }

    /* Delivery method mobile */
    .delivery-method-toggle { padding: 14px 16px; }
    .delivery-zones-list { padding: 6px; }
    .delivery-zone-label { padding: 10px 12px; gap: 10px; }
    .delivery-zone-name { font-size: 13px; }

    /* Payment page mobile — prevent overflow */
    .mpesa-section { padding: 16px; margin-top: 0; }
    .mpesa-section p { word-break: break-word; }
    .checkout-layout .checkout-form { min-width: 0; overflow: hidden; }
    .cart-summary { min-width: 0; overflow: hidden; }

    /* About stats */
    .about-stats { grid-template-columns: 1fr; gap: 12px; }

    /* Profile photo section */
    .profile-photo-section { flex-direction: column; text-align: center; }
    .profile-photo-actions { justify-content: center; }

    /* Support grid */
    .container [style*="grid-template-columns:repeat(3"],
    .container [style*="grid-template-columns: repeat(3"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    /* Product detail */
    .product-detail-price .price-current { font-size: 24px; }
    .product-detail-meta { grid-template-columns: 1fr; }

    /* Auth pages */
    .auth-card { padding: 0 16px; }
    .auth-card-header h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .header .container {
        gap: 8px;
    }
    /* Checkout & payment overflow fix */
    .checkout-form { padding: 14px; }
    .checkout-page .container { padding: 0 12px; }
    .mpesa-section { padding: 14px; }
    .delivery-method-toggle { padding: 12px 14px; }
    .important-notice { word-break: break-word; }
    .logo-name {
        font-size: clamp(13px, 4vw, 16px);
    }
    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        padding: 6px;
    }
    .nav-action-btn {
        width: 34px;
        height: 34px;
        padding: 6px;
        justify-content: center;
    }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: center; }
    .product-detail-actions { flex-direction: column; }
    .track-form form { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }

    .logo { font-size: 20px; }
    .logo img {
        height: clamp(24px, 7.6vw, 34px) !important;
    }
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 13px; }

    .product-card-image { height: 130px; }
    .product-card-body { padding: 10px; }
    .product-card-name { font-size: 12px; }
    .price-current { font-size: 13px; }
    .price-normal { font-size: 13px; }
    .price-original { font-size: 11px; }
    .btn-add-cart { font-size: 11px; padding: 7px 4px; }
    .btn-buy-now { font-size: 11px; padding: 7px 4px; }
    .btn-add-cart .btn-add-cart-text { display: none; }
    .btn-add-cart { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 0; justify-content: center; }
    .btn-add-cart svg { width: 18px; height: 18px; margin: 0; }

    .category-card-image { height: 80px; }
    .category-card-body { padding: 10px 8px; }
    .category-card-body h3 { font-size: 12px; }

    .section { padding: 32px 0; }
    .section-header h2 { font-size: 20px; }
    .section-header a { font-size: 13px; }

    .cart-item { grid-template-columns: 70px 1fr; gap: 10px; padding: 14px; }
    .cart-item-image { width: 70px; height: 70px; }
    .cart-item-info h3 { font-size: 13px; }

    .payment-amount { font-size: 28px; }
    .payment-card h2 { font-size: 20px; }

    .receipt-table { font-size: 12px; min-width: 480px; }
    .receipt-totals .row.total { font-size: 15px; }

    .dashboard-content { padding: 16px 12px; }
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card-icon { width: 40px; height: 40px; }
    .stat-card-info h3 { font-size: 20px; }
    .stat-card-info p { font-size: 12px; }

    .error-page h1 { font-size: 60px; }
    .error-page h2 { font-size: 22px; }

    .cta-section h2 { font-size: 20px; }
    .cta-section p { font-size: 14px; }

    /* Ensure all overflowing content scrolls */
    .receipt-body { overflow-x: auto; }
}

/* === Footer Chevron (hidden on desktop) === */
.footer-chevron {
    display: none;
}

/* === Dashboard Sidebar Toggle === */
.dashboard-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-medium);
    margin-bottom: 16px;
    transition: var(--transition);
}

.dashboard-sidebar-toggle:hover {
    background: var(--primary-blue-50);
    color: var(--primary-blue);
}

.dashboard-sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

/* === Profile Photo === */
.profile-photo-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.profile-photo-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.profile-photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-photo-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.profile-photo-actions {
    display: flex;
    gap: 8px;
}

/* === File Upload Preview === */
.file-upload-area {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-blue-light);
    background: var(--primary-blue-50);
}

.file-upload-area.has-file {
    border-color: var(--primary-blue-light);
    background: var(--primary-blue-50);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.file-upload-icon svg {
    width: 32px;
    height: 32px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-light);
}

.file-upload-text strong {
    color: var(--primary-blue);
}

.file-preview {
    margin-top: 16px;
    display: none;
}

.file-preview.active {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.file-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-info .file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-info .file-size {
    font-size: 12px;
    color: var(--text-lighter);
}

.file-preview-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-red);
    padding: 4px;
}

.file-preview-remove svg {
    width: 16px;
    height: 16px;
}

/* === Map Container === */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}

/* === Timeline === */
.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-gray);
    color: var(--text-lighter);
}

.timeline-dot.completed {
    background: #D1FAE5;
    color: #059669;
}

.timeline-dot svg {
    width: 14px;
    height: 14px;
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 13px;
    color: var(--text-light);
}

/* === Admin Image Preview === */
.admin-image-preview {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-gray);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Admin Tabs === */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
}

.admin-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.admin-tab:hover,
.admin-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

/* === Print Styles === */
@media print {
    @page {
        margin: 0.5cm;
        size: auto;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .header, .footer, .top-bar, .category-nav, .whatsapp-float,
    .receipt-actions, .btn, .nav-actions, .search-bar,
    .mobile-menu, .mobile-menu-overlay, .mobile-menu-toggle,
    .page-header, .breadcrumb {
        display: none !important;
    }

    .receipt-page {
        padding: 0 !important;
        margin: 0 !important;
    }

    .receipt-container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .receipt-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .receipt-header {
        background: #1E40AF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
        padding: 20px !important;
    }

    .receipt-header .logo-esio,
    .receipt-header .logo-med,
    .receipt-header p,
    .receipt-header h2,
    .receipt-header .receipt-meta {
        color: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* === Rich Text Editor === */
.re-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.re-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.re-btn:hover {
    background: #FFF4EA;
    border-color: #6DDFA4;
    color: #E36D0B;
}
.re-btn:active {
    background: #FDDFC2;
    border-color: #E36D0B;
}
.re-divider {
    width: 1px;
    height: 26px;
    background: #D1D5DB;
    margin: 0 6px;
    flex-shrink: 0;
}
.re-edit-area {
    min-height: 180px;
    max-height: 500px;
    overflow-y: auto;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 0 0 8px 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #111827;
    outline: none;
    background: #fff;
}
.re-edit-area:focus {
    border-color: #E36D0B;
    box-shadow: 0 0 0 3px rgba(227, 109, 11, 0.1);
}
.re-edit-area:empty::before {
    content: attr(data-placeholder);
    color: #9CA3AF;
    pointer-events: none;
}
.re-edit-area h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: #111827;
}
.re-edit-area h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #111827;
}
.re-edit-area p {
    margin: 8px 0;
}
.re-edit-area ul, .re-edit-area ol {
    margin: 8px 0;
    padding-left: 24px;
}
.re-edit-area ul { list-style: disc; }
.re-edit-area ol { list-style: decimal; }
.re-edit-area blockquote {
    border-left: 3px solid #E36D0B;
    padding: 8px 16px;
    margin: 12px 0;
    background: #FFF4EA;
    border-radius: 0 6px 6px 0;
    color: #374151;
    font-style: italic;
}
.re-edit-area img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
}
.re-edit-area a {
    color: #E36D0B;
    text-decoration: underline;
}
.re-edit-area hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 16px 0;
}

/* === Updates Page Content === */
.update-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}
.update-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--text-dark);
}
.update-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: var(--text-dark);
}
.update-content p {
    margin: 8px 0;
}
.update-content ul, .update-content ol {
    margin: 8px 0;
    padding-left: 24px;
}
.update-content ul { list-style: disc; }
.update-content ol { list-style: decimal; }
.update-content blockquote {
    border-left: 3px solid var(--primary-blue);
    padding: 8px 16px;
    margin: 12px 0;
    background: var(--primary-blue-50);
    border-radius: 0 6px 6px 0;
    color: var(--text-medium);
    font-style: italic;
}
.update-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 12px 0;
}
.update-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}
.update-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 16px 0;
}
.update-content iframe {
    border: none;
    border-radius: var(--radius-md);
}

@media print {
    @page { margin: 0.5cm; size: auto; }
    html, body { width: 100%; max-width: 100%; margin: 0; padding: 0; background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .header, .footer, .top-bar, .category-nav, .whatsapp-float,
    .receipt-actions, .btn, .nav-actions, .search-bar,
    .mobile-menu, .mobile-menu-overlay, .mobile-menu-toggle,
    .bp-header, .bp-footer, .bp-wa, .bp-drawer, .bp-drawer-overlay, .bp-scrim { display: none !important; }
}

/* =====================================================================
   BP DESIGN SYSTEM  (Best Price Wholesalers storefront)
   Radius scale: controls 10px, cards 16px, chips/pills full.
   ===================================================================== */
:root {
    color-scheme: light;
    --bp-ink: #282828;
    --bp-ink-2: #3d3e40;
    --bp-muted: #6b6c70;
    --bp-line: #e5e5ea;
    --bp-line-2: #d2d2d6;
    --bp-paper: #f2f2f7;
    --bp-surface: #ffffff;
    --bp-brand-950: #262728;
    --bp-brand-900: #3D3E40;
    --bp-brand-800: #B95407;
    --bp-brand-700: #E36D0B;
    --bp-brand-500: #F7931E;
    --bp-brand-100: #FDDFC2;
    --bp-brand-50: #FFF4EA;
    --bp-amber: #f5a524;
    --bp-amber-600: #d98a0b;
    --bp-amber-50: #fff6e3;
    --bp-red: #c2352b;
    --bp-red-50: #fdecea;
    --bp-r-control: 10px;
    --bp-r-card: 14px;
    --bp-shadow: 0 1px 2px rgba(38, 39, 40, .06), 0 8px 24px -12px rgba(38, 39, 40, .18);
    --bp-shadow-lg: 0 24px 60px -24px rgba(30, 31, 32, .35);
    --bp-ease: cubic-bezier(.16, 1, .3, 1);
}

body.bp { background: var(--bp-paper); color: var(--bp-ink); font-feature-settings: 'cv11', 'ss01'; }
.bp-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.bp-num { font-variant-numeric: tabular-nums; }
.bp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--bp-r-control); border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; transition: transform .15s var(--bp-ease), background .2s, box-shadow .2s, color .2s; }
.bp-btn:active { transform: translateY(1px) scale(.99); }
.bp-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.bp-btn-primary { background: var(--bp-brand-700); color: #fff; }
.bp-btn-primary:hover { background: var(--bp-brand-800); }
.bp-btn-amber { background: var(--bp-amber); color: var(--bp-brand-950); }
.bp-btn-amber:hover { background: #f8b445; }
.bp-btn-ghost { background: transparent; color: var(--bp-brand-800); border-color: var(--bp-line-2); }
.bp-btn-ghost:hover { border-color: var(--bp-brand-700); background: var(--bp-brand-50); }
.bp-btn-light { background: #fff; color: var(--bp-brand-900); }
.bp-btn-light:hover { background: var(--bp-brand-50); }
.bp-btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.bp-btn-block { width: 100%; }
.bp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.bp-link { color: var(--bp-brand-700); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.bp-link:hover { color: var(--bp-brand-900); text-decoration: underline; text-underline-offset: 3px; }

/* Chips and badges */
.bp-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.bp-chip-in { background: var(--bp-brand-50); color: var(--bp-brand-800); box-shadow: inset 0 0 0 1px var(--bp-brand-100); }
.bp-chip-low { background: var(--bp-amber-50); color: #8a5300; box-shadow: inset 0 0 0 1px #f6d79a; }
.bp-chip-out { background: #f2f0ec; color: #6b6660; box-shadow: inset 0 0 0 1px var(--bp-line); }
.bp-chip .bp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bp-tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: var(--bp-amber-50); color: #7a4a00; font-size: 12.5px; font-weight: 700; box-shadow: inset 0 0 0 1px #f6d79a; }
.bp-tier svg { width: 14px; height: 14px; }
.bp-sale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--bp-red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }

/* Mobile drawer */
.bp-drawer-overlay { position: fixed; inset: 0; background: rgba(30, 31, 32, .45); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90; }
.bp-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; z-index: 95; transform: translateX(-100%); transition: transform .3s var(--bp-ease); display: flex; flex-direction: column; }
.bp-drawer.active { transform: none; }
.bp-drawer-overlay.active { opacity: 1; visibility: visible; }
.bp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--bp-line); }
.bp-drawer-body { overflow-y: auto; padding: 10px 8px 24px; }
.bp-drawer-body a, .bp-drawer-body button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--bp-ink-2); background: none; border: 0; text-align: left; cursor: pointer; }
.bp-drawer-body a:hover { background: var(--bp-paper); }
.bp-drawer-body svg { width: 20px; height: 20px; color: var(--bp-brand-700); }
.bp-drawer-body h4 { padding: 14px 12px 6px; font-size: 12.5px; color: var(--bp-muted); font-weight: 700; }

/* Sections */
.bp-section { padding: 56px 0; }
.bp-section-tight { padding: 36px 0; }
.bp-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-brand-500); margin-bottom: 10px; }

/* Live strip (home) */
.bp-ticker { overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bp-ticker-track { display: flex; gap: 12px; padding: 18px 0; animation: bp-marquee 50s linear infinite; width: max-content; }
.bp-ticker:hover .bp-ticker-track { animation-play-state: paused; }
@keyframes bp-marquee { to { transform: translateX(-50%); } }
.bp-tick { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; border: 1px solid var(--bp-line); background: var(--bp-paper); white-space: nowrap; font-size: 13.5px; }
.bp-tick img, .bp-tick .ph { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #fff; }
.bp-tick strong { display: block; font-size: 13.5px; }
.bp-tick span { color: var(--bp-muted); font-size: 12.5px; }

/* Footer */
.bp-footer { background: var(--bp-brand-950); color: #BFC0C3; margin-top: 64px; }
.bp-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.bp-footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.bp-footer ul { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.bp-footer a:hover { color: #fff; }
.bp-footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.bp-footer-brand p { font-size: 14.5px; max-width: 34ch; }
.bp-footer-pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.bp-footer-pay span { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #E2E2E4; font-size: 12.5px; font-weight: 700; }
.bp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.bp-social { display: flex; gap: 8px; margin-top: 16px; }
.bp-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.bp-social a:hover { background: rgba(255, 255, 255, .16); }
.bp-social svg { width: 18px; height: 18px; }
.bp-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .2s var(--bp-ease); }
.bp-wa:hover { transform: scale(1.06); }
.bp-wa svg { width: 30px; height: 30px; fill: currentColor; }

/* Breadcrumb + page head */
.bp-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--bp-muted); padding: 18px 0 0; flex-wrap: wrap; }
.bp-crumbs a:hover { color: var(--bp-brand-700); }
.bp-crumbs svg { width: 14px; height: 14px; }
.bp-pagehead { padding: 18px 0 24px; }
.bp-pagehead h1 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.08; font-weight: 900; }
.bp-pagehead p { color: var(--bp-muted); margin-top: 8px; max-width: 62ch; }

/* Product detail */
.bp-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 18px; }
.bp-gallery { position: sticky; top: 140px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.bp-thumbs { display: grid; gap: 10px; align-content: start; }
.bp-thumbs button { width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.bp-thumbs button.active { border-color: var(--bp-brand-700); }
.bp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.bp-main-img { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #f4f2ec; border: 1px solid var(--bp-line); }
.bp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-pdp h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 900; margin: 6px 0 10px; }
.bp-pdp-sub { display: flex; gap: 14px; flex-wrap: wrap; color: var(--bp-muted); font-size: 14px; }
.bp-pdp-price { margin: 20px 0; padding: 20px; border-radius: var(--bp-r-card); background: #fff; border: 1px solid var(--bp-line); }
.bp-pdp-price .bp-price s { font-size: 16px; }
.bp-tiers { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.bp-tier-card { border-radius: 12px; padding: 12px; background: var(--bp-paper); border: 1.5px solid var(--bp-line); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.bp-tier-card:hover, .bp-tier-card.active { border-color: var(--bp-amber); background: var(--bp-amber-50); }
.bp-tier-card .q { font-size: 12.5px; font-weight: 700; color: var(--bp-muted); }
.bp-tier-card .p { font-size: 18px; font-weight: 850; color: var(--bp-ink); margin-top: 2px; }
.bp-tier-card .s { font-size: 12px; font-weight: 700; color: var(--bp-brand-700); }
.bp-tier-hint { margin-top: 12px; font-size: 14px; color: #7a4a00; background: var(--bp-amber-50); border-radius: 10px; padding: 10px 12px; }
.bp-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: center; }
.bp-qty { display: inline-flex; align-items: center; height: 46px; border-radius: var(--bp-r-control); border: 1.5px solid var(--bp-line-2); background: #fff; }
.bp-qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 20px; font-weight: 700; color: var(--bp-brand-800); cursor: pointer; }
.bp-qty input { width: 54px; text-align: center; border: 0; font-size: 16px; font-weight: 800; height: 100%; -moz-appearance: textfield; }
.bp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bp-avail { margin-top: 22px; border-radius: var(--bp-r-card); border: 1px solid var(--bp-line); background: #fff; }
.bp-avail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--bp-line); }
.bp-avail-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bp-avail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.bp-avail-row + .bp-avail-row { border-top: 1px solid var(--bp-line); }
.bp-avail-row strong { font-size: 14.5px; display: block; }
.bp-avail-row span.addr { font-size: 13px; color: var(--bp-muted); }
.bp-variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.bp-variants button { min-height: 40px; padding: 6px 14px; border-radius: var(--bp-r-control); border: 1.5px solid var(--bp-line-2); background: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.bp-variants button.active { border-color: var(--bp-brand-700); background: var(--bp-brand-50); color: var(--bp-brand-900); }
.bp-variants button[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.bp-variants .sw { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.bp-tabs { margin-top: 48px; }
.bp-tabs-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--bp-line); overflow-x: auto; }
.bp-tabs-nav button { padding: 12px 16px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--bp-muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.bp-tabs-nav button.active { color: var(--bp-brand-800); border-color: var(--bp-brand-700); }
.bp-tab { padding: 22px 0; max-width: 78ch; color: var(--bp-ink-2); line-height: 1.7; }
.bp-tab[hidden] { display: none; }
.bp-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.bp-perks div { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--bp-ink-2); }
.bp-perks svg { width: 20px; height: 20px; color: var(--bp-brand-700); flex-shrink: 0; }

/* Notify modal / form */
.bp-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 31, 32, .5); }
.bp-modal.open { display: flex; }
.bp-modal-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--bp-shadow-lg); animation: bp-pop .3s var(--bp-ease); }
@keyframes bp-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.bp-modal-card h3 { font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.bp-modal-card p { color: var(--bp-muted); font-size: 14.5px; margin: 6px 0 16px; }
.bp-modal-card form { display: grid; gap: 12px; }
.bp-modal-x { float: right; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bp-paper); cursor: pointer; font-size: 20px; line-height: 1; }
.bp-help { font-size: 12.5px; color: var(--bp-muted); }
.bp-error { font-size: 13px; color: var(--bp-red); font-weight: 600; }
.bp-success { font-size: 14px; color: var(--bp-brand-800); background: var(--bp-brand-50); border-radius: 10px; padding: 10px 12px; font-weight: 600; }

/* Live stock page */
.bp-livehero { background: var(--bp-brand-950); color: #fff; padding: 40px 0 0; overflow: hidden; }
.bp-livehero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: end; }
.bp-livehero h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.035em; font-weight: 900; }
.bp-livehero h1 em { font-style: normal; color: var(--bp-amber); }
.bp-livehero p { color: #BFC0C3; font-size: 17px; margin: 12px 0 24px; max-width: 46ch; }
.bp-livestatus { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13.5px; font-weight: 600; color: #E2E2E4; }
.bp-livestatus.stale { color: #f6d79a; }
.bp-feed { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px 18px 0 0; padding: 16px; max-height: 280px; overflow: hidden; }
.bp-feed h3 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.bp-feed ul { list-style: none; display: grid; gap: 8px; }
.bp-feed li a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13.5px; }
.bp-feed li a:hover { background: rgba(255, 255, 255, .1); }
.bp-feed li img, .bp-feed li .ph { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #fff; flex-shrink: 0; }
.bp-feed li span { color: #BFC0C3; font-size: 12.5px; display: block; }
.bp-feed li.new { animation: bp-flash 1.6s var(--bp-ease); }
@keyframes bp-flash { 0% { background: rgba(245, 165, 36, .35); border-radius: 12px; } 100% { background: transparent; } }
.bp-loc-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0; scrollbar-width: none; }
.bp-loc-tab { flex: 0 0 auto; display: grid; gap: 2px; text-align: left; min-width: 210px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--bp-line); background: #fff; cursor: pointer; font: inherit; }
.bp-loc-tab strong { font-size: 15px; color: var(--bp-ink); }
.bp-loc-tab span { font-size: 12.5px; color: var(--bp-muted); }
.bp-loc-tab.active { border-color: var(--bp-brand-700); background: var(--bp-brand-50); }
.bp-live-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.bp-live-table { background: #fff; border: 1px solid var(--bp-line); border-radius: var(--bp-r-card); overflow: hidden; }
.bp-live-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(var(--cols, 3), minmax(110px, 1fr)) 120px; gap: 12px; align-items: center; padding: 12px 16px; }
.bp-live-row + .bp-live-row { border-top: 1px solid var(--bp-line); }
.bp-live-row.head { background: var(--bp-paper); font-size: 12.5px; font-weight: 800; color: var(--bp-muted); padding-top: 10px; padding-bottom: 10px; }
.bp-live-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bp-live-prod img, .bp-live-prod .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f4f2ec; flex-shrink: 0; }
.bp-live-prod strong { display: block; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-live-prod span { font-size: 12.5px; color: var(--bp-muted); }
.bp-live-row .cell-label { display: none; }
.bp-live-row .fresh { display: block; font-size: 11.5px; color: var(--bp-brand-700); font-weight: 700; margin-top: 3px; }
.bp-live-row.changed { animation: bp-flash 1.6s var(--bp-ease); }
.bp-skel { background: linear-gradient(90deg, #efece4 25%, #f7f5ef 50%, #efece4 75%); background-size: 200% 100%; animation: bp-shimmer 1.4s infinite; border-radius: 8px; height: 14px; }
@keyframes bp-shimmer { to { background-position: -200% 0; } }

/* Reveal */
.bp-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--bp-ease), transform .6s var(--bp-ease); }
.bp-reveal.in { opacity: 1; transform: none; }

/* Toast restyle */
.toast-container { z-index: 130 !important; }

/* Responsive */
@media (max-width: 1200px) {
    .bp-footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 1024px) {
    .bp-pdp { grid-template-columns: 1fr; gap: 24px; }
    .bp-gallery { position: static; }
    .bp-livehero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .bp-container { padding: 0 16px; }
    .bp-section { padding: 40px 0; }
    .bp-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .bp-footer-brand, .bp-footer-contact { grid-column: 1 / -1; }
    .bp-gallery { grid-template-columns: 1fr; }
    .bp-thumbs { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; }
    .bp-thumbs button { width: 64px; height: 64px; }
    .bp-buy { grid-template-columns: auto 1fr; }
    .bp-buy .bp-btn-amber { grid-column: 1 / -1; }
    .bp-perks { grid-template-columns: 1fr; }
    .bp-live-tools { grid-template-columns: 1fr; }
    .bp-live-row { grid-template-columns: 1fr 1fr; padding: 14px; }
    .bp-live-row.head { display: none; }
    .bp-live-row .bp-live-prod { grid-column: 1 / -1; }
    .bp-live-row .cell-label { display: block; font-size: 11.5px; color: var(--bp-muted); font-weight: 700; margin-bottom: 3px; }
    .bp-live-row .cell-act { grid-column: 1 / -1; }
    .bp-live-row .cell-act .bp-btn { width: 100%; }
    .bp-loc-tab { min-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
    .bp-ticker-track, .bp-pulse::after, .bp-skel { animation: none; }
    .bp-reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 767px) { .bp-deal-row { grid-auto-columns: 82%; } .bp-deal { grid-template-columns: 72px 1fr; } .bp-deal img, .bp-deal .ph { width: 72px; height: 72px; } }
.bp-tier-card .q, .bp-tier-card .p, .bp-tier-card .s, .bp-avail-row .addr { display: block; }
body.bp [hidden] { display: none !important; }
.bp-feed li a > span { min-width: 0; }
.bp-feed li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .bp-feed { max-height: 196px; } .bp-livehero { padding-top: 28px; } }

/* Legacy pages (cart, checkout, account, auth, static pages) aligned to the BP system */
body.bp .container { max-width: 1320px; }
body.bp .page-header { background: var(--bp-paper); color: var(--bp-ink); padding: 28px 0 8px; border: 0; }
body.bp .page-header h1 { color: var(--bp-ink); font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.03em; }
body.bp .page-header .breadcrumb, body.bp .page-header .breadcrumb a { color: var(--bp-muted); }
body.bp .page-header .breadcrumb a:hover { color: var(--bp-brand-700); }
body.bp .btn { border-radius: var(--bp-r-control); font-weight: 700; }
body.bp .btn-primary { background: var(--bp-brand-700); box-shadow: none; }
body.bp .btn-primary:hover { background: var(--bp-brand-800); transform: none; }
body.bp .form-control { border-radius: var(--bp-r-control); border: 1.5px solid var(--bp-line-2); min-height: 44px; }
body.bp .form-control:focus { border-color: var(--bp-brand-700); box-shadow: 0 0 0 4px rgba(239, 122, 20, .12); }
body.bp .cart-items, body.bp .cart-summary, body.bp .checkout-form, body.bp .order-summary, body.bp .auth-card, body.bp .dashboard-card { border-radius: var(--bp-r-card); border-color: var(--bp-line); box-shadow: none; }
body.bp .cart-summary .btn, body.bp .checkout-summary .btn { border-radius: var(--bp-r-control); }
.bp-line-tier { display: inline-flex; margin-top: 6px; }

/* =====================================================================
   STOREFRONT v2  (marketplace layout: header, menus, cards, rails,
   listing filters, cart). Brand: orange #E36D0B, charcoal #3D3E40.
   ===================================================================== */
.bp-btn-dark { background: var(--bp-brand-900); color: #fff; }
.bp-btn-dark:hover { background: var(--bp-brand-950); }
.bp-btn-amber { background: var(--bp-brand-900); color: #fff; }
.bp-btn-amber:hover { background: var(--bp-brand-950); }
.bp-btn-primary { box-shadow: 0 4px 10px -4px rgba(227, 109, 11, .55); }
.bp-icon-btn { width: 42px; height: 42px; border-radius: var(--bp-r-control); display: grid; place-items: center; border: 1px solid var(--bp-line-2); background: #fff; color: var(--bp-brand-800); cursor: pointer; }
.bp-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--bp-ink-2); cursor: pointer; }
.bp-check input { width: 17px; height: 17px; accent-color: var(--bp-brand-700); }
.bp-field { display: grid; gap: 6px; }
.bp-field label { font-size: 13.5px; font-weight: 700; color: var(--bp-ink-2); }
.bp-input, .bp-select { height: 42px; width: 100%; border-radius: var(--bp-r-control); border: 1px solid var(--bp-line-2); background: #fff; padding: 0 12px; font-size: 14.5px; color: var(--bp-ink); }
.bp-input:focus, .bp-select:focus { outline: none; border-color: var(--bp-brand-700); box-shadow: 0 0 0 3px rgba(239, 122, 20, .18); }
.bp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bp-empty { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--bp-r-card); }
.bp-empty h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.bp-empty p { color: var(--bp-muted); margin-bottom: 18px; }
.bp-shop { border-radius: var(--bp-r-card); background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bp-alert { padding: 12px 16px; border-radius: var(--bp-r-control); margin: 12px 0; font-weight: 600; }
.bp-alert.is-error { background: var(--bp-red-50); color: var(--bp-red); }

/* Header */
.bp-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--bp-line), 0 4px 16px -12px rgba(38, 39, 40, .25); }
.bp-header-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; height: 72px; }
.bp-header-row > * { min-width: 0; }
.bp-logo { display: inline-flex; align-items: center; }
.bp-logo img { height: 46px; width: auto; }
.bp-logo-text { display: none; font-weight: 900; letter-spacing: -.02em; font-size: 19px; color: var(--bp-brand-900); line-height: 1; }
.bp-logo-text small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bp-brand-700); margin-top: 3px; }
.bp-logo.no-img .bp-logo-text { display: block; }
.bp-search { position: relative; max-width: 720px; width: 100%; justify-self: center; }
.bp-search form { position: relative; display: flex; align-items: center; gap: 10px; height: 46px; }
.bp-search form > svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--bp-muted); pointer-events: none; }
.bp-search input { flex: 1; min-width: 0; height: 100%; border: 1px solid var(--bp-line-2); border-radius: 999px; background: #f6f6f7; padding: 0 16px 0 44px; font-size: 15px; color: var(--bp-ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.bp-search input:focus { border-color: var(--bp-brand-700); background: #fff; box-shadow: 0 0 0 3px rgba(239, 122, 20, .16); }
.bp-search button[type=submit] { height: 100%; padding: 0 24px; border: 0; border-radius: 999px; background: var(--bp-brand-700); color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 4px 10px -4px rgba(227, 109, 11, .6); }
.bp-search button[type=submit]:hover { background: var(--bp-brand-800); }
.bp-suggest { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--bp-r-card); box-shadow: var(--bp-shadow-lg); border: 1px solid var(--bp-line); z-index: 70; max-height: 440px; overflow-y: auto; padding: 6px; }
.bp-suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 6px; }
.bp-suggest a:hover, .bp-suggest a:focus { background: var(--bp-brand-50); outline: none; }
.bp-suggest img, .bp-suggest .ph { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--bp-paper); flex-shrink: 0; }
.bp-suggest .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-suggest .ct { font-size: 12px; color: var(--bp-muted); font-weight: 500; }
.bp-suggest .pr { font-size: 14px; font-weight: 800; color: var(--bp-ink); white-space: nowrap; }
.bp-suggest .lbl { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-muted); }
.bp-suggest .all { justify-content: center; color: var(--bp-brand-800); font-weight: 700; font-size: 14px; border-top: 1px solid var(--bp-line); margin-top: 4px; }
.bp-actions { display: flex; align-items: center; gap: 2px; }
.bp-action { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 6px; color: var(--bp-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
.bp-action > svg:first-child, .bp-cart-ico > svg { width: 24px; height: 24px; }
.bp-action > svg:last-child:not(:first-child) { width: 15px; height: 15px; transition: transform .2s; }
.bp-action:hover { color: var(--bp-brand-800); }
.bp-cart-ico { position: relative; display: inline-flex; margin-right: 4px; }
.bp-badge { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--bp-brand-700); color: #fff; font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.bp-dd { position: relative; }
.bp-dd-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 230px; background: #fff; border-radius: var(--bp-r-card); box-shadow: 0 12px 32px -8px rgba(38, 39, 40, .28); border: 1px solid var(--bp-line); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .22s var(--bp-ease), visibility .18s; z-index: 85; }
.bp-dd::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.bp-dd:hover .bp-dd-menu, .bp-dd:focus-within .bp-dd-menu { opacity: 1; visibility: visible; transform: none; }
.bp-dd:hover .bp-action > svg:last-child:not(:first-child) { transform: rotate(180deg); }
.bp-dd-menu > a:not(.bp-btn), .bp-dd-menu button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; font-size: 14.5px; font-weight: 500; color: var(--bp-ink); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.bp-dd-menu > a:not(.bp-btn):hover, .bp-dd-menu button:hover { background: var(--bp-paper); }
.bp-dd-menu svg { width: 19px; height: 19px; color: var(--bp-ink-2); }
.bp-dd-menu .bp-btn { height: 42px; font-size: 14.5px; }
.bp-dd-menu .bp-btn svg { color: #fff; }
.bp-dd-menu hr { border: 0; border-top: 1px solid var(--bp-line); margin: 6px 0; }
.bp-dd-menu .bp-dd-sub { justify-content: center; font-size: 13px !important; color: var(--bp-brand-800) !important; font-weight: 600 !important; }
.bp-dd-count { margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: var(--bp-brand-700); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.bp-menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; color: var(--bp-ink); cursor: pointer; }
.bp-menu-btn svg { width: 24px; height: 24px; }

/* Category bar + full-width menus */
.bp-nav { position: relative; border-top: 1px solid var(--bp-line); background: #fff; }
.bp-nav-row { display: flex; align-items: center; gap: 6px; height: 50px; }
.bp-nav-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 0; border: 0; border-right: 1px solid var(--bp-line); border-radius: 0; background: none; color: var(--bp-ink); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; margin-right: 4px; }
.bp-nav-all svg { width: 17px; height: 17px; }
.bp-nav-all svg:last-child { transition: transform .2s; }
.bp-nav-all:hover, .bp-nav-all.hover { color: var(--bp-brand-800); }
.bp-nav-all.hover svg:last-child { transform: rotate(180deg); }
.bp-nav-track { flex: 1; min-width: 0; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.bp-nav-track::-webkit-scrollbar { display: none; }
.bp-nav-arrow { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--bp-line-2); background: #fff; color: var(--bp-ink); display: grid; place-items: center; cursor: pointer; }
.bp-nav-arrow[hidden] { display: none !important; }
.bp-nav-arrow svg { width: 16px; height: 16px; }
.bp-nav-arrow:hover { border-color: var(--bp-brand-700); color: var(--bp-brand-800); }
.bp-nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 13px; font-size: 14.5px; font-weight: 500; color: var(--bp-ink); white-space: nowrap; flex-shrink: 0; }
.bp-nav-link svg { width: 17px; height: 17px; color: var(--bp-brand-700); }
.bp-nav-link:hover, .bp-nav-link.hover, .bp-nav-link.active { color: var(--bp-brand-800); }
.bp-nav-link::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bp-brand-700); transform: scaleX(0); transition: transform .25s var(--bp-ease); }
.bp-nav-link:hover::after, .bp-nav-link.hover::after, .bp-nav-link.active::after { transform: scaleX(1); }
.bp-nav-live { flex-shrink: 0; font-weight: 700; color: var(--bp-brand-800); }
.bp-pulse { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; }
.bp-pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #e5484d; opacity: 0; animation: bp-ping 1.8s var(--bp-ease) infinite; }
@keyframes bp-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.bp-drop { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--bp-line); box-shadow: 0 24px 40px -20px rgba(38, 39, 40, .35); max-height: min(70vh, 560px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s, transform .2s var(--bp-ease), visibility .16s; z-index: 80; }
.bp-drop.open { opacity: 1; visibility: visible; transform: none; }
.bp-drop-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 40px; padding-top: 22px; padding-bottom: 26px; }
.bp-drop-col { display: flex; flex-direction: column; min-width: 0; }
.bp-drop-h { display: block; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--bp-ink); padding: 8px 0 10px; }
.bp-drop-h:hover { color: var(--bp-brand-800); }
.bp-drop-col > a:not(.bp-drop-h), .bp-drop-list a { display: block; padding: 11px 0; font-size: 14.5px; color: var(--bp-ink-2); border-bottom: 1px solid var(--bp-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s, padding .2s var(--bp-ease); }
.bp-drop-col > a:not(.bp-drop-h):hover, .bp-drop-list a:hover { color: var(--bp-brand-800); padding-left: 6px; }
.bp-drop-col .bp-drop-all { display: inline-flex !important; align-items: center; gap: 4px; border-bottom: 0 !important; color: var(--bp-brand-800) !important; font-weight: 700; font-size: 13.5px !important; }
.bp-drop-all svg { width: 14px; height: 14px; }
.bp-drop-cat { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-top: 22px; padding-bottom: 26px; }
.bp-drop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.bp-drop-promo { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--bp-r-card); background: var(--bp-brand-50); align-self: start; }
.bp-drop-promo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #fff; }
.bp-drop-promo strong { display: block; font-size: 16px; color: var(--bp-ink); }
.bp-drop-promo > span:not(.bp-btn) { font-size: 13.5px; color: var(--bp-muted); }
.bp-scrim { position: fixed; inset: 0; background: rgba(30, 31, 32, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 55; }
.bp-scrim.open { opacity: 1; visibility: visible; }

/* Home blocks */
.bp-home { display: grid; gap: 16px; padding-top: 16px; }
.bp-block { background: #fff; border-radius: var(--bp-r-card); overflow: hidden; box-shadow: 0 1px 2px rgba(38, 39, 40, .06); }
.bp-block[hidden] { display: none; }
.bp-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--bp-line); }
.bp-block-head h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--bp-ink); }
.bp-block-head h2 svg { width: 20px; height: 20px; }
.bp-block-head a, .bp-block-head button { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--bp-brand-800); background: none; border: 0; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .03em; }
.bp-block-head a svg { width: 16px; height: 16px; transition: transform .2s; }
.bp-block-head a:hover svg { transform: translateX(3px); }
.bp-block-head.is-hot { background: var(--bp-brand-700); border-bottom: 0; }
.bp-block-head.is-hot h2, .bp-block-head.is-hot a { color: #fff; }
.bp-more { text-align: center; padding: 8px 16px 20px; }

.bp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 4px; padding: 12px; }
.bp-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 10px 8px 12px; border-radius: var(--bp-r-card); transition: box-shadow .2s, transform .2s var(--bp-ease); }
.bp-cat:hover { box-shadow: 0 6px 20px -8px rgba(38, 39, 40, .3); transform: translateY(-2px); }
.bp-cat img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--bp-brand-50); }
.bp-cat strong { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--bp-ink); }

/* Rails */
.bp-rail { position: relative; }
.bp-rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 4px) / 6); gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px; }
.bp-rail-track::-webkit-scrollbar { display: none; }
.bp-rail-track > * { scroll-snap-align: start; }
.bp-rail-btn { position: absolute; top: 38%; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .96); color: var(--bp-ink); box-shadow: 0 4px 14px -2px rgba(38, 39, 40, .35); display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.bp-rail-btn:hover { transform: scale(1.06); color: var(--bp-brand-800); }
.bp-rail-btn svg { width: 22px; height: 22px; }
.bp-rail-btn.prev { left: 8px; }
.bp-rail-btn.next { right: 8px; }
.bp-rail-btn[hidden] { display: none; }

/* Product card */
.bp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.bp-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px; }
.bp-grid-list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; }
.bp-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--bp-r-card); padding-bottom: 8px; transition: box-shadow .2s, transform .2s var(--bp-ease); }
.bp-card:hover { box-shadow: 0 4px 18px -2px rgba(38, 39, 40, .22); transform: translateY(-2px); z-index: 3; }
.bp-card-link { display: flex; flex-direction: column; flex: 1; padding: 8px 8px 0; }
.bp-card-img { position: relative; display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #f7f7f8; }
.bp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--bp-ease); }
.bp-card:hover .bp-card-img img { transform: scale(1.05); }
.bp-card.is-out .bp-card-img img { filter: grayscale(.7); opacity: .65; }
.bp-sale { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--bp-brand-50); color: var(--bp-brand-800); font-size: 13px; font-weight: 800; padding: 3px 6px; border-radius: 4px; }
.bp-card-flag { position: absolute; left: 8px; bottom: 8px; background: rgba(38, 39, 40, .82); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.bp-card-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
.bp-card-name { font-size: 14px; font-weight: 400; line-height: 1.35; color: var(--bp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.bp-price { display: flex; flex-direction: column; gap: 1px; }
.bp-price b { font-size: 17px; font-weight: 700; color: var(--bp-ink); letter-spacing: -.01em; }
.bp-price s { font-size: 13px; color: var(--bp-muted); }
.bp-pdp-price .bp-price { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bp-pdp-price .bp-price b { font-size: 34px; font-weight: 850; }
.bp-card-left { display: grid; gap: 4px; font-size: 12px; color: var(--bp-ink-2); margin-top: 2px; }
.bp-card-left i { position: relative; display: block; height: 5px; border-radius: 3px; background: var(--bp-line); overflow: hidden; }
.bp-card-left i::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--left); background: var(--bp-brand-700); border-radius: 3px; }
.bp-card-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 8px 0; }
.bp-card-foot .bp-btn { height: 36px; padding: 0 6px; font-size: 12.5px; gap: 5px; text-transform: uppercase; letter-spacing: .02em; box-shadow: none; }
.bp-card-foot .bp-btn svg { width: 15px; height: 15px; }
.bp-card-foot .bp-card-wide { grid-column: 1 / -1; }
@media (hover: none) {
    .bp-card:hover { transform: none; box-shadow: none; }
}

/* Live strip (home) */
.bp-live { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.bp-live-intro { padding: 20px; background: var(--bp-brand-50); }
.bp-live-intro h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.bp-live-intro p { color: var(--bp-ink-2); font-size: 14px; margin: 6px 0 14px; }

/* Listing */
.bp-shop-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 14px; }
.bp-filters { position: sticky; top: 140px; max-height: calc(100vh - 156px); overflow-y: auto; background: #fff; border-radius: var(--bp-r-card); box-shadow: 0 1px 2px rgba(38, 39, 40, .06); padding: 4px 16px 16px; scrollbar-width: thin; }
.bp-filter-head { display: none; }
.bp-fsec { padding: 14px 0; border-bottom: 1px solid var(--bp-line); }
.bp-fsec h3 { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--bp-ink); margin-bottom: 8px; }
.bp-fsec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bp-fsec-head h3 { margin: 0; }
.bp-fapply { border: 0; background: none; color: var(--bp-brand-800); font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.bp-fapply:hover { background: var(--bp-brand-50); }
.bp-fcat { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; color: var(--bp-ink-2); }
.bp-fcat em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--bp-muted); }
.bp-fcat:hover { color: var(--bp-brand-800); }
.bp-fcat.active { color: var(--bp-ink); font-weight: 800; }
.bp-fcat.active::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: var(--bp-brand-700); margin-left: -16px; margin-right: 8px; }
.bp-radio input { border-radius: 50%; }
.bp-fclear { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--bp-brand-800); }
.bp-range { position: relative; height: 28px; margin: 6px 4px 10px; }
.bp-range-bar { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--bp-line); }
.bp-range-bar i { position: absolute; top: 0; bottom: 0; background: var(--bp-brand-700); border-radius: 2px; }
.bp-range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.bp-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--bp-brand-700); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: grab; }
.bp-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--bp-brand-700); cursor: grab; }
.bp-range input[type=range]::-moz-range-track { background: none; }
.bp-filters > .bp-btn { margin-top: 14px; }
.bp-results { background: #fff; border-radius: var(--bp-r-card); box-shadow: 0 1px 2px rgba(38, 39, 40, .06); min-width: 0; }
.bp-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--bp-line); }
.bp-results-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.bp-results-head .count { font-size: 13.5px; color: var(--bp-muted); }
.bp-results-tools { display: flex; align-items: center; gap: 8px; }
.bp-results-tools label { font-size: 14px; color: var(--bp-muted); white-space: nowrap; }
.bp-results-tools .bp-select { width: auto; height: 38px; font-weight: 600; border-color: transparent; background-color: var(--bp-paper); cursor: pointer; }
.bp-active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.bp-active-filters a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bp-brand-50); color: var(--bp-brand-800); font-size: 13px; font-weight: 700; }
.bp-active-filters a:hover { background: var(--bp-brand-100); }
.bp-filter-toggle { display: none; }
.bp-filter-scrim { display: none; }
.bp-pager { display: flex; justify-content: center; padding: 18px 16px 22px; border-top: 1px solid var(--bp-line); }
body.bp .pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
body.bp .pagination a, body.bp .pagination > span > span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 50%; font-weight: 700; font-size: 15px; color: var(--bp-ink); background: none; border: 0; }
body.bp .pagination a:hover { background: var(--bp-paper); color: var(--bp-brand-800); }
body.bp .pagination .active > span { background: var(--bp-brand-700); color: #fff; }
body.bp .pagination .disabled > span { color: var(--bp-line-2); }

/* Cart */
.bp-cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding: 14px 0 16px; }
.bp-panel { background: #fff; border-radius: var(--bp-r-card); box-shadow: 0 1px 2px rgba(38, 39, 40, .06); }
.bp-panel-h { font-size: 19px; font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--bp-line); letter-spacing: -.01em; }
.bp-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: 'img info price' 'actions actions actions'; gap: 4px 14px; padding: 16px; }
.bp-line + .bp-line { border-top: 1px solid var(--bp-line); }
.bp-line-img { grid-area: img; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: #f7f7f8; }
.bp-line-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-line-info { grid-area: info; min-width: 0; }
.bp-line-info h2 { font-size: 15.5px; font-weight: 400; line-height: 1.35; }
.bp-line-info h2 a:hover { color: var(--bp-brand-800); }
.bp-line-var { font-size: 13px; color: var(--bp-muted); margin-top: 2px; }
.bp-line-ok, .bp-line-low, .bp-line-warn, .bp-line-tierok { font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.bp-line-ok { color: var(--bp-muted); }
.bp-line-low { color: var(--bp-brand-800); }
.bp-line-warn { color: var(--bp-red); }
.bp-line-tierok { display: inline-flex; align-items: center; gap: 5px; color: #127a45; }
.bp-line-tierok svg { width: 15px; height: 15px; }
.bp-line-tip { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 4px; border: 1px dashed var(--bp-brand-500); background: var(--bp-brand-50); color: var(--bp-brand-800); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left; }
.bp-line-tip:hover { background: var(--bp-brand-100); }
.bp-line-price { grid-area: price; text-align: right; }
.bp-line-price b { display: block; font-size: 19px; font-weight: 700; }
.bp-line-price span { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 4px; font-size: 13.5px; color: var(--bp-muted); }
.bp-line-price em { font-style: normal; font-weight: 700; color: var(--bp-brand-800); background: var(--bp-brand-50); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.bp-line-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bp-line-remove { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; margin-left: -10px; border: 0; border-radius: 6px; background: none; color: var(--bp-brand-800); font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.bp-line-remove:hover { background: var(--bp-brand-50); }
.bp-line-remove svg { width: 18px; height: 18px; }
.bp-stepper { display: inline-flex; align-items: center; gap: 4px; }
.bp-stepper button { width: 34px; height: 34px; border: 0; border-radius: 6px; background: var(--bp-brand-700); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 8px -3px rgba(227, 109, 11, .6); }
.bp-stepper button:hover { background: var(--bp-brand-800); }
.bp-stepper button[disabled] { background: #c8c8cc; box-shadow: none; cursor: not-allowed; }
.bp-stepper button svg { width: 16px; height: 16px; stroke-width: 2.6; }
.bp-stepper span { min-width: 40px; text-align: center; font-size: 15px; font-weight: 700; }
.bp-line.is-blocked .bp-line-img, .bp-line.is-blocked .bp-line-info h2 { opacity: .55; }
.bp-summary { position: sticky; top: 140px; display: grid; gap: 16px; }
.bp-summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 6px; font-size: 15px; }
.bp-summary-row b { font-size: 20px; }
.bp-summary-note { padding: 0 16px 14px; font-size: 13px; color: var(--bp-muted); border-bottom: 1px solid var(--bp-line); }
.bp-summary-cta { padding: 14px 16px 16px; display: grid; gap: 8px; }
.bp-summary-cta .bp-btn { height: 48px; text-transform: uppercase; letter-spacing: .03em; }
.bp-summary-perks { padding: 6px 16px; }
.bp-summary-perks > div { display: flex; gap: 12px; padding: 12px 0; font-size: 13px; color: var(--bp-muted); }
.bp-summary-perks > div + div { border-top: 1px solid var(--bp-line); }
.bp-summary-perks svg { width: 22px; height: 22px; color: var(--bp-brand-700); flex-shrink: 0; }
.bp-summary-perks strong { display: block; color: var(--bp-ink); font-size: 14px; }
.bp-summary-perks a { color: var(--bp-brand-800); font-weight: 600; }
.bp-cart-bar { display: none; }
.bp-cart-empty { text-align: center; padding: 48px 20px; margin: 14px 0 16px; }
.bp-cart-empty > svg { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--bp-brand-50); color: var(--bp-brand-700); }
.bp-cart-empty h1 { font-size: 19px; font-weight: 700; margin: 14px 0 4px; }
.bp-cart-empty p { color: var(--bp-muted); margin-bottom: 18px; }

/* Footer */
.bp-footer { background: var(--bp-brand-950); color: #bfc0c3; margin-top: 40px; }

/* Responsive */
@media (max-width: 1200px) {
    .bp-grid-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .bp-rail-track { grid-auto-columns: calc((100% - 4 * 4px) / 5); }
    .bp-grid-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bp-drop-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .bp-nav, .bp-scrim { display: none; }
    .bp-menu-btn { display: grid; place-items: center; }
    .bp-header-row { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; }
    .bp-action span.t, .bp-action > svg:last-child:not(:first-child) { display: none; }
    .bp-dd-menu { display: none; }
    .bp-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bp-rail-track { grid-auto-columns: calc((100% - 3 * 4px) / 4); }
    .bp-live { grid-template-columns: 1fr; }
    .bp-shop-layout { grid-template-columns: 1fr; }
    .bp-filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; border-radius: 0; z-index: 96; transform: translateX(-100%); transition: transform .3s var(--bp-ease); }
    .bp-filters.open { transform: none; }
    .bp-filter-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--bp-line); font-size: 17px; }
    .bp-filter-close { width: 40px; height: 40px; border: 0; background: var(--bp-paper); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
    .bp-filter-close svg { width: 20px; height: 20px; }
    .bp-filter-toggle { display: inline-flex; }
    .bp-cart { grid-template-columns: 1fr; }
    .bp-summary { position: static; }
}
body:has(.bp-filters.open) .bp-filter-scrim { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(30, 31, 32, .45); }
@media (max-width: 767px) {
    .bp-container { padding: 0 12px; }
    .bp-header-row { grid-template-columns: auto minmax(0, 1fr) auto; height: auto; padding-top: 8px; gap: 4px 8px; }
    .bp-logo img { height: 36px; }
    .bp-search { grid-column: 1 / -1; grid-row: 2; padding-bottom: 10px; }
    .bp-search form { height: 42px; gap: 0; }
    .bp-search input { border-radius: 999px 0 0 999px; border-right: 0; }
    .bp-search button { border-radius: 0 999px 999px 0; padding: 0 16px; box-shadow: none; }
    .bp-dd.hide-sm { display: none; }
    .bp-action { padding: 0 8px; }
    .bp-home { gap: 10px; padding-top: 10px; }
    .bp-block-head { min-height: 46px; padding: 0 12px; }
    .bp-block-head h2 { font-size: 16.5px; }
    .bp-block-head a { font-size: 12.5px; }
    .bp-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; scrollbar-width: none; }
    .bp-cat img { max-width: 72px; }
    .bp-cat strong { font-size: 12.5px; }
    .bp-rail-track { grid-auto-columns: 44%; }
    .bp-rail-btn { display: none; }
    .bp-grid-6, .bp-grid-list, .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bp-card-foot { grid-template-columns: 38px 1fr; gap: 6px; padding: 6px 6px 0; }
    .bp-card-foot .bp-btn { height: 34px; padding: 0; font-size: 12px; }
    .bp-card-foot .bp-btn-primary span { display: none; }
    .bp-card-foot .bp-btn svg { width: 17px; height: 17px; }
    .bp-card-foot .bp-card-wide { font-size: 11.5px; }
    .bp-card-foot .bp-btn { height: 34px; font-size: 12px; }
    .bp-price b { font-size: 15.5px; }
    .bp-card-name { font-size: 13px; min-height: 35px; }
    .bp-results-head { padding: 12px; }
    .bp-results-head h1 { font-size: 18px; }
    .bp-results-tools { width: 100%; }
    .bp-results-tools label { display: none; }
    .bp-results-tools .bp-select { flex: 1; }
    .bp-line { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: 'img info' 'img price' 'actions actions'; padding: 14px 12px; }
    .bp-line-img { width: 72px; height: 72px; }
    .bp-line-price { text-align: left; }
    .bp-line-price span { justify-content: flex-start; }
    .bp-cart-bar { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 16px -8px rgba(38, 39, 40, .3); }
    .bp-cart-bar small { display: block; font-size: 12px; color: var(--bp-muted); }
    .bp-cart-bar b { font-size: 17px; }
    .bp-cart-bar .bp-btn { flex: 1; max-width: 240px; text-transform: uppercase; }
    .bp-summary-cta { display: none; }
    .bp-wa { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
    .bp-card, .bp-card-img img, .bp-card-foot, .bp-drop, .bp-dd-menu, .bp-nav-link::after { transition: none; }
}

/* Mobile app-style bottom bar */
.bp-tabbar { display: none; }
@media (max-width: 767px) {
    body.bp { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .bp-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -1px 0 var(--bp-line), 0 -6px 16px -10px rgba(38, 39, 40, .3); }
    .bp-tabbar a, .bp-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; color: var(--bp-muted); cursor: pointer; }
    .bp-tabbar svg { width: 23px; height: 23px; }
    .bp-tabbar .active { color: var(--bp-brand-700); }
    .bp-tabbar .bp-badge { top: -5px; right: -10px; }
    .bp-header .bp-actions > a[aria-label="Cart"] { display: none; }
    .bp-wa { bottom: calc(72px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
    .bp-wa svg { width: 26px; height: 26px; }
    .bp-cart-bar { bottom: calc(58px + env(safe-area-inset-bottom)); }
    .bp-footer { margin-top: 24px; }
    .bp-rail-track { grid-auto-columns: 46%; gap: 6px; }
    .bp-grid-6, .bp-grid-list, .bp-grid { gap: 6px; }
    .bp-card { border: 1px solid var(--bp-line); }
    .bp-card-link { padding: 6px 6px 0; }
    .bp-sale { top: 6px; right: 6px; font-size: 12px; }
}

/* Our shops */
.bp-shops-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin: 14px 0 16px; flex-wrap: wrap; }
.bp-shops-intro h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.bp-shops-intro p { color: var(--bp-muted); margin-top: 4px; max-width: 60ch; }
.bp-shops-intro .bp-pulse { background: #fff; }
.bp-shops-intro .bp-pulse::after { border-color: #fff; }
.bp-shopcard { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 16px; scroll-margin-top: 140px; }
.bp-shopcard-map { min-height: 300px; background: var(--bp-paper); }
.bp-shopcard-map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.bp-shopcard-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bp-shopcard-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.bp-shopcard-stock { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--bp-brand-50); color: var(--bp-brand-800); font-size: 13.5px; font-weight: 600; }
.bp-shopcard dl { display: grid; gap: 10px; font-size: 15px; color: var(--bp-ink-2); }
.bp-shopcard dl div { display: flex; gap: 12px; align-items: flex-start; }
.bp-shopcard dl svg { width: 19px; height: 19px; color: var(--bp-brand-700); flex-shrink: 0; margin-top: 2px; }
.bp-shopcard dd a:hover { color: var(--bp-brand-800); }
.bp-shopcard-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.bp-shops-help { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.bp-shops-help > div { display: flex; gap: 14px; align-items: center; }
.bp-shops-help svg { width: 30px; height: 30px; color: var(--bp-brand-700); }
.bp-shops-help strong { display: block; }
.bp-shops-help p { color: var(--bp-muted); font-size: 14px; }
@media (max-width: 767px) {
    .bp-shops-intro { padding: 18px 16px; }
    .bp-shops-intro .bp-btn, .bp-shopcard-actions .bp-btn { flex: 1; }
    .bp-shopcard { grid-template-columns: 1fr; }
    .bp-shopcard-map, .bp-shopcard-map iframe { min-height: 220px; }
    .bp-shopcard-body { padding: 18px 16px; }
}

/* Wishlist heart */
.bp-card .bp-heart { position: absolute; top: 14px; left: 14px; z-index: 4; }
.bp-heart { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--bp-ink-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px -2px rgba(38, 39, 40, .3); transition: transform .15s var(--bp-ease), color .15s; }
.bp-heart svg { width: 18px; height: 18px; }
.bp-heart:hover { color: var(--bp-brand-700); transform: scale(1.08); }
.bp-heart.is-saved { color: var(--bp-brand-700); }
.bp-heart.is-saved svg { fill: currentColor; }
.bp-heart.is-saved:active svg, .bp-heart:active svg { transform: scale(.85); }
.bp-heart[disabled] { opacity: .6; }
.bp-heart-lg { width: 44px; height: 44px; flex-shrink: 0; background: var(--bp-paper); box-shadow: none; }
.bp-heart-lg svg { width: 22px; height: 22px; }
.bp-pdp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bp-grid-saved { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 767px) {
    .bp-card .bp-heart { top: 10px; left: 10px; width: 30px; height: 30px; }
    .bp-card .bp-heart svg { width: 16px; height: 16px; }
}

/* Drawer (mobile side menu) */
.bp-drawer { width: min(320px, 86vw); box-shadow: 12px 0 40px -12px rgba(30, 31, 32, .4); }
.bp-drawer-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 10px 12px 10px 16px; }
.bp-drawer-head .bp-logo img { height: 34px; }
.bp-drawer-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bp-paper); color: var(--bp-ink); display: grid; place-items: center; cursor: pointer; }
.bp-drawer-x svg { width: 20px; height: 20px; }
.bp-drawer-body { padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.bp-drawer-hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px; padding: 14px; border-radius: var(--bp-r-card); background: linear-gradient(135deg, var(--bp-brand-900), var(--bp-brand-950)); color: #fff; }
.bp-drawer-hello > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bp-drawer-hello strong { font-size: 16px; }
.bp-drawer-hello span, .bp-drawer-hello div > a { font-size: 12.5px; color: #d6d6d8; }
.bp-drawer-body .bp-drawer-hello a.bp-btn { background: var(--bp-brand-700); box-shadow: none; width: auto; padding: 0 16px; height: 36px; color: #fff; font-size: 14px; flex-shrink: 0; border-radius: 6px; }
.bp-drawer-body .bp-drawer-hello div > a { display: inline; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.bp-drawer-body .bp-drawer-hello div > a:hover { background: none; }
.bp-drawer-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bp-brand-700); color: #fff !important; display: grid; place-items: center; font-size: 18px !important; font-weight: 800; flex-shrink: 0; }
.bp-drawer-body h4 { margin: 8px 0 0; padding: 14px 16px 8px; border-top: 8px solid var(--bp-paper); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bp-muted); }
.bp-drawer-body > a, .bp-drawer-body form button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 0; font-size: 15px; font-weight: 500; color: var(--bp-ink); background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; }
.bp-drawer-body > a + a { box-shadow: inset 0 1px 0 #f1f1f2; }
.bp-drawer-body > a:hover, .bp-drawer-body > a:active, .bp-drawer-body form button:hover { background: var(--bp-paper); }
.bp-drawer-body > a.active { color: var(--bp-brand-800); font-weight: 700; }
.bp-drawer-body svg { width: 21px; height: 21px; color: var(--bp-ink-2); flex-shrink: 0; }
.bp-drawer-cat { gap: 12px !important; }
.bp-drawer-cat > span:not(.bp-drawer-thumb) { flex: 1; min-width: 0; }
.bp-drawer-cat > svg:last-child { width: 16px; height: 16px; margin-left: auto; color: var(--bp-line-2); }
.bp-drawer-thumb { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--bp-brand-50); display: grid; place-items: center; flex-shrink: 0; }
.bp-drawer-thumb svg { width: 18px; height: 18px; color: var(--bp-brand-700); }
.bp-drawer-out { border-top: 8px solid var(--bp-paper); margin-top: 8px; }
.bp-drawer-out button { color: var(--bp-red) !important; }
.bp-drawer-out svg { color: var(--bp-red) !important; }
.bp-drawer-body > a.bp-drawer-register { justify-content: center; margin-top: 8px; border-top: 8px solid var(--bp-paper); color: var(--bp-brand-800); font-weight: 700; box-shadow: none; }

/* Product page: price spacing + sticky buy bar on phones */
.bp-price b small { margin-right: 4px; }
.bp-buybar { display: none; }

@media (max-width: 1024px) {
    .bp-header-row { min-height: 60px; }
}
@media (max-width: 767px) {
    /* Header: menu, logo, account, cart on one row; search below (Jumia mobile) */
    .bp-header-row { grid-template-columns: 40px auto minmax(0, 1fr); padding-top: 6px; gap: 0 6px; min-height: 0; }
    .bp-menu-btn { width: 40px; height: 40px; margin-left: -8px; }
    .bp-logo { grid-column: 2; }
    .bp-logo img { height: 34px; }
    .bp-actions { grid-column: 3; justify-self: end; gap: 0; }
    .bp-action { height: 40px; padding: 0 8px; }
    .bp-header .bp-actions > a[aria-label="Cart"] { display: inline-flex; }
    .bp-search { padding: 6px 0 10px; }
    .bp-search form { height: 42px; }
    .bp-search form > svg { left: 13px; width: 18px; height: 18px; }
    .bp-search input { border-radius: 999px; border-right: 1px solid var(--bp-line-2); padding: 0 92px 0 40px; font-size: 14.5px; background: #f3f3f4; }
    .bp-search button[type=submit] { position: absolute; right: 4px; top: 4px; bottom: 4px; height: auto; padding: 0 16px; border-radius: 999px; font-size: 14px; }
    .bp-tabbar a[href$="/cart"] { display: none; }
    .bp-tabbar { grid-template-columns: repeat(4, 1fr); }

    /* Product page */
    .bp-pdp { padding-top: 6px; gap: 14px; }
    .bp-pdp h1 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 2px 0 6px; }
    .bp-pdp-price { margin: 14px 0; padding: 14px; }
    .bp-pdp-price .bp-price b { font-size: 28px; }
    .bp-buy { grid-template-columns: auto 1fr 1fr; gap: 8px; }
    .bp-buy .bp-btn { padding: 0 10px; font-size: 14px; }
    .bp-buy .bp-btn-dark { grid-column: auto; }
    body.bp-has-buybar .bp-tabbar, body.bp-has-buybar .bp-wa { display: none; }
    body.bp-has-buybar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
    .bp-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: 46px auto 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--bp-line), 0 -8px 20px -12px rgba(38, 39, 40, .35); }
    .bp-buybar .bp-btn { height: 48px; padding: 0 14px; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em; }
    .bp-buybar .bp-btn-primary { justify-content: center; }
    .bp-buybar #bp-bar-total { display: none; }
    .bp-buybar-call { display: grid; place-items: center; height: 48px; border-radius: var(--bp-r-control); border: 1.5px solid var(--bp-brand-700); color: var(--bp-brand-700); }
    .bp-buybar-call svg { width: 22px; height: 22px; }
}

/* Search back button + mobile full-screen search */
.bp-search-back, .bp-search-panel { display: none; }
.bp-ftoggle { all: unset; cursor: default; }
@media (max-width: 767px) {
    .bp-search.is-open { position: fixed; inset: 0; z-index: 120; max-width: none; margin: 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; }
    .bp-search.is-open form { gap: 6px; }
    .bp-search.is-open .bp-search-back { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 42px; margin-left: -6px; border: 0; background: none; color: var(--bp-ink); cursor: pointer; }
    .bp-search.is-open .bp-search-back svg { width: 24px; height: 24px; }
    .bp-search.is-open form > svg { left: 47px; }
    body.bp-search-open .bp-tabbar, body.bp-search-open .bp-wa, body.bp-search-open .bp-buybar { display: none; }
    .bp-search.is-open input { background: #fff; border: 1.5px solid var(--bp-ink-2); }
    .bp-search.is-open .bp-suggest { position: static; margin-top: 10px; box-shadow: none; border: 0; max-height: none; padding: 0; }
    .bp-search.is-open .bp-search-panel { display: block; padding-top: 6px; }
    .bp-search.is-open:has(.bp-suggest[style*="block"]) .bp-search-panel { display: none; }
    .bp-search-panel-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px 8px; border-bottom: 1px solid var(--bp-line); margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bp-muted); }
    .bp-search-panel-h button { border: 0; background: none; color: var(--bp-brand-800); font: inherit; font-weight: 700; cursor: pointer; }
    .bp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .bp-chips a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--bp-paper); color: var(--bp-ink); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bp-chips a:active { background: var(--bp-brand-50); color: var(--bp-brand-800); }

    /* Compact footer: brand line, tap-to-open sections, legal */
    .bp-footer { margin-top: 16px; }
    .bp-footer-top { grid-template-columns: 1fr; gap: 0; padding-top: 18px; padding-bottom: 6px; }
    .bp-footer-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .bp-footer-brand img { height: 34px; margin: 0; }
    .bp-footer-brand > p { display: none; }
    .bp-footer-brand .bp-social { margin: 0; }
    .bp-footer-top > div:not(.bp-footer-brand) { border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .bp-footer h4 { margin: 0; }
    .bp-ftoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; cursor: pointer; font-size: 15px; font-weight: 700; color: #fff; }
    .bp-ftoggle::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; color: #bfc0c3; }
    .bp-footer-top > div.open .bp-ftoggle::after { content: '\2212'; }
    .bp-footer-top > div:not(.bp-footer-brand) ul { display: none; padding-bottom: 14px; gap: 10px; }
    .bp-footer-top > div.open ul { display: grid; }
    .bp-footer-bottom { padding-top: 12px; padding-bottom: 16px; font-size: 12.5px; flex-direction: column-reverse; gap: 8px; }
}

/* =====================================================================
   iOS LOOK AND FEEL  (system font, frosted bars, grouped cards, sheets,
   press feedback, 16px inputs so iOS Safari never zooms)
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body.bp { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.005em; overscroll-behavior-y: none; }
body.bp h1, body.bp h2, body.bp h3 { letter-spacing: -.02em; }
.bp-header { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(60, 60, 67, .29); }
.bp-nav { background: transparent; border-top: .5px solid rgba(60, 60, 67, .18); }
.bp-tabbar { background: rgba(250, 250, 252, .82) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 rgba(60, 60, 67, .29) !important; }
.bp-buybar, .bp-cart-bar { background: rgba(255, 255, 255, .85) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.bp-block, .bp-panel, .bp-results, .bp-filters, .bp-shopcard, .bp-pdp-price, .bp-avail, .bp-empty { border-radius: 14px; box-shadow: none; }
.bp-card { border-radius: 14px; }
.bp-card-img { border-radius: 10px; }
.bp-btn { border-radius: 12px; font-weight: 600; letter-spacing: -.01em; transition: transform .12s ease, opacity .12s ease, background .2s; }
.bp-btn:active, .bp-icon-btn:active, .bp-heart:active, .bp-stepper button:active, .bp-tabbar a:active, .bp-tabbar button:active, .bp-cat:active, .bp-chips a:active { transform: scale(.96); opacity: .8; }
.bp-card-foot .bp-btn, .bp-summary-cta .bp-btn, .bp-cart-bar .bp-btn, .bp-buybar .bp-btn, .bp-block-head a, .bp-line-remove, .bp-fsec h3, .bp-fapply { text-transform: none; letter-spacing: -.01em; }
.bp-block-head a { font-size: 15px; font-weight: 600; }
.bp-block-head { border-bottom: .5px solid rgba(60, 60, 67, .18); }
.bp-search input { background: rgba(118, 118, 128, .12); border-color: transparent; }
.bp-search input:focus { background: #fff; }
.bp-input, .bp-select { border-radius: 10px; }
.bp-dd-menu, .bp-suggest { border-radius: 14px; border: .5px solid rgba(60, 60, 67, .18); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); background: rgba(255, 255, 255, .92); }
.bp-drop { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.bp-scrim, .bp-drawer-overlay { background: rgba(0, 0, 0, .32); }
.bp-modal { background: rgba(0, 0, 0, .32); }
.bp-modal-card { border-radius: 16px; }
.toast { border-radius: 14px !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
@media (max-width: 767px) {
    .bp-input, .bp-select, .bp-search input, input[type=search], input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select { font-size: 16px !important; }
    .bp-modal { align-items: flex-end; padding: 0; }
    .bp-modal-card { max-width: none; border-radius: 16px 16px 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); animation: ls-up .32s cubic-bezier(.32, .72, 0, 1); }
    .bp-modal-card::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 0 auto 12px; }
    .bp-block, .bp-panel, .bp-results { border-radius: 12px; }
    .bp-results-head h1, .bp-shops-intro h1 { font-size: 28px; font-weight: 700; }
}

/* =====================================================================
   LIVE STOCK (iOS grouped list, segmented shops, product sheet)
   ===================================================================== */
.ls-hero { background: linear-gradient(160deg, var(--bp-brand-950), var(--bp-brand-900)); color: #fff; padding: 28px 0; }
.ls-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: center; }
.ls-hero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; font-weight: 800; margin: 12px 0 8px; }
.ls-hero h1 em { font-style: normal; color: var(--bp-brand-500); }
.ls-hero p { color: #d1d1d6; max-width: 48ch; }
.ls-status { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; }
.ls-status.stale { color: #ffd60a; }
.ls-feed { background: rgba(255, 255, 255, .08); border: .5px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 14px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ls-feed h2 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #d1d1d6; margin-bottom: 8px; }
.ls-feed ul { list-style: none; display: grid; gap: 4px; max-height: 196px; overflow: hidden; }
.ls-feed li a { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; font-size: 13.5px; }
.ls-feed li a:hover { background: rgba(255, 255, 255, .08); }
.ls-feed li img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #fff; flex-shrink: 0; }
.ls-feed li a > span { min-width: 0; }
.ls-feed li b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-feed li span span { display: block; color: #aeaeb2; font-size: 12px; }
.ls-feed li.new { animation: bp-flash 1.6s var(--bp-ease); }
.ls-feed-empty { color: #aeaeb2; font-size: 14px; padding: 6px; }
.ls-body { padding-top: 16px; }
.ls-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(118, 118, 128, .12); overflow-x: auto; scrollbar-width: none; }
.ls-seg::-webkit-scrollbar { display: none; }
.ls-seg button { flex: 1 0 auto; min-width: max-content; height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--bp-ink); cursor: pointer; transition: background .2s, box-shadow .2s; }
.ls-seg button.active { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.ls-card { background: #fff; border-radius: 14px; }
.ls-summary { margin-top: 14px; padding: 16px; }
.ls-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ls-summary-head h2 { font-size: 22px; font-weight: 700; }
.ls-summary-head p { color: var(--bp-muted); font-size: 14px; margin-top: 2px; }
.ls-summary-actions { display: flex; gap: 8px; }
.ls-round { width: 40px; height: 40px; border-radius: 50%; background: var(--bp-brand-50); color: var(--bp-brand-700); display: grid; place-items: center; }
.ls-round svg { width: 20px; height: 20px; }
.ls-round:active { transform: scale(.94); }
.ls-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ls-stats > div { padding: 12px; border-radius: 12px; background: var(--bp-paper); }
.ls-stats b { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ls-stats span { font-size: 12.5px; color: var(--bp-muted); }
.ls-stats .ls-in b { color: #248a3d; }
.ls-stats .ls-low b { color: #c93400; }
.ls-stats .ls-out b { color: #8e8e93; }
.ls-tools { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.ls-searchfield { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(118, 118, 128, .12); color: #8e8e93; }
.ls-searchfield svg { width: 18px; height: 18px; flex-shrink: 0; }
.ls-searchfield input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; color: var(--bp-ink); }
.ls-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--bp-ink); cursor: pointer; white-space: nowrap; user-select: none; }
.ls-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ls-switch-ui { position: relative; width: 51px; height: 31px; border-radius: 999px; background: rgba(120, 120, 128, .16); transition: background .25s; flex-shrink: 0; }
.ls-switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .25s cubic-bezier(.32, .72, 0, 1); }
.ls-switch input:checked + .ls-switch-ui { background: #34c759; }
.ls-switch input:checked + .ls-switch-ui::after { transform: translateX(20px); }
.ls-switch input:focus-visible + .ls-switch-ui { outline: 2px solid var(--bp-brand-700); outline-offset: 2px; }
.ls-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 2px; }
.ls-chips::-webkit-scrollbar { display: none; }
.ls-chips button { flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--bp-ink); cursor: pointer; }
.ls-chips button.active { background: var(--bp-brand-900); color: #fff; }
.ls-list-head { display: flex; justify-content: space-between; padding: 18px 16px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #6c6c70; }
.ls-list { overflow: hidden; }
.ls-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; position: relative; transition: background .15s; }
.ls-row + .ls-row::before { content: ''; position: absolute; top: 0; left: 78px; right: 0; height: .5px; background: rgba(60, 60, 67, .2); }
.ls-row:hover { background: #fafafa; }
.ls-row:active { background: #e5e5ea; }
.ls-row.changed { animation: bp-flash 1.6s var(--bp-ease); }
.ls-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bp-paper); }
.ls-row-main { display: grid; gap: 2px; min-width: 0; }
.ls-row-main strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-row-main > span:not(.ls-pills) { font-size: 13.5px; color: var(--bp-muted); }
.ls-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ls-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; background: var(--bp-paper); color: var(--bp-ink-2); }
.ls-pill b { font-variant-numeric: tabular-nums; }
.ls-pill.ls-in b { color: #248a3d; }
.ls-pill.ls-low { background: #fff4e5; }
.ls-pill.ls-low b { color: #c93400; }
.ls-pill.ls-out { color: #8e8e93; }
.ls-qty { display: grid; justify-items: end; line-height: 1.1; }
.ls-qty b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ls-qty small { font-size: 12px; color: var(--bp-muted); }
.ls-qty.ls-in b { color: #248a3d; }
.ls-qty.ls-low b { color: #c93400; }
.ls-qty.ls-out b { color: #8e8e93; }
.ls-chev { width: 14px; height: 14px; color: #c7c7cc; }
.ls-empty { display: grid; gap: 4px; text-align: center; padding: 40px 20px; color: var(--bp-muted); }
.ls-empty strong { color: var(--bp-ink); font-size: 17px; }
.ls-foot { padding: 10px 16px 0; }

.ls-sheet { position: fixed; inset: 0; z-index: 140; display: flex; align-items: center; justify-content: center; }
.ls-sheet[hidden] { display: none; }
.ls-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .26s; }
.ls-sheet.open .ls-sheet-backdrop { background: rgba(0, 0, 0, .35); }
.ls-sheet-panel { position: relative; width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 760px); overflow-y: auto; overscroll-behavior: contain; background: #f2f2f7; border-radius: 16px; padding: 18px 16px 16px; outline: none; opacity: 0; transform: scale(.96); transition: opacity .22s, transform .26s cubic-bezier(.32, .72, 0, 1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.ls-sheet.open .ls-sheet-panel { opacity: 1; transform: none; }
.ls-grabber { display: none; }
.ls-sheet-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(118, 118, 128, .16); color: #6c6c70; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.ls-sheet-x svg { width: 16px; height: 16px; }
.ls-sheet-top { display: flex; gap: 14px; align-items: center; padding-right: 32px; }
.ls-sheet-top img { width: 88px; height: 88px; border-radius: 14px; object-fit: cover; background: #fff; flex-shrink: 0; }
.ls-sheet-cat { font-size: 13px; color: var(--bp-muted); }
.ls-sheet-top h2 { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 2px 0 4px; }
.ls-sheet-price { font-size: 17px; font-weight: 600; }
.ls-sheet-total { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 8px; padding: 0 4px; }
.ls-sheet-total b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ls-sheet-total span { color: var(--bp-muted); font-size: 14px; }
.ls-sheet-locs { list-style: none; background: #fff; border-radius: 12px; overflow: hidden; }
.ls-sheet-locs li { padding: 12px 14px; display: grid; gap: 6px; }
.ls-sheet-locs li + li { border-top: .5px solid rgba(60, 60, 67, .2); }
.ls-sheet-loc { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ls-sheet-loc strong { font-size: 15.5px; font-weight: 600; }
.ls-sheet-loc span { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ls-in .ls-sheet-loc span { color: #248a3d; }
.ls-low .ls-sheet-loc span { color: #c93400; }
.ls-out .ls-sheet-loc span { color: #8e8e93; }
.ls-bar { height: 6px; border-radius: 3px; background: rgba(118, 118, 128, .14); overflow: hidden; }
.ls-bar i { display: block; height: 100%; border-radius: 3px; background: #34c759; transition: width .5s cubic-bezier(.32, .72, 0, 1); }
.ls-low .ls-bar i { background: #ff9500; }
.ls-sheet-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--bp-muted); }
.ls-link { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--bp-brand-800); cursor: pointer; }
.ls-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ls-sheet-actions .bp-btn { height: 50px; font-size: 16px; }
@keyframes ls-up { from { transform: translateY(100%); } }
@media (max-width: 1024px) {
    .ls-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .ls-hero { padding: 18px 0 16px; }
    .ls-hero p { font-size: 15px; }
    .ls-feed { display: none; }
    .ls-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ls-tools { flex-wrap: wrap; }
    .ls-searchfield { flex-basis: 100%; }
    .ls-list-head { padding-left: 4px; padding-right: 4px; }
    .ls-row { grid-template-columns: 48px minmax(0, 1fr) auto 12px; gap: 10px; padding: 10px 12px; }
    .ls-row img { width: 48px; height: 48px; }
    .ls-row + .ls-row::before { left: 70px; }
    .ls-row-main strong { font-size: 15px; }
    .ls-qty b { font-size: 19px; }
    .ls-sheet { align-items: flex-end; }
    .ls-sheet-panel { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); opacity: 1; transform: translateY(100%); transition: transform .34s cubic-bezier(.32, .72, 0, 1); }
    .ls-sheet.open .ls-sheet-panel { transform: none; }
    .ls-grabber { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 0 auto 12px; }
    .ls-sheet-x { top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .ls-sheet-panel, .ls-sheet-backdrop, .ls-switch-ui::after, .ls-bar i { transition: none; }
}

/* =====================================================================
   ACCOUNT (iOS Settings-style) + TRACK ORDER
   ===================================================================== */
.ac-wrap { padding-top: 18px; padding-bottom: 8px; }
.ac-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 14px; }
.ac-banner button { border: 0; border-radius: 8px; padding: 6px 12px; background: #8a4b00; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ac-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ac-side { position: sticky; top: 140px; display: grid; gap: 18px; }
.ac-me { display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; }
.ac-me strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-me small { display: block; font-size: 13px; color: var(--bp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-me > svg, .ac-group a > svg:last-child, .ac-row > svg:last-child { width: 15px; height: 15px; color: #c7c7cc; }
.ac-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--bp-brand-500), var(--bp-brand-700)); color: #fff; font-size: 22px; font-weight: 700; }
.ac-group { background: #fff; border-radius: 14px; overflow: hidden; }
.ac-group a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 15px; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; font-size: 16px; color: var(--bp-ink); }
.ac-group a + a::before { content: ''; position: absolute; top: 0; left: 56px; right: 0; height: .5px; background: rgba(60, 60, 67, .2); }
.ac-group a:hover { background: #fafafa; }
.ac-group a:active { background: #e5e5ea; }
.ac-group a.active { background: var(--bp-brand-50); font-weight: 600; }
.ac-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bp-brand-700); color: #fff; }
.ac-ico svg { width: 18px; height: 18px; }
.ac-ico.is-grey { background: #8e8e93; }
.ac-ico.is-dark { background: var(--bp-brand-900); }
.ac-signout { width: 100%; min-height: 46px; border: 0; background: #fff; color: #ff3b30; font: inherit; font-size: 16px; cursor: pointer; }
.ac-signout:active { background: #e5e5ea; }
.ac-main { min-width: 0; }
.ac-back { display: none; align-items: center; gap: 2px; margin: 0 0 6px -6px; font-size: 17px; color: var(--bp-brand-700); }
.ac-back svg { width: 22px; height: 22px; }
.ac-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ac-head p { color: var(--bp-muted); margin-top: 4px; }
.ac-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.ac-tile { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: #fff; transition: transform .12s; }
.ac-tile:active { transform: scale(.97); }
.ac-tile b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.ac-tile span { font-size: 14px; color: var(--bp-muted); }
.ac-section { margin-top: 10px; }
.ac-section-h { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 8px; }
.ac-section-h h2 { font-size: 20px; font-weight: 700; }
.ac-section-h a { color: var(--bp-brand-700); font-size: 16px; }
.ac-list { background: #fff; border-radius: 14px; overflow: hidden; }
.ac-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 15px; align-items: center; gap: 12px; padding: 12px 16px; color: var(--bp-ink); }
div.ac-row { grid-template-columns: minmax(0, 1fr) auto; }
.ac-row + .ac-row::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: rgba(60, 60, 67, .2); }
a.ac-row:hover { background: #fafafa; }
a.ac-row:active { background: #e5e5ea; }
.ac-row-main { display: grid; gap: 2px; min-width: 0; }
.ac-row-main strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row-main small { font-size: 13.5px; color: var(--bp-muted); }
.ac-row-end { display: grid; justify-items: end; gap: 4px; }
.ac-row-end b { font-size: 16px; font-weight: 600; }
.ac-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.ac-pill.is-ok { background: #e3f6e8; color: #1d7a35; }
.ac-pill.is-wait { background: #fff4e5; color: #b35900; }
.ac-pill.is-bad { background: #ffe9e7; color: #c4271c; }
.ac-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 20px; text-align: center; color: var(--bp-muted); }
.ac-empty > svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--bp-paper); color: #8e8e93; }
.ac-empty strong { color: var(--bp-ink); font-size: 17px; }
.ac-empty .bp-btn { margin-top: 8px; }

/* Older account pages (orders, payments, addresses, profile) inside the new shell */
.ac-main .dashboard-content-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 0; background: none; border: 0; }
.ac-main .dashboard-content-header h1 { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.ac-main .dashboard-content-header p { color: var(--bp-muted); }
.ac-main .data-card, .ac-main .stat-card, .ac-main .profile-card, .ac-main .address-card, .ac-main .form-card { background: #fff; border: 0; border-radius: 14px; box-shadow: none; }
.ac-main .data-card-header { border-bottom: .5px solid rgba(60, 60, 67, .2); }
.ac-main .data-table th { background: none; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #6c6c70; }
.ac-main .data-table td { border-color: rgba(60, 60, 67, .12); }
.ac-main .btn { border-radius: 12px; }
.ac-main .form-control { border-radius: 10px; background: #fff; }

/* Track order */
.tr-wrap { max-width: 640px; padding-top: 22px; }
.tr-head { text-align: center; padding: 8px 0 18px; }
.tr-head-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--bp-brand-700); color: #fff; margin-bottom: 12px; }
.tr-head-ico svg { width: 30px; height: 30px; }
.tr-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.tr-head p { color: var(--bp-muted); margin-top: 4px; }
.tr-form { display: flex; gap: 10px; }
.tr-form .ls-searchfield { height: 50px; background: #fff; }
.tr-form .ls-searchfield input { text-transform: uppercase; }
.tr-form .ls-searchfield input::placeholder { text-transform: none; }
.tr-form .bp-btn { height: 50px; padding: 0 24px; font-size: 16px; }
.tr-recent { margin-top: 14px; font-size: 13px; color: #6c6c70; }
.tr-recent .bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tr-recent .bp-chips a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--bp-ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-card { margin-top: 16px; }
.tr-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: .5px solid rgba(60, 60, 67, .2); }
.tr-summary small { display: block; font-size: 13px; color: var(--bp-muted); }
.tr-summary strong { display: block; font-size: 20px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-facts > div { padding: 12px 16px; }
.tr-facts > div + div { border-left: .5px solid rgba(60, 60, 67, .2); }
.tr-facts small { display: block; font-size: 12.5px; color: var(--bp-muted); }
.tr-facts b { font-size: 16px; font-weight: 600; }
.tr-cancel { padding: 12px 16px; background: #ffe9e7; color: #c4271c; font-weight: 600; font-size: 14px; }
.tr-steps { list-style: none; padding: 16px; display: grid; }
.tr-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.tr-steps li:last-child { padding-bottom: 0; }
.tr-steps li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e5e5ea; }
.tr-steps li.is-done:not(:last-child)::before { background: #34c759; }
.tr-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px #d1d1d6; color: #fff; }
.tr-dot svg { width: 15px; height: 15px; }
.is-done .tr-dot { background: #34c759; box-shadow: none; }
.is-now .tr-dot { box-shadow: inset 0 0 0 2px var(--bp-brand-700), 0 0 0 5px rgba(227, 109, 11, .15); }
.is-now .tr-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bp-brand-700); }
.tr-steps strong { display: block; font-size: 16px; font-weight: 600; padding-top: 3px; }
.tr-steps li:not(.is-done):not(.is-now) strong { color: #8e8e93; }
.tr-steps small { display: block; font-size: 13.5px; color: var(--bp-muted); margin-top: 2px; }
.tr-note { margin: 0 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--bp-brand-50); }
.tr-note strong { font-size: 14px; }
.tr-note p { margin: 4px 0; font-size: 15px; }
.tr-note small { font-size: 12.5px; color: var(--bp-muted); }
.tr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tr-actions .bp-btn { flex: 1; height: 50px; font-size: 16px; }

@media (max-width: 1024px) {
    .ac-layout { grid-template-columns: 1fr; }
    .ac-side { position: static; }
    .ac-layout:not(.is-home) .ac-side { display: none; }
    .ac-layout.is-home .ac-side { order: 2; }
    .ac-back { display: inline-flex; }
}
@media (max-width: 767px) {
    .ac-wrap { padding-top: 10px; }
    .ac-head h1, .ac-main .dashboard-content-header h1 { font-size: 30px; }
    .ac-tiles { gap: 8px; margin-top: 14px; }
    .ac-tile { padding: 12px; }
    .ac-tile b { font-size: 19px; }
    .ac-tile span { font-size: 12.5px; }
    .ac-main .data-card { overflow-x: auto; }
    .tr-head h1 { font-size: 26px; }
    .tr-form { flex-direction: column; }
    .tr-form .ls-searchfield { flex: none; }
    .tr-facts b { font-size: 14.5px; }
}

/* =====================================================================
   iOS LAYER v2  (storefront): Apple text styles, grouped surfaces,
   tinted buttons, capsules, switches, sheets. Tint = brand orange.
   ===================================================================== */
:root {
    --ios-tint: #e36d0b;
    --ios-tint-pressed: #c85d06;
    --ios-tint-fill: rgba(227, 109, 11, .12);
    --ios-bg: #f2f2f7;
    --ios-card: #ffffff;
    --ios-label: #1c1c1e;
    --ios-label-2: rgba(60, 60, 67, .78);
    --ios-label-3: rgba(60, 60, 67, .45);
    --ios-fill: rgba(118, 118, 128, .12);
    --ios-fill-2: rgba(118, 118, 128, .2);
    --ios-sep: rgba(60, 60, 67, .2);
    --ios-green: #34c759;
    --ios-orange: #ff9500;
    --ios-red: #ff3b30;
    --ios-blue: #007aff;
    --ios-spring: cubic-bezier(.32, .72, 0, 1);
}
body.bp { background: var(--ios-bg); color: var(--ios-label); font-size: 16px; line-height: 1.45; }
body.bp .bp-container { max-width: 1280px; }

/* Text styles */
.bp-block-head { min-height: 0; padding: 18px 18px 6px; border-bottom: 0 !important; }
.bp-block-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.bp-block-head a, .bp-block-head button { font-size: 16px !important; font-weight: 500 !important; color: var(--ios-tint) !important; text-transform: none !important; letter-spacing: 0 !important; }
.bp-block-head.is-hot { background: none; }
.bp-block-head.is-hot h2 { color: var(--ios-label); }
.bp-block-head.is-hot h2 svg { color: var(--ios-tint); }
.bp-block { border-radius: 20px; box-shadow: none; }
.bp-home { gap: 14px; }
.bp-crumbs { font-size: 14px; color: var(--ios-label-3); }

/* Buttons */
.bp-btn { border-radius: 12px; font-weight: 600; letter-spacing: -.01em; text-transform: none !important; box-shadow: none !important; }
.bp-btn-primary { background: var(--ios-tint); }
.bp-btn-primary:hover { background: var(--ios-tint-pressed); }
.bp-btn-dark { background: var(--ios-label); }
.bp-btn-ghost { background: var(--ios-fill); border-color: transparent; color: var(--ios-label); }
.bp-btn-ghost:hover { background: var(--ios-fill-2); border-color: transparent; }
.bp-btn-tinted { background: var(--ios-tint-fill); color: var(--ios-tint); border: 0; }
.bp-btn-tinted:hover { background: rgba(227, 109, 11, .2); }
.bp-btn-sm { border-radius: 999px; height: 34px; padding: 0 14px; font-size: 15px; }
.bp-btn:active, .bp-heart:active, .ios-row:active, .ls-pcard:active, .ny-item:active { transform: scale(.97); }

/* Inputs */
.bp-input, .bp-select, .bp-search input { border: 0 !important; background: var(--ios-fill) !important; border-radius: 10px; }
.bp-input:focus, .bp-select:focus, .bp-search input:focus { background: #fff !important; box-shadow: 0 0 0 3px rgba(227, 109, 11, .25) !important; }
.bp-search input { border-radius: 12px !important; }
.bp-search button[type=submit] { border-radius: 12px; }
body.bp .bp-check input[type=checkbox] { appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; flex-shrink: 0; margin: 0; border-radius: 999px; background: rgba(120, 120, 128, .2); cursor: pointer; transition: background .2s; }
body.bp .bp-check input[type=checkbox]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .25s var(--ios-spring); }
body.bp .bp-check input[type=checkbox]:checked { background: var(--ios-green); }
body.bp .bp-check input[type=checkbox]:checked::after { transform: translateX(18px); }
body.bp .bp-check { justify-content: space-between; flex-direction: row-reverse; gap: 12px; padding: 8px 0; font-size: 16px; }
body.bp .bp-radio input[type=radio] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 50%; position: relative; cursor: pointer; }
body.bp .bp-radio input[type=radio]:checked::after { content: ''; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid var(--ios-tint); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* Product card, iOS store style */
.bp-card { border-radius: 18px; border: 0 !important; }
.bp-card-img { border-radius: 14px; background: var(--ios-bg); }
.bp-card-name { font-size: 15px; font-weight: 500; color: var(--ios-label); }
.bp-price b { font-size: 18px; font-weight: 700; }
.bp-sale { border-radius: 999px; background: var(--ios-red); color: #fff; font-weight: 700; padding: 3px 8px; }
.bp-card-foot .bp-btn { border-radius: 999px; height: 36px; font-size: 14px; letter-spacing: -.01em; }
.bp-card-foot .bp-btn-dark { background: var(--ios-fill); color: var(--ios-label); }
.bp-card-foot .bp-btn-dark:hover { background: var(--ios-fill-2); }
.bp-heart { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bp-rail-btn { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bp-cat img { border-radius: 22px; }
.bp-cat strong { font-weight: 500; font-size: 14px; }

/* Panels, listing, cart */
.bp-panel, .bp-results, .bp-filters { border-radius: 20px; }
.bp-panel-h, .bp-results-head h1 { font-weight: 700; letter-spacing: -.02em; }
.bp-fsec h3 { text-transform: none; letter-spacing: -.01em; font-size: 17px; font-weight: 600; }
.bp-fapply { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
.bp-line-remove { text-transform: none; letter-spacing: 0; font-weight: 500; }
.bp-stepper button { border-radius: 999px; background: var(--ios-tint-fill); color: var(--ios-tint); }
.bp-stepper button:hover { background: rgba(227, 109, 11, .2); }
.bp-stepper button[disabled] { background: var(--ios-fill); color: var(--ios-label-3); }
.bp-summary-cta .bp-btn, .bp-cart-bar .bp-btn { text-transform: none; }
.bp-dd-menu { border-radius: 16px; }
.bp-tabbar .active svg { stroke-width: 2.2; }

/* Header: shop chip */
.bp-header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.bp-locchip { display: inline-flex; align-items: center; gap: 8px; height: 44px; max-width: 220px; padding: 0 12px 0 10px; border: 0; border-radius: 12px; background: var(--ios-fill); color: var(--ios-label); font: inherit; text-align: left; cursor: pointer; }
.bp-locchip:hover { background: var(--ios-fill-2); }
.bp-locchip > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ios-tint); }
.bp-locchip > svg:last-child { width: 14px; height: 14px; color: var(--ios-label-3); }
.bp-locchip span { display: grid; min-width: 0; line-height: 1.15; }
.bp-locchip small { font-size: 11.5px; color: var(--ios-label-2); }
.bp-locchip b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-tab-live { position: absolute; top: -1px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ios-red); box-shadow: 0 0 0 2px #fff; }

/* iOS sheet (location picker) */
.ios-sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; }
.ios-sheet[hidden] { display: none; }
.ios-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .28s; }
.ios-sheet.open .ios-sheet-backdrop { background: rgba(0, 0, 0, .35); }
.ios-sheet-panel { position: relative; width: min(480px, calc(100vw - 32px)); max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; padding: 22px 16px 16px; border-radius: 22px; background: var(--ios-bg); outline: none; opacity: 0; transform: scale(.95); transition: opacity .22s, transform .3s var(--ios-spring); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .5); }
.ios-sheet.open .ios-sheet-panel { opacity: 1; transform: none; }
.ios-grabber { display: none; width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 0 auto 12px; }
.ios-sheet-x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ios-fill-2); color: var(--ios-label-2); display: grid; place-items: center; cursor: pointer; }
.ios-sheet-x svg { width: 15px; height: 15px; }
.ios-sheet-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; padding: 0 6px; }
.ios-sheet-sub { color: var(--ios-label-2); padding: 4px 6px 14px; font-size: 15px; }
.ios-sheet-foot { color: var(--ios-label-3); font-size: 13px; text-align: center; padding-top: 12px; }
.ios-group { background: var(--ios-card); border-radius: 14px; overflow: hidden; }
.ios-row { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: background .15s, transform .1s; }
.ios-row + .ios-row::before { content: ''; position: absolute; top: 0; left: 58px; right: 0; height: .5px; background: var(--ios-sep); }
.ios-row:hover { background: #fafafa; }
.ios-row-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ios-tint); color: #fff; }
.ios-row-ico.is-blue { background: var(--ios-blue); }
.ios-row-ico svg { width: 18px; height: 18px; }
.ios-row-main { display: grid; min-width: 0; }
.ios-row-main strong { font-size: 17px; font-weight: 500; }
.ios-row-main small { font-size: 13.5px; color: var(--ios-label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-row-end { font-size: 14px; color: var(--ios-label-2); font-variant-numeric: tabular-nums; }
.ios-check { color: var(--ios-tint); opacity: 0; }
.ios-check svg { width: 18px; height: 18px; }
.ios-row[aria-pressed="true"] .ios-check { opacity: 1; }

/* Home: in stock near you (location slider) */
.ny-seg { display: flex; gap: 2px; margin: 8px 18px 12px; padding: 2px; border-radius: 10px; background: var(--ios-fill); overflow-x: auto; scrollbar-width: none; }
.ny-seg::-webkit-scrollbar { display: none; }
.ny-seg button { flex: 1 0 auto; height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ios-label); white-space: nowrap; cursor: pointer; transition: background .2s; }
.ny-seg button.active { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.ny-viewport { overflow: hidden; }
.ny-track { display: flex; transition: transform .55s var(--ios-spring); }
.ny-slide { flex: 0 0 100%; min-width: 0; padding: 0 0 16px; }
.ny-loc { display: flex; align-items: center; gap: 12px; margin: 0 18px 12px; padding: 12px 14px; border-radius: 14px; background: var(--ios-bg); flex-wrap: wrap; }
.ny-loc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ios-tint); color: #fff; flex-shrink: 0; }
.ny-loc-ico.is-blue { background: var(--ios-blue); }
.ny-loc-ico svg { width: 22px; height: 22px; }
.ny-loc-main { flex: 1; min-width: 160px; display: grid; }
.ny-loc-main strong { font-size: 17px; font-weight: 600; }
.ny-loc-main small { font-size: 13.5px; color: var(--ios-label-2); }
.ny-stats { display: flex; gap: 14px; font-size: 13.5px; color: var(--ios-label-2); }
.ny-stats b { color: var(--ios-label); font-size: 17px; font-weight: 700; margin-right: 3px; }
.ny-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; padding: 0 18px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ny-rail::-webkit-scrollbar { display: none; }
.ny-item { scroll-snap-align: start; display: grid; gap: 4px; color: inherit; transition: transform .12s; }
.ny-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--ios-bg); }
.ny-img img { width: 100%; height: 100%; object-fit: cover; }
.ny-count { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; color: #1f7a35; }
.ny-count.is-low { color: #b35900; }
.ny-name { font-size: 14.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ny-price { font-size: 16px; font-weight: 700; }

/* Live stock: filters and product cards */
.ls-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ls-status-seg { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--ios-fill); }
.ls-status-seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--ios-label); cursor: pointer; white-space: nowrap; }
.ls-status-seg button.active { background: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.ls-sort select { height: 36px; padding: 0 30px 0 12px; border: 0; border-radius: 10px; background-color: var(--ios-fill); font: inherit; font-size: 15px; color: var(--ios-label); cursor: pointer; }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ls-pcard { display: flex; flex-direction: column; padding: 8px; border: 0; border-radius: 18px; background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.ls-pcard:hover { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .3); }
.ls-pcard.changed { animation: bp-flash 1.6s var(--bp-ease); }
.ls-pcard-img { position: relative; display: block; aspect-ratio: 1; border-radius: 13px; overflow: hidden; background: var(--ios-bg); }
.ls-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-pcard.ls-out .ls-pcard-img img { filter: grayscale(.8); opacity: .6; }
.ls-pcard-badge { position: absolute; left: 8px; right: 8px; bottom: 8px; width: max-content; max-width: calc(100% - 16px); padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #1f7a35; }
.ls-pcard.ls-low .ls-pcard-badge { color: #b35900; }
.ls-pcard.ls-out .ls-pcard-badge { color: var(--ios-label-2); }
.ls-pcard-body { display: grid; gap: 2px; padding: 8px 4px 2px; }
.ls-pcard-body strong { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-pcard-body small { font-size: 13px; color: var(--ios-label-2); }
.ls-pcard-price { font-size: 16px; font-weight: 700; margin-top: 2px; }
.ls-pcard .ls-pills { margin-top: 6px; }
.ls-grid .ls-empty { grid-column: 1 / -1; background: #fff; border-radius: 18px; }

@media (max-width: 1024px) {
    .bp-header-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
    .bp-locchip { max-width: 180px; }
}
@media (max-width: 767px) {
    body.bp { font-size: 16px; }
    .bp-header-row { grid-template-columns: 40px auto minmax(0, 1fr); }
    .bp-locchip { grid-column: 1 / -1; grid-row: 3; max-width: none; width: 100%; height: 36px; margin-bottom: 8px; padding: 0 10px; background: none; justify-content: flex-start; }
    .bp-locchip span { display: flex; gap: 5px; align-items: baseline; }
    .bp-locchip small { font-size: 13px; }
    .bp-locchip b { font-size: 13.5px; }
    .bp-search { padding-bottom: 4px; }
    .bp-block { border-radius: 18px; }
    .bp-block-head { padding: 14px 14px 4px; }
    .bp-block-head h2 { font-size: 20px; }
    .bp-block-head a { font-size: 15px !important; }
    .ny-seg { margin: 6px 14px 10px; }
    .ny-loc { margin: 0 14px 10px; }
    .ny-loc .bp-btn { width: 100%; }
    .ny-rail { grid-auto-columns: 42%; padding: 0 14px 4px; gap: 10px; }
    .ls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ls-filterbar { flex-direction: column; align-items: stretch; }
    .ls-status-seg button { flex: 1; padding: 0 6px; }
    .ls-sort select { width: 100%; }
    .ios-sheet { align-items: flex-end; }
    .ios-sheet-panel { width: 100%; max-height: 90vh; border-radius: 16px 16px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); opacity: 1; transform: translateY(100%); transition: transform .38s var(--ios-spring); }
    .ios-sheet.open .ios-sheet-panel { transform: none; }
    .ios-grabber { display: block; }
    .ios-sheet-x { top: 12px; }
    .ios-sheet-title { font-size: 22px; padding-top: 6px; }
    .bp-results-head h1, .bp-pagehead h1 { font-size: 30px !important; font-weight: 700; letter-spacing: -.03em; }
}
@media (prefers-reduced-motion: reduce) {
    .ny-track, .ios-sheet-panel, .ios-sheet-backdrop { transition: none; }
}

/* Products with sizes / options */
.bp-card-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.bp-card-sizes i { font-style: normal; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--ios-fill, rgba(118, 118, 128, .12)); color: var(--ios-label-2, #555); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.bp-price b small.bp-from { font-size: 12.5px; font-weight: 500; color: var(--ios-label-2, #666); margin-right: 2px; }
.bp-card-name { min-height: 2.7em; }
.vp-sheet .ios-sheet-panel { background: #fff; }
.vp-head { display: flex; gap: 14px; align-items: center; padding-right: 36px; margin-bottom: 18px; }
.vp-head img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--ios-bg); flex-shrink: 0; }
.vp-head h2 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.vp-price { font-size: 22px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.vp-stock { font-size: 13.5px; color: var(--ios-label-2); }
.vp-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.vp-label span { font-weight: 400; color: var(--ios-label-2); font-size: 13.5px; }
.vp-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.vp-chips.shake { animation: vp-shake .35s; }
@keyframes vp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.vp-chip { display: grid; justify-items: center; gap: 1px; min-height: 56px; padding: 8px 6px; border: 1.5px solid transparent; border-radius: 12px; background: var(--ios-fill); font: inherit; color: var(--ios-label); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.vp-chip span { font-size: 15px; font-weight: 600; }
.vp-chip small { font-size: 11.5px; color: var(--ios-label-2); }
.vp-chip:hover:not([disabled]) { background: var(--ios-fill-2); }
.vp-chip:active:not([disabled]) { transform: scale(.96); }
.vp-chip[aria-pressed="true"] { background: var(--ios-tint-fill); border-color: var(--ios-tint); color: var(--ios-tint); }
.vp-chip[aria-pressed="true"] small { color: var(--ios-tint); }
.vp-chip[disabled] { opacity: .45; cursor: not-allowed; }
.vp-chip[disabled] span { text-decoration: line-through; }
.vp-swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.vp-msg { margin-top: 10px; color: var(--ios-red); font-size: 14px; font-weight: 500; }
.vp-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.vp-foot .bp-btn { height: 50px; font-size: 16px; }
.vp-stepper { display: inline-flex; align-items: center; height: 50px; border-radius: 12px; background: var(--ios-fill); }
.vp-stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--ios-tint); cursor: pointer; }
.vp-stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
