/* ============================================
   SHOP PAGE - AARION MOVING SUPPLIES
   ============================================ */

/* ---- HERO ---- */
.shop-hero {
    background: url('/images/shop/header-desktop.png') center center / cover no-repeat;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .shop-hero::before {
    background: rgba(0, 0, 0, 0.75);
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -2%) scale(1.05); }
}

.shop-hero .container {
    position: relative;
    z-index: 1;
}

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(237,23,10,0.15);
    border: 1px solid rgba(237,23,10,0.3);
    color: var(--color-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeSlideDown 0.6s ease-out;
}

.shop-hero h1 {
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    animation: fadeSlideDown 0.8s ease-out 0.1s both;
}

.shop-hero h1 span {
    color: var(--color-secondary);
}

.shop-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.6;
    animation: fadeSlideDown 0.8s ease-out 0.2s both;
}

.shop-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeSlideDown 0.8s ease-out 0.3s both;
}

.shop-hero-stat {
    text-align: center;
}

.shop-hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.shop-hero-stat small {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- FILTERS ---- */
.shop-filters {
    background: var(--bg-primary, #fff);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    transition: box-shadow 0.3s, background 0.3s;
}

.shop-filters.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 10px 22px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-primary, #fff);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.filter-btn.active {
    border-color: var(--color-secondary);
    color: #fff;
}

.filter-btn.active::before {
    transform: scaleX(1);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(237,23,10,0.1);
    color: var(--color-secondary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 6px;
}

.filter-btn.active .filter-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ---- PRODUCTS SECTION ---- */
.shop-section {
    padding: 60px 0 100px;
    background: var(--bg-primary, #fff);
    transition: background 0.3s;
}

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
}

.products-count {
    font-size: 14px;
    color: var(--text-muted);
}

.products-count strong {
    color: var(--color-secondary);
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(237,23,10,0.05);
}

/* ---- PRODUCT GRID ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 16px;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    max-height: 160px;
}

.products-grid.list-view .product-image {
    width: 160px;
    min-width: 160px;
    aspect-ratio: auto;
    height: 100%;
}

.products-grid.list-view .product-info {
    padding: 20px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.products-grid.list-view .product-desc {
    display: none;
}

.products-grid.list-view .product-bottom {
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* ---- PRODUCT CARD ---- */
.product-card {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateY(0);
}

.product-card.animate-in {
    animation: cardReveal 0.5s ease-out both;
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card.hidden {
    display: none;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(237,23,10,0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-section-surface, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.03) 100%);
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-placeholder {
    width: 80px;
    height: 80px;
    background: var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    color: #fff;
}

.product-badge.best { background: var(--color-secondary); }
.product-badge.popular { background: #FF9800; }
.product-badge.new { background: #4CAF50; }

.product-info {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #000);
    margin-bottom: 8px;
    line-height: 1.35;
    transition: color 0.2s;
}

.product-card:hover .product-name {
    color: var(--color-secondary);
}

.product-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.product-bottom {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 10px;
}

.qty-add-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-add-group .btn-add-cart {
    flex: 1;
    min-width: 0;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary, #000);
    line-height: 1;
}

.product-price .dollar {
    font-size: 16px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 1px;
}

.product-price .cents {
    font-size: 14px;
    font-weight: 600;
    vertical-align: super;
}

.product-price .unit {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-add-cart:hover {
    background: #c41208;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(237,23,10,0.35);
}

.btn-add-cart.added {
    background: #4CAF50;
}

.btn-add-cart svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---- QTY SELECTOR ON CARDS ---- */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-sel-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary, #000);
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.qty-sel-btn:hover {
    background: var(--color-secondary);
    color: #fff;
}

.qty-sel-val {
    width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #000);
    user-select: none;
    line-height: 30px;
}

/* ---- KITS SECTION ---- */
.kits-section {
    padding: 100px 0;
    background: var(--color-section-surface, #fafafa);
    position: relative;
    overflow: hidden;
}

.kits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-secondary));
}

.kits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.kits-header {
    text-align: center;
    margin-bottom: 56px;
}

.kits-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.kits-header h2 span { color: var(--color-secondary); }

.kits-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.kit-card {
    background: var(--bg-card, #fff);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all 0.35s ease;
    position: relative;
}

.kit-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.kit-card.recommended {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 1px var(--color-secondary);
}

.kit-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-secondary);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.kit-content {
    padding: 32px 24px;
    text-align: center;
}

.kit-card.recommended .kit-content {
    padding-top: 52px;
}

.kit-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.kit-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary, #000);
}

.kit-ideal {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.kit-price-tag {
    margin-bottom: 28px;
}

.kit-price-tag .amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.kit-price-tag .currency {
    font-size: 20px;
    font-weight: 700;
    vertical-align: super;
}

.kit-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.kit-includes li {
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.kit-includes li .dot {
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

.kit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--text-primary, #000);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kit-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.02);
}

/* ---- CTA BANNER ---- */
.shop-cta {
    background: linear-gradient(135deg, #000 0%, #111 50%, #0a0a0a 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-cta::before {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(237,23,10,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.shop-cta .container { position: relative; z-index: 1; }

.shop-cta h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.shop-cta p {
    color: rgba(255,255,255,0.55);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    background: #c41208;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(237,23,10,0.35);
    color: #fff;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

/* ---- NAV CART BUTTON ---- */
.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.06);
    border: none;
    padding: 10px;
    margin-left: 16px;
    cursor: pointer;
    color: #000;
    transition: all 0.25s ease;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.nav-cart-btn:hover {
    color: var(--color-secondary);
    background: rgba(237,23,10,0.1);
}

.nav-cart-btn svg {
    stroke: currentColor;
    width: 20px;
    height: 20px;
}

.nav-cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: var(--font-primary);
}

.nav-cart-count.show {
    transform: scale(1);
}

.nav-cart-count.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Desktop nav spacing - better integration of cart button */
@media (min-width: 769px) {
    .header-nav .container {
        gap: 8px;
    }
    .desktop-nav-links li {
        margin-left: 18px;
    }
    .language-switcher {
        margin-left: 4px;
        flex-shrink: 0;
    }
    .contact-btn {
        flex-shrink: 0;
        margin-left: 4px;
    }
    .nav-cart-btn {
        margin-left: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .desktop-nav-links li {
        margin-left: 12px;
    }
    .desktop-nav-links a {
        font-size: 14px;
    }
    .header-nav {
        padding: 0 25px;
    }
    .language-switcher .lang-link {
        padding: 4px 6px;
        font-size: 12px;
    }
    .language-switcher .lang-link img {
        width: 18px;
        height: 14px;
    }
    .nav-cart-btn {
        width: 36px;
        height: 36px;
        margin-left: 6px;
    }
    .nav-cart-btn svg {
        width: 18px;
        height: 18px;
    }
    .header-nav .btn {
        padding: 7px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-cart-btn {
        margin-left: 8px;
        width: 38px;
        height: 38px;
        padding: 8px;
    }
}

/* ---- CART FLOATING BUTTON ---- */
.cart-fab {
    display: none;
}

.cart-fab svg { width: 26px; height: 26px; }

.cart-fab-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-fab-count.show {
    transform: scale(1);
}

/* ---- CART SIDEBAR ---- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary, #fff);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary, #000);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-count {
    font-size: 12px;
    background: var(--color-secondary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.cart-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-section-surface, #fafafa);
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-close:hover {
    background: var(--color-secondary);
    color: #fff;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--color-section-surface, #fafafa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-empty small {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    animation: cartItemIn 0.3s ease-out;
}

@keyframes cartItemIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item:hover {
    background: var(--color-section-surface, #fafafa);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    background: var(--color-section-surface, #f5f5f5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-img img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary, #000);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-unit-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-primary, #fff);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary, #000);
    transition: all 0.15s;
}

.qty-btn:hover {
    background: var(--color-secondary);
    color: #fff;
}

.qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #000);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    height: 32px;
    line-height: 32px;
}

.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #000);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    transition: color 0.2s;
    align-self: flex-start;
    margin-left: 8px;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: var(--color-secondary);
}

.cart-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--color-section-surface, #fafafa);
    flex-shrink: 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cart-subtotal-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-subtotal-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #000);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
    margin-bottom: 16px;
}

.cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #000);
}

.cart-total-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-secondary);
}

.cart-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: #c41208;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(237,23,10,0.35);
}

.btn-continue {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-continue:hover {
    color: var(--color-secondary);
}

/* ---- TOAST ---- */
.shop-toast {
    position: fixed;
    bottom: 190px;
    right: 32px;
    background: var(--text-primary, #000);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.shop-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---- SEE DETAILS BUTTON ---- */
.btn-see-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 16px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.btn-see-details:hover {
    background: rgba(237,23,10,0.08);
    border-color: var(--color-secondary);
}

/* ---- PRODUCT DETAIL MODAL ---- */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: var(--bg-primary, #fff);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product-modal-overlay.open .product-modal {
    transform: translateY(0) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: var(--color-secondary);
}

.product-modal-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--color-section-surface, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.product-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-body {
    padding: 24px 28px 28px;
}

.product-modal-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
}

.product-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #000);
    margin: 0 0 12px;
    line-height: 1.3;
}

.product-modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 20px;
}

.product-modal-details {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--color-section-surface, #f5f5f5);
    border-radius: 12px;
}

.product-modal-details h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin: 0 0 12px;
}

.product-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-modal-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-modal-list li:last-child {
    border-bottom: none;
}

.product-modal-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary, #000);
    line-height: 1;
}

.product-modal-price .dollar {
    font-size: 18px;
    font-weight: 700;
    vertical-align: super;
    margin-right: 1px;
}

.product-modal-price .cents {
    font-size: 16px;
    font-weight: 600;
    vertical-align: super;
}

.product-modal-add {
    padding: 14px 28px;
    font-size: 15px;
}

/* Product card clickable */
.product-card {
    cursor: pointer;
}

/* ---- DARK MODE ---- */
body.dark-mode .shop-section,
body.dark-mode .shop-filters {
    background: #121212 !important;
}

body.dark-mode .kits-section {
    background: #1a1a1a !important;
}

body.dark-mode .shop-container,
body.dark-mode .kits-container,
body.dark-mode .filter-container {
    background: transparent !important;
}

/* Text colors */
body.dark-mode .product-name,
body.dark-mode .product-price,
body.dark-mode .kit-name,
body.dark-mode .cart-header h3,
body.dark-mode .cart-item-name,
body.dark-mode .cart-item-total,
body.dark-mode .cart-total-label,
body.dark-mode .cart-subtotal-price,
body.dark-mode .products-count,
body.dark-mode .shop-toolbar p {
    color: #fff !important;
}

body.dark-mode .product-desc,
body.dark-mode .kit-ideal,
body.dark-mode .product-category-tag,
body.dark-mode .cart-item-unit-price,
body.dark-mode .cart-subtotal-label,
body.dark-mode .cart-note,
body.dark-mode .btn-continue {
    color: #999 !important;
}

body.dark-mode .product-price .unit,
body.dark-mode .products-count {
    color: #888 !important;
}

body.dark-mode .products-count strong {
    color: var(--color-secondary) !important;
}

/* Product cards */
body.dark-mode .product-card {
    background: #1e1e1e !important;
    border-color: #2a2a2a !important;
}

body.dark-mode .product-card:hover {
    border-color: rgba(237,23,10,0.4) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important;
}

body.dark-mode .product-image {
    background: #151515 !important;
}

/* Filters */
body.dark-mode .filter-btn {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #ccc !important;
}

body.dark-mode .filter-btn:hover {
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

body.dark-mode .filter-btn.active {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff !important;
}

body.dark-mode .filter-count {
    background: rgba(237,23,10,0.2) !important;
}

body.dark-mode .filter-btn.active .filter-count {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* Kit cards */
body.dark-mode .kit-card {
    background: #1e1e1e !important;
    border-color: #2a2a2a !important;
}

body.dark-mode .kit-card:hover {
    border-color: var(--color-secondary) !important;
}

body.dark-mode .kit-includes li {
    border-color: #2a2a2a !important;
    color: #ccc !important;
}

body.dark-mode .kit-btn {
    background: #fff !important;
    color: #000 !important;
}

body.dark-mode .kit-btn:hover {
    background: var(--color-secondary) !important;
    color: #fff !important;
}

/* Cart sidebar */
body.dark-mode .cart-sidebar {
    background: #151515 !important;
}

body.dark-mode .cart-header {
    border-color: #2a2a2a !important;
}

body.dark-mode .cart-footer {
    background: #111 !important;
    border-color: #2a2a2a !important;
}

body.dark-mode .cart-item {
    border-color: #222 !important;
}

body.dark-mode .cart-item:hover {
    background: #1a1a1a !important;
}

body.dark-mode .cart-item-img {
    background: #1a1a1a !important;
}

body.dark-mode .cart-close {
    background: #222 !important;
    color: #ccc !important;
}

body.dark-mode .qty-btn {
    background: #1a1a1a !important;
    color: #fff !important;
}

body.dark-mode .qty-control {
    border-color: #333 !important;
}

body.dark-mode .qty-value {
    border-color: #333 !important;
    color: #fff !important;
}

/* Qty selector dark mode */
body.dark-mode .qty-selector {
    border-color: #333 !important;
}

body.dark-mode .qty-sel-btn {
    color: #fff !important;
}

body.dark-mode .qty-sel-val {
    color: #fff !important;
}

body.dark-mode .cart-total-row {
    border-color: #333 !important;
}

/* View toggle */
body.dark-mode .view-btn {
    background: #1e1e1e !important;
    border-color: #333 !important;
    color: #888 !important;
}

body.dark-mode .view-btn.active,
body.dark-mode .view-btn:hover {
    background: rgba(237,23,10,0.15) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
}

/* Misc */
body.dark-mode .product-placeholder {
    background: #2a2a2a !important;
    color: #555 !important;
}

body.dark-mode .cart-empty-icon {
    background: #1a1a1a !important;
}

body.dark-mode .cart-empty p,
body.dark-mode .cart-empty small {
    color: #888 !important;
}

body.dark-mode .shop-toast {
    background: #fff !important;
    color: #000 !important;
}

/* See details button */
body.dark-mode .btn-see-details {
    border-color: #333 !important;
    color: var(--color-secondary) !important;
}

body.dark-mode .btn-see-details:hover {
    background: rgba(237,23,10,0.15) !important;
    border-color: var(--color-secondary) !important;
}

/* Product modal */
body.dark-mode .product-modal {
    background: #1a1a1a !important;
}

body.dark-mode .product-modal-img {
    background: #111 !important;
}

body.dark-mode .product-modal-title,
body.dark-mode .product-modal-price {
    color: #fff !important;
}

body.dark-mode .product-modal-desc {
    color: #aaa !important;
}

body.dark-mode .product-modal-category {
    color: var(--color-secondary) !important;
    background: transparent !important;
    border: none !important;
}

body.dark-mode .product-modal-details {
    background: #222 !important;
}

body.dark-mode .product-modal-details h4 {
    color: var(--color-secondary) !important;
}

body.dark-mode .product-modal-list li {
    color: #ccc !important;
    border-color: #333 !important;
}

body.dark-mode .product-modal-footer {
    border-color: #333 !important;
}

body.dark-mode .product-modal-close {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

/* Fix: category tag titles (Boxes, Packing, etc.) - override global [class*="tag"] dark mode styles */
body.dark-mode .product-category-tag {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    color: var(--color-secondary) !important;
}

/* Fix: product badges (Best Seller, Popular, etc.) - override global [class*="badge"] dark mode styles */
body.dark-mode .product-badge {
    border: none !important;
}

body.dark-mode .product-badge.best {
    background: var(--color-secondary) !important;
    color: #fff !important;
}

body.dark-mode .product-badge.popular {
    background: #FF9800 !important;
    color: #fff !important;
}

body.dark-mode .product-badge.new {
    background: #4CAF50 !important;
    color: #fff !important;
}

body.dark-mode .kits-header h2 {
    color: #fff !important;
}

/* ---- GLOBAL OVERFLOW PROTECTION ---- */
.shop-hero,
.shop-section,
.shop-cta,
.shop-filters {
    overflow-x: hidden;
}

.product-name,
.product-desc,
.product-category-tag {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Checkout button spinner */
.btn-checkout .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-checkout:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .kits-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-hero h1 { font-size: 42px; }
    .shop-cta h2 { font-size: 34px; }
    .shop-cta p { font-size: 16px; }
}

@media (max-width: 768px) {
    /* Hero */
    .shop-hero { padding: 140px 20px 70px; background-image: url('/images/shop/header-mobile.png'); }
    .shop-hero h1 { font-size: 30px; line-height: 1.2; }
    .shop-hero p { font-size: 15px; max-width: 100%; padding: 0 10px; }
    .shop-hero-badge { font-size: 11px; padding: 6px 16px; }
    .shop-hero-stats { gap: 28px; }
    .shop-hero-stat strong { font-size: 22px; }

    /* Filters */
    .filter-container { gap: 8px; padding: 0 16px; flex-wrap: wrap; justify-content: center; overflow-x: visible; }
    .filter-btn { padding: 8px 16px; font-size: 12px; flex: 0 0 auto; }
    .filter-count { font-size: 10px; min-width: 16px; height: 16px; }

    /* Products grid */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .products-grid.list-view { grid-template-columns: 1fr; }
    .products-grid.list-view .product-card { max-height: none; flex-direction: column; }
    .products-grid.list-view .product-image { width: 100%; height: auto; aspect-ratio: 1; }
    .products-grid.list-view .product-info { flex-direction: column; }
    .products-grid.list-view .product-desc { display: block; }
    .products-grid.list-view .product-bottom { margin-left: 0; }

    /* Product cards */
    .product-info { padding: 14px; }
    .product-name { font-size: 13px; margin-bottom: 4px; }
    .product-desc { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
    .product-category-tag { font-size: 10px; margin-bottom: 4px; }
    .product-price { font-size: 18px; }
    .product-price .dollar { font-size: 13px; }
    .product-price .cents { font-size: 12px; }
    .product-price .unit { font-size: 10px; }
    .btn-add-cart { padding: 8px 12px; font-size: 11px; }
    .btn-add-cart svg { width: 14px; height: 14px; }
    .btn-see-details { font-size: 11px; padding: 5px 12px; margin-bottom: 10px; }

    /* Kits */
    .kits-section { padding: 60px 0; }
    .kits-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
    .kits-header h2 { font-size: 28px; }
    .kits-header p { font-size: 15px; }

    /* Shop toolbar */
    .shop-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
    .products-count { font-size: 13px; }

    /* CTA */
    .shop-cta { padding: 60px 20px; }
    .shop-cta h2 { font-size: 26px; }
    .shop-cta p { font-size: 15px; padding: 0 10px; }
    .btn-cta-primary,
    .btn-cta-outline { padding: 14px 24px; font-size: 14px; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }

    /* Cart */
    .cart-sidebar { width: 100vw; }
    .cart-fab { bottom: 100px; right: 20px; width: 56px; height: 56px; }
    .cart-fab svg { width: 22px; height: 22px; }
    .cart-header h3 { font-size: 16px; }
    .cart-item-name { font-size: 13px; }
    .cart-item-unit-price { font-size: 11px; }
    .btn-checkout { font-size: 14px; padding: 14px; }

    /* Product modal */
    .product-modal-overlay { padding: 10px; }
    .product-modal { max-width: 100%; max-height: 95vh; border-radius: 16px; }
    .product-modal-img { aspect-ratio: 16 / 10; border-radius: 16px 16px 0 0; }
    .product-modal-body { padding: 20px; }
    .product-modal-title { font-size: 20px; }
    .product-modal-desc { font-size: 14px; }
    .product-modal-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .product-modal-price { text-align: center; font-size: 24px; }
    .product-modal-footer .qty-add-group { justify-content: center; }
    .product-modal-add { width: 100%; justify-content: center; padding: 12px 20px; }
    .product-modal-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 18px; }
    .product-modal-details { padding: 16px; margin-bottom: 16px; }
}

@media (max-width: 480px) {
    /* Hero */
    .shop-hero { padding: 120px 16px 50px; }
    .shop-hero h1 { font-size: 24px; }
    .shop-hero p { font-size: 14px; }
    .shop-hero-badge { font-size: 10px; padding: 5px 14px; }
    .shop-hero-stats { flex-direction: column; gap: 16px; }

    /* Products */
    .shop-section { padding: 40px 0 60px; }
    .shop-container { padding: 0 12px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 100%; }
    .product-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
    .qty-add-group { width: 100%; justify-content: center; }
    .qty-selector { flex-shrink: 0; }
    .qty-sel-btn { width: 26px; height: 26px; font-size: 14px; }
    .qty-sel-val { width: 20px; font-size: 12px; line-height: 26px; }
    .btn-add-cart { flex: 1; justify-content: center; padding: 8px 10px; font-size: 11px; }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; }
    .product-desc { font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* Filters */
    .filter-container { gap: 6px; padding: 0 12px; flex-wrap: wrap; justify-content: center; overflow-x: visible; }
    .filter-btn { padding: 7px 14px; font-size: 11px; flex: 0 0 auto; }
    .filter-count { font-size: 9px; min-width: 14px; height: 14px; margin-left: 4px; }

    /* CTA */
    .shop-cta h2 { font-size: 22px; }
    .shop-cta p { font-size: 14px; }
    .btn-cta-primary,
    .btn-cta-outline { width: 100%; justify-content: center; padding: 12px 20px; font-size: 14px; }

    /* Cart sidebar */
    .cart-header { padding: 16px; }
    .cart-item { padding: 14px 16px; gap: 12px; }
    .cart-footer { padding: 16px; }
    .cart-total-price { font-size: 22px; }

    /* Product modal */
    .product-modal-overlay { padding: 6px; }
    .product-modal { border-radius: 14px; }
    .product-modal-img { aspect-ratio: 4 / 3; border-radius: 14px 14px 0 0; }
    .product-modal-body { padding: 16px; }
    .product-modal-title { font-size: 18px; }
    .product-modal-desc { font-size: 13px; }
    .product-modal-category { font-size: 10px; }
    .product-modal-details { padding: 12px; }
    .product-modal-details h4 { font-size: 11px; }
    .product-modal-list li { font-size: 12px; padding: 6px 0; }
    .product-modal-price { font-size: 22px; }
    .product-modal-price .dollar { font-size: 14px; }
    .product-modal-price .cents { font-size: 13px; }
    .product-modal-add { font-size: 14px; padding: 12px; }
}

@media (max-width: 360px) {
    .shop-hero h1 { font-size: 22px; }
    .shop-hero p { font-size: 13px; }
    .product-name { font-size: 13px; }
    .product-price { font-size: 16px; }
    .filter-container { gap: 5px; }
    .filter-btn { padding: 6px 10px; font-size: 10px; }
    .filter-count { font-size: 8px; min-width: 13px; height: 13px; padding: 0 3px; margin-left: 3px; }
    .shop-cta h2 { font-size: 20px; }
}
