/* ============================================
   ShopVibe Design System - CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Nunito:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Colors */
    --color-primary: #2c2c54;
    --color-primary-hover: #3d3d6b;
    --color-primary-active: #1e1e3a;
    --color-primary-light: #eeeef5;
    --color-primary-ring: rgba(44, 44, 84, 0.15);

    --color-secondary: #22D3EE;
    --color-secondary-hover: #06B6D4;
    --color-tertiary: #FACC15;

    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text: #171717;
    --color-text-secondary: #525252;
    --color-text-tertiary: #A3A3A3;
    --color-border: #E5E5E5;
    --color-border-hover: #D4D4D4;
    --color-input-border: #D4D4D4;

    --color-success: #22C55E;
    --color-success-bg: #DCFCE7;
    --color-success-text: #166534;
    --color-warning: #F59E0B;
    --color-warning-bg: #FEF9C3;
    --color-warning-text: #854D0E;
    --color-error: #EF4444;
    --color-error-hover: #DC2626;
    --color-error-bg: #FEE2E2;
    --color-error-text: #991B1B;
    --color-info: #3B82F6;

    /* Typography */
    --font-headline: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-base: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-none: 0px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-medium: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-large: 0 10px 25px rgba(0,0,0,0.10), 0 6px 10px rgba(0,0,0,0.06);
    --shadow-overlay: 0 25px 50px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.08);
    --shadow-product-hover: 0 14px 32px rgba(217,70,239,0.12), 0 6px 12px rgba(0,0,0,0.06);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Container */
    --container-max: 1200px;
    --container-padding: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

/* ============================================
   Typography
   ============================================ */
.text-display {
    font-family: var(--font-headline);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.text-headline {
    font-family: var(--font-headline);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.text-subhead {
    font-family: var(--font-headline);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.005em;
}

.text-body-large {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}

.text-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

.text-body-small {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.text-caption {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.text-overline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-lg);
}

.logo {
    font-family: var(--font-headline);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo span {
    background: #2c2c54;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-md);
    padding: 0 44px 0 var(--space-base);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--color-text-tertiary);
}

.search-bar input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.search-bar button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 36px;
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.search-bar button:hover {
    background: var(--color-primary-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-base);
    flex-shrink: 0;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.cart-link:hover {
    background: var(--color-primary-hover);
    color: white;
    transform: scale(1.03);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-secondary);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-surface);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
    padding: var(--space-sm);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: #2c2c54;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, 2%); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #FACC15;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.hero h1 {
    font-family: var(--font-headline);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-base);
    color: #FFFFFF;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #FACC15, #FDE68A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p strong {
    color: #FACC15;
    font-weight: 800;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-base);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.hero-cta-main {
    background: #FACC15 !important;
    color: #2c2c54 !important;
    font-size: 17px !important;
    padding: 16px 36px !important;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35);
    animation: ctaGlow 2.5s ease-in-out infinite;
}

.hero-cta-main:hover {
    background: #FDE68A !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 28px rgba(250, 204, 21, 0.5) !important;
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(250, 204, 21, 0.55); }
}

.hero-cta-whats {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    font-size: 17px !important;
    padding: 16px 36px !important;
}

.hero-cta-whats:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-trust {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0 !important;
}


/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: var(--radius-full);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:active {
    background: var(--color-primary-active);
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
}

.btn-ghost:hover {
    background: #F5F5F5;
}

.btn-destructive {
    background: var(--color-error);
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: var(--radius-full);
}

.btn-destructive:hover {
    background: var(--color-error-hover);
    color: #FFFFFF;
}

.btn-sm {
    height: 34px;
    padding: 0 18px;
    font-size: 13px;
}

.btn-md {
    height: 42px;
    padding: 0 28px;
}

.btn-lg {
    height: 50px;
    padding: 0 36px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   Catalog Layout & Sidebar
   ============================================ */
.catalog-layout {
    display: flex;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0 var(--space-3xl);
    align-items: flex-start;
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.sidebar-title {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.filter-section {
    margin-bottom: var(--space-xl);
}

.filter-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.filter-list::-webkit-scrollbar {
    width: 6px;
}
.filter-list::-webkit-scrollbar-thumb {
    background: var(--color-border-hover);
    border-radius: 4px;
}

.filter-list li {
    margin-bottom: var(--space-sm);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.custom-checkbox:hover {
    color: var(--color-primary);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--color-surface);
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--color-primary);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.label-text {
    flex: 1;
}

.count {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.products-main-area {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .catalog-layout {
        flex-direction: column;
    }
    
    .sidebar-filters {
        width: 100%;
        position: static;
        margin-bottom: var(--space-lg);
    }
    
    .filter-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-md);
        max-height: none;
    }
    
    .filter-list li {
        margin-bottom: 0;
        background: var(--color-surface);
        padding: 8px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-full);
    }
    
    .custom-checkbox {
        padding-left: 24px;
    }
}

/* ============================================
   Product Grid
   ============================================ */
.section-title {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 18px;
    margin-bottom: var(--space-2xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--space-lg);
    padding-bottom: var(--space-3xl);
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-product-hover);
    transform: translateY(-3px);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    background: #F5F5F5;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    z-index: 2;
}

.badge-destaque {
    background: var(--color-tertiary);
    color: #854D0E;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-promo {
    background: var(--color-secondary);
    color: var(--color-text);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-content {
    padding: var(--space-base);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.product-card-name {
    font-family: var(--font-headline);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-name a {
    color: inherit;
    text-decoration: none;
}

.product-card-name a:hover {
    color: var(--color-primary);
}

.product-card-price {
    margin-top: auto;
    padding-top: var(--space-sm);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.price-current {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.price-promo {
    color: var(--color-secondary-hover);
}

.price-original {
    font-size: 14px;
    color: var(--color-text-tertiary);
    text-decoration: line-through;
}

.product-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.product-card-actions .btn {
    flex: 1;
    font-size: 13px;
    height: 40px;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.product-image-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #F5F5F5;
    aspect-ratio: 1;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-info .breadcrumb {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-base);
}

.product-info .breadcrumb a {
    color: var(--color-text-tertiary);
}

.product-info .breadcrumb a:hover {
    color: var(--color-primary);
}

.product-info h1 {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-base);
    line-height: 1.2;
}

.product-info .product-price-detail {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.product-info .product-price-detail .price-current {
    font-size: 32px;
}

.product-info .product-price-detail .price-original {
    font-size: 18px;
}

.product-info .product-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.product-info .stock-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.stock-dot.low {
    background: var(--color-warning);
}

.stock-dot.out {
    background: var(--color-error);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.quantity-selector label {
    font-weight: 600;
    font-size: 14px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text);
    transition: background var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-controls button:hover {
    background: #F5F5F5;
}

.qty-controls input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

.qty-controls input::-webkit-inner-spin-button,
.qty-controls input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.product-detail-actions {
    display: flex;
    gap: var(--space-md);
}

.product-detail-actions .btn {
    flex: 1;
}

/* ============================================
   Cart Page
   ============================================ */
.page-title {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 700;
    padding: var(--space-xl) 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    padding-bottom: var(--space-4xl);
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-base);
}

.cart-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-base);
    display: flex;
    gap: var(--space-base);
    transition: border-color var(--transition-fast);
}

.cart-item:hover {
    border-color: var(--color-border-hover);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: #F5F5F5;
}

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

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: var(--space-base);
    margin-top: auto;
}

.cart-item-controls .qty-controls {
    transform: scale(0.85);
    transform-origin: left center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-error);
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.cart-item-remove:hover {
    opacity: 0.7;
}

.cart-item-subtotal {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    display: flex;
    align-items: center;
    padding-left: var(--space-base);
}

/* Cart Summary */
.cart-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: sticky;
    top: 96px;
}

.cart-summary h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-base);
    border-bottom: 1px solid var(--color-border);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 15px;
}

.cart-summary-row.total {
    font-size: 20px;
    font-weight: 700;
    border-top: 2px solid var(--color-border);
    padding-top: var(--space-base);
    margin-top: var(--space-base);
    margin-bottom: var(--space-lg);
}

.cart-summary .btn {
    width: 100%;
}

/* Empty cart */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) 0;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--space-lg);
}

.empty-state h2 {
    font-family: var(--font-headline);
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* ============================================
   Checkout / Forms
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    padding-bottom: var(--space-4xl);
    align-items: start;
}

.form-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-section h2 {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-base);
    border-bottom: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-base);
}

.form-group {
    margin-bottom: var(--space-base);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--color-input-border);
    border-radius: var(--radius-md);
    padding: 0 var(--space-base);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-surface);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group textarea {
    height: 100px;
    padding: var(--space-md);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-ring);
}

.form-group .error-msg {
    font-size: 12px;
    color: var(--color-error);
    margin-top: 4px;
}

.form-group.has-error input,
.form-group.has-error select {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ============================================
   Order Summary (Checkout Sidebar)
   ============================================ */
.order-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: sticky;
    top: 96px;
}

.order-summary h3 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-base);
    border-bottom: 1px solid var(--color-border);
}

.order-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid #F5F5F5;
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #F5F5F5;
    flex-shrink: 0;
}

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

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.order-item-qty {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.order-item-price {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* ============================================
   Order Confirmation
   ============================================ */
.confirmation-page {
    text-align: center;
    padding: var(--space-4xl) 0;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto var(--space-lg);
    animation: confirmPop 0.5s ease;
}

@keyframes confirmPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.confirmation-page h1 {
    font-family: var(--font-headline);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.confirmation-page .order-number {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.confirmation-details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: left;
    margin: var(--space-xl) 0;
}

.confirmation-details h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: var(--space-base);
}

.confirmation-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 14px;
}

.confirmation-details .detail-row:last-child {
    border-bottom: none;
}

.confirmation-details .detail-label {
    color: var(--color-text-secondary);
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    padding: var(--space-base) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: flashSlide 0.3s ease;
}

@keyframes flashSlide {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.flash-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.flash-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.flash-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-text);
    color: #A3A3A3;
    padding: var(--space-2xl) 0;
    margin-top: var(--space-3xl);
}

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

.footer-logo {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
}

.footer-logo span {
    background: #2c2c54;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 14px;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary-color { color: var(--color-text-secondary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-base { margin-top: var(--space-base); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-base { margin-bottom: var(--space-base); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ============================================
   Toast notification
   ============================================ */
.toast-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-base) var(--space-lg);
    box-shadow: var(--shadow-large);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    animation: toastIn 0.3s ease;
    min-width: 280px;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast-error {
    border-left: 4px solid var(--color-error);
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   No results
   ============================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--color-text-secondary);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: var(--space-base);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .text-display, .hero h1 {
        font-size: 38px;
    }
    
    .text-headline {
        font-size: 30px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .cart-summary,
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    .header-inner {
        height: 60px;
    }

    .search-bar {
        display: none;
    }

    .search-bar.mobile-open {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: var(--space-sm) var(--space-base);
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        max-width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 22px;
    }

    .cart-link span.cart-text {
        display: none;
    }

    .cart-link {
        padding: 10px 14px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .product-card-content {
        padding: var(--space-md);
    }

    .product-card-name {
        font-size: 14px;
    }

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

    .product-card-actions .btn {
        font-size: 11px;
        height: 36px;
        padding: 0 10px;
    }

    .page-title {
        font-size: 28px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-subtotal {
        width: 100%;
        text-align: left;
        padding-left: 0;
        padding-top: var(--space-sm);
        border-top: 1px solid #F5F5F5;
        margin-top: var(--space-sm);
        justify-content: flex-end;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 26px;
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: var(--space-base) 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .chip {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .product-card-actions {
        flex-direction: column;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .product-detail-actions {
        flex-direction: column;
    }

    .confirmation-page h1 {
        font-size: 24px;
    }
}
