/* =====================================================
   FESTIVAL INFÀNCIA 2025 - KH-7 Survey PWA
   ===================================================== */

:root {
    /* Paleta de colores KH-7 CORPORATIVOS */
    --primary: #2D3E8A;          /* Azul KH-7 (letras del logo) */
    --primary-dark: #1E2D6B;     /* Azul oscuro */
    --primary-light: #E8EBF5;    /* Azul muy claro */
    --accent: #FF6B00;           /* Naranja KH-7 (óvalo del logo) */
    --accent-dark: #E55F00;      /* Naranja oscuro */
    --accent-light: #FFF3EB;     /* Naranja muy claro */
    --lime: #8DC63F;             /* Verde lima KH-7 (borde del logo) */
    
    /* Neutros */
    --bg: #f8f9fb;
    --bg-card: #ffffff;
    --text: #1a2b3c;
    --text-light: #5a6b7c;
    --text-muted: #8a9bac;
    --border: #e1e8ef;
    --border-light: #f0f4f8;
    
    /* Estados */
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Bordes */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transiciones */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: var(--space-md) var(--space-lg);
    color: white;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--lime);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 500;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.progress-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.survey-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border-light);
}

.section-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =====================================================
   WELCOME SCREEN
   ===================================================== */
.welcome-screen {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

.welcome-screen h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.welcome-text {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.welcome-subtext {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 400px;
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature span:last-child {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =====================================================
   QUESTION GROUPS
   ===================================================== */
.question-group {
    margin-bottom: var(--space-xl);
}

.question-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.question-label.small {
    font-size: 1rem;
    margin-top: var(--space-md);
}

.hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =====================================================
   RADIO & CHECKBOX CARDS
   ===================================================== */
.radio-grid,
.checkbox-grid {
    display: grid;
    gap: var(--space-sm);
}

.radio-grid.cols-2,
.checkbox-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.radio-grid.cols-3,
.checkbox-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.radio-grid.cols-4,
.checkbox-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.radio-grid.cols-5,
.checkbox-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.radio-list,
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.radio-card,
.checkbox-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-sm);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 56px;
}

.radio-card.wide,
.checkbox-card.wide {
    justify-content: flex-start;
    text-align: left;
    padding: var(--space-md) var(--space-lg);
}

.radio-card.compact,
.checkbox-card.compact {
    padding: var(--space-sm);
    min-height: 48px;
}

.radio-card.small,
.checkbox-card.small {
    padding: var(--space-sm) var(--space-xs);
    min-height: 44px;
    font-size: 0.875rem;
}

.radio-card input,
.checkbox-card input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.radio-content,
.checkbox-content {
    font-weight: 500;
    color: var(--text);
    pointer-events: none;
    line-height: 1.3;
}

/* DEFAULT STATE - Always neutral unless .selected */
.radio-card,
.checkbox-card {
    border-color: var(--border) !important;
    background: var(--bg-card) !important;
    box-shadow: none !important;
    color: var(--text) !important;
    font-weight: 400 !important;
}

/* Remove ALL hover/focus/active effects */
.radio-card:hover,
.checkbox-card:hover,
.radio-card:focus,
.checkbox-card:focus,
.radio-card:focus-within,
.checkbox-card:focus-within,
.radio-card:active,
.checkbox-card:active,
.radio-card:focus-visible,
.checkbox-card:focus-visible {
    outline: none !important;
    border-color: var(--border) !important;
    background: var(--bg-card) !important;
    box-shadow: none !important;
}

/* ONLY selected cards get orange - this overrides everything above */
.radio-card.selected,
.checkbox-card.selected {
    border-color: var(--accent) !important;
    background: var(--accent-light) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15) !important;
}

.radio-card.selected .radio-content,
.checkbox-card.selected .checkbox-content {
    color: var(--accent-dark) !important;
    font-weight: 600 !important;
}

/* Highlight none exception */
.checkbox-card.highlight-none.selected {
    border-color: var(--text-muted) !important;
    background: var(--bg) !important;
}

/* Disabled state for max selections */
.radio-card.disabled,
.checkbox-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================================
   CONDITIONAL GROUPS
   ===================================================== */
.conditional-group {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius);
    animation: slideDown 0.3s ease;
}

.conditional-section {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   PRODUCT CATEGORIES
   ===================================================== */
.product-category {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius);
}

.category-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

/* =====================================================
   STAR RATING
   ===================================================== */
.rating-group {
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg);
    border-radius: var(--radius);
}

.rating-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.star-rating {
    display: flex;
    gap: var(--space-xs);
}

.star {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.star:hover,
.star.hover {
    color: var(--warning);
    transform: scale(1.1);
}

.star.active {
    color: var(--warning);
}

/* =====================================================
   TEXT INPUTS
   ===================================================== */
.text-input,
.textarea-input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.text-input.large {
    font-size: 1.125rem;
    padding: var(--space-lg);
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.textarea-input {
    resize: vertical;
    min-height: 100px;
}

.text-input::placeholder,
.textarea-input::placeholder {
    color: var(--text-muted);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

/* =====================================================
   PRIVACY NOTICE
   ===================================================== */
.privacy-notice {
    padding: var(--space-lg);
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary);
}

/* Welcome logo */
.welcome-logo {
    width: 180px;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.privacy-notice p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.privacy-notice p.small {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* =====================================================
   THANK YOU SCREEN
   ===================================================== */
.thank-you-screen {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.thank-you-icon {
    font-size: 5rem;
    margin-bottom: var(--space-lg);
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.thank-you-screen h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.thank-you-text {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.thank-you-subtext {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.final-message {
    text-align: center;
    padding: var(--space-xl);
    background: var(--success-light);
    border-radius: var(--radius);
    margin-top: var(--space-xl);
}

.final-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.final-message p {
    font-size: 1.125rem;
    color: var(--success);
    font-weight: 600;
}

/* =====================================================
   FOOTER / BUTTONS
   ===================================================== */
.footer {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-light);
    border-color: var(--text-muted);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.9;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-large {
    padding: var(--space-lg) var(--space-xl);
    font-size: 1.125rem;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--space-md) var(--space-xl);
    background: var(--text);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-lg);
}

.admin-panel.show {
    display: flex;
}

.admin-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
}

.admin-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--border);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: var(--primary-light);
    border-radius: var(--radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.admin-section {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}

.admin-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.admin-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.admin-actions .btn {
    flex: 1;
    min-width: 140px;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    opacity: 0.9;
}

.admin-responses {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
}

/* Sync Status */
.sync-status-container {
    padding: var(--space-md) var(--space-lg);
}

.sync-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.sync-status.synced {
    background: var(--success-light);
    color: var(--success);
}

.sync-status.pending {
    background: #fef3c7;
    color: #d97706;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .radio-grid.cols-5,
    .checkbox-grid.cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .radio-grid.cols-4,
    .checkbox-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .radio-grid.cols-3,
    .checkbox-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .progress-container {
        width: 100%;
    }
    
    .progress-bar {
        flex: 1;
    }
}

/* =====================================================
   PWA INSTALL PROMPT
   ===================================================== */
.install-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: var(--bg-card);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    gap: var(--space-md);
    align-items: center;
    z-index: 999;
}

.install-prompt.show {
    display: flex;
}

.install-prompt p {
    flex: 1;
    font-size: 0.95rem;
}

/* Hidden admin trigger (logo tap) */
.logo {
    cursor: pointer;
}

/* =====================================================
   PRODUCT IMAGES
   ===================================================== */

/* Bodegón de productos KH-7 */
.product-showcase {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
}

.bodegon-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Category headers with images */
.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: var(--primary-light);
    border-radius: var(--radius);
}

.category-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.category-header .category-title {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    flex: 1;
}

@media (max-width: 480px) {
    .category-image {
        width: 45px;
        height: 45px;
    }
    
    .category-header {
        gap: var(--space-sm);
    }
}

/* =====================================================
   IMAGE LIGHTBOX
   ===================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-lg);
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* Make category images clickable */
.category-image-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.category-image {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-image-wrapper::after {
    content: '🔍';
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 0.7rem;
    background: var(--accent);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.category-image-wrapper:hover .category-image {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.category-image-wrapper:hover::after {
    transform: scale(1.1);
}

/* =====================================================
   LEGAL MODAL
   ===================================================== */
.legal-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.legal-link:hover {
    color: var(--accent);
}

.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-md);
}

.legal-modal.show {
    opacity: 1;
    visibility: visible;
}

.legal-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: var(--space-xl);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.legal-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-right: 40px;
}

.legal-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: var(--transition);
}

.legal-modal-close:hover {
    background: var(--accent);
    color: white;
}

.legal-text p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.legal-text a {
    color: var(--primary);
}

.legal-text em {
    color: var(--text-light);
}

/* =====================================================
   PRODUCT PREVIEW IMAGE
   ===================================================== */
.product-preview {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.product-image-large {
    width: 120px !important;
    height: 120px !important;
}

.question-hint {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-style: italic;
}

