/* Coterie Shop - Main Stylesheet */
/* Based on coterieinsurance.com branding */

/* ============================================
   CSS Variables (Brand Colors)
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #4223ff;
    --navy: #0d0d46;
    --light-gray: #eaecf2;
    --white: #ffffff;

    /* Blue Variations */
    --blue-light: #a091ff;
    --blue-lightest: #ece9ff;

    /* Navy Variations */
    --navy-medium: #3e3e6c;
    --navy-light: #6d6d8f;

    /* Green Variations (Accent) */
    --green-bright: #40ffb1;
    --green: #3ae69f;
    --green-light: #a0ffd8;
    --green-lightest: #cfffeb;

    /* Support Colors */
    --orange: #fe5d41;
    --yellow: #ffe683;
    --purple: #5c50a9;
    --lavender: #ebe7f4;

    /* Neutrals */
    --background: #f8f9fc;
    --gray-medium: #d2d2d8;
    --gray-dark: #b8b8bc;
    --text-primary: #0d0d46;
    --text-secondary: #6d6d8f;

    /* Font */
    --font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --spacing-huge: 5rem;

    /* Border Radius - Coterie uses rounded elements */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(13, 13, 70, 0.06);
    --shadow-md: 0 4px 16px rgba(13, 13, 70, 0.08);
    --shadow-lg: 0 8px 32px rgba(13, 13, 70, 0.12);
    --shadow-hover: 0 12px 40px rgba(13, 13, 70, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Disable double-tap-to-zoom on mobile while keeping pinch-zoom */
    touch-action: manipulation;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid rgba(13, 13, 70, 0.08);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.main-nav a {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: var(--spacing-sm) 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.main-nav a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Cart Button */
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--white);
    color: var(--navy);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-normal);
    border: 2px solid var(--light-gray);
    cursor: pointer;
    position: relative;
}

.cart-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-btn .cart-icon {
    flex-shrink: 0;
}

.cart-btn .cart-btn-text {
    margin-right: var(--spacing-xs);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.cart-btn:hover .cart-badge {
    background: var(--green-bright);
    color: var(--navy);
}

/* Hide badge when count is 0 */
.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

@media (max-width: 480px) {
    .cart-btn .cart-btn-text {
        display: none;
    }
    .cart-btn {
        padding: var(--spacing-sm);
    }
}

/* ============================================
   Account Dropdown
   ============================================ */
.account-dropdown {
    position: relative;
}

.account-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: transparent;
    color: var(--navy);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.account-btn:hover {
    background: var(--light-gray);
}

.account-btn .account-icon {
    flex-shrink: 0;
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: var(--spacing-sm) 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.account-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.account-menu-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: background var(--transition-fast);
}

.account-menu-item:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
}

.account-menu-divider {
    height: 1px;
    background: var(--light-gray);
    margin: var(--spacing-sm) 0;
}

@media (max-width: 480px) {
    .account-btn .account-btn-text {
        display: none;
    }
    .account-btn {
        padding: var(--spacing-sm);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-huge) 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, transparent 60%);
    opacity: 0.3;
    transform: rotate(-15deg);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, var(--green-bright) 0%, transparent 50%);
    opacity: 0.15;
    transform: rotate(10deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-bright), var(--primary-blue), var(--green-bright));
}

/* ============================================
   Store Content
   ============================================ */
.store-content {
    padding: var(--spacing-xxl) 0;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

/* ============================================
   Category Rows
   ============================================ */
.category-row {
    margin-bottom: var(--spacing-huge);
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--light-gray);
}

.category-row-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.view-all-link:hover {
    gap: var(--spacing-md);
    text-decoration: none;
}

.view-all-link .arrow {
    transition: transform var(--transition-fast);
}

.view-all-link:hover .arrow {
    transform: translateX(4px);
}

/* Product Scroll (Horizontal) */
.product-scroll {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-scroll .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.product-image {
    aspect-ratio: 1/1;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image-link,
.product-title-link {
    text-decoration: none;
    color: inherit;
}

.product-title-link:hover h3 {
    color: var(--primary-blue);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-lightest) 0%, var(--lavender) 100%);
}

.no-image-placeholder span {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.product-details {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
}

/* Card Size Buttons */
.card-sizes {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 3px;
    margin-top: var(--spacing-sm);
}

.card-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--light-gray);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.card-size-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.card-size-btn.out-of-stock {
    color: var(--gray-dark);
    background: var(--background);
    text-decoration: line-through;
    opacity: 0.6;
}

.card-size-btn.out-of-stock:hover {
    background: var(--gray-medium);
    color: var(--text-secondary);
    transform: none;
}

/* Stock tooltip on hover */
.card-size-btn::after {
    content: attr(data-stock) ' in stock';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    margin-bottom: 4px;
    z-index: 10;
}

.card-size-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Desktop: slightly larger size buttons but still fit 6 on one row */
@media (min-width: 769px) {
    .card-size-btn {
        min-width: 32px;
        height: 28px;
        padding: 0 6px;
        font-size: 0.7rem;
    }

    .card-size-btn::after {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: auto;
}

/* ============================================
   Empty Store State
   ============================================ */
.empty-store {
    padding: var(--spacing-huge) var(--spacing-xl);
    text-align: center;
}

.empty-store-content {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--blue-lightest) 0%, var(--green-lightest) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-xl);
    color: var(--primary-blue);
}

.empty-store h2 {
    margin-bottom: var(--spacing-md);
}

.empty-store p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   Category Page
   ============================================ */
.category-hero {
    background: var(--white);
    padding: var(--spacing-xxl) 0;
    border-bottom: 1px solid var(--light-gray);
}

.category-hero h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-blue);
}

.breadcrumb .separator {
    color: var(--gray-medium);
}

.breadcrumb span:last-child {
    color: var(--navy);
    font-weight: 600;
}

/* Legacy support */
.category-header {
    background: var(--white);
    padding: var(--spacing-xxl) 0;
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--light-gray);
}

.category-header h1 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   Variant Cards (Legacy - for category page)
   ============================================ */
.variant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.variant-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.variant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.card-image {
    aspect-ratio: 3/4;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.variant-card:hover .card-image img {
    transform: scale(1.05);
}

.out-of-stock-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--orange);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-info {
    padding: var(--spacing-lg);
}

.card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--spacing-sm);
}

.variant-options {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ============================================
   Product Page
   ============================================ */
.product-breadcrumb {
    background: var(--white);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--light-gray);
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    padding: var(--spacing-xxl) 0;
    align-items: start;
}

@media (max-width: 968px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: var(--spacing-lg) 0;
    }
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery .main-image {
    aspect-ratio: 1/1;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Tablet: Disable sticky, limit size */
@media (max-width: 968px) {
    .product-gallery {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .image-thumbnails {
        justify-content: center;
    }
}

/* Phone: Full width */
@media (max-width: 480px) {
    .product-gallery {
        max-width: 100%;
    }

    .thumb-btn {
        width: 70px;
        height: 70px;
        padding: 3px;
    }
}

/* Main image swap support */
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    transition: transform 0.3s ease;
}

/* Subtle zoom on main image hover */
.product-gallery .main-image:hover img {
    transform: scale(1.03);
}

.product-gallery .main-image .no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-lightest) 0%, var(--lavender) 100%);
}

.product-gallery .main-image .no-image-placeholder span {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

/* Image Thumbnails */
.image-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.thumb-btn {
    width: 100px;
    height: 100px;
    border: 3px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    padding: 4px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.thumb-btn:hover {
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

.thumb-btn.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--blue-lightest);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.thumb-btn:hover img {
    transform: scale(1.08);
}

.thumb-btn .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lavender);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Product Info */
.product-info {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
    .product-info {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
}

.product-info h1 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 480px) {
    .product-info h1 {
        font-size: 1.35rem;
    }
}

.product-price {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
}

@media (max-width: 480px) {
    .product-price {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
}

.product-price .price {
    color: var(--primary-blue);
    font-weight: 800;
}

.product-price .price-original {
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: var(--spacing-md);
    font-weight: 400;
    font-size: 1.25rem;
}

.product-price .price-sale {
    color: var(--orange);
    font-weight: 800;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1rem;
    line-height: 1.7;
}

/* Product Form */
.product-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Option Sections */
.option-section {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
}

.option-section:last-of-type {
    border-bottom: none;
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.option-label {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-selected {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Radio Button Options */
.radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.radio-option {
    cursor: pointer;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--navy);
    transition: all var(--transition-fast);
}

.radio-option:hover .radio-btn {
    border-color: var(--blue-light);
    background: var(--blue-lightest);
}

.radio-option input:checked + .radio-btn {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* Size Options - Smaller buttons */
.size-options {
    gap: var(--spacing-xs);
}

.size-option .radio-btn.size-btn {
    min-width: 60px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Mobile: Make buttons more touch-friendly */
@media (max-width: 480px) {
    .radio-btn {
        min-width: 80px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    .size-option .radio-btn.size-btn {
        min-width: 50px;
        padding: 10px 14px;
    }

    .option-section {
        padding-bottom: var(--spacing-md);
    }
}

/* Quantity Selector */
.quantity-section {
    border-bottom: none;
    padding-bottom: 0;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--light-gray);
}

.qty-btn:active {
    background: var(--blue-lightest);
}

.quantity-selector input {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    font-family: var(--font-family);
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input:focus {
    outline: none;
}

/* Stock Info */
.stock-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--light-gray);
    color: var(--text-secondary);
}

.stock-status .stock-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.stock-status.in-stock {
    background: linear-gradient(135deg, var(--green-lightest) 0%, #d4fff0 100%);
    color: #0a5540;
    border: 1px solid rgba(58, 230, 159, 0.3);
}

.stock-status.in-stock .stock-icon {
    background: var(--green);
    color: var(--white);
}

.stock-status.limited-stock {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3d4 100%);
    color: #8a6d00;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

.stock-status.limited-stock .stock-icon {
    background: #ffc800;
    color: #5a4800;
}

.stock-status.out-of-stock,
.stock-status.unavailable {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd4d4 100%);
    color: #b00;
    border: 1px solid rgba(204, 0, 0, 0.2);
}

.stock-status.out-of-stock .stock-icon,
.stock-status.unavailable .stock-icon {
    background: #cc0000;
    color: var(--white);
}

.stock-status .stock-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.stock-status .stock-main {
    font-weight: 600;
}

.stock-status .stock-cart-info {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.stock-info .sku-display {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

/* Add to Cart Button */
.add-to-cart-btn {
    margin-top: var(--spacing-md);
    gap: var(--spacing-md);
}

.add-to-cart-btn .btn-text {
    font-size: 1rem;
}

.add-to-cart-btn .btn-icon {
    display: flex;
    align-items: center;
}

.add-to-cart-btn.success {
    background: var(--green);
    border-color: var(--green);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
}

/* Legacy support for old templates */
.product-images .main-image {
    aspect-ratio: 3/4;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbs {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.image-thumbs .thumb {
    width: 72px;
    height: 72px;
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--light-gray);
    transition: all var(--transition-fast);
}

.image-thumbs .thumb:hover {
    border-color: var(--blue-light);
}

.image-thumbs .thumb.active {
    border-color: var(--primary-blue);
}

.image-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Legacy Options */
.product-options {
    margin-bottom: var(--spacing-xl);
}

.option-group {
    margin-bottom: var(--spacing-lg);
}

.option-group label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--navy);
    font-size: 0.9375rem;
}

.option-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    font-family: var(--font-family);
}

.option-group select:hover {
    border-color: var(--gray-medium);
}

.option-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.swatch-options {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.swatch-option {
    cursor: pointer;
}

.swatch-option input {
    display: none;
}

.swatch-option .swatch {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 3px solid var(--light-gray);
    transition: all var(--transition-fast);
}

.swatch-option:hover .swatch {
    border-color: var(--gray-medium);
}

.swatch-option input:checked + .swatch {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--blue-lightest);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-primary:disabled {
    background: var(--gray-medium);
    border-color: var(--gray-medium);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--light-gray);
}

.btn-secondary:hover {
    background: var(--light-gray);
    text-decoration: none;
}

.btn-danger {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-danger:hover {
    background: #e54d33;
    border-color: #e54d33;
}

.btn-large,
.btn-lg {
    padding: var(--spacing-lg) var(--spacing-xxl);
    font-size: 1.125rem;
}

@media (max-width: 480px) {
    .btn-large,
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Cart link in header styled as button */
.cart-link {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.cart-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ============================================
   Cart
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    padding: var(--spacing-xl) 0;
}

@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.cart-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cart-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--light-gray);
}

.cart-product .variant-details,
.cart-product .sku {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.qty-input {
    width: 70px;
    padding: var(--spacing-sm);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-family);
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.cart-summary {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: var(--spacing-xl);
    color: var(--navy);
    font-size: 1.25rem;
}

.cart-summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.cart-summary dt {
    color: var(--text-secondary);
}

.cart-summary dd {
    text-align: right;
    font-weight: 600;
}

.cart-summary dt.total,
.cart-summary dd.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--light-gray);
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-huge);
}

.empty-cart h2 {
    margin-bottom: var(--spacing-md);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    margin-bottom: var(--spacing-lg);
}

.flash {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.flash-success {
    background: var(--green-lightest);
    color: #0a5540;
    border-left: 4px solid var(--green);
}

.flash-error {
    background: #ffe5e5;
    color: #c00;
    border-left: 4px solid var(--orange);
}

/* ============================================
   Success/Error Pages
   ============================================ */
.success-page, .error-page {
    text-align: center;
    padding: var(--spacing-huge);
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.order-confirmation {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.order-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-sm) var(--spacing-lg);
    text-align: left;
}

.order-details dt {
    color: var(--text-secondary);
}

.order-details dd {
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-huge);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-credit {
    text-align: center;
    color: var(--navy-light);
    font-size: 0.875rem;
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-page h1 {
    color: var(--navy);
    margin-bottom: var(--spacing-md);
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 0.875rem;
}

.legal-page section {
    margin-bottom: var(--spacing-xl);
}

.legal-page h2 {
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.legal-page ul, .legal-page ol {
    margin-left: var(--spacing-lg);
}

.legal-page li {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--spacing-huge);
    color: var(--text-secondary);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--lavender) 100%);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   Info Text
   ============================================ */
.info-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-xxl) 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-nav {
        display: none; /* Hide nav on mobile - add hamburger menu later */
    }

    .category-row-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .product-scroll .product-card {
        flex: 0 0 240px;
    }

    .store-content {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* Mobile: 2-column grid for products */
@media (max-width: 600px) {
    .product-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Smaller size buttons on mobile to fit all 6 */
    .card-sizes {
        gap: 2px;
    }

    .card-size-btn {
        min-width: 22px;
        height: 20px;
        padding: 0 2px;
        font-size: 0.55rem;
        border-radius: 3px;
    }

    .product-scroll .product-card {
        flex: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* ============================================
   Cart Sidebar
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 70, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: -4px 0 24px rgba(13, 13, 70, 0.15);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.cart-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-sidebar-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--navy);
}

.cart-empty-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.cart-empty-btn:hover {
    background: #dc3545;
    color: white;
}

/* Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.confirm-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    z-index: 1001;
    width: 90%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.confirm-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
}

.confirm-modal-title {
    font-size: 1.25rem;
    color: var(--navy);
    margin: 0 0 var(--spacing-sm);
}

.confirm-modal-message {
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-lg);
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.confirm-modal-actions .btn {
    flex: 1;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.cart-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-close-btn:hover {
    background: var(--navy);
    color: var(--white);
}

.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

/* Cart item - clean layout with image */
.cart-sidebar-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--light-gray);
    transition: all var(--transition-fast);
}

.cart-sidebar-item:hover {
    border-color: var(--blue-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--light-gray);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-lightest), var(--lavender));
}

.cart-item-masked {
    width: 100%;
    height: 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    line-height: 1.35;
    word-wrap: break-word;
    text-decoration: none;
    display: block;
}

.cart-item-name:hover {
    color: var(--primary-blue);
}

a.cart-item-image {
    display: block;
}

.cart-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-qty span {
    min-width: 24px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    color: var(--gray-medium);
    border: 1px solid var(--light-gray);
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-item-remove:hover {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.cart-item-remove svg {
    width: 12px;
    height: 12px;
}

.cart-item-qty .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gray-medium);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-item-qty .qty-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.cart-item-qty .qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-item-qty .qty-btn.is-trash {
    color: #dc3545;
    border-color: #dc3545;
}

.cart-item-qty .qty-btn.is-trash:hover {
    background: #dc3545;
    color: var(--white);
    border-color: #dc3545;
}

.cart-item-qty .qty-btn.is-trash svg {
    width: 14px;
    height: 14px;
}

.cart-item-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-sidebar-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    padding: var(--spacing-xl);
    text-align: center;
}

.cart-sidebar-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--light-gray);
    background: var(--white);
    flex-shrink: 0;
}

.cart-sidebar-totals {
    margin-bottom: var(--spacing-lg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.cart-total-row.cart-total-final {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-top: 2px solid var(--light-gray);
}

.cart-tax-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin: var(--spacing-sm) 0 0 0;
    font-style: italic;
}

.cart-sidebar-footer .btn {
    margin-bottom: var(--spacing-sm);
}

.cart-sidebar-footer .btn:last-child {
    margin-bottom: 0;
}

/* Mobile Cart Sidebar */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
    }

    .cart-sidebar-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.85rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }
}

/* Flying Cart Animation */
.flying-item {
    position: fixed;
    width: 28px;
    height: 28px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 114, 182, 0.4);
    opacity: 0;
    will-change: transform, opacity;
}

.flying-item.visible {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.flying-item.burst {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flying-item.vacuum {
    transition: transform 0.5s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.5s ease-in;
}

.cart-badge.pulse {
    animation: cartPulse 0.3s ease-out;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}
