/* File: public_html/assets/css/storefront.css */
:root {
    --brand-red: #FF3037;
    --brand-red-dark: #E02027;
    --bg-body: #F5F8FB;
    --bg-surface: #FFFFFF;
    --text-primary: #152233;
    --text-muted: #7A8796;
    --border-color: #E3E9EF;
    --success-green: #0AA65A;
    --warning-orange: #FF7A00;
    --radius-card: 16px;
    --radius-pill: 999px;
    --shadow-soft: 0 4px 20px rgba(21, 34, 51, 0.05);
    --transition-fast: 180ms ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.45;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* Top Strip */
.top-strip {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}

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

.top-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.btn-track-order {
    border: 1px solid #FF989B;
    color: var(--text-primary);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    background: #FFF9F9;
    transition: var(--transition-fast);
}

.btn-track-order:hover {
    background: var(--brand-red);
    color: #fff;
}

/* Main Header */
.site-header {
    background: var(--bg-surface);
    padding: 14px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-categories {
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 22px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-width: 185px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: -0.8px;
}

.header-search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid #FF8A8E;
    border-radius: var(--radius-pill);
    padding-left: 10px;
    background: #fff;
    overflow: hidden;
    height: 46px;
}

.camera-search-btn {
    background: none;
    border: none;
    font-size: 19px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.camera-search-btn:hover {
    background: #FFF2F2;
}

.header-search-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.btn-search {
    background: var(--brand-red);
    color: #fff;
    border: none;
    height: 100%;
    padding: 0 26px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-pill);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 13px;
}

.account-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--brand-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-google-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.cart-icon-wrap {
    position: relative;
    font-size: 18px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Compact image-search modal. The high z-index and cache-busted stylesheet
   prevent it from falling into the normal page flow on desktop or mobile. */
.camera-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
    background: rgba(21, 34, 51, 0.56);
    overscroll-behavior: contain;
}

.camera-modal-backdrop[hidden],
.camera-modal-box [hidden] {
    display: none !important;
}

.camera-modal-box {
    width: min(100%, 420px);
    max-width: 420px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(227, 233, 239, 0.95);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 56px rgba(15, 23, 42, 0.24);
}

.camera-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.35;
}

.camera-modal-header strong {
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
}

.camera-modal-header button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.btn-image-pick,
.btn-image-search-submit {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--brand-red);
    border-radius: 11px;
    background: #FFF7F7;
    color: var(--brand-red);
    text-align: center;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-image-pick:hover {
    background: #FFECEE;
}

.btn-image-search-submit {
    margin-top: 12px;
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: #fff;
}

.btn-image-search-submit:hover {
    background: var(--brand-red-dark);
}

.btn-image-search-submit[hidden] {
    display: none !important;
}

.image-search-preview {
    margin-top: 14px;
    text-align: center;
}

.image-search-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(240px, 38vh);
    object-fit: contain;
    margin: 0 auto 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #F8FAFC;
}

.btn-change-image {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

/* Home Layout */
.home-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    margin-top: 22px;
    align-items: start;
}

.home-main-column {
    min-width: 0;
    width: 100%;
}

/* Category Sidebar */
.category-sidebar {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 10px;
    box-shadow: var(--shadow-soft);
    align-self: start;
}

.category-list {
    list-style: none;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.category-link:hover {
    background: #FFF2F2;
    color: var(--brand-red);
}

.cat-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F4F6F9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.cat-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 330px;
    background: #FBF2EB;
    box-shadow: var(--shadow-soft);
    width: 100%;
}

.hero-slide {
    min-height: 330px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 40px 56px;
}

.hero-content {
    max-width: 470px;
}

.hero-badge {
    display: inline-block;
    background: var(--success-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.text-brand {
    display: block;
    color: var(--brand-red);
}

.hero-subtitle {
    color: #5C6B7A;
    font-size: 15px;
    margin-bottom: 22px;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    background: var(--brand-red);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
}

/* Hero carousel arrows and dots — never render as native default buttons */
.hero-slide {
    display: none;
}

.hero-slide.active {
    display: flex;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(21, 34, 51, 0.12);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.hero-nav:hover {
    background: var(--brand-red);
    color: #fff;
}

.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-nav[hidden],
.hero-dots[hidden] {
    display: none !important;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transform: translateX(-50%);
}

.hero-dots .dot {
    display: block;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(21, 34, 51, 0.32);
    cursor: pointer;
}

.hero-dots .dot.active {
    width: 20px;
    border-radius: 999px;
    background: var(--brand-red);
}

/* Products Filter Bar */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 26px 0 18px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.filter-pills {
    display: flex;
    gap: 10px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.filter-pill.active,
.filter-pill:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #F4F6F8;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.stock-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    color: #fff;
    z-index: 2;
}

.stock-ready { background: var(--success-green); }
.stock-preorder { background: var(--warning-orange); }

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.sticker-badge {
    position: absolute;
    top: 44px;
    left: 10px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 2px dashed rgba(255,255,255,0.85);
    z-index: 2;
    line-height: 1.1;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-red);
}

.price-compare,
.price-adv {
    font-size: 12.5px;
    color: var(--text-muted);
}

.product-stats {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-rating { color: #F59E0B; }
.star-rating strong { color: var(--text-primary); }

.product-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.seller-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-card-action {
    flex: 1;
    min-width: 0;
    text-align: center;
    background: var(--brand-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.btn-card-action:hover {
    background: var(--brand-red-dark);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP) — Matching Demo Layout with Paideal Branding
   ========================================================================== */
.product-page-container {
    margin-top: 20px;
    margin-bottom: 40px;
}

.product-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-breadcrumb .crumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
    align-items: start;
}

.product-gallery-card {
    min-width: 0;
    background: #fff;
    padding: 16px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.product-main-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #F8FAFC;
}

.product-main-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(21, 34, 51, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.product-thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-item {
    width: 66px;
    height: 66px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #F4F6F9;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.thumb-item.active {
    border-color: var(--brand-red);
}

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

.product-info-column,
.product-info-card,
.pdp-details-card {
    min-width: 0;
}

.product-info-card {
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.pdp-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.pdp-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.pill-rating { background: #FEF3C7; color: #D97706; }
.pill-sold { background: #F1F5F9; color: #334155; }
.pill-stock { background: #DCFCE7; color: var(--success-green); }

.pdp-price-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.price-tier-box {
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    background: #F8FAFC;
}

.price-tier-box.active {
    border-color: var(--brand-red);
    background: #FFF9F9;
}

.tier-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tier-main-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-red);
}

.tier-old-price {
    font-size: 15px;
    color: var(--text-muted);
}

.tier-qty-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.min-order-banner {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #047857;
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.variants-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
}

.variants-heading {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--text-primary);
    border-left: 3px solid var(--brand-red);
    padding-left: 8px;
    margin-bottom: 14px;
}

.variant-group {
    margin-bottom: 14px;
}

.variant-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.color-options-row,
.size-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch-pill,
.size-swatch-pill {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    transition: var(--transition-fast);
}

.color-swatch-pill.active,
.size-swatch-pill.active {
    border-color: var(--brand-red);
    background: #FFF2F2;
    color: var(--brand-red);
}

.qty-selector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #E2E8F0;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.qty-btn-plus {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red);
}

#pdpQtyInput {
    width: 54px;
    height: 34px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
}

.desktop-purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-pdp-cart {
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid var(--brand-red);
    background: #fff;
    color: var(--brand-red);
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
}

.btn-pdp-buy {
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
}

/* PDP Overview & Specification Tabs */
.pdp-details-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    margin-top: 26px;
    overflow: hidden;
}

.pdp-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #F8FAFC;
}

.pdp-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
}

.pdp-tab-btn.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
    background: #fff;
}

.pdp-tab-panel {
    padding: 24px;
}

.overview-lead-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.65;
}

.overview-body-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 20px;
}

.overview-images-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}

.overview-images-stack img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.spec-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}

.spec-table th,
.spec-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
}

.spec-table th {
    width: 32%;
    background: #F8FAFC;
    font-weight: 700;
    color: var(--text-muted);
}

/* Google Login Button */
.btn-google-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 11px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-fast);
}

.btn-google-oauth:hover {
    border-color: var(--brand-red);
    background: #FFF9F9;
}

/* ==========================================================================
   STANDARD PAIDEAL FOOTER
   ========================================================================== */
.site-footer {
    background: #152233;
    color: #E2E8F0;
    margin-top: 48px;
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 28px;
    padding-bottom: 32px;
}

.footer-about {
    font-size: 13.5px;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.footer-links a {
    color: #CBD5E1;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-red);
}

.footer-contact-item {
    font-size: 13.5px;
    color: #CBD5E1;
    margin-bottom: 8px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon-link:hover {
    background: var(--brand-red);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
}

.mobile-only {
    display: none;
}

/* Tablet Breakpoint */
@media (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-detail-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 18px;
    }
    .product-gallery-card,
    .product-info-card {
        padding: 16px;
    }
    .pdp-price-boxes {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   MOBILE VIEW BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex;
    }

    body.has-home-bottom-nav {
        padding-bottom: 84px;
    }

    body.has-product-sticky-bar {
        padding-bottom: 118px;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-menu-btn {
        background: none;
        border: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--brand-red);
        border-radius: 3px;
    }

    .mobile-profile-btn {
        font-size: 20px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1.5px solid var(--text-primary);
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .header-search-form {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
    }

    .home-layout,
    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 300;
        border-radius: 0;
        overflow-y: auto;
        transition: left 220ms ease;
    }

    .category-sidebar.open {
        left: 0;
    }

    .drawer-header {
        justify-content: space-between;
        align-items: center;
        padding: 12px 10px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 8px;
    }

    .hero-carousel {
        min-height: 220px;
        padding: 0;
    }

    .hero-slide {
        min-height: 220px;
        padding: 22px 28px;
    }

    .hero-title {
        font-size: clamp(21px, 6vw, 27px);
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .btn-hero-cta {
        padding: 10px 18px;
        font-size: 13px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 38px;
        font-size: 13.5px;
    }

    .price-current {
        font-size: 17px;
    }

    .product-actions.has-badge {
        flex-direction: column;
        align-items: stretch;
    }

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

    /* Home Page Sticky Bottom Bar */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 10px;
        left: 12px;
        right: 12px;
        height: 64px;
        background: linear-gradient(180deg, #2B3036 0%, #121518 100%);
        border-radius: 36px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 250;
        box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
        padding: 0 8px;
    }

    .mobile-bottom-nav .nav-item {
        color: #E3E9EF;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        gap: 2px;
    }

    .mobile-bottom-nav .nav-item-home {
        position: relative;
        top: -12px;
    }

    .home-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #0D0F12;
        border: 2px solid var(--brand-red);
        box-shadow: 0 0 14px rgba(255, 48, 55, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Product Page Dedicated Sticky Purchase Bar (Matches Ref Image with Paideal Red) */
    .mobile-product-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        z-index: 260;
        flex-direction: column;
        gap: 8px;
    }

    .sticky-bar-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    .sticky-qty-text {
        color: var(--text-muted);
    }

    .sticky-price-text strong {
        color: var(--brand-red);
        font-size: 17px;
        font-weight: 800;
    }

    .sticky-price-text del {
        color: var(--text-muted);
        font-size: 12px;
        margin-left: 4px;
    }

    .sticky-bar-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .btn-sticky-cart {
        padding: 11px 12px;
        border-radius: 10px;
        border: 1.5px solid var(--brand-red);
        background: #fff;
        color: var(--brand-red);
        font-weight: 800;
        font-size: 13.5px;
        cursor: pointer;
    }

    .btn-sticky-buy {
        padding: 11px 12px;
        border-radius: 10px;
        border: none;
        background: var(--brand-red);
        color: #fff;
        font-weight: 800;
        font-size: 13.5px;
        cursor: pointer;
    }

    /* Product detail mobile/tablet polish */
    .product-page-container {
        margin-top: 12px;
        margin-bottom: 26px;
    }

    .product-breadcrumb {
        gap: 4px;
        margin-bottom: 10px;
        font-size: 11.5px;
        line-height: 1.5;
    }

    .product-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .product-gallery-card {
        padding: 10px;
        border-radius: 14px;
    }

    .product-main-stage {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
    }

    .product-info-card {
        padding: 14px;
        border-radius: 14px;
    }

    .pdp-title {
        font-size: clamp(18px, 5vw, 21px);
        line-height: 1.35;
        overflow-wrap: anywhere;
        margin-bottom: 10px;
    }

    .pdp-meta-pills {
        gap: 6px;
        margin-bottom: 12px;
    }

    .meta-pill,
    .seller-badge {
        font-size: 11px;
        padding: 5px 8px;
    }

    .pdp-price-boxes {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
        gap: 8px;
    }

    .price-tier-box {
        min-width: 0;
        padding: 10px 8px;
        border-radius: 11px;
    }

    .tier-main-price {
        font-size: 20px;
        overflow-wrap: anywhere;
    }

    .tier-old-price {
        font-size: 12px;
    }

    .tier-qty-label {
        font-size: 11px;
    }

    .min-order-banner {
        padding: 9px 10px;
        font-size: 12px;
    }

    .variants-card {
        padding: 12px;
        margin-bottom: 12px;
    }

    .variants-heading {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .qty-selector-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .qty-stepper {
        flex-shrink: 0;
    }

    .pdp-details-card {
        margin-top: 16px;
        border-radius: 14px;
    }

    .pdp-tabs-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pdp-tab-btn {
        min-width: 0;
        padding: 12px 7px;
        font-size: 12.5px;
        line-height: 1.3;
    }

    .pdp-tab-panel {
        padding: 14px;
    }

    .overview-lead-text {
        font-size: 14px;
    }

    .overview-body-text {
        font-size: 13.5px;
        overflow-wrap: anywhere;
    }

    .spec-table th,
    .spec-table td {
        padding: 9px 8px;
        font-size: 12px;
        vertical-align: top;
    }

    .spec-table th {
        width: 38%;
    }

    .related-products,
    .product-page-container .product-grid {
        min-width: 0;
    }

    .hero-nav {
        width: 32px;
        height: 32px;
        font-size: 23px;
    }

    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }

    .camera-modal-box {
        width: min(100%, 380px);
        padding: 16px;
        border-radius: 14px;
    }

    .btn-image-pick,
    .btn-image-search-submit {
        min-height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-text {
        font-size: 25px;
    }

    .product-info-card {
        padding: 12px;
    }

    .price-tier-box {
        padding: 9px 6px;
    }

    .tier-price-row {
        gap: 4px;
        flex-wrap: wrap;
    }

    .sticky-bar-buttons {
        gap: 7px;
    }
}

/* PAICART responsive polish — brand red #FF3333 */
:root { --brand-red: #FF3333; }
.container { width: min(100% - 32px, 1560px); }
.product-card { min-width:0; }
.product-body { min-width:0; display:flex; flex-direction:column; flex:1; }
.product-title { line-height:1.35; overflow-wrap:anywhere; }
.product-actions { display:flex; gap:8px; align-items:stretch; flex-wrap:wrap; margin-top:auto; }
.product-actions > a, .product-actions > button { min-height:38px; display:inline-flex; align-items:center; justify-content:center; text-align:center; line-height:1.2; padding:9px 12px; border-radius:999px; font-size:12px; white-space:normal; }
.product-actions .verified-badge, .verified-badge { min-height:28px; display:inline-flex; align-items:center; justify-content:center; padding:5px 10px; line-height:1.15; border-radius:999px; font-size:11px; font-weight:700; }

/* Glass navigation on home page only */
@media (max-width: 767px) {
  .container { width:100%; max-width:none; padding-left:16px; padding-right:16px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .product-card { padding:9px; border-radius:16px; }
  .product-media { border-radius:12px; margin-bottom:9px; }
  .product-title { font-size:13px; min-height:34px; }
  .product-actions { gap:6px; }
  .product-actions > a, .product-actions > button { flex:1 1 100%; width:100%; min-height:36px; padding:8px 9px; font-size:11px; }
  .product-actions .verified-badge, .verified-badge { width:100%; min-height:27px; font-size:11px; }
  .filter-row, .product-filters { display:flex; gap:8px; flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
  .filter-pill { flex:0 0 auto; min-height:36px; padding:8px 14px; font-size:12px; }
  .mobile-bottom-nav {
    left:10px; right:10px; bottom:calc(8px + env(safe-area-inset-bottom));
    height:68px; padding:5px 8px; border-radius:26px;
    background:rgba(20, 30, 45, .76);
    border:1px solid rgba(255,255,255,.20);
    -webkit-backdrop-filter:blur(22px) saturate(160%);
    backdrop-filter:blur(22px) saturate(160%);
    box-shadow:0 10px 34px rgba(11,22,39,.28), inset 0 1px 0 rgba(255,255,255,.18);
  }
  .mobile-bottom-nav .nav-item { min-width:0; flex:1; gap:4px; font-size:10px; line-height:1.05; text-align:center; }
  .mobile-bottom-nav .nav-icon { font-size:21px; line-height:1; }
  .mobile-bottom-nav .nav-item img { width:25px!important; height:25px!important; }
  .mobile-bottom-nav .nav-item-home { top:-10px; }
  .home-fab { width:54px; height:54px; border-color:#FF3333; box-shadow:0 0 0 4px rgba(255,51,51,.12),0 0 20px rgba(255,51,51,.55); }
  .mobile-bottom-nav .nav-item-home .nav-label { margin-top:0; }
  .has-home-bottom-nav { padding-bottom:100px; }
  .account-dashboard .account-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
  .account-dashboard .account-summary-card { padding:13px!important; min-width:0; }
  .account-dashboard .account-summary-card .summary-value { font-size:clamp(16px,4.2vw,22px)!important; overflow-wrap:anywhere; }
  .account-dashboard .account-header { align-items:flex-start!important; gap:12px; }
  .account-dashboard .account-header h1 { font-size:20px!important; line-height:1.25; }
  .account-dashboard .account-logout { min-height:36px; padding:8px 12px!important; font-size:12px; white-space:nowrap; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .container { width:calc(100% - 36px); }
}
@media (min-width: 1600px) { .container { max-width:1600px; } }

/* Login screen: Alibaba-inspired split layout, no storefront footer */
body.auth-page .top-strip, body.auth-page .site-header, body.auth-page header,
body.auth-page footer, body.auth-page .mobile-bottom-nav { display:none!important; }
.auth-shell { min-height:100svh; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr); align-items:center; gap:clamp(28px,5vw,90px); max-width:1450px; margin:0 auto; padding:28px clamp(18px,4vw,56px); }
.auth-brandbar { position:absolute; top:18px; left:24px; z-index:2; color:#FF3333; font-size:25px; font-weight:850; letter-spacing:-.7px; }
.auth-promo { position:relative; overflow:hidden; min-height:560px; border-radius:18px; background:#f4eee9 center/cover no-repeat; display:flex; align-items:flex-end; padding:clamp(20px,3vw,42px); color:#fff; }
.auth-promo:after { content:""; position:absolute; inset:35% 0 0; background:linear-gradient(transparent,rgba(16,24,38,.7)); }
.auth-promo-copy { position:relative; z-index:1; max-width:560px; }
.auth-promo-copy h2 { font-size:clamp(27px,3vw,42px); line-height:1.08; margin:0 0 12px; }
.auth-panel { width:100%; max-width:440px; justify-self:center; }
.auth-panel h1 { font-size:28px; text-align:center; margin:0 0 8px; }
.auth-panel .auth-subtitle { text-align:center; color:#697386; margin-bottom:24px; font-size:14px; }
.auth-panel input { width:100%; min-height:46px; border:1px solid #d8dee8; border-radius:9px; padding:11px 13px; font:inherit; }
.auth-panel label { display:block; font-size:13px; font-weight:650; margin-bottom:14px; }
.auth-panel label input { margin-top:6px; }
.auth-panel button, .auth-panel .btn-google-oauth { min-height:46px; width:100%; border-radius:9px; display:flex; align-items:center; justify-content:center; gap:12px; font-weight:650; }
.auth-panel .btn-google-oauth { border:1px solid #aeb4bd; background:#fff; color:#172033; text-decoration:none; }
.auth-panel .btn-card-action { background:#FF3333; color:#fff; border:0; }
.auth-or { display:flex; align-items:center; gap:12px; color:#8992a0; font-size:12px; margin:14px 0; }
.auth-or:before,.auth-or:after { content:""; height:1px; background:#e0e4ea; flex:1; }
.auth-footer-note { text-align:center; font-size:13px; margin-top:20px; }
@media(max-width:800px) { .auth-shell { display:block; min-height:100svh; padding:78px 18px 28px; } .auth-promo { display:none; } .auth-panel { max-width:460px; margin:0 auto; } .auth-brandbar { top:20px; left:20px; font-size:23px; } }
