/* =========================================================
   CHANNAB MARKETPLACE — Premium Grocery Commerce
   Refined utilitarian aesthetic, dense & conversion-focused
   Mobile-first · SEO-optimized · Performance-tuned
   ========================================================= */

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

:root {
    --ch-primary: #1b7a4a;
    --ch-primary-light: #e8f5ee;
    --ch-primary-dark: #145a36;
    --ch-primary-50: #f0faf4;
    --ch-accent: #e8590c;
    --ch-accent-light: #fff4ed;
    --ch-red: #dc2626;
    --ch-surface: #ffffff;
    --ch-bg: #f6f6f4;
    --ch-bg-warm: #faf9f7;
    --ch-text: #1c1917;
    --ch-text-secondary: #78716c;
    --ch-text-tertiary: #a8a29e;
    --ch-border: #e7e5e4;
    --ch-border-light: #f5f5f4;
    --ch-radius: 10px;
    --ch-radius-sm: 6px;
    --ch-radius-xs: 4px;
    --ch-shadow-sm: 0 1px 2px rgba(28,25,23,0.05);
    --ch-shadow: 0 1px 3px rgba(28,25,23,0.07), 0 1px 2px rgba(28,25,23,0.04);
    --ch-shadow-md: 0 4px 12px rgba(28,25,23,0.08);
    --ch-shadow-lg: 0 8px 24px rgba(28,25,23,0.1);
    --ch-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ch-transition: 180ms var(--ch-ease);
    --sidebar-width: 210px;
    --header-height: 56px;
    --bottom-nav-height: 56px;
    /* Backward compat aliases for PLP/PDP */
    --qc-green: var(--ch-primary);
    --qc-green-light: var(--ch-primary-light);
    --qc-green-dark: var(--ch-primary-dark);
    --qc-orange: var(--ch-accent);
    --qc-red: var(--ch-red);
    --qc-bg: var(--ch-bg);
    --qc-white: var(--ch-surface);
    --qc-text: var(--ch-text);
    --qc-text-secondary: var(--ch-text-secondary);
    --qc-border: var(--ch-border);
    --qc-radius: var(--ch-radius);
    --qc-radius-sm: var(--ch-radius-sm);
    --qc-shadow: var(--ch-shadow);
    --qc-shadow-md: var(--ch-shadow-md);
    --qc-shadow-lg: var(--ch-shadow-lg);
    --qc-transition: var(--ch-transition);
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ch-bg);
    color: var(--ch-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ---------- Utility ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Delivery Strip ---------- */
.delivery-strip {
    background: var(--ch-primary);
    color: #fff;
    text-align: center;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    contain: layout style;
}
.delivery-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
.qc-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ch-surface);
    border-bottom: 1px solid var(--ch-border);
    contain: layout style;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
}

.header-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    height: var(--header-height);
    min-width: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.qc-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    min-width: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ch-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ch-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.62rem;
    color: var(--ch-text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

/* Mobile city button — first item in header-actions, right before user/login icon */
.logo-city-mobile {
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--ch-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-city-mobile svg { color: var(--ch-primary); }
.logo-city-mobile:active { opacity: 0.7; }

/* Desktop tagline hidden on mobile */
.logo-tagline-desktop { display: none; }

/* Location Button */
.location-btn {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--ch-radius-sm);
    border: 1px solid var(--ch-border);
    background: var(--ch-bg);
    color: var(--ch-text);
    transition: var(--ch-transition);
    cursor: pointer;
}
.location-btn:hover { border-color: var(--ch-primary); }
.location-btn svg { color: var(--ch-primary); flex-shrink: 0; }
.location-info { display: flex; flex-direction: column; text-align: left; }
.location-label { font-size: 0.6rem; color: var(--ch-text-tertiary); line-height: 1; font-weight: 500; }
.location-address {
    font-size: 0.75rem;
    font-weight: 600;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.location-chevron { color: var(--ch-text-tertiary); flex-shrink: 0; }

/* Search */
.header-search {
    flex: 1;
    display: none;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--ch-text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border: 1.5px solid var(--ch-border);
    border-radius: var(--ch-radius);
    font-size: 0.85rem;
    background: var(--ch-bg);
    transition: var(--ch-transition);
    outline: none;
    color: var(--ch-text);
    font-family: inherit;
}
.search-input:focus {
    border-color: var(--ch-primary);
    background: var(--ch-surface);
    box-shadow: 0 0 0 3px rgba(27,122,74,0.08);
}
.search-input::placeholder { color: var(--ch-text-tertiary); }

/* Mobile Search */
.mobile-search {
    padding: 0 12px 8px;
    display: block;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 5px 8px;
    border-radius: var(--ch-radius-sm);
    transition: var(--ch-transition);
    color: var(--ch-text);
    text-decoration: none;
    position: relative;
}
.action-btn:hover { background: var(--ch-bg); }

.action-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--ch-text-secondary);
    display: none;
}

.cart-btn-header { position: relative; }

.cart-count {
    position: absolute;
    top: 0;
    right: 2px;
    background: var(--ch-accent);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Primary CTA: Create your Store */
.create-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--ch-primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--ch-transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.18);
    letter-spacing: -0.01em;
}
.create-store-btn:hover {
    background: var(--ch-primary-dark, #0d655e);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}
.create-store-btn:active { transform: translateY(0); }
.create-store-btn svg { flex-shrink: 0; }

/* Secondary: Login (replaces Cart slot) */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: var(--ch-text);
    border: 1px solid var(--ch-border, #e5e7eb);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--ch-transition);
    white-space: nowrap;
}
.header-login-btn:hover {
    border-color: var(--ch-primary);
    color: var(--ch-primary);
    background: var(--ch-primary-light, #e6f4f3);
}
.header-login-btn svg { flex-shrink: 0; }

/* Responsive: hide button text on narrower screens, keep icon */
@media (max-width: 540px) {
    .create-store-text { display: none; }
    .create-store-btn { padding: 8px 10px; }
    .header-login-text { display: none; }
    .header-login-btn { padding: 7px 10px; }
}

@media (max-width: 599px) {
    .header-row { gap: 6px; }
    .action-btn { padding: 5px 6px; }
    .create-store-btn { display: none; }
    .cart-count { right: 0; }
    .product-section { padding-left: 8px; padding-right: 8px; }
    .plp-grid { padding-left: 8px; padding-right: 8px; }
    .products-grid { gap: 6px; }
    .pcard-info { padding: 7px; }
}

/* Mobile bottom-nav primary CTA item */
.bottom-nav-item--cta { color: var(--ch-primary); font-weight: 700; }
.bottom-nav-item--cta svg { color: var(--ch-primary); }

/* Business Dashboard quick CTA (logged-in business users) */
.business-dashboard-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: var(--ch-primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--ch-transition);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.18);
}
.business-dashboard-cta:hover {
    background: var(--ch-primary-dark, #0d655e);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
    transform: translateY(-1px);
}
.business-dashboard-cta:active { transform: translateY(0); }
.business-dashboard-cta svg { flex-shrink: 0; }

/* Account Dropdown */
.account-dropdown-wrap { position: relative; }

.account-dropdown-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 5px 8px;
    border: 0;
    border-radius: var(--ch-radius-sm);
    background: transparent;
    color: var(--ch-text);
    cursor: pointer;
    font: inherit;
    position: relative;
    transition: var(--ch-transition);
}
.account-dropdown-btn:hover { background: var(--ch-bg); }
.account-dropdown-btn > svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.account-dropdown-btn .action-label {
    align-items: center;
    gap: 3px;
    line-height: 1;
}
.account-dropdown-btn .acct-chevron {
    width: 10px;
    height: 10px;
    margin-left: 1px;
    color: var(--ch-text-secondary);
    flex-shrink: 0;
    transition: transform 0.2s;
    vertical-align: -1px;
}
.account-dropdown-wrap.open .account-dropdown-btn .acct-chevron {
    transform: rotate(180deg);
}

.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--ch-border, #e5e7eb);
    background: #fff;
    color: var(--ch-text);
    cursor: pointer;
    font-family: inherit;
    transition: var(--ch-transition);
    max-width: 220px;
}
.account-pill:hover {
    border-color: var(--ch-primary);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.10);
}
.account-pill-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ch-primary) 0%, #14b8a6 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0;
    flex-shrink: 0;
    line-height: 1;
}
.account-pill-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    text-align: left;
}
.account-pill-label {
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--ch-text);
    text-transform: none;
    letter-spacing: 0;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-pill-name {
    font-size: 0.64rem;
    font-weight: 650;
    color: var(--ch-text-secondary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.account-pill .acct-chevron {
    color: var(--ch-text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.account-dropdown-wrap.open .account-pill .acct-chevron {
    transform: rotate(180deg);
}
.account-dropdown-wrap.open .account-pill {
    border-color: var(--ch-primary);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

/* Responsive collapse */
@media (max-width: 768px) {
    .account-pill-meta { display: none; }
    .account-pill { padding: 4px; }
    .account-pill .acct-chevron { display: none; }
    .business-dashboard-text { display: none; }
    .business-dashboard-cta { padding: 8px 10px; }
}
.account-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius);
    box-shadow: var(--ch-shadow-lg);
    z-index: 200;
    padding: 4px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s;
}
.account-dropdown-wrap.open .account-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.acct-dd-header {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--ch-border);
    margin-bottom: 4px;
}
.acct-dd-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ch-text);
    line-height: 1.2;
}
.acct-dd-type {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ch-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.acct-dd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ch-text);
    text-decoration: none;
    transition: background 0.1s;
    cursor: pointer;
}
.acct-dd-item:hover {
    background: var(--ch-bg);
    color: var(--ch-primary);
}
.acct-dd-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--ch-text-secondary);
}
.acct-dd-item:hover svg { color: var(--ch-primary); }
.acct-dd-divider {
    height: 1px;
    background: var(--ch-border);
    margin: 3px 0;
}
.acct-dd-item.logout { color: #ef4444; }
.acct-dd-item.logout svg { color: #ef4444; }
.acct-dd-item.logout:hover { background: #fef2f2; color: #dc2626; }
.acct-dd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
}
.account-dropdown-wrap.open .acct-dd-overlay { display: block; }

/* ---------- Layout ---------- */
.qc-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - 28px);
    min-width: 0;
}

/* Sidebar */
.qc-sidebar {
    display: none;
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--ch-surface);
    border-right: 1px solid var(--ch-border);
    position: sticky;
    top: calc(var(--header-height) + 28px);
    height: calc(100vh - var(--header-height) - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
    contain: layout style;
}

.sidebar-header {
    padding: 14px 14px 6px;
    border-bottom: 1px solid var(--ch-border);
}
.sidebar-header h3 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ch-text-secondary);
}

.sidebar-nav { padding: 6px 0; }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ch-text);
    transition: var(--ch-transition);
    border-left: 3px solid transparent;
}
.sidebar-item:hover {
    background: var(--ch-primary-light);
    color: var(--ch-primary);
}
.sidebar-item.active {
    background: var(--ch-primary-light);
    color: var(--ch-primary);
    font-weight: 600;
    border-left-color: var(--ch-primary);
}
.sidebar-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--ch-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.sidebar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* ---------- Main ---------- */
.qc-main {
    flex: 1;
    min-width: 0;
    padding-bottom: calc(var(--bottom-nav-height) + 12px);
    contain: layout style;
}

/* Category Pills (Mobile) */
.category-pills-wrap {
    padding: 8px 12px 2px;
    overflow: hidden;
}
.category-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.category-pills::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1.5px solid var(--ch-border);
    background: var(--ch-surface);
    color: var(--ch-text);
    transition: var(--ch-transition);
    white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--ch-primary);
    color: #fff;
    border-color: var(--ch-primary);
}

/* ---------- Hero Banners ---------- */
.hero-banners {
    padding: 10px 12px;
    position: relative;
}

.banner-carousel {
    position: relative;
    border-radius: var(--ch-radius);
    overflow: hidden;
    min-height: 140px;
}

.banner-slide {
    display: none;
    padding: 20px 18px;
    border-radius: var(--ch-radius);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}
.banner-slide.active { display: flex; align-items: center; justify-content: space-between; }

.banner-slide-content {
    flex: 1;
    z-index: 2;
}

.banner-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--ch-radius-xs);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    margin-bottom: 6px;
}

.banner-slide h2 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.banner-slide p {
    font-size: 0.78rem;
    opacity: 0.92;
    margin-bottom: 12px;
    line-height: 1.35;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: #fff;
    color: var(--ch-text);
    border-radius: var(--ch-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    transition: var(--ch-transition);
}
.banner-cta:hover { transform: translateY(-1px); box-shadow: var(--ch-shadow-md); }

.banner-slide-visual {
    position: relative;
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    display: none;
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border-radius: var(--ch-radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: floatBounce 3s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.12);
}
.fc-price { font-size: 0.65rem; opacity: 0.85; font-weight: 500; }
.fc-1 { top: 0; right: 0; animation-delay: 0s; }
.fc-2 { top: 45px; right: 45px; animation-delay: 1s; }
.fc-3 { top: 18px; right: 8px; animation-delay: 2s; }

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d6d3d1;
    border: none;
    cursor: pointer;
    transition: var(--ch-transition);
    padding: 0;
}
.dot.active {
    background: var(--ch-primary);
    width: 18px;
    border-radius: 4px;
}

/* ---------- Image Banners (DB-driven) ---------- */
.banner-slide--img {
    padding: 0;
    position: relative;
    background: transparent;
    overflow: hidden;
    border: 0;
}
.banner-slide--img.active { display: block; }
.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
    border-radius: 0;
}
.banner-cta-overlay {
    position: absolute;
    bottom: 12px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ch-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s;
}
.banner-cta-overlay:hover { background: var(--ch-primary-hover, #12452a); }
.banner-link-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    left: 6%;
    bottom: 14%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92) 0%, rgba(13, 148, 136, 0.88) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 80%;
}
.hero-overlay-line-1 {
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 600;
    opacity: 0.92;
}
.hero-overlay-line-2 {
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
@media (max-width: 575px) {
    .hero-overlay {
        left: 4%;
        bottom: 8%;
        padding: 8px 12px;
        border-radius: 8px;
    }
}

/* Rich overlay (slide 2 — Find what you need around you) */
.banner-slide--rich {
    background: #f7f8fa;
}
.banner-slide--rich .banner-img {
    object-fit: contain;
    object-position: right center;
}
.hero-rich-overlay {
    position: absolute;
    left: 4%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 38%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #0f172a;
}
.rich-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    background: #d1fae5;
    color: #047857;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rich-badge svg { flex-shrink: 0; }
.rich-headline {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.95rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}
.rich-headline .accent {
    color: #047857;
}
.rich-body {
    margin: 0;
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    line-height: 1.45;
    color: #475569;
    max-width: 90%;
}
.rich-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #047857;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(4, 120, 87, 0.32);
    transition: background .15s, transform .1s;
    z-index: 3;
}
.rich-cta:hover { background: #036046; transform: translateY(-1px); }
.rich-cta svg { flex-shrink: 0; }

@media (max-width: 768px) {
    /* The artwork is 2172x724 (aspect 3.0). Once the slide is narrower than
       ~3x its height, `object-fit: contain` becomes WIDTH-constrained, so the
       illustration stretches edge to edge and the absolutely-positioned
       overlay ends up sitting on top of it. Pin the image to the right and
       give it a fixed share of the slide so the text always has clear ground;
       the letterboxed remainder shows each variant's own gradient. */
    .banner-slide--rich .banner-img {
        left: auto;
        right: 0;
        width: 48%;
        /* `contain` would letterbox this 3:1 art into a thin strip in a panel
           this narrow. Fill the panel and crop from the right instead, which
           keeps the phone mockup and storefront — the recognisable half. */
        object-fit: cover;
        object-position: right center;
        /* Oversize the height so `cover` scales the art up and the panel shows
           a narrower slice — the phone and storefront rather than a wordmark
           chopped mid-letter. */
        height: 150%;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    .hero-rich-overlay {
        left: 4%;
        max-width: 46%;
        gap: 6px;
    }
    .rich-body { display: none; }
    .rich-cta { padding: 7px 14px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
    .banner-slide--rich .banner-img { width: 44%; }
    .hero-rich-overlay { max-width: 50%; }
    /* clamp()'s vw term collapses on phones, so set the floor explicitly and
       let the headline wrap to two lines inside its own column. */
    .rich-headline { font-size: 1rem; }
    .rich-badge { font-size: 0.58rem; padding: 3px 8px; }
    .rich-cta svg { display: none; }
}

/* Marketplace variant — slide 1 */
.banner-slide--marketplace {
    background: linear-gradient(120deg, #f0fdf4 0%, #fafdfb 60%, #f6faf7 100%);
}
.banner-slide--marketplace .rich-badge.marketplace-badge {
    background: #14532d;
    color: #d1fae5;
}
.banner-slide--marketplace .rich-headline .accent {
    color: #15803d;
    background: linear-gradient(120deg, #15803d 0%, #22c55e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.banner-slide--marketplace .rich-cta {
    background: #14532d;
    box-shadow: 0 4px 14px rgba(20, 83, 45, 0.32);
}
.banner-slide--marketplace .rich-cta:hover {
    background: #0f3e21;
}

/* Merchant variant — slide 3 */
.banner-slide--merchant {
    background: linear-gradient(120deg, #f1f5f4 0%, #fafdfb 60%, #f7f8fa 100%);
}
.banner-slide--merchant .rich-badge.merchant-badge {
    background: #0f4c43;
    color: #d1fae5;
}
.banner-slide--merchant .rich-headline .accent {
    color: #0f766e;
    background: linear-gradient(120deg, #0f766e 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.banner-slide--merchant .rich-cta {
    background: #0f4c43;
    box-shadow: 0 4px 14px rgba(15, 76, 67, 0.32);
}
.banner-slide--merchant .rich-cta:hover {
    background: #0a3a33;
}

/* ---------- Quick Categories ---------- */
.quick-categories {
    padding: 14px 12px 6px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
}
.section-head h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ch-text);
    letter-spacing: -0.01em;
}
.section-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ch-primary);
    display: flex;
    align-items: center;
    gap: 2px;
    transition: var(--ch-transition);
    white-space: nowrap;
}
.see-all:hover { opacity: 0.75; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 4px 8px;
    border-radius: var(--ch-radius);
    background: var(--ch-surface);
    border: 1px solid var(--ch-border);
    transition: var(--ch-transition);
    contain: layout style;
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ch-shadow-md);
    border-color: var(--ch-primary);
}
.cat-card:active { transform: scale(0.97); }

.cat-card-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 5px;
    background: var(--ch-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-placeholder { color: var(--ch-primary); }

.cat-card-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ch-text);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Promo Strip ---------- */
.promo-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 6px 12px;
}

.promo-card-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--ch-radius);
    color: #fff;
    transition: var(--ch-transition);
}
.promo-card-mini:hover { transform: translateY(-1px); box-shadow: var(--ch-shadow-md); }

.promo-mini-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.promo-mini-text strong { font-size: 0.85rem; font-weight: 700; }
.promo-mini-text span { font-size: 0.7rem; opacity: 0.9; }

.promo-mini-btn {
    padding: 5px 12px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--ch-transition);
    backdrop-filter: blur(4px);
}
.promo-mini-btn:hover { background: rgba(255,255,255,0.35); }

/* ---------- Product Sections ---------- */
.product-section {
    padding: 14px 12px 6px;
    min-width: 0;
    max-width: 100%;
}

.sale-section {
    background: linear-gradient(180deg, #fef3c7 0%, var(--ch-bg) 100%);
    border-radius: var(--ch-radius);
    margin: 0 8px;
    padding: 14px 8px 6px;
}

.sale-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ch-accent);
    background: var(--ch-accent-light);
    padding: 3px 8px;
    border-radius: 10px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.products-grid > * {
    min-width: 0;
}

/* Horizontal Scroll for Deals */
.products-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}
.products-scroll::-webkit-scrollbar { display: none; }
.products-scroll .pcard {
    flex-shrink: 0;
    width: 150px;
    scroll-snap-align: start;
}

/* Product Card */
.pcard {
    background: var(--ch-surface);
    border-radius: var(--ch-radius);
    border: 1px solid var(--ch-border);
    overflow: hidden;
    position: relative;
    transition: var(--ch-transition);
    display: flex;
    flex-direction: column;
    contain: layout style;
    min-width: 0;
}
.pcard:hover {
    box-shadow: var(--ch-shadow-md);
    border-color: transparent;
}
.pcard:active { transform: scale(0.98); }

.pcard-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* Legacy badge (kept for backwards compat) */
.pcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.45);
}

/* ── On-sale card accent ── */
.pcard--on-sale { border-color: #fecaca; }
.pcard--on-sale:hover { border-color: #f87171; }

/* Discount ribbon – top-left corner fold */
.pcard-discount-ribbon {
    position: absolute;
    top: 0; left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #dc2626 60%, transparent 60%);
    border-radius: var(--ch-radius) 0 0 0;
}
.pcard-discount-pct {
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin: 3px 0 0 -6px;
    letter-spacing: -0.02em;
}
.pcard-discount-label {
    font-size: 0.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-left: -6px;
}

/* Save strip at bottom of image */
.pcard-save-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
    padding: 3px 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 3;
}

/* Sale price styling */
.pcard-prices--sale { flex-wrap: wrap; }
.pcard-price--sale {
    color: #dc2626 !important;
    font-weight: 800 !important;
}
.sale-badge {
    background: var(--ch-accent);
}

.pcard-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ch-bg-warm);
    position: relative;
}
.pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    transition: transform 250ms var(--ch-ease);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #d6d3d1;
}

.pcard-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Fulfilment badge — the shopper's first read on a card, so it gets the solid
   brand fill rather than the tinted pill the rest of the meta uses. Full width
   of the info column with the icon + label centred as one group. */
.pcard-timing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--ch-primary);
    padding: 4px 8px;
    border-radius: var(--ch-radius-xs);
    width: 100%;
    text-align: center;
}

.pcard-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ch-text);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.pcard-unit {
    font-size: 0.65rem;
    color: var(--ch-text-secondary);
}

.pcard-price-row {
    margin-top: auto;
    padding-top: 4px;
}

.pcard-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pcard-price {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--ch-primary);
    line-height: 1.2;
}

.pcard-mrp {
    font-size: 0.75rem;
    color: var(--ch-text-tertiary);
    text-decoration: line-through;
    line-height: 1.2;
}

/* Add Button */
.pcard-add-btn {
    width: calc(100% - 12px);
    margin: 0 6px 6px;
    padding: 6px;
    border: 1.5px solid var(--ch-primary);
    border-radius: var(--ch-radius-sm);
    background: var(--ch-surface);
    color: var(--ch-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--ch-transition);
    cursor: pointer;
    min-width: 0;
}
.pcard-add-btn:hover {
    background: var(--ch-primary);
    color: #fff;
}
.pcard-add-btn.added {
    background: var(--ch-primary);
    color: #fff;
    border-color: var(--ch-primary);
}
/* Card CTA for stores that cannot sell online yet - links to the pickup
   details on the product page instead of adding to the cart. */
/* Pickup CTA carries the same solid brand fill as the fulfilment badge, so a
   card for an offline seller reads as one green story rather than two tones. */
.pcard-pickup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--qc-green);
    color: #fff;
    border: 1.5px solid var(--qc-green);
}
.pcard-pickup-btn:hover { background: var(--qc-green-dark); border-color: var(--qc-green-dark); color: #fff; }

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

/* ---------- Trust Section ---------- */
.trust-section {
    padding: 18px 12px;
    margin-top: 6px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--ch-surface);
    border-radius: var(--ch-radius);
    border: 1px solid var(--ch-border);
}

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ch-primary-light);
    color: var(--ch-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.trust-text strong { font-size: 0.75rem; font-weight: 700; }
.trust-text span { font-size: 0.65rem; color: var(--ch-text-secondary); }

/* ---------- SEO Ecosystem Band ---------- */
.seo-ecosystem {
    max-width: 1180px;
    margin: 22px auto 28px;
    padding: 0 14px;
}

.seo-ecosystem-inner {
    background: #f8fafc;
    border: 1px solid var(--ch-border-light);
    border-radius: 8px;
    padding: 22px;
}

.seo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ch-primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.seo-title {
    color: var(--ch-text);
    font-size: clamp(1.2rem, 2.4vw, 1.85rem);
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 800;
}

.seo-lead {
    color: var(--ch-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 850px;
    margin: 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.seo-feature {
    background: #fff;
    border: 1px solid var(--ch-border-light);
    border-radius: 8px;
    padding: 14px;
}

.seo-feature strong {
    display: block;
    color: var(--ch-text);
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.seo-feature p {
    color: var(--ch-text-secondary);
    font-size: 0.76rem;
    line-height: 1.55;
    margin: 0;
}

.seo-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.seo-link-row a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--ch-border-light);
    color: var(--ch-text);
    font-size: 0.76rem;
    font-weight: 700;
}

.seo-link-row a:hover {
    color: var(--ch-primary);
    border-color: var(--ch-primary);
}

/* ---------- Footer ---------- */
.qc-footer {
    background: var(--ch-text);
    color: #d6d3d1;
    padding: 0;
    margin-bottom: var(--bottom-nav-height);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 14px 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.footer-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #a8a29e;
}

.footer-desc a {
    color: #fff;
    font-weight: 700;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 5px; }
.footer-col a {
    font-size: 0.75rem;
    color: #a8a29e;
    transition: var(--ch-transition);
}
.footer-col a:hover { color: #fff; }

.footer-contact {
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.footer-bottom {
    border-top: 1px solid #44403c;
    padding-top: 12px;
    text-align: center;
    font-size: 0.7rem;
    color: #78716c;
}

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--ch-surface);
    border-top: 1px solid var(--ch-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.05);
    padding-bottom: env(safe-area-inset-bottom);
    contain: layout style;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 0;
    color: var(--ch-text-secondary);
    font-size: 0.58rem;
    font-weight: 500;
    transition: var(--ch-transition);
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.active { color: var(--ch-primary); }
.bottom-nav-item:hover { color: var(--ch-primary); }

/* WhatsApp Center FAB */
.bottom-nav-wa {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}
.bottom-nav-wa .wa-fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 3px 12px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bottom-nav-wa .wa-fab:active { transform: scale(0.92); }
.bottom-nav-wa .wa-fab svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.bottom-nav-wa span {
    font-size: 0.55rem;
    font-weight: 600;
    color: #25D366;
    margin-top: 1px;
}

/* WhatsApp Order Button (Cart Page) */
.wa-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--ch-radius);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    margin-top: 8px;
}
.wa-order-btn:hover { background: #1da851; }
.wa-order-btn:active { transform: scale(0.97); }
.wa-order-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    flex-shrink: 0;
}
.wa-order-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: var(--ch-text-secondary);
    font-size: 0.72rem;
}
.wa-order-divider::before, .wa-order-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ch-border);
}

/* WhatsApp sticky bar (mobile cart) */
.wa-sticky-bar { display: none; }
@media (max-width: 899px) {
    .wa-sticky-bar {
        display: flex;
        position: fixed;
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        z-index: 99;
        padding: 8px 12px;
        background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid var(--ch-border);
        gap: 6px;
    }
    .wa-sticky-bar .wa-order-btn {
        margin: 0;
        flex: 1;
    }
    .wa-sticky-bar .wa-sticky-checkout {
        flex: 1;
        display: block;
        padding: 12px;
        background: var(--ch-primary);
        color: #fff;
        border: none;
        border-radius: var(--ch-radius);
        font-size: 0.85rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        font-family: inherit;
    }
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.toast {
    padding: 8px 18px;
    border-radius: var(--ch-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: all 250ms ease;
    box-shadow: var(--ch-shadow-lg);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--ch-primary); }
.toast-error { background: var(--ch-red); }

/* =========================================================
   RESPONSIVE — TABLET (600px+)
   ========================================================= */
@media (min-width: 600px) {
    .header-row { padding: 8px 18px; }
    .mobile-search { padding: 0 18px 8px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .promo-strip { grid-template-columns: repeat(3, 1fr); padding: 6px 14px; }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .banner-slide h2 { font-size: 1.5rem; }
    .banner-slide-visual { display: block; }
    .banner-slide,
    .banner-slide--img { min-height: 160px; }
    .hero-banners { padding: 10px 14px; }
    .quick-categories { padding: 14px; }
    .product-section { padding: 14px; }
    .seo-ecosystem { margin-bottom: 18px; }
    .seo-ecosystem-inner { padding: 18px 14px; }
    .trust-section { padding: 18px 14px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE — DESKTOP (900px+)
   ========================================================= */
@media (min-width: 900px) {
    html { font-size: 14.5px; }
    .delivery-strip { font-size: 0.72rem; }
    .header-row { padding: 8px 22px; gap: 16px; }
    .location-btn { display: flex; }
    .logo-city-mobile { display: none; }
    .logo-tagline-desktop { display: flex; }
    .header-search { display: block; max-width: 680px; }
    .mobile-search { display: none; }
    .action-label { display: block; }
    .account-dropdown-btn .action-label { display: block; }
    .account-dropdown-btn .acct-chevron { display: inline-block; }
    .header-actions { gap: 4px; margin-left: 0; }
    .qc-sidebar { display: block; }
    .category-pills-wrap { display: none; }
    .qc-main { padding-bottom: 20px; }
    .mobile-bottom-nav { display: none; }
    .qc-footer { margin-bottom: 0; }
    .products-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
    .products-scroll .pcard { width: 175px; }
    .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 10px; }
    .banner-slide { padding: 28px 24px; min-height: 200px; }
    .banner-slide--img { padding: 0; min-height: 200px; }
    .banner-slide h2 { font-size: 1.7rem; }
    .banner-slide p { font-size: 0.85rem; }
    .banner-slide-visual { display: block; width: 180px; height: 140px; }
    .hero-banners { padding: 14px 18px; }
    .quick-categories { padding: 18px; }
    .product-section { padding: 18px; }
    .seo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .trust-section { padding: 22px 18px; }
    .footer-inner { padding: 36px 22px 14px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
    .toast-container { bottom: 20px; }
    .sale-section { margin: 0 10px; padding: 18px 14px 8px; }
}

/* =========================================================
   RESPONSIVE — LARGE DESKTOP (1200px+)
   ========================================================= */
@media (min-width: 1200px) {
    .header-row { padding: 10px 32px; gap: 20px; }
    .header-search { max-width: 800px; }
    .products-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .cat-grid { grid-template-columns: repeat(8, 1fr); }
    .banner-slide { padding: 36px 32px; min-height: 240px; }
    .banner-slide--img { padding: 0; min-height: 240px; }
    .banner-slide h2 { font-size: 2rem; }
    .banner-slide-visual { width: 240px; height: 180px; }
    .products-scroll .pcard { width: 195px; }
}

/* =========================================================
   ACCESSIBILITY & INTERACTIONS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--ch-primary);
    outline-offset: 2px;
}

@media (hover: none) {
    .pcard:hover { box-shadow: none; border-color: var(--ch-border); }
    .pcard:hover .pcard-img img { transform: none; }
    .cat-card:hover { transform: none; box-shadow: none; }
}

/* Scrollbar */
.qc-sidebar::-webkit-scrollbar { width: 3px; }
.qc-sidebar::-webkit-scrollbar-track { background: transparent; }
.qc-sidebar::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 2px; }
.qc-sidebar::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* =========================================================
   PRODUCT LIST PAGE (PLP)
   ========================================================= */

/* Seller label on product card */
.pcard-seller {
    font-size: 0.68rem;
    color: var(--qc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Card Rating */
.pcard-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    margin-top: 2px;
}
.pcard-stars {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}
.pcard-stars svg {
    flex-shrink: 0;
}
.pcard-rating-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qc-text);
}
.pcard-review-count {
    font-size: 0.66rem;
    color: var(--qc-text-secondary);
}

/* PDP Rating Stars Inline */
.pdp-rating-stars-inline {
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

/* Out of Stock badge */
.pcard-badge-oos {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    box-shadow: 0 2px 6px rgba(75, 85, 99, 0.35);
}

/* PLP Header */
.plp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.plp-header-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.plp-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--qc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plp-count {
    font-size: 0.75rem;
    color: var(--qc-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.plp-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.plp-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    background: var(--qc-white);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qc-text);
    cursor: pointer;
    transition: var(--qc-transition);
}
.plp-filter-btn:hover { border-color: var(--qc-green); color: var(--qc-green); }

.plp-sort-select {
    padding: 7px 10px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--qc-white);
    color: var(--qc-text);
    outline: none;
    cursor: pointer;
}
.plp-sort-select:focus { border-color: var(--qc-green); }

/* Active Filters */
.plp-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--qc-green-light);
    color: var(--qc-green);
}

.filter-tag-remove {
    font-size: 1rem;
    line-height: 1;
    color: var(--qc-green);
    opacity: 0.7;
    cursor: pointer;
    text-decoration: none;
}
.filter-tag-remove:hover { opacity: 1; }

.filter-clear-all {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qc-red);
    white-space: nowrap;
}

/* PLP Grid (inherits .products-grid) */
.plp-grid {
    padding: 0 12px;
    min-width: 0;
    max-width: 100%;
}

/* PLP Pagination */
.plp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 20px 12px;
}

.plp-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qc-text);
    background: var(--qc-white);
    text-decoration: none;
    transition: var(--qc-transition);
}
.plp-page-btn:hover { border-color: var(--qc-green); color: var(--qc-green); }

.plp-page-active {
    background: var(--qc-green);
    color: #fff;
    border-color: var(--qc-green);
}

/* PLP Empty State */
.plp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--qc-text-secondary);
}
.plp-empty svg { margin: 0 auto 16px; color: #d1d5db; }
.plp-empty h3 { font-size: 1.1rem; font-weight: 700; color: var(--qc-text); margin-bottom: 6px; }
.plp-empty p { font-size: 0.82rem; margin-bottom: 16px; }
.plp-empty-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--qc-radius-sm);
    background: var(--qc-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--qc-transition);
}
.plp-empty-btn:hover { background: var(--qc-green-dark); }

/* --- Sidebar Filters --- */
.sidebar-filters {
    border-top: 1px solid var(--qc-border);
    margin-top: 8px;
}

.sidebar-filters .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-clear-link {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qc-red);
}

.sidebar-filter-form {
    padding: 0 16px 16px;
}

.filter-section {
    margin-bottom: 14px;
}

.filter-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--qc-text);
    margin-bottom: 8px;
}

.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-input-sm {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    font-size: 0.78rem;
    outline: none;
    background: var(--qc-bg);
    color: var(--qc-text);
}
.filter-input-sm:focus { border-color: var(--qc-green); }
.filter-input-sm::-webkit-inner-spin-button { -webkit-appearance: none; }
.filter-input-sm[type="number"] { -moz-appearance: textfield; }

.filter-dash {
    color: var(--qc-text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.filter-select-sm {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    font-size: 0.78rem;
    outline: none;
    background: var(--qc-white);
    color: var(--qc-text);
    cursor: pointer;
}
.filter-select-sm:focus { border-color: var(--qc-green); }

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--qc-text);
    cursor: pointer;
}
.filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--qc-green);
    cursor: pointer;
}

.filter-apply-btn {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: var(--qc-radius-sm);
    background: var(--qc-green);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--qc-transition);
    margin-top: 4px;
}
.filter-apply-btn:hover { background: var(--qc-green-dark); }

/* --- Mobile Filter Drawer --- */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}
.filter-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--qc-white);
    border-radius: 16px 16px 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 300ms ease;
    overflow-y: auto;
}
.filter-drawer.open { transform: translateY(0); }

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--qc-border);
    position: sticky;
    top: 0;
    background: var(--qc-white);
    z-index: 1;
}
.filter-drawer-header h3 { font-size: 1rem; font-weight: 700; }

.filter-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--qc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qc-text);
}

.filter-drawer-body {
    padding: 16px;
}

.filter-cat-list {
    max-height: 200px;
    overflow-y: auto;
}

.filter-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--qc-text);
}
.filter-cat-item input[type="radio"] {
    accent-color: var(--qc-green);
}
.filter-cat-name { flex: 1; }
.filter-cat-count {
    font-size: 0.68rem;
    color: var(--qc-text-secondary);
    background: var(--qc-bg);
    padding: 2px 6px;
    border-radius: 8px;
}

.filter-drawer-actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--qc-border);
    margin-top: 12px;
}

.filter-reset-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    background: var(--qc-white);
    color: var(--qc-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.filter-drawer-actions .filter-apply-btn {
    flex: 2;
    margin-top: 0;
}

/* =========================================================
   PRODUCT DETAIL PAGE (PDP)
   ========================================================= */

/* Breadcrumb */
.pdp-breadcrumb-wrap {
    background: var(--qc-white);
    border-bottom: 1px solid var(--qc-border);
    display: none;
}

.pdp-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--qc-text-secondary);
    overflow-x: auto;
    white-space: nowrap;
}
.pdp-breadcrumb a { color: var(--qc-text-secondary); transition: var(--qc-transition); }
.pdp-breadcrumb a:hover { color: var(--qc-green); }
.pdp-breadcrumb span { color: var(--qc-text); font-weight: 600; }
.pdp-breadcrumb svg { flex-shrink: 0; color: #d1d5db; }

/* Container */
.pdp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 calc(var(--bottom-nav-height) + 16px);
}

/* Main layout */
.pdp-main {
    display: flex;
    flex-direction: column;
    background: var(--qc-white);
}

/* Gallery */
.pdp-gallery {
    width: 100%;
}

.pdp-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pdp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.pdp-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #d1d5db;
}

.pdp-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--qc-red);
    color: #fff;
    letter-spacing: 0.02em;
}

.pdp-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pdp-thumbnails::-webkit-scrollbar { display: none; }

.pdp-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--qc-radius-sm);
    border: 2px solid var(--qc-border);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0;
    background: #fafafa;
    transition: var(--qc-transition);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--qc-green); }

/* Info */
.pdp-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Same fulfilment badge on the product page: solid fill, centred, and capped
   so it reads as a banner over the product name instead of a stretched pill. */
.pdp-timing-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--qc-green);
    color: #fff;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 4px;
    text-align: center;
}

.pdp-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--qc-text);
    margin: 0;
}

.pdp-unit {
    font-size: 0.82rem;
    color: var(--qc-text-secondary);
}

.pdp-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--qc-text-secondary);
}
.pdp-seller svg { color: var(--qc-green); flex-shrink: 0; }
.pdp-seller strong { color: var(--qc-text); }

/* Rating */
.pdp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #065f46;
    color: #fff;
}

.pdp-review-count {
    font-size: 0.75rem;
    color: var(--qc-text-secondary);
}

.pdp-rating-empty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    color: var(--qc-text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--qc-white);
    transition: var(--qc-transition);
}
.pdp-rating-empty:hover {
    border-color: var(--qc-green);
    color: var(--qc-green);
    background: var(--qc-green-light);
}
.pdp-rating-empty svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* Price */
.pdp-price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--qc-text);
}

.pdp-price-original {
    font-size: 1rem;
    color: var(--qc-text-secondary);
    text-decoration: line-through;
}

.pdp-save-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
}

/* Stock */
.pdp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-stock-in {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qc-green);
}

.pdp-stock-low {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--qc-orange);
}

.pdp-stock-out {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--qc-red);
}

/* Variants */
.pdp-variants { margin-top: 4px; }

.pdp-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--qc-text);
    margin-bottom: 10px;
}

.pdp-variant-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-variant-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    cursor: pointer;
    transition: var(--qc-transition);
    font-size: 0.78rem;
}
.pdp-variant-option input { display: none; }
.pdp-variant-option.selected, .pdp-variant-option:hover {
    border-color: var(--qc-green);
    background: var(--qc-green-light);
}
.pdp-variant-name { font-weight: 600; }
.pdp-variant-price { color: var(--qc-text-secondary); font-weight: 500; }

/* Actions */
.pdp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.pdp-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.pdp-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--qc-bg);
    color: var(--qc-text);
    border: none;
    cursor: pointer;
    transition: var(--qc-transition);
}
.pdp-qty-btn:hover { background: var(--qc-green-light); color: var(--qc-green); }

.pdp-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    background: var(--qc-white);
    color: var(--qc-text);
    -moz-appearance: textfield;
}
.pdp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pdp-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--qc-radius-sm);
    background: var(--qc-green);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--qc-transition);
}
.pdp-add-btn:hover:not(:disabled) { background: var(--qc-green-dark); }
.pdp-add-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.pdp-add-btn.added { background: #065f46; }
.pdp-add-btn svg { flex-shrink: 0; }

/* Pickup-only state: shown instead of the cart controls when the seller is not
   yet verified for online orders (Business.can_sell_online). */
.pdp-actions-pickup { flex-wrap: wrap; }

.pdp-pickup-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid var(--qc-green);
    border-radius: var(--qc-radius-sm);
    background: var(--qc-white);
    color: var(--qc-green);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--qc-transition);
}
.pdp-pickup-btn:hover { background: var(--qc-green-light); }
.pdp-pickup-btn[aria-expanded="true"] { background: var(--qc-green); color: #fff; }
.pdp-pickup-btn svg { flex-shrink: 0; }

.pdp-pickup-panel {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    background: var(--qc-bg);
}
.pdp-pickup-panel[hidden] { display: none; }

.pdp-pickup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.pdp-pickup-head strong { font-size: 0.92rem; color: var(--qc-text); }

.pdp-pickup-chip {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--qc-green-light);
    color: var(--qc-green);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.pdp-pickup-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--qc-text-secondary, #6b7280);
}
.pdp-pickup-row svg { flex-shrink: 0; margin-top: 2px; color: var(--qc-green); }
.pdp-pickup-row a { color: var(--qc-text); font-weight: 700; text-decoration: none; }
.pdp-pickup-row a:hover { text-decoration: underline; }

.pdp-pickup-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 10px;
}

.pdp-pickup-link {
    padding: 7px 14px;
    border: 1.5px solid var(--qc-border);
    border-radius: var(--qc-radius-sm);
    background: var(--qc-white);
    color: var(--qc-text);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--qc-transition);
}
.pdp-pickup-link:hover { border-color: var(--qc-green); color: var(--qc-green); }

.pdp-pickup-note {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--qc-text-secondary, #6b7280);
}

.pdp-wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--qc-radius-sm);
    border: 1.5px solid var(--qc-border);
    background: var(--qc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--qc-red);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--qc-transition);
}
.pdp-wishlist-btn:hover { border-color: var(--qc-red); background: #fef2f2; }

/* Description */
.pdp-description {
    padding-top: 6px;
    border-top: 1px solid var(--qc-border);
    margin-top: 4px;
}

.pdp-desc-text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--qc-text-secondary);
}
.pdp-desc-text p { margin-bottom: 8px; }

/* Reviews */
.pdp-reviews {
    padding: 20px 16px;
    border-top: 8px solid var(--qc-bg);
}

.pdp-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.pdp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-reviews-avg {
    display: flex;
    align-items: center;
    gap: 3px;
}

.pdp-reviews-avg-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--qc-text);
}

.pdp-reviews-total {
    font-size: 0.75rem;
    color: var(--qc-text-secondary);
}

.pdp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-review-item {
    padding: 12px;
    border: 1px solid var(--qc-border);
    border-radius: var(--qc-radius);
    background: var(--qc-bg);
}

.pdp-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pdp-review-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--qc-green-light);
    color: var(--qc-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pdp-review-author strong {
    font-size: 0.82rem;
    display: block;
}

.pdp-verified-badge {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--qc-green);
    background: var(--qc-green-light);
    padding: 1px 6px;
    border-radius: 4px;
}

.pdp-review-stars {
    display: flex;
    gap: 1px;
}

.pdp-review-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pdp-review-text {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--qc-text-secondary);
    margin-bottom: 6px;
}

.pdp-review-date {
    font-size: 0.68rem;
    color: #9ca3af;
}

.pdp-reviews-empty {
    text-align: center;
    padding: 20px;
    color: var(--qc-text-secondary);
    font-size: 0.82rem;
}

.pdp-write-review-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 20px;
    border-radius: var(--qc-radius-sm);
    border: 1.5px solid var(--qc-green);
    color: var(--qc-green);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--qc-transition);
}
.pdp-write-review-btn:hover { background: var(--qc-green); color: #fff; }

.pdp-login-review {
    font-size: 0.82rem;
    color: var(--qc-text-secondary);
    margin-top: 10px;
}
.pdp-login-review a { color: var(--qc-green); font-weight: 600; }

/* Related Products */
.pdp-related {
    padding: 20px 16px;
    border-top: 8px solid var(--qc-bg);
}

/* =========================================================
   PLP/PDP RESPONSIVE - TABLET (600px+)
   ========================================================= */
@media (min-width: 600px) {
    .plp-header { padding: 12px 16px 8px; }
    .plp-grid { padding: 0 16px; }
    .plp-active-filters { padding: 0 16px 8px; }
    .plp-pagination { padding: 20px 16px; }

    .pdp-container { padding-top: 8px; }
    .pdp-main {
        flex-direction: row;
        gap: 0;
        border-radius: var(--qc-radius);
        overflow: hidden;
        margin: 0 16px;
    }
    .pdp-gallery { width: 45%; flex-shrink: 0; }
    .pdp-main-image { aspect-ratio: 1; }
    .pdp-info { width: 55%; padding: 20px 24px; }
    .pdp-reviews { margin: 16px; border-radius: var(--qc-radius); border: 1px solid var(--qc-border); border-top: 1px solid var(--qc-border); }
    .pdp-related { margin: 0 16px; padding: 20px 0; }
    .pdp-related .products-grid { gap: 10px; }
}

/* =========================================================
   PLP/PDP RESPONSIVE - DESKTOP (900px+)
   ========================================================= */
@media (min-width: 900px) {
    .plp-filter-btn { display: none; }
    .plp-header { padding: 16px 20px 8px; }
    .plp-grid { padding: 0 20px; }
    .plp-active-filters { padding: 0 20px 8px; }

    .pdp-breadcrumb-wrap { display: block; }
    .pdp-container { padding: 16px 24px calc(24px); }
    .pdp-main { margin: 0; border: 1px solid var(--qc-border); }
    .pdp-gallery { width: 42%; }
    .pdp-info { padding: 24px 32px; }
    .pdp-name { font-size: 1.4rem; }
    .pdp-price-current { font-size: 1.75rem; }
    .pdp-reviews { margin: 16px 0; }
    .pdp-related { margin: 0; padding: 20px 0; }
}

/* =========================================================
   PLP/PDP RESPONSIVE - LARGE DESKTOP (1200px+)
   ========================================================= */
@media (min-width: 1200px) {
    .pdp-gallery { width: 40%; }
    .pdp-main-image { aspect-ratio: auto; min-height: 420px; }
    .pdp-thumb { width: 64px; height: 64px; }
}
