/* ========================================
   LOCAL LENS - CSS STYLES
   Purple Theme E-commerce Website
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Primary Purple Palette */
    --primary-50: #faf5ff;
    --primary-100: #f3e8ff;
    --primary-200: #e9d5ff;
    --primary-300: #d8b4fe;
    --primary-400: #c084fc;
    --primary-500: #a855f7;
    --primary-600: #9333ea;
    --primary-700: #7c3aed;
    --primary-800: #6b21a8;
    --primary-900: #581c87;
    --primary-950: #3b0764;

    /* Dark Background Palette */
    --bg-dark: #0f0a1f;
    --bg-darker: #080510;
    --bg-card: rgba(31, 20, 60, 0.8);
    --bg-card-hover: rgba(45, 30, 80, 0.9);
    --bg-glass: rgba(124, 58, 237, 0.15);

    /* Text Colors */
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --text-muted: #8b7fad;

    /* Accent Colors */
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    --gradient-dark: linear-gradient(180deg, #0f0a1f 0%, #1a1033 100%);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(168, 85, 247, 0.2) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.15);
    --shadow-md: 0 4px 20px rgba(124, 58, 237, 0.2);
    --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.25);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.4);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-darker);
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER & LOGO
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(8, 5, 16, 0.98) 0%, rgba(8, 5, 16, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary-400);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
    }
}

.logo-text {
    font-size: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.cart-toggle {
    position: absolute;
    right: 32px;
    padding: 12px;
    color: var(--text-primary);
    transition: var(--transition-base);
    border-radius: var(--radius-full);
}

.cart-toggle:hover {
    background: var(--bg-glass);
    color: var(--primary-400);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(8, 5, 16, 0.7) 0%,
            rgba(15, 10, 31, 0.85) 50%,
            rgba(8, 5, 16, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 40px 24px;
    animation: fade-up 1s ease-out;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-glass);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--primary-400);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.hero-cta svg {
    transition: transform var(--transition-base);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-500) 0%, transparent 100%);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--primary-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

/* Products Grid - 2 columns on desktop, 1 on mobile */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.15);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: var(--shadow-lg);
}

/* Product Image - Square 1:1 aspect ratio for 1024x1024 images */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-950) 0%, var(--bg-darker) 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.bestseller {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #f472b6 100%);
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--error) 0%, #f87171 100%);
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    display: block;
    font-size: 11px;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.original-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    min-height: 50px;
    white-space: nowrap;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 18px 32px;
    font-size: 16px;
    min-height: 56px;
}

.btn-primary {
    flex: 1;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    flex: 1;
    background: transparent;
    color: var(--primary-400);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--primary-400);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 32px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--primary-400);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-brand p:last-child {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dark);
    border-left: 1px solid rgba(124, 58, 237, 0.2);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: var(--transition-base);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    flex-shrink: 0;
}

.cart-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.cart-close {
    padding: 8px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.cart-close:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-darker);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-400);
    margin-top: auto;
}

.cart-item-remove {
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cart-total span:last-child {
    color: var(--primary-400);
}

/* ========================================
   TRY ON MODAL - IMPROVED DESIGN
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: var(--bg-dark);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.3);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-base);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 10px;
    color: var(--text-muted);
    z-index: 10;
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.5);
}

.modal-step {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.modal-header {
    text-align: center;
    padding: 32px 24px 20px;
    flex-shrink: 0;
}

.modal-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--primary-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.modal-badge.success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.modal-product-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.product-preview {
    text-align: center;
    margin-bottom: 24px;
}

.product-preview img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.try-on-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input[type="number"] {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-group input[type="number"]::placeholder {
    color: var(--text-muted);
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

.file-upload:hover {
    border-color: var(--primary-500);
    background: rgba(124, 58, 237, 0.05);
}

.file-upload.dragover {
    border-color: var(--primary-400);
    background: rgba(124, 58, 237, 0.1);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    color: var(--text-muted);
}

.file-upload-content svg {
    margin: 0 auto 12px;
    color: var(--primary-400);
}

.file-upload-content p {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-size: 14px;
}

.file-upload-content span {
    font-size: 12px;
}

.file-preview {
    position: relative;
    display: inline-block;
}

.file-preview img {
    max-width: 160px;
    max-height: 160px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--error);
    color: white;
    border-radius: var(--radius-full);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    line-height: 1;
}

.remove-file:hover {
    transform: scale(1.1);
}

/* Processing Animation */
.processing-container {
    text-align: center;
    padding: 48px 24px;
}

.processing-animation {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
}

.processing-ring {
    position: absolute;
    inset: 0;
    animation: rotate 3s linear infinite;
}

.ring-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-500);
    border-radius: 50%;
}

.ring-segment:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-top-color: var(--primary-400);
    animation: rotate-reverse 2s linear infinite;
}

.ring-segment:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    border-top-color: var(--primary-300);
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    to {
        transform: rotate(-360deg);
    }
}

.processing-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-400);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.processing-container h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.processing-status {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 14px;
}

.processing-progress {
    width: 100%;
    max-width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 32px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 240px;
    margin: 0 auto;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition-base);
}

.processing-step.active {
    color: var(--text-primary);
}

.processing-step.complete {
    color: var(--success);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--text-muted);
    transition: var(--transition-base);
    flex-shrink: 0;
}

.processing-step.active .step-dot {
    border-color: var(--primary-500);
    background: var(--primary-500);
    box-shadow: 0 0 10px var(--primary-500);
}

.processing-step.complete .step-dot {
    border-color: var(--success);
    background: var(--success);
}

/* Result Section */
.result-container {
    padding: 32px 24px;
    text-align: center;
    overflow-y: auto;
}

.result-header {
    margin-bottom: 24px;
}

.result-header h3 {
    font-size: 24px;
    font-weight: 600;
}

/* Side-by-side comparison */
.result-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.result-image-box {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.result-image-box .image-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.result-image-box img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(124, 58, 237, 0.3);
}

.result-image-box.featured img {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-glow);
}

.result-arrow {
    color: var(--primary-400);
    flex-shrink: 0;
    padding: 0 8px;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
}

.fit-info {
    text-align: center;
}

.fit-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fit-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-400);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-dark);
    border: 1px solid var(--success);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--success);
    display: flex;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .products-grid {
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }

    .cart-toggle {
        right: 20px;
    }

    .hero-content {
        padding: 32px 20px;
    }

    .products-section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Single column on mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-info {
        padding: 20px;
    }

    .product-name {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .footer-brand p:last-child {
        margin-left: auto;
        margin-right: auto;
    }

    .cart-sidebar {
        max-width: 100%;
    }

    .modal {
        margin: 12px;
        max-width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 24px 20px 16px;
    }

    .modal-body {
        padding: 0 20px 20px;
    }

    .modal-product-name {
        font-size: 20px;
    }

    .product-preview img {
        width: 120px;
        height: 120px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .result-container {
        padding: 24px 16px;
    }

    .result-comparison {
        flex-direction: column;
        gap: 16px;
    }

    .result-image-box {
        max-width: 220px;
        min-width: 180px;
    }

    .result-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }

    .result-details {
        gap: 32px;
    }

    .fit-value {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .product-name {
        font-size: 18px;
    }

    .current-price {
        font-size: 20px;
    }

    .btn {
        padding: 12px 20px;
        min-height: 48px;
        font-size: 14px;
    }

    .btn-large {
        padding: 16px 24px;
        min-height: 52px;
    }
}

/* Touch Target Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 50px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}