/* ==========================================================================
   CSS Reset & Design System Variables - LIGHT THEME
   ========================================================================== */

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

:root {
    /* Modern Color Palette - Light Theme */
    --color-bg: #ffffff;
    --color-surface: #f8f9fa;
    --color-surface-light: #ffffff;
    --color-surface-lighter: #fafafa;
    
    /* Text Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #4a5568;
    --color-tertiary: #718096;
    --color-quaternary: #a0aec0;
    
    /* Accent Colors */
    --color-accent: #7c3aed;
    --color-accent-light: #8b5cf6;
    --color-accent-dark: #5b21b6;
    
    /* Gradient Accents */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-surface: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Brand Colors */
    --color-brand: #7c3aed;
    --color-brand-light: #8b5cf6;
    --color-brand-dark: #5b21b6;
    
    /* Typography */
    --font-primary: 'Gambetta', Georgia, 'Times New Roman', Times, serif;
--font-secondary: 'Surt', -apple-system, sans-serif;
    
    /* Font Sizes - Modular Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    
    /* Spacing Scale */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-3xl: 2rem;      /* 32px */
    --radius-full: 9999px;
    
    /* Shadows - Softer for light theme */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-negative: -1;
    --z-base: 0;
    --z-docked: 10;
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-modal: 1300;
    --z-popover: 1400;
    --z-toast: 1500;
    --z-tooltip: 1600;
}

/* ==========================================================================
   Base Styles - LIGHT THEME
   ========================================================================== */

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-secondary);
    line-height: 1.7;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--color-primary);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary::before {
    background: var(--gradient-secondary);
}

.btn-outline {
    border-color: var(--color-quaternary);
    color: var(--color-primary);
}

.btn-outline:hover {
    border-color: transparent;
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Navigation - Light Theme
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: all var(--transition-base);
}

/* ==========================================================================
   Mobile Menu - Light Theme
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: var(--z-modal);
    display: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.3s ease;
}

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

.mobile-menu-content {
    padding: var(--space-8) var(--space-6);
    height: 100%;
    overflow-y: auto;
}

.mobile-brand {
    margin-bottom: var(--space-8);
}

.mobile-link {
    display: block;
    padding: var(--space-4) 0;
    color: var(--color-primary);
    text-decoration: none;
    font-size: var(--text-lg);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: color var(--transition-fast);
}

.mobile-link:hover {
    color: var(--color-accent);
}

.mobile-legal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin: var(--space-6) 0;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-legal a {
    color: var(--color-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.mobile-legal a:hover {
    color: var(--color-accent);
}

.mobile-socials {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.hero-section {
    padding: calc(var(--space-32) + var(--space-8)) 0 var(--space-32);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image.active {
    opacity: 1;
}

/* REMOVE THIS ENTIRE .bg-overlay SECTION */
/*
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}
*/

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.badge-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: var(--text-xl);
    max-width: 600px;
    color: var(--color-secondary);
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95); /* Slightly more opaque for better readability */
    backdrop-filter: blur(10px);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-item {
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-tertiary);
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   How It Works - Light Theme
   ========================================================================== */

.works-section {
    padding: var(--space-32) 0;
    background: var(--color-bg);
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-12);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--color-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.step-card {
    background: var(--color-surface-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-xl);
}

.step-visual {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.step-number {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-quaternary);
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.step-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: var(--color-primary);
}

.step-content p {
    color: var(--color-tertiary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Chat Section - Light Theme with Light Background
   ========================================================================== */

.chat-section {
    padding: var(--space-32) 0;
    background: #f8fafc; /* Very light background to distinguish from other sections */
}

.chat-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* Chat Panel */
.chat-panel {
    background: var(--color-surface-light);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-header {
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.avatar-icon {
    width: 24px;
    height: 24px;
}

.agent-details h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    color: white;
}

.agent-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.status-text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 400px;
    max-height: 500px;
    background: var(--color-surface-lighter);
}

.message {
    max-width: 85%;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    animation: slideIn 0.3s ease;
    position: relative;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.message.ai {
    align-self: flex-start;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.message-content {
    white-space: pre-line;
    word-wrap: break-word;
}

.message-time {
    font-size: var(--text-xs);
    opacity: 0.7;
    margin-top: var(--space-2);
    text-align: right;
}

.message.ai .message-time {
    color: var(--color-tertiary);
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: var(--space-1);
    padding: var(--space-4);
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input Area */
.chat-input-area {
    padding: var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--color-surface-light);
}

.quick-suggestions {
    margin-bottom: var(--space-4);
}

.suggestions-label {
    font-size: var(--text-sm);
    color: var(--color-tertiary);
    margin-bottom: var(--space-2);
}

.suggestion-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.suggestion-btn {
    flex: 1;
    min-width: 120px;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.suggestion-btn:hover {
    background: var(--color-surface);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

.suggestion-btn .btn-icon {
    font-size: var(--text-base);
}

.chat-form {
    margin-top: var(--space-4);
}

.input-wrapper {
    display: flex;
    gap: var(--space-3);
    align-items: flex-end;
}

.chat-form textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    padding: var(--space-3);
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-primary);
    resize: none;
    transition: all var(--transition-fast);
}

.chat-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.chat-form textarea::placeholder {
    color: var(--color-tertiary);
}

.send-button {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-help {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-tertiary);
    text-align: center;
}

/* ==========================================================================
   Hamper Panel - Light Theme
   ========================================================================== */

.hamper-panel {
    background: var(--color-surface-light);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hamper-header {
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamper-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: white;
}

.hamper-title h3 {
    margin: 0;
    font-size: var(--text-lg);
    color: white;
}

.hamper-status .status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

.hamper-content {
    flex: 1;
    padding: var(--space-6);
    overflow-y: auto;
    min-height: 400px;
    background: var(--color-surface-lighter);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--color-tertiary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: var(--color-quaternary);
}

.empty-state h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.empty-state p {
    max-width: 300px;
    margin: 0 auto var(--space-8);
    color: var(--color-tertiary);
}

.guidance-tips {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 320px;
    margin: 0 auto;
}

.tip {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-fast);
}

.tip:hover {
    transform: translateX(4px);
    border-color: rgba(124, 58, 237, 0.2);
}

.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.tip-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.tip-content span:first-child {
    font-weight: 500;
    color: var(--color-primary);
    font-size: var(--text-sm);
}

.tip-content span:last-child {
    font-size: var(--text-xs);
    color: var(--color-tertiary);
}

/* Hamper Display */
.hamper-display {
    animation: slideIn 0.5s ease;
}

.hamper-theme {
    padding: var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: var(--space-6);
}

.hamper-theme h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
    color: white;
}

.hamper-theme p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.hamper-total {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.hamper-total .total {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-2);
}

.hamper-total .includes {
    font-size: var(--text-sm);
    color: var(--color-tertiary);
}

/* Quantity Controls - NEW SECTION */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #E5E7EB;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    border-color: #8B5CF6;
    background: #F5F3FF;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.item-subtotal {
    margin-left: auto;
    font-weight: 700;
    font-size: 16px;
    color: #8B5CF6;
}

/* Multiplier Controls */
.hamper-multiplier {
    margin: 20px 0;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
}

.multiplier-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}

.multiplier-controls {
    display: flex;
    gap: 8px;
}

.multiplier-btn {
    padding: 8px 16px;
    border: 1px solid #D1D5DB;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.multiplier-btn:hover {
    border-color: #8B5CF6;
    background: #F5F3FF;
}

/* Update item price styling */
.item-price {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

.hamper-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hamper-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition-fast);
}

.hamper-item:hover {
    transform: translateX(4px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-sm);
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.item-details {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
    gap: var(--space-4);
}

.item-name {
    font-weight: 500;
    color: var(--color-primary);
    font-size: var(--text-base);
}

.item-price {
    font-weight: 600;
    color: var(--color-accent);
    font-size: var(--text-base);
    white-space: nowrap;
}

.item-reason {
    font-size: var(--text-sm);
    color: var(--color-tertiary);
    font-style: italic;
    line-height: 1.4;
}

.hamper-actions {
    padding: var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--color-surface-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Add these at the top of your styles.css or before the checkout section */
:root {
    /* Space variables */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-32: 8rem;
    
    /* Color variables */
    --color-brand: #7c3aed;
    --color-brand-dark: #5b21b6;
    --color-primary: #1e293b;
    --color-secondary: #64748b;
    --color-tertiary: #94a3b8;
    --color-accent: #7c3aed;
    
    /* Radius variables */
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Shadow variables */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Text variables */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    
    /* Transition */
    --transition-fast: 150ms ease;
    
    /* Font */
    --font-primary: 'Inter', -apple-system, sans-serif;
}

/* ==========================================================================
   Checkout Section - Brand Purple Background - FIXED VERSION
   ========================================================================== */

.checkout-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    min-height: 100vh;
}

.checkout-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.checkout-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.checkout-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Empty Checkout State */
.empty-checkout {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.empty-checkout .empty-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
}

.empty-checkout h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.empty-checkout p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-checkout .btn-primary {
    background: white;
    color: #7c3aed;
    border: none;
}

.empty-checkout .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

.checkout-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    color: white;
}

.checkout-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.checkout-body {
    padding: 2rem;
}

.checkout-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.125rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1e293b;
    transition: all 150ms ease;
}

.form-control:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkout-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.powered-by {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.powered-by i {
    color: #635bff;
    margin-left: 0.25rem;
}

/* Checkout Buttons */
#processPayment {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
    border-radius: 0.5rem;
    transition: all 150ms ease;
}

#processPayment:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .checkout-section {
        padding: 2rem 0;
    }
    
    .checkout-section .section-title {
        font-size: 2rem;
    }
    
    .checkout-form {
        margin: 0 1rem;
    }
    
    .checkout-header,
    .checkout-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .checkout-container {
        padding: 0 1rem;
    }
    
    .checkout-form {
        margin: 0;
        border-radius: 0.75rem;
    }
}

.checkout-item-image {
    width: 100px !important;
    height: 100px !important;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 1rem;
}

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

/* ==========================================================================
   Footer - Light Theme
   ========================================================================== */

.footer {
    background: var(--color-surface);
    padding: var(--space-12) 0 var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-brand .brand-logo {
    font-size: var(--text-2xl);
}

.footer-brand .logo-text {
    font-size: var(--text-2xl);
}

.brand-tagline {
    color: var(--color-tertiary);
    font-size: var(--text-sm);
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-group h4 {
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-group a {
    display: block;
    color: var(--color-tertiary);
    text-decoration: none;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    color: var(--color-tertiary);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
}

.legal-link {
    color: var(--color-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--color-accent);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-tertiary);
    font-size: var(--text-sm);
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Modal Styles - Light Theme
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface-light);
    border-radius: var(--radius-2xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-2xl);
}

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

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--color-surface-light);
    z-index: 1;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: var(--space-1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.modal-body {
    padding: var(--space-6);
}

/* Legal Modal */
.legal-modal .modal-content {
    max-width: 900px;
}

.legal-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: var(--space-2);
}

.legal-tab {
    padding: var(--space-2) var(--space-4);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-tertiary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.legal-tab:hover {
    background: var(--color-surface);
    color: var(--color-accent);
}

.legal-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.tab-content h5 {
    font-size: var(--text-lg);
    margin: var(--space-4) 0 var(--space-2);
    color: var(--color-primary);
}

.tab-content p {
    color: var(--color-secondary);
    line-height: 1.6;
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: flex-end;
}

/* Success Modal */
.success-modal .modal-content {
    max-width: 500px;
}

.success-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal h4 {
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.success-modal p {
    text-align: center;
    color: var(--color-secondary);
}

.order-details {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.success-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

@media (max-width: 768px) {
    .success-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Loading Overlay - Light Theme
   ========================================================================== */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    max-width: 300px;
}

.loading-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-6);
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: var(--color-accent-light);
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--color-accent-dark);
    animation-delay: 0.4s;
}

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

#loadingMessage {
    color: var(--color-primary);
    font-weight: 500;
    font-size: var(--text-lg);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: var(--text-5xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .section-subtitle {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .suggestion-buttons {
        flex-direction: column;
    }
    
    .suggestion-btn {
        min-width: 100%;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .footer,
    .chat-input-area,
    .hamper-actions,
    .checkout-actions,
    .hero-actions,
    .modal,
    .loading-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .section {
        padding: 1rem 0 !important;
        break-inside: avoid;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .btn {
        display: none !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
}

/* ==========================================================================
   Hero Background Image Transition JavaScript Helper
   ========================================================================== */

/* Animation for background image transitions */
@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* ==========================================================================
   Restart Chat Button - Top Right of Chat Interface
   ========================================================================== */

.restart-chat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: auto; /* Pushes button to the right */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.restart-chat-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.restart-chat-btn .restart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.restart-chat-btn .restart-text {
    white-space: nowrap;
}

/* Update chat-header to properly align items */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    background: var(--gradient-primary);
    color: white;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .restart-chat-btn {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px;
    }
    
    .restart-chat-btn .restart-icon {
        width: 12px;
        height: 12px;
    }
    
    .restart-chat-btn .restart-text {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    .restart-chat-btn:hover .restart-text {
        display: inline; /* Show text on hover even on mobile */
        position: absolute;
        background: rgba(0, 0, 0, 0.8);
        padding: 4px 8px;
        border-radius: 4px;
        top: 100%;
        right: 0;
        margin-top: 4px;
        white-space: nowrap;
        z-index: 10;
    }
}

/* Animation for button appearance */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.restart-chat-btn.show {
    display: flex !important;
    animation: fadeInRight 0.3s ease;
}

/* Fix for white text on white box */
.hamper-total .total-details {
    color: #8B5CF6 !important; /* Brand purple */
}

.hamper-total .total-details span.hamper-count {
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent-light);
    margin-top: 0.25rem;
}

.hamper-total .total-details .divider {
    color: #8B5CF6 !important;
}

/* OR if you want different colors for different parts */
.hamper-total .total-details {
    color: #8B5CF6; /* Main text purple */
}

.hamper-total .total-amount {
    color: #000000; /* Keep total amount black */
}

/* Make sure background has contrast */
.hamper-total {
    background-color: #F8FAFC; /* Light gray background */
    padding: 1rem;
    border-radius: 0.5rem;
}

/* This CSS will be enhanced by JavaScript for the image transitions */

/* Checkout form error styling */
.form-group {
    position: relative;
}

.error-message {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.luxury-input.error,
.luxury-textarea.error {
    border-color: #EF4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.luxury-input.error:focus,
.luxury-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Make the checkout container background work with purple */
#checkoutContainer {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
}

/* Responsive design for checkout */
@media (max-width: 1024px) {
    .checkout-body {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #checkoutContainer {
        padding: 1rem !important;
        margin: 0.5rem !important;
    }
}

/* Center the checkout container */
#checkoutContainer {
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
}

.checkout-experience {
    width: 100%;
}

/* Notification Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Additional CSS to make it work beautifully */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);  /* Surt for headings */
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;  /* Makes Surt look amazing */
}

body {
    font-family: var(--font-primary);  /* Gambetta for body */
    font-size: var(--text-base);
    line-height: 1.7;  /* Slightly more line-height for readability */
}

.navbar,
.btn,
input,
textarea {
    font-family: var(--font-secondary);  /* Surt for UI elements */
}

/* UNIFORM PRODUCT IMAGE SIZING - RESPONSIVE SIDE-BY-SIDE */
.item-image {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px;
    min-height: 120px;
    max-width: 120px;
    max-height: 120px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #f8fafc;
    flex-shrink: 0;
}

.item-image img.luxury-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 8px;
    display: block;
}

/* For hamper items - side-by-side layout on ALL devices */
.hamper-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.hamper-item .item-image {
    width: 120px !important;
    height: 120px !important;
    min-width: 120px;
    min-height: 120px;
}

.hamper-item .item-details {
    flex: 1;
    min-width: 0; /* Important for text truncation */
    overflow: hidden;
}

.hamper-item .item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hamper-item .item-brand {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.hamper-item .item-reason {
    font-size: 13px;
    color: #4b5563;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Added standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hamper-item .item-category {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

/* For checkout items - smaller */
.checkout-summary .item-image {
    width: 60px !important;
    height: 60px !important;
    border-radius: 6px;
}

/* Responsive sizing for mobile - KEEP SIDE-BY-SIDE */
@media (max-width: 768px) {
    .hamper-item {
        gap: 12px;
        padding: 12px;
    }
    
    .item-image {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px;
        min-height: 100px;
    }
    
    .hamper-item .item-image {
        width: 100px !important;
        height: 100px !important;
        min-width: 100px;
        min-height: 100px;
    }
    
    .hamper-item .item-name {
        font-size: 15px;
    }
    
    .hamper-item .item-brand {
        font-size: 13px;
    }
    
    .hamper-item .item-reason {
        font-size: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Added standard property */
    }
    
    .checkout-summary .item-image {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 480px) {
    .hamper-item {
        gap: 10px;
        padding: 10px;
    }
    
    .item-image {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px;
        min-height: 90px;
    }
    
    .hamper-item .item-image {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px;
        min-height: 90px;
    }
    
    .hamper-item .item-name {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .hamper-item .item-brand {
        font-size: 12px;
    }
    
    .hamper-item .item-reason {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Added standard property */
        margin-bottom: 6px;
    }
    
    .hamper-item .item-category {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    /* Make quantity controls smaller on mobile */
    .hamper-item .quantity-controls {
        gap: 6px;
    }
    
    .hamper-item .quantity-btn {
        width: 28px;
        height: 28px;
    }
    
    .hamper-item .quantity-input {
        width: 45px;
        height: 28px;
        font-size: 13px;
    }
    
    .hamper-item .item-subtotal {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    /* For very small phones */
    .hamper-item {
        gap: 8px;
        padding: 8px;
    }
    
    .item-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px;
        min-height: 80px;
    }
    
    .hamper-item .item-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px;
        min-height: 80px;
    }
    
    .hamper-item .item-name {
        font-size: 13px;
    }
    
    .hamper-item .item-reason {
        font-size: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Added standard property */
    }
}

/* Ensure the Shopify CDN images respect these sizes */
.item-image img.luxury-image[src*="cdn.shopify.com"] {
    object-fit: cover !important;
}

/* Fix for alcohol badge positioning */
.item-image .alcohol-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

/* Fix text overflow and ensure proper layout */
.hamper-item .item-details > * {
    max-width: 100%;
}

/* Ensure quantity controls fit properly */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.quantity-controls .item-subtotal {
    margin-left: auto;
    font-weight: 700;
    font-size: 15px;
    color: #8B5CF6;
}

/* ==========================================================================
   Hamper Copies Styles - Light Theme
   ========================================================================== */

.hamper-copies-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(249, 250, 251, 0.8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.copies-header {
    margin-bottom: 1.5rem;
}

.copies-header h5 {
    color: var(--color-primary);
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.copies-header p {
    color: var(--color-tertiary);
    font-size: var(--text-sm);
    margin: 0;
}

.copies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hamper-copy {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.hamper-copy:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: var(--shadow-md);
}

.copy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.copy-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.copy-number {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-accent);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    align-self: flex-start;
}

.copy-theme {
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.copy-actions {
    display: flex;
    gap: 0.25rem;
}

.copy-action-btn {
    background: none;
    border: 1px solid var(--color-quaternary);
    color: var(--color-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: var(--text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all var(--transition-fast);
}

.copy-action-btn:hover {
    border-color: var(--color-error);
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.05);
}

.copy-action-btn svg {
    width: 12px;
    height: 12px;
}

.copy-items {
    margin: 0.75rem 0;
}

.copy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: var(--text-sm);
    color: var(--color-secondary);
}

.copy-item span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.copy-item span:last-child {
    font-weight: 500;
    color: var(--color-primary);
}

.copy-total {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 0.75rem;
    text-align: right;
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.copy-total strong {
    color: var(--color-accent);
    font-size: var(--text-base);
    margin-left: 0.25rem;
}

/* Multiplier button styles for copy button */
.copy-hamper-btn {
    background: rgba(139, 92, 246, 0.1) !important;
    color: var(--color-accent) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.copy-hamper-btn:hover {
    background: var(--color-accent) !important;
    color: white !important;
    border-color: var(--color-accent) !important;
}

.multiplier-hint {
    font-size: var(--text-xs);
    color: var(--color-tertiary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Update multiplier controls to fit new button */
.multiplier-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Responsive design for hamper copies */
@media (max-width: 768px) {
    .copies-grid {
        grid-template-columns: 1fr;
    }
    
    .hamper-copy {
        padding: 0.75rem;
    }
    
    .copy-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copy-actions {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .multiplier-controls {
        flex-direction: column;
    }
    
    .multiplier-btn, .copy-hamper-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add these styles to your frontend/styles.css */

/* Bulk order specific styles */
.bulk-request-btn:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.hamper-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease;
}

/* Scrollbar styling for copy items */
.copy-items::-webkit-scrollbar {
    width: 4px;
}

.copy-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.copy-items::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 2px;
}

/* Animation for adding new copies */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hamper-copy {
    animation: fadeInScale 0.3s ease;
}

/* Add to your stylesheet */
.exact-bulk-display {
    animation: slideUp 0.5s ease;
}

.style-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.style-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15) !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#confirmDistributionBtn {
    transition: all 0.2s;
}

#confirmDistributionBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}