/*
 * SHOPAREX Custom Commerce - Production Theme Stylesheet
 * Complete Mobile-First Responsive Redesign
 * Primary Typography: Hind Siliguri (Bengali) & Inter (English)
 */

:root {
    --spx-primary: #e11d48;
    --spx-primary-hover: #be123c;
    --spx-navy: #111827;
    --spx-navy-light: #1e293b;
    --spx-dark: #0f172a;
    --spx-muted: #64748b;
    --spx-border: #e2e8f0;
    --spx-border-light: #f1f5f9;
    --spx-bg-light: #f8fafc;
    --spx-bg-card: #ffffff;
    --spx-radius: 12px;
    --spx-radius-sm: 8px;
    --spx-radius-pill: 9999px;
    --spx-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    --spx-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --spx-font-bengali: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spx-font-english: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body.shoparex-landing-body {
    font-family: var(--spx-font-bengali);
    background-color: #f8fafc;
    color: var(--spx-navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
button, input, select, textarea, optgroup {
    font-family: var(--spx-font-bengali);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* Symmetrical, centered 1480px desktop container */
.shoparex-container {
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   1. HEADER – NATURAL DOCUMENT FLOW (NO STICKY / NO FIXED)
   ========================================================================== */
.shoparex-site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--spx-border);
    position: relative; /* Normal document flow - scrolls away naturally */
    top: auto;
    z-index: 10;
    box-shadow: var(--spx-shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 16px;
}

.site-brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand-text {
    font-family: var(--spx-font-english);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--spx-dark);
}

.custom-logo-img {
    max-height: 42px;
    width: auto;
}

.header-badges-col {
    display: flex;
    align-items: center;
    gap: 22px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.badge-icon {
    display: inline-flex;
    color: #0f172a;
}

/* ==========================================================================
   2. HERO VIDEO SECTION (FULL-WIDTH SINGLE VIDEO)
   ========================================================================== */
.shoparex-hero-section {
    padding: 24px 0 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--spx-border-light);
}

.hero-fullwidth-video-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.hero-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 12px 36px -6px rgba(15, 23, 42, 0.16);
}

.hero-video-iframe,
.hero-native-video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.hero-video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.video-placeholder-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
}

.video-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.4);
}

.play-pulse-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e11d48;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(225, 29, 72, 0.35);
    transition: transform 0.25s ease;
}

.play-pulse-btn:hover {
    transform: scale(1.08);
}

.placeholder-caption {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* ==========================================================================
   3. PRINTED COMBOS SECTION (2-PIECE & 3-PIECE ONLY)
   ========================================================================== */
.shoparex-combos-section {
    padding: 40px 0;
    background: #f8fafc;
}

.combo-category-block {
    width: 100%;
    margin-bottom: 48px;
}

.combo-category-block:last-child {
    margin-bottom: 0;
}

.combo-header-row {
    margin-bottom: 22px;
}

.combo-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.thunder-icon {
    font-size: 24px;
    color: #f59e0b;
}

.combo-main-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}

.combo-badge-pill {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}

/* Desktop Grid: 3 columns evenly distributing 6 products across 2 rows */
.combo-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Balanced, perfectly proportioned product card */
.combo-card-item {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.combo-card-item:hover {
    border-color: #f43f5e;
    box-shadow: 0 16px 36px -4px rgba(225, 29, 72, 0.18), 0 6px 14px -2px rgba(15, 23, 42, 0.06);
    transform: translateY(-4px);
}

.combo-card-item.is-selected {
    border-color: #e11d48;
    box-shadow: 0 0 0 2px #e11d48, 0 16px 36px -4px rgba(225, 29, 72, 0.22);
}

/* Product Image Wrapper: 3:4 aspect ratio on desktop, flex-centered */
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.product-image-wrapper img,
.combo-product-img {
    width: 100%;
    height: 100%;
    object-fit: var(--img-fit, contain);
    object-position: var(--img-pos, center center);
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.combo-card-item:hover .combo-product-img {
    transform: scale(1.04);
}

/* Card Content: Title, Price, Order Button */
.combo-card-content {
    padding: 16px 18px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 14px;
    box-sizing: border-box;
}

.combo-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.combo-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.combo-card-item:hover .combo-card-title {
    color: #e11d48;
}

.combo-card-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
}

.regular-price-del del {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
    text-decoration: line-through;
}

.sale-price-bold {
    color: #e11d48;
    font-family: var(--spx-font-english), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.3px;
    line-height: 1;
}

/* Professional Order Button */
.select-combo-btn {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e11d48;
    color: #e11d48;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 44px;
}

.select-combo-btn:hover,
.combo-card-item.is-selected .select-combo-btn {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   4. SOLID COMBO CUSTOMIZER SECTION
   ========================================================================== */
.shoparex-solid-builder-section {
    padding: 36px 0;
    background: #ffffff;
    border-top: 1px solid var(--spx-border);
    border-bottom: 1px solid var(--spx-border);
}

.solid-header-row {
    margin-bottom: 24px;
}

.solid-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.solid-icon-tag {
    font-size: 24px;
}

.solid-main-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--spx-dark);
}

.solid-discount-badge {
    background: var(--spx-primary);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: var(--spx-radius-pill);
    font-size: 13px;
    font-weight: 700;
}

.solid-sub-text {
    font-size: 15px;
    color: #64748b;
}

.solid-builder-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
}

/* Left: Swatches Row & Pricing Tier Cards */
.solid-preview-col {
    background: #f8fafc;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius);
    padding: 20px;
}

.swatches-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.swatches-section-title h4 {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.swatches-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* 8 Swatches in 2 balanced rows of 4 */
.solid-hoodies-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.solid-hoodie-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
}

.solid-hoodie-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.solid-hoodie-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--spx-radius-sm);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--spx-border);
    background: #ffffff;
}

.solid-hoodie-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.solid-color-fallback {
    width: 100%;
    height: 100%;
}

.solid-color-label-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.solid-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}

.solid-color-name {
    font-family: var(--spx-font-english);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.tier-section-title {
    margin-top: 18px;
    margin-bottom: 10px;
}

.tier-section-title h4 {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* 5 Tier cards (1, 2, 3 [Best Deal], 4, 5 pieces) */
.solid-pricing-tier-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.tier-card-item {
    background: #ffffff;
    border: 1.5px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tier-card-item:hover,
.tier-card-item.is-active {
    border-color: var(--spx-primary);
    background: #fff1f2;
}

.tier-card-item.tier-recommended {
    border-color: #f43f5e;
    background: #fff5f6;
}

.tier-card-item.tier-recommended::after {
    content: "বেস্ট ডিল";
    position: absolute;
    top: -9px;
    right: 4px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
}

.tier-qty-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.tier-sale-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--spx-primary);
    font-family: var(--spx-font-english);
    margin: 2px 0;
}

.tier-regular-price {
    font-size: 11px;
    color: #94a3b8;
}

/* Right: Builder Panel */
.builder-panel-card {
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-radius: var(--spx-radius);
    padding: 22px;
}

.builder-panel-title {
    font-size: 22px;
    font-weight: 800;
    color: #881337;
    margin-bottom: 16px;
    text-align: center;
}

.builder-pills-wrap {
    margin-bottom: 18px;
}

.pills-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.piece-selector-pills {
    display: flex;
    gap: 8px;
}

.piece-pill {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--spx-border);
    padding: 10px 6px;
    border-radius: var(--spx-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 44px;
}

.piece-pill:hover {
    border-color: var(--spx-primary);
}

.piece-pill.is-active {
    background: var(--spx-primary);
    color: #ffffff;
    border-color: var(--spx-primary);
}

.pieces-instruction {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 12px;
}

.pieces-rows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.piece-custom-row {
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.piece-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--spx-border-light);
}

.piece-row-badge {
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--spx-radius-pill);
}

.piece-row-summary-text {
    font-size: 13px;
    color: #334155;
}

.selected-color-label {
    color: var(--spx-primary);
}

.piece-controls-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: start;
}

.control-sublabel {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

/* Row Color Swatches Grid (8 Colors in 2 Rows) */
.row-swatches-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.row-color-swatch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #f8fafc;
    border: 1.5px solid var(--spx-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--spx-font-english);
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    min-height: 34px;
}

.row-color-swatch-btn:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.row-color-swatch-btn.is-selected {
    border-color: var(--spx-primary);
    background: #fff1f2;
    box-shadow: 0 0 0 1px var(--spx-primary);
}

.swatch-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.swatch-name-text {
    white-space: nowrap;
}

.piece-size-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid var(--spx-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    min-height: 38px;
}

.piece-size-select:focus {
    border-color: var(--spx-primary);
}

.remove-piece-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.remove-piece-btn:hover {
    color: var(--spx-primary);
}

.add-piece-btn {
    width: 100%;
    background: #ffffff;
    border: 1.5px dashed var(--spx-primary);
    color: var(--spx-primary);
    padding: 12px;
    border-radius: var(--spx-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s;
    min-height: 44px;
}

.add-piece-btn:hover {
    background: #fff1f2;
}

/* Add to Cart CTA Row */
.builder-cta-row {
    margin-top: 18px;
}

.solid-add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    font-family: inherit;
}

.solid-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.solid-add-to-cart-btn .btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.solid-add-to-cart-btn .btn-icon {
    font-size: 20px;
}

.solid-add-to-cart-btn .btn-text {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.solid-add-to-cart-btn .btn-price-tag {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    font-family: var(--spx-font-english);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. REDESIGNED VISUAL CART & CHECKOUT
   ========================================================================== */
.shoparex-checkout-section {
    padding: 40px 0 60px;
    background: #f1f5f9;
}

.checkout-main-header {
    margin-bottom: 24px;
}

.checkout-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--spx-dark);
    margin-bottom: 4px;
}

.checkout-subtitle {
    font-size: 15px;
    color: #64748b;
}

.checkout-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.checkout-card-box {
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius);
    padding: 22px;
    box-shadow: var(--spx-shadow);
    margin-bottom: 20px;
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--spx-border-light);
}

.header-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff1f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--spx-dark);
    flex: 1;
}

.cart-items-counter {
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--spx-radius-pill);
}

/* Visual Cart Product Rows */
.checkout-cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-product-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    padding: 12px;
}

.cart-product-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--spx-radius-sm);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--spx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-thumb-solid-icon,
.cart-thumb-placeholder {
    font-size: 28px;
}

.cart-product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.cart-item-unit-price {
    font-size: 13px;
    color: #64748b;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

/* Quantity Spinner */
.cart-qty-spinner {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: 6px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: #e2e8f0;
}

.cart-qty-number {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--spx-font-english);
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.cart-item-remove-btn:hover {
    background: #fee2e2;
}

.cart-product-line-total {
    text-align: right;
}

.line-total-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--spx-primary);
    font-family: var(--spx-font-english);
}

.cart-solid-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

.solid-piece-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    color: #334155;
}

.cart-empty-state {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
}

/* Customer Fields Form */
.form-fields-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.shoparex-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
    min-height: 48px; /* Touch target */
}

.shoparex-input:focus {
    border-color: var(--spx-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

/* Delivery Radio Cards */
.delivery-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-radio-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    min-height: 48px;
}

.delivery-radio-card input[type="radio"] {
    display: none;
}

.radio-custom-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.delivery-radio-card.is-selected {
    border-color: var(--spx-primary);
    background: #fff1f2;
}

.delivery-radio-card.is-selected .radio-custom-indicator {
    border-color: var(--spx-primary);
}

.delivery-radio-card.is-selected .radio-custom-indicator::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--spx-primary);
}

.zone-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.zone-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.zone-charge {
    font-size: 17px;
    font-weight: 800;
    color: var(--spx-primary);
    font-family: var(--spx-font-english);
}

/* Totals Summary */
.summary-totals-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.summary-line-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #475569;
}

.summary-line-row.total-payable-row {
    font-size: 18px;
    font-weight: 800;
    color: var(--spx-dark);
    padding-top: 12px;
    border-top: 2px solid var(--spx-border);
}

.total-payable-row .sum-value {
    color: var(--spx-primary);
    font-size: 24px;
    font-family: var(--spx-font-english);
}

.checkout-cod-notice {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--spx-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.submit-order-btn {
    width: 100%;
    background: var(--spx-primary);
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: var(--spx-radius-sm);
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    min-height: 52px;
}

.submit-order-btn:hover {
    background: var(--spx-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spx-spin 0.8s linear infinite;
}

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

.checkout-alert-banner {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--spx-radius-sm);
    font-size: 14px;
    font-weight: 700;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* ==========================================================================
   6. GALLERY & FEATURES & FAQ
   ========================================================================== */
.shoparex-gallery-section {
    padding: 36px 0;
}

.section-title-wrap {
    margin-bottom: 24px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--spx-dark);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 15px;
    color: #64748b;
}

.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.features-grid-wrapper {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--spx-border-light);
}

.slider-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease-out;
}

.slider-slide-item {
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
}

.slide-card {
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--spx-shadow-sm);
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--spx-border);
    box-shadow: var(--spx-shadow);
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-nav-btn:hover {
    background: var(--spx-primary);
    color: #ffffff;
}

.slider-prev { left: -16px; }
.slider-next { right: -16px; }

/* Features Section */
.shoparex-features-section {
    padding: 24px 0 36px;
}

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

.feature-box {
    background: #ffffff;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--spx-shadow-sm);
}

.feature-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff1f2;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--spx-dark);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* FAQ Section */
.shoparex-faq-section {
    padding: 32px 0;
    background: #ffffff;
    border-top: 1px solid var(--spx-border);
}

.faq-accordion-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius);
    overflow: hidden;
    background: #ffffff;
}

.faq-accordion-item.is-open {
    border-color: var(--spx-primary);
}

.faq-question-btn {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--spx-dark);
    cursor: pointer;
}

.faq-toggle-icon {
    color: #94a3b8;
    transition: transform 0.2s;
}

.faq-accordion-item.is-open .faq-toggle-icon {
    transform: rotate(180deg);
    color: var(--spx-primary);
}

.faq-answer-panel {
    border-top: 1px solid var(--spx-border-light);
    padding: 16px 20px;
    background: #f8fafc;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

/* Modal Overlay */
.order-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.order-success-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: #065f46;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.success-order-details {
    background: #f8fafc;
    border: 1px solid var(--spx-border);
    border-radius: var(--spx-radius-sm);
    padding: 14px;
    font-size: 14px;
    text-align: left;
    margin-bottom: 20px;
}

.success-close-btn {
    width: 100%;
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--spx-radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

/* Footer */
.shoparex-site-footer {
    background: #ffffff;
    border-top: 1px solid var(--spx-border);
    padding: 24px 0;
    font-size: 14px;
    color: #64748b;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   7. RIGOROUS MOBILE-FIRST BREAKPOINTS & RESPONSIVENESS
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1023px) */
@media (max-width: 1023px) {
    .hero-fullwidth-video-wrapper {
        max-width: 100%;
    }

    .combo-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .solid-builder-grid {
        grid-template-columns: 1fr;
    }

    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }

    .slider-slide-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Standard Mobile & Small Devices (<= 767px) */
@media (max-width: 767px) {
    .shoparex-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Header: Compact single line badges, scrolls naturally */
    .shoparex-site-header {
        position: relative !important;
        top: auto !important;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
        text-align: center;
    }

    .brand-text {
        font-size: 22px;
    }

    .header-badges-col {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        gap: 6px;
        padding-top: 6px;
        border-top: 1px solid #f1f5f9;
    }

    .trust-badge-item {
        font-size: 11px;
        font-weight: 600;
        gap: 4px;
        white-space: nowrap;
        color: #475569;
    }

    .badge-icon svg {
        width: 13px;
        height: 13px;
    }

    /* Hero Section on Mobile: Full-width responsive video */
    .hero-fullwidth-video-wrapper {
        width: 100%;
    }

    .hero-video-frame {
        border-radius: 12px;
    }

    .play-pulse-btn {
        width: 54px;
        height: 54px;
    }

    .play-pulse-btn svg {
        width: 24px;
        height: 24px;
    }

    /* Product Cards on Mobile: EXACTLY TWO CARDS PER ROW */
    .combo-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .combo-card-item {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    }

    /* Product Image Wrapper: 4:5 aspect ratio on mobile as required */
    .product-image-wrapper {
        aspect-ratio: 4 / 5;
        height: auto;
    }

    .product-image-wrapper img,
    .combo-product-img {
        object-position: var(--img-mob-pos, var(--img-pos, center center));
    }

    .combo-card-content {
        padding: 8px 8px 12px 8px;
        gap: 8px;
    }

    .combo-card-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .sale-price-bold {
        font-size: 16px;
    }

    .regular-price-del del {
        font-size: 12px;
    }

    .select-combo-btn {
        font-size: 12px;
        padding: 8px 6px;
        min-height: 38px;
        border-radius: 8px;
        gap: 5px;
    }

    .select-combo-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Solid Customizer on Mobile */
    .solid-hoodies-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .solid-pricing-tier-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .piece-custom-row {
        padding: 10px;
    }

    .piece-controls-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .row-swatches-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .row-color-swatch-btn {
        padding: 5px 4px;
        font-size: 11px;
    }

    .solid-add-to-cart-btn {
        padding: 12px 14px;
    }

    .solid-add-to-cart-btn .btn-text {
        font-size: 14px;
    }

    .solid-add-to-cart-btn .btn-price-tag {
        font-size: 14px;
        padding: 3px 8px;
    }

    /* Visual Cart & Checkout on Mobile */
    .cart-product-row {
        grid-template-columns: 56px 1fr;
        gap: 10px;
    }

    .cart-product-line-total {
        grid-column: 1 / -1;
        text-align: right;
        padding-top: 6px;
        border-top: 1px dashed var(--spx-border);
    }

    .checkout-card-box {
        padding: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .slider-slide-item {
        flex: 0 0 85%;
        max-width: 85%;
    }
}

/* Small Android Phones (<= 375px) */
@media (max-width: 375px) {
    .header-badges-col {
        gap: 4px;
    }

    .trust-badge-item {
        font-size: 10px;
    }

    .row-swatches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solid-pricing-tier-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-text {
        font-size: 20px;
    }
}
