﻿/* Prylbutiken Homepage Styles */
/* Extracted from index.asp for better maintainability */

/* CSS Variables for Performance and Consistency */
        :root {
            --primary-color: #4a90e2;
            --primary-dark: #357abd;
            --secondary-color: #e74c3c;
            --secondary-dark: #c0392b;
            --text-color: #333;
            --text-light: #666;
            --text-lighter: #999;
            --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --white-transparent: rgba(255, 255, 255, 0.95);
            --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.1);
            --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.15);
            --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.15);
            --border-radius: 15px;
            --border-radius-large: 20px;
            --animation-duration: 0.3s;
            --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --container-width: 1200px;
            --spacing-small: 10px;
            --spacing-medium: 20px;
            --spacing-large: 30px;
            --spacing-xl: 50px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: var(--font-primary);
            line-height: 1.6;
            color: var(--text-color);
            background: var(--background-gradient);
            min-height: 100vh;
        }
        
        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 var(--spacing-medium);
        }
        
        /* Optimized animations with CSS variables */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp var(--animation-duration) ease forwards;
        }
        
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Critical CSS - Above the fold styles */
        header {
            background: var(--white-transparent);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow-light);
            padding: 12px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            line-height: 1.2;
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            line-height: 1.2;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: var(--spacing-medium);
        }
        
        /* unified styling for header buttons is now applied via combined selector with nav a further down */
        .header-actions .search-toggle,
        .header-actions .cart-icon,
        .header-actions .home-icon {
            background: var(--header-button-bg-color, var(--nav-pill-bg, rgba(255,255,255,0.1))) !important;
            color: var(--menu-text-color, #ffffff) !important;
        }
        /* Uniform height for header action pills */
        .header-actions .search-toggle,
        .header-actions .cart-icon,
        .header-actions .home-icon {
            height: 48px;
            padding: 12px 25px !important;
            border-radius: 25px !important;
            border: 1px solid rgba(44, 90, 160, 0.6) !important;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 1rem;
            text-decoration: none;
            line-height: 1.1;
        }
        /* Ensure search button uses same pill dimensions as nav links */
        .header-actions .search-toggle {
            padding: 12px 25px !important;
            border-radius: 25px !important;
            border: 1px solid rgba(44, 90, 160, 0.6) !important;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 1rem; /* unified font size */
            line-height: 1.1;
        }
        .header-actions .search-toggle:hover,
        .header-actions .cart-icon:hover,
        .header-actions .home-icon:hover {
            background: var(--header-button-hover-color, var(--header-button-bg-color, var(--nav-pill-bg-hover, rgba(255,255,255,0.2)))) !important;
            border-color: rgba(30, 61, 111, 0.8) !important;
            color: var(--menu-text-color, #ffffff) !important;
        }

        /* Suppress initial flicker: during booting, disable transitions/animations for cart UI */
        .booting .cart-icon { transition: none !important; }
        .booting .cart-badge { animation: none !important; }
        
        .search-toggle:hover, .cart-icon:hover, .home-icon:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }
        
        .cart-icon { min-width: 140px; }
        
        .cart-badge {
            background: var(--secondary-color);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: none; /* hidden by default to avoid initial blink */
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            position: absolute;
            top: -5px;
            right: -5px;
            animation: none; /* no animation unless explicitly toggled */
        }
        .cart-badge.bounce { animation: bounce 0.3s ease; }
        
        @keyframes bounce {
            0%, 20%, 60%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            80% { transform: translateY(-5px); }
        }
        
        .cart-total {
            font-size: 0.9rem;
            font-weight: bold;
            min-width: 60px; /* reserve space to avoid shift when text loads */
            text-align: right;
        }
        
        .search-container {
            max-height: 0;
            overflow: hidden;
            transition: max-height var(--animation-duration) ease;
            margin-top: var(--spacing-medium);
            position: relative;
        }
        
        .search-container.active {
            max-height: 500px;
        }
        
        .search-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }
        
        .search-input {
            width: 100%;
            padding: 15px 50px 15px 20px;
            border: 2px solid var(--primary-color);
            border-radius: 25px;
            font-size: 1rem;
            outline: none;
            transition: border-color var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
        }
        
        .search-input:focus {
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
        }
        
        .search-clear, .search-loader {
            position: absolute;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-light);
            transition: color var(--animation-duration) ease;
        }
        
        .search-clear:hover {
            color: var(--secondary-color);
        }
        
        .search-loader {
            animation: searchPulse 1.5s infinite;
        }
        
        @keyframes searchPulse {
            0%, 100% { transform: scale(1); opacity: 0.7; }
            50% { transform: scale(1.1); opacity: 1; }
        }
        
        .search-suggestions, .search-results {
            background: white;
            border-radius: var(--border-radius);
            margin-top: var(--spacing-small);
            box-shadow: var(--shadow-light);
            max-height: 400px;
            overflow-y: auto;
            position: absolute;
            width: 100%;
            z-index: 1000;
        }
        
        .search-results {
            margin-top: 60px;
        }
        
        .search-suggestion, .search-result-item {
            padding: 12px 20px;
            cursor: pointer;
            transition: background-color var(--animation-duration) ease;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
        }
        
        .search-suggestion:hover, .search-result-item:hover {
            background: #f8f9fa;
        }
        
        .search-suggestion:last-child, .search-result-item:last-child {
            border-bottom: none;
        }
        
        .search-suggestion-icon, .search-result-icon {
            font-size: 1.2rem;
            opacity: 0.7;
        }
        
        .search-suggestion-text, .search-result-text {
            flex: 1;
        }
        
        .search-suggestion-category {
            font-size: 0.8rem;
            color: var(--text-light);
            background: #f0f0f0;
            padding: 2px 8px;
            border-radius: 10px;
        }
        
        .search-result-price {
            font-weight: bold;
            color: var(--secondary-color);
        }
        
        /* Navigation Dropdown Styles */
        .nav-dropdown {
            position: relative;
        }
        
        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .dropdown-arrow {
            font-size: 0.8rem;
            transition: transform var(--animation-duration) ease;
        }
        
        .nav-dropdown:hover .dropdown-arrow {
            transform: rotate(180deg);
        }
        
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-medium);
            padding: var(--spacing-medium);
            min-width: 800px;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: var(--spacing-large);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(-10px);
            transition: all var(--animation-duration) ease;
            z-index: 1000;
            margin-top: var(--spacing-small);
        }
        
        .nav-dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        
        .dropdown-section {
            display: flex;
            flex-direction: column;
        }
        
        .dropdown-section h4 {
            color: var(--primary-color);
            font-size: 1rem;
            margin-bottom: var(--spacing-small);
            padding-bottom: 8px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .dropdown-section a {
            color: var(--text-color);
            text-decoration: none;
            padding: 8px 0;
            transition: color var(--animation-duration) ease;
            font-size: 0.9rem;
        }
        
        .dropdown-section a:hover {
            color: var(--primary-color);
            padding-left: 8px;
        }
        
        .dropdown-section.featured {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: var(--spacing-medium);
            border-radius: var(--border-radius);
        }
        
        .featured-link {
            background: white;
            margin-bottom: 8px;
            padding: 10px !important;
            border-radius: 8px;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        
        .featured-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }
        
        .user-menu {
            min-width: 200px;
            grid-template-columns: 1fr;
        }
        
        .user-menu hr {
            border: none;
            border-top: 1px solid #eee;
            margin: var(--spacing-small) 0;
        }
        
        /* Breadcrumb Styles */
        .breadcrumb {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            padding: var(--spacing-small) 0;
            font-size: 0.9rem;
            color: var(--text-light);
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(5px);
            border-radius: 20px;
            padding: 10px 20px;
            margin: var(--spacing-small) 0;
        }
        
        .breadcrumb-item {
            color: var(--text-light);
            text-decoration: none;
            transition: color var(--animation-duration) ease;
        }
        
        .breadcrumb-item:hover {
            color: var(--primary-color);
        }
        
        .breadcrumb-item.current {
            color: var(--text-color);
            font-weight: bold;
        }
        
        .breadcrumb-separator {
            color: var(--text-lighter);
            font-weight: bold;
        }
        
        /* Products Header and Controls */
        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-large);
            flex-wrap: wrap;
            gap: var(--spacing-medium);
        }
        
        .products-controls {
            display: flex;
            gap: var(--spacing-medium);
            align-items: center;
        }
        
        .filter-toggle-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: all var(--animation-duration) ease;
        }
        
        .filter-toggle-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }
        
        .sort-dropdown select {
            padding: 10px 15px;
            border: 2px solid #ddd;
            border-radius: 20px;
            background: white;
            cursor: pointer;
            font-size: 0.9rem;
            min-width: 180px;
        }
        
        .sort-dropdown select:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        /* Filter Panel Styles */
        .filter-panel {
            background: white;
            border-radius: var(--border-radius);
            padding: var(--spacing-large);
            margin-bottom: var(--spacing-large);
            box-shadow: var(--shadow-light);
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease, padding 0.3s ease;
        }
        
        .filter-panel.active {
            max-height: 1000px;
        }
        
        .filter-section {
            margin-bottom: var(--spacing-large);
            padding-bottom: var(--spacing-medium);
            border-bottom: 1px solid #f0f0f0;
        }
        
        .filter-section:last-child {
            border-bottom: none;
        }
        
        .filter-section h4 {
            color: var(--primary-color);
            margin-bottom: var(--spacing-medium);
            font-size: 1.1rem;
        }
        
        .filter-checkboxes {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-small);
        }
        
        .filter-checkboxes label {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            cursor: pointer;
            padding: 8px 0;
            transition: color var(--animation-duration) ease;
        }
        
        .filter-checkboxes label:hover {
            color: var(--primary-color);
        }
        
        .filter-checkboxes input[type=checkbox] {
            width: 18px;
            height: 18px;
            accent-color: var(--primary-color);
        }
        
        /* Price Range Styles */
        .price-range {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-medium);
        }
        
        .price-inputs {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
        }
        
        .price-inputs input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 0.9rem;
        }
        
        .price-inputs span {
            color: var(--text-light);
            font-weight: bold;
        }
        
        .price-slider {
            position: relative;
            height: 20px;
        }
        
        .slider {
            position: absolute;
            width: 100%;
            height: 6px;
            border-radius: 3px;
            background: #ddd;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
        }
        
        .slider::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        
        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-color);
            cursor: pointer;
            border: 2px solid white;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        }
        
        /* Color Filters */
        .color-filters {
            display: flex;
            gap: var(--spacing-small);
            flex-wrap: wrap;
        }
        
        .color-filter {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px solid transparent;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            position: relative;
        }
        
        .color-filter:hover {
            transform: scale(1.1);
            border-color: var(--primary-color);
        }
        
        .color-filter.active {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
        }
        
        .color-filter.active::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
        }
        
        /* Filter Actions */
        .filter-actions {
            display: flex;
            gap: var(--spacing-medium);
            justify-content: space-between;
            margin-top: var(--spacing-large);
            padding-top: var(--spacing-medium);
            border-top: 1px solid #f0f0f0;
        }
        
        .clear-filters-btn, .apply-filters-btn {
            flex: 1;
            padding: 15px 20px;
            border: none;
            border-radius: var(--border-radius);
            font-weight: bold;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
        }
        
        .clear-filters-btn {
            background: transparent;
            color: var(--text-light);
            border: 1px solid #ddd;
        }
        
        .clear-filters-btn:hover {
            background: #f8f9fa;
            color: var(--text-color);
        }
        
        .apply-filters-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
        }
        
        .apply-filters-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
        }
        
        /* Enhanced Product Grid */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: var(--spacing-large);
            margin-top: var(--spacing-large);
        }
        
        .product-card {
            background: white;
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-light);
            transition: all var(--animation-duration) ease;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
            transition: left 0.6s ease;
        }
        
        .product-card:hover::before {
            left: 100%;
        }
        
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-heavy);
            border-color: var(--primary-color);
        }
        
        .product-badge {
            position: absolute;
            top: var(--spacing-medium);
            right: var(--spacing-medium);
            background: var(--secondary-color);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: bold;
            z-index: 2;
        }
        
        .product-badge.sale {
            background: #ff6b35;
        }
        
        .product-badge.new {
            background: #27ae60;
        }
        
        .product-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            margin: var(--spacing-small) 0;
        }
        
        .stars {
            color: #ffa500;
        }
        
        .rating-count {
            color: var(--text-light);
            font-size: 0.85rem;
        }
        
        /* AI & Personalization Styles */
        .ai-recommendations-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: var(--spacing-xlarge) var(--spacing-large);
            margin: var(--spacing-xlarge) 0;
            border-radius: var(--border-radius-large);
            position: relative;
            overflow: hidden;
        }
        
        .ai-recommendations-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
            pointer-events: none;
        }
        
        .ai-header {
            text-align: center;
            margin-bottom: var(--spacing-xlarge);
            position: relative;
            z-index: 2;
        }
        
        .ai-header h2 {
            font-size: 2.5rem;
            margin-bottom: var(--spacing-small);
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }
        
        .ai-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: var(--spacing-large);
        }
        
        .ai-confidence-meter {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-medium);
            background: rgba(255, 255, 255, 0.1);
            padding: 15px 25px;
            border-radius: 25px;
            backdrop-filter: blur(10px);
        }
        
        .confidence-bar {
            width: 200px;
            height: 8px;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            overflow: hidden;
        }
        
        .confidence-fill {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A, #FFC107);
            border-radius: 4px;
            transition: width 2s ease;
            animation: confidenceGlow 2s ease-in-out infinite alternate;
        }
        
        @keyframes confidenceGlow {
            0% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.5); }
            100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.4); }
        }
        
        .confidence-percent {
            font-weight: bold;
            font-size: 1.1rem;
        }
        
        /* User Insights */
        .user-insights {
            margin: var(--spacing-xlarge) 0;
            text-align: center;
            position: relative;
            z-index: 2;
        }
        
        .user-insights h3 {
            margin-bottom: var(--spacing-large);
            font-size: 1.5rem;
        }
        
        .insight-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: var(--spacing-medium);
        }
        
        .insight-tag {
            background: rgba(255, 255, 255, 0.2);
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 1rem;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            border: 2px solid transparent;
            backdrop-filter: blur(5px);
        }
        
        .insight-tag.active {
            background: rgba(255, 255, 255, 0.9);
            color: var(--primary-color);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.05);
        }
        
        .insight-tag:hover {
            transform: scale(1.1);
            background: rgba(255, 255, 255, 0.3);
        }
        
        /* AI Recommendation Cards */
        .ai-recommendation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: var(--spacing-large);
            margin: var(--spacing-xlarge) 0;
            position: relative;
            z-index: 2;
        }
        
        .ai-rec-card {
            background: rgba(255, 255, 255, 0.95);
            color: var(--text-color);
            padding: var(--spacing-large);
            border-radius: var(--border-radius-large);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: all var(--animation-duration) ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        
        .ai-rec-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.8s ease;
        }
        
        .ai-rec-card:hover::before {
            left: 100%;
        }
        
        .ai-rec-card:hover {
            transform: translateY(-10px) scale(1.03);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .ai-rec-card.premium {
            border: 2px solid #FFD700;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.95));
        }
        
        .ai-rec-card.trending {
            border: 2px solid #FF6B35;
            background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 255, 255, 0.95));
        }
        
        .ai-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 5px;
            z-index: 3;
        }
        
        .ai-badge.trending {
            background: linear-gradient(135deg, #FF6B35, #F7931E);
            animation: pulse 2s ease-in-out infinite;
        }
        
        .ai-rec-card .product-image {
            font-size: 5rem;
            text-align: center;
            margin: var(--spacing-large) 0;
        }
        
        .ai-rec-card h4 {
            font-size: 1.4rem;
            margin-bottom: var(--spacing-medium);
            color: var(--primary-color);
        }
        
        .ai-reasoning {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 10px;
            margin: var(--spacing-medium) 0;
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            font-style: italic;
            color: var(--text-light);
        }
        
        .ai-reasoning i {
            color: #FFC107;
        }
        
        .price-section {
            margin: var(--spacing-medium) 0;
            text-align: center;
        }
        
        .old-price {
            text-decoration: line-through;
            color: var(--text-lighter);
            font-size: 1rem;
            margin-right: var(--spacing-small);
        }
        
        .ai-price {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .savings {
            background: #4CAF50;
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: bold;
            display: inline-block;
            margin-top: var(--spacing-small);
        }
        
        .ai-features {
            display: flex;
            flex-wrap: wrap;
            gap: var(--spacing-small);
            margin: var(--spacing-medium) 0;
        }
        
        .feature-tag {
            background: #E8F5E8;
            color: #2E7D32;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: bold;
        }
        
        .ai-cta-btn {
            width: 100%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 15px 25px;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            position: relative;
            overflow: hidden;
        }
        
        .ai-cta-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease;
        }
        
        .ai-cta-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .ai-cta-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }
        
        /* AI Learning Section */
        .ai-learning-section {
            background: rgba(255, 255, 255, 0.1);
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            margin-top: var(--spacing-xlarge);
            text-align: center;
            position: relative;
            z-index: 2;
            backdrop-filter: blur(10px);
        }
        
        .ai-learning-section h3 {
            margin-bottom: var(--spacing-large);
            font-size: 1.3rem;
        }
        
        .learning-indicators {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-medium);
        }
        
        .learning-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: var(--spacing-small);
            padding: var(--spacing-medium);
            border-radius: var(--border-radius);
            transition: all var(--animation-duration) ease;
        }
        
        .learning-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .learning-item i {
            font-size: 2rem;
            margin-bottom: var(--spacing-small);
        }
        
        .progress-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transition: all var(--animation-duration) ease;
        }
        
        .progress-dot.active {
            background: #4CAF50;
            animation: pulse 2s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.2); opacity: 0.7; }
        }
        
        /* AI Chatbot Styles */
        .ai-chatbot {
            position: fixed;
            bottom: 100px;
            right: 20px;
            width: 380px;
            height: 600px;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            z-index: 10000;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(100%) scale(0.8);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .ai-chatbot.active {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        
        .ai-chatbot.minimized {
            height: 60px;
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        
        .chatbot-header {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            min-height: 60px;
        }
        
        .chatbot-avatar {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            backdrop-filter: blur(10px);
        }
        
        .chatbot-info {
            flex: 1;
        }
        
        .chatbot-info h4 {
            margin: 0 0 5px 0;
            font-size: 1.1rem;
        }
        
        .status-indicator {
            font-size: 0.85rem;
            opacity: 0.9;
            display: flex;
            align-items: center;
        }
        
        .status-indicator::before {
            content: '';
            width: 8px;
            height: 8px;
            background: #4CAF50;
            border-radius: 50%;
            display: inline-block;
            margin-right: 8px;
            animation: pulse 2s ease-in-out infinite;
        }
        
        .chatbot-controls {
            display: flex;
            gap: 10px;
        }
        
        .chatbot-controls button {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--animation-duration) ease;
            backdrop-filter: blur(10px);
        }
        
        .chatbot-controls button:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }
        
        .chatbot-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .message {
            display: flex;
            gap: 10px;
            animation: slideInUp 0.3s ease;
        }
        
        .message.user-message {
            flex-direction: row-reverse;
        }
        
        .message-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        
        .bot-message .message-avatar {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }
        
        .user-message .message-avatar {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }
        
        .message-content {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 15px;
            max-width: 80%;
            position: relative;
        }
        
        .user-message .message-content {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
        }
        
        .message-content p {
            margin: 0 0 10px 0;
        }
        
        .message-content p:last-child {
            margin-bottom: 0;
        }
        
        .message-content ul {
            margin: 10px 0;
            padding-left: 20px;
        }
        
        .message-content li {
            margin: 5px 0;
        }
        
        .message-time {
            font-size: 0.75rem;
            color: var(--text-lighter);
            margin-top: 5px;
            align-self: flex-end;
        }
        
        .quick-suggestions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 15px;
        }
        
        .suggestion-btn {
            background: linear-gradient(135deg, #e3f2fd, #bbdefb);
            border: 1px solid #2196f3;
            color: #1976d2;
            padding: 12px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            text-align: left;
            font-size: 0.9rem;
        }
        
        .suggestion-btn:hover {
            background: linear-gradient(135deg, #2196f3, #1976d2);
            color: white;
            transform: translateX(5px);
        }
        
        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            color: var(--text-light);
            font-style: italic;
        }
        
        .typing-dots {
            display: flex;
            gap: 3px;
        }
        
        .typing-dots span {
            width: 8px;
            height: 8px;
            background: var(--primary-color);
            border-radius: 50%;
            animation: typingDots 1.4s infinite;
        }
        
        .typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes typingDots {
            0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
            30% { transform: scale(1.2); opacity: 1; }
        }
        
        .chatbot-input-area {
            padding: 20px;
            background: #f8f9fa;
            border-top: 1px solid #e0e0e0;
        }
        
        .input-container {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .input-container input {
            flex: 1;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            font-size: 0.9rem;
            transition: all var(--animation-duration) ease;
        }
        
        .input-container input:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        
        .send-btn, .voice-btn {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--animation-duration) ease;
        }
        
        .send-btn:hover, .voice-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .voice-btn {
            background: linear-gradient(135deg, #4CAF50, #45a049);
        }
        
        .voice-btn:hover {
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
        }
        
        .voice-btn.recording {
            background: linear-gradient(135deg, #f44336, #d32f2f);
            animation: pulse 1s ease-in-out infinite;
        }
        
        .ai-capabilities {
            display: flex;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .capability-tag {
            background: #e8f5e8;
            color: #2e7d32;
            padding: 4px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: bold;
        }
        
        /* Chatbot Toggle Button */
        .chatbot-toggle {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 9999;
            transition: all var(--animation-duration) ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }
        
        .chatbot-toggle:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        }
        
        .chatbot-toggle i {
            color: white;
            font-size: 1.5rem;
        }
        
        .chat-notification {
            position: absolute;
            top: -5px;
            right: -5px;
            width: 25px;
            height: 25px;
            background: #ff6b35;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            animation: pulse 2s ease-in-out infinite;
        }
        
        .pulse-effect {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            opacity: 0.7;
            transform: translate(-50%, -50%);
            animation: pulseEffect 2s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes pulseEffect {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
            70% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
            100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
        }
        
        /* Dynamic Content Personalization */
        .dynamic-content-section {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: var(--spacing-xlarge);
            margin: var(--spacing-xlarge) 0;
            border-radius: var(--border-radius-large);
            position: relative;
            overflow: hidden;
        }
        
        .personalization-header {
            text-align: center;
            margin-bottom: var(--spacing-xlarge);
        }
        
        .personalization-header h2 {
            color: var(--primary-color);
            margin-bottom: var(--spacing-medium);
            font-size: 2.2rem;
        }
        
        .personalization-stats {
            display: flex;
            justify-content: center;
            gap: var(--spacing-large);
            flex-wrap: wrap;
        }
        
        .stat-item {
            background: white;
            padding: 15px 25px;
            border-radius: 25px;
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            box-shadow: var(--shadow-light);
            font-weight: bold;
            color: var(--primary-color);
        }
        
        .stat-item i {
            color: var(--secondary-color);
        }
        
        /* Personalized Hero Banner */
        .personalized-hero {
            background: linear-gradient(135deg, #4CAF50, #45a049);
            color: white;
            padding: var(--spacing-xlarge);
            border-radius: var(--border-radius-large);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: var(--spacing-xlarge) 0;
            position: relative;
            overflow: hidden;
        }
        
        .personalized-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/>') repeat;
            pointer-events: none;
        }
        
        .hero-content {
            flex: 1;
            z-index: 2;
            position: relative;
        }
        
        .hero-content h3 {
            font-size: 2rem;
            margin-bottom: var(--spacing-medium);
        }
        
        .hero-content p {
            font-size: 1.2rem;
            margin-bottom: var(--spacing-large);
            opacity: 0.9;
        }
        
        .hero-btn {
            background: white;
            color: var(--primary-color);
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
        }
        
        .hero-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .hero-visual {
            position: relative;
            width: 200px;
            height: 150px;
            z-index: 2;
        }
        
        .floating-icon {
            position: absolute;
            font-size: 3rem;
            animation: float 3s ease-in-out infinite;
            background: rgba(255, 255, 255, 0.1);
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }
        
        .floating-icon:nth-child(1) {
            top: 0;
            right: 0;
            animation-delay: 0s;
        }
        
        .floating-icon:nth-child(2) {
            bottom: 20px;
            right: 50px;
            animation-delay: 1s;
        }
        
        .floating-icon:nth-child(3) {
            top: 50px;
            right: 100px;
            animation-delay: 2s;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }
        
        /* Time-Based Offers */
        .time-based-offers {
            margin: var(--spacing-xlarge) 0;
        }
        
        .time-based-offers h3 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: var(--spacing-large);
            font-size: 1.8rem;
        }
        
        .offer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: var(--spacing-large);
        }
        
        .offer-card {
            background: white;
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-light);
            text-align: center;
            transition: all var(--animation-duration) ease;
            border: 2px solid transparent;
        }
        
        .offer-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-heavy);
            border-color: var(--primary-color);
        }
        
        .offer-card .offer-icon {
            font-size: 3rem;
            margin-bottom: var(--spacing-medium);
        }
        
        .offer-card h4 {
            color: var(--primary-color);
            margin-bottom: var(--spacing-small);
        }
        
        .offer-card .offer-time {
            color: var(--secondary-color);
            font-weight: bold;
            margin-bottom: var(--spacing-medium);
        }
        
        /* Behavioral Insights */
        .behavior-insights {
            background: white;
            padding: var(--spacing-xlarge);
            border-radius: var(--border-radius-large);
            margin: var(--spacing-xlarge) 0;
            box-shadow: var(--shadow-light);
        }
        
        .behavior-insights h3 {
            text-align: center;
            color: var(--primary-color);
            margin-bottom: var(--spacing-large);
            font-size: 1.8rem;
        }
        
        .insight-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-large);
        }
        
        .insight-card {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            gap: var(--spacing-medium);
            transition: all var(--animation-duration) ease;
        }
        
        .insight-card:hover {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            transform: scale(1.05);
        }
        
        .insight-card i {
            font-size: 2rem;
            color: var(--primary-color);
            width: 40px;
            text-align: center;
        }
        
        .insight-card:hover i {
            color: white;
        }
        
        .insight-data {
            display: flex;
            flex-direction: column;
        }
        
        .insight-label {
            font-size: 0.9rem;
            opacity: 0.8;
            margin-bottom: 5px;
        }
        
        .insight-value {
            font-size: 1.3rem;
            font-weight: bold;
        }
        
        /* Layout Preferences */
        .layout-preferences {
            background: white;
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            margin-top: var(--spacing-large);
            box-shadow: var(--shadow-light);
        }
        
        .layout-preferences h4 {
            color: var(--primary-color);
            margin-bottom: var(--spacing-medium);
            text-align: center;
        }
        
        .preference-controls {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-medium);
        }
        
        .preference-item {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            padding: 15px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: all var(--animation-duration) ease;
        }
        
        .preference-item:hover {
            background: var(--primary-light);
            transform: translateX(5px);
        }
        
        .preference-item input[type=checkbox] {
            width: 20px;
            height: 20px;
            accent-color: var(--primary-color);
        }
        
        .preference-item span {
            font-weight: bold;
        }
        
        /* Dark Mode Styles */
        body.dark-mode {
            background: #1a1a1a;
            color: #f0f0f0;
        }
        
        body.dark-mode .dynamic-content-section {
            background: linear-gradient(135deg, #2d2d2d, #3d3d3d);
        }
        
        body.dark-mode .stat-item,
        body.dark-mode .behavior-insights,
        body.dark-mode .layout-preferences {
            background: #333;
            color: #f0f0f0;
        }
        
        body.dark-mode .offer-card {
            background: #333;
            color: #f0f0f0;
        }
        
        body.dark-mode .insight-card {
            background: linear-gradient(135deg, #444, #555);
            color: #f0f0f0;
        }
        
        /* Compact View */
        body.compact-view .product-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: var(--spacing-medium);
        }
        
        body.compact-view .product-card {
            padding: var(--spacing-medium);
        }
        
        body.compact-view .ai-rec-card {
            padding: var(--spacing-medium);
        }
        
        body.compact-view .dynamic-content-section {
            padding: var(--spacing-large);
        }
        
        .hero-section {
            background: var(--white-transparent);
            margin: var(--spacing-large) auto;
            border-radius: var(--border-radius-large);
            padding: 60px 40px;
            text-align: center;
            box-shadow: var(--shadow-medium);
            backdrop-filter: blur(10px);
        }
        
        .hero-title {
            font-size: 3rem;
            color: #2c3e50;
            margin-bottom: 15px;
            font-weight: 300;
        }
        
        .hero-subtitle {
            font-size: 1.3rem;
            color: #7f8c8d;
            margin-bottom: var(--spacing-large);
        }
        
        nav {
            background: rgba(52, 73, 94, 0.95);
            padding: 15px 0;
            border-radius: var(--border-radius);
            margin: var(--spacing-medium) auto;
            backdrop-filter: blur(10px);
        }
        
        .nav-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: var(--spacing-large);
        }
        
        nav a {
            color: var(--header-text-color, var(--menu-text-color, #ffffff));
            text-decoration: none;
            font-weight: 600;
            padding: 12px 25px;
            border-radius: 25px;
            border: 1px solid rgba(44, 90, 160, 0.6);
            transition: all var(--animation-duration) ease;
            background: var(--header-button-bg-color, var(--nav-pill-bg, rgba(255,255,255,0.1)));
            font-size: 1rem; /* unified font size */
        }
        
        nav a:hover {
            background: var(--header-button-hover-color, var(--header-button-bg-color, var(--nav-pill-bg-hover, rgba(255,255,255,0.2))));
            border-color: rgba(30, 61, 111, 0.8);
            transform: translateY(-2px);
            box-shadow: var(--shadow-light);
        }
        
        main {
            background: var(--white-transparent);
            margin: var(--spacing-large) auto;
            padding: var(--spacing-xl) 40px;
            border-radius: var(--border-radius-large);
            box-shadow: var(--shadow-medium);
            backdrop-filter: blur(10px);
        }
        
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--spacing-large);
            margin-top: var(--spacing-large);
        }
        
        .content-card {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            padding: var(--spacing-large);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-light);
            transition: transform var(--animation-duration) ease, box-shadow var(--animation-duration) ease;
        }
        
        .content-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-heavy);
        }
        
        .content-card h3 {
            color: #2c3e50;
            font-size: 1.5rem;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .card-icon {
            font-size: 1.8rem;
        }
        
        .cta-section {
            text-align: center;
            margin-top: 40px;
            padding: 30px;
            background: linear-gradient(135deg, #4a90e2, #357abd);
            border-radius: 15px;
            color: white;
        }
        
        .cta-button {
            display: inline-block;
            margin-top: 20px;
            padding: 15px 35px;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
        }
        
        /* Populära produkter */
        .popular-products {
            margin: 5px 0 50px 0; /* synced with main style: reduced top margin */
            text-align: center;
        }
        
        .popular-products h2 {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2rem;
        }
        
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        
        .product-card {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }
        
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        
        .product-image {
            font-size: 3rem;
            margin-bottom: 15px;
        }
        
        .product-card h4 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }
        
        .price {
            color: #e74c3c;
            font-weight: bold;
            font-size: 1.2rem;
        }
        
        /* Kundrecensioner */
        .testimonials {
            margin: 50px 0;
            text-align: center;
        }
        
        .testimonials h2 {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2rem;
        }
        
        .testimonial-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .testimonial-card {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        
        .stars {
            font-size: 1.2rem;
            margin-bottom: 15px;
        }
        
        .testimonial-card p {
            font-style: italic;
            margin-bottom: 15px;
            font-size: 1.1rem;
            color: #2c3e50;
        }
        
        .author {
            color: #7f8c8d;
            font-weight: bold;
        }
        
        footer {
            background: rgba(44, 62, 80, 0.95);
            color: white;
            padding: 50px 0 20px;
            text-align: center;
            margin-top: 50px;
            backdrop-filter: blur(10px);
        }
        
        .newsletter-section {
            background: rgba(52, 73, 94, 0.8);
            padding: 30px;
            border-radius: 15px;
            margin-bottom: 40px;
        }
        
        .newsletter-section h3 {
            margin-bottom: 10px;
            font-size: 1.5rem;
        }
        
        .newsletter-form {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .email-input {
            padding: 12px 20px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            flex: 1;
            max-width: 300px;
        }
        
        .newsletter-btn {
            padding: 12px 25px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 25px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .newsletter-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }
        
        .footer-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
            text-align: left;
        }
        
        .footer-column h4 {
            color: #4a90e2;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .footer-column p {
            margin-bottom: 8px;
        }
        
        .social-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .social-link {
            color: white;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .social-link:hover {
            color: #4a90e2;
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 20px;
            text-align: center;
        }
        
        /* Flash Sale Banner */
        .flash-sale-banner {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            border-radius: 20px;
            padding: 30px;
            margin: 30px 0;
            color: white;
            box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3);
            /* Effects are applied only when explicit classes are present */
            animation: none;
        }
        /* Effect variants controlled by admin-selected class (effect-*) */
        .flash-sale-banner.effect-none { animation: none; }
        .flash-sale-banner.effect-pulse { animation: pulse 2s infinite; }
        .flash-sale-banner.effect-hearts { position: relative; }
        .flash-sale-banner.effect-hearts::after {
            content: '❤❤❤';
            position: absolute; right: 10px; top: 10px; opacity: 0.5; font-size: 22px;
            filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
        }
        .flash-sale-banner.effect-halloween { box-shadow: 0 0 0 9999px rgba(255, 140, 0, 0.08) inset; position: relative; }
        /* Decorative overlay for better visibility */
        .flash-sale-banner.effect-halloween::before {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: inherit;
            background: repeating-linear-gradient(45deg, rgba(255,140,0,0.08) 0 14px, rgba(255,140,0,0) 14px 28px);
        }
        /* Floating pumpkin badge */
        .flash-sale-banner.effect-halloween::after {
            content: '🎃';
            position: absolute;
            right: 12px; top: 12px;
            opacity: 0.9;
            font-size: 28px;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
            animation: floatPumpkin 3s ease-in-out infinite;
        }
        @keyframes floatPumpkin {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-4px); }
        }
        @media (prefers-reduced-motion: reduce) {
            .flash-sale-banner.effect-halloween::after { animation: none; }
        }
        .flash-sale-banner.effect-summer { box-shadow: 0 0 0 9999px rgba(255, 215, 0, 0.06) inset; }
    .flash-sale-banner.effect-xmas { box-shadow: 0 0 0 9999px rgba(0, 128, 0, 0.07) inset; position: relative; }
    .flash-sale-banner.effect-xmas::after { content: '🎄'; position:absolute; right: 12px; top:12px; opacity: .9; font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
    /* Keep sale content above snow */
    .flash-sale-banner .sale-content { position: relative; z-index: 2; }
    /* Snow overlay rendered via JS only for effect-xmas */
    .flash-sale-banner.effect-xmas .xmas-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
    .flash-sale-banner.effect-xmas .xmas-snow .snowflake {
        position: absolute;
        top: -10px;
        left: 0;
        width: 8px; 
        height: 8px;
        background: radial-gradient(circle, rgba(255,255,255,1) 30%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 70%);
        border-radius: 50%;
        opacity: 0.95;
        will-change: transform;
        animation-name: snowFall;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
        font-size: 0; /* Prevent any text rendering */
        line-height: 0;
        overflow: hidden;
    }
    @keyframes snowFall {
        0% { transform: translateY(-10%); }
        100% { transform: translateY(120%); }
    }
    @media (prefers-reduced-motion: reduce) {
        .flash-sale-banner.effect-xmas .xmas-snow .snowflake { animation: none !important; opacity: 0.5; }
    }
        .flash-sale-banner.effect-newyear { box-shadow: 0 0 0 9999px rgba(70, 130, 180, 0.06) inset; position: relative; }
        .flash-sale-banner.effect-newyear .newyear-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
        .flash-sale-banner.effect-newyear .newyear-confetti .confetto {
            position: absolute;
            top: -10px;
            left: 0;
            width: 6px;
            height: 10px;
            border-radius: 2px;
            opacity: 0.95;
            will-change: transform, opacity;
            animation-name: confettiFall;
            animation-timing-function: linear;
            animation-iteration-count: infinite;
        }
        @keyframes confettiFall {
            0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
            100% { transform: translateY(120%) rotate(360deg); opacity: 0.9; }
        }
        @media (prefers-reduced-motion: reduce) {
            .flash-sale-banner.effect-newyear .newyear-confetti .confetto { animation: none !important; opacity: 0.7; }
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3); }
            50% { box-shadow: 0 15px 40px rgba(238, 90, 36, 0.5); }
            100% { box-shadow: 0 10px 30px rgba(238, 90, 36, 0.3); }
        }
        
        /* Hero section effects - mirror flash-sale-banner effects */
        .hero-section.effect-none { animation: none; }
        .hero-section.effect-pulse { animation: pulse 2s infinite; }
        .hero-section.effect-hearts { position: relative; }
        .hero-section.effect-hearts::after {
            content: '❤❤❤';
            position: absolute; right: 20px; top: 20px; opacity: 0.5; font-size: 22px;
            filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
        }
        .hero-section.effect-halloween { position: relative; }
        .hero-section.effect-halloween::after {
            content: '🎃';
            position: absolute;
            right: 20px; top: 20px;
            opacity: 0.9;
            font-size: 28px;
            filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
            animation: floatPumpkin 3s ease-in-out infinite;
        }
        .hero-section.effect-xmas { box-shadow: 0 0 0 9999px rgba(0, 128, 0, 0.07) inset; position: relative; }
        .hero-section.effect-xmas::after { content: '🎄'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
        .hero-section.effect-newyear { box-shadow: 0 0 0 9999px rgba(70, 130, 180, 0.06) inset; position: relative; }
        .hero-section.effect-summer { box-shadow: 0 0 0 9999px rgba(255, 215, 0, 0.06) inset; }
        .hero-section.effect-easter { box-shadow: 0 0 0 9999px rgba(255, 182, 193, 0.08) inset; position: relative; }
        .hero-section.effect-easter::after { content: '🐣'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-mothersday { box-shadow: 0 0 0 9999px rgba(255, 192, 203, 0.08) inset; position: relative; }
        .hero-section.effect-mothersday::after { content: '🌸'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-fathersday { box-shadow: 0 0 0 9999px rgba(70, 130, 180, 0.06) inset; position: relative; }
        .hero-section.effect-fathersday::after { content: '👔'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-nationalday { box-shadow: 0 0 0 9999px rgba(0, 106, 167, 0.06) inset; position: relative; }
        .hero-section.effect-nationalday::after { content: '🇸🇪'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-blackfriday { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.1) inset; position: relative; }
        .hero-section.effect-blackfriday::after { content: '🛒'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-cybermonday { box-shadow: 0 0 0 9999px rgba(0, 0, 255, 0.06) inset; position: relative; }
        .hero-section.effect-cybermonday::after { content: '💻'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        .hero-section.effect-thanksgiving { box-shadow: 0 0 0 9999px rgba(210, 105, 30, 0.08) inset; position: relative; }
        .hero-section.effect-thanksgiving::after { content: '🦃'; position:absolute; right: 20px; top:20px; opacity: .9; font-size: 26px; }
        
        .sale-content h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .countdown-timer {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 18px;
            margin: 18px 0 22px;
            flex-wrap: wrap;
        }
        
        .time-unit {
            background: rgba(255, 255, 255, 0.18);
            padding: 12px 14px;
            border-radius: 10px;
            text-align: center;
            min-width: 68px;
            backdrop-filter: blur(10px);
        }
        
        .time-unit span {
            display: block;
            font-size: 1.9rem;
            font-weight: 800;
            line-height: 1;
            letter-spacing: 0.5px;
        }
        
        .time-unit label {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-top: 5px;
        }
        
        .sale-code {
            background: rgba(0, 0, 0, 0.3);
            padding: 12px 20px;
            border-radius: 25px;
            display: inline-block;
            margin-top: 15px;
        }
        
        .sale-code strong {
            color: #ffd700;
            font-size: 1.2rem;
        }
        
        /* Exit Intent Popup */
        .exit-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            animation: fadeIn 0.3s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .exit-popup {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 40px;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from { transform: translate(-50%, -60%); opacity: 0; }
            to { transform: translate(-50%, -50%); opacity: 1; }
        }
        
        .close-popup {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 2rem;
            color: #999;
            cursor: pointer;
            transition: color 0.3s ease;
        }
        
        .close-popup:hover {
            color: #333;
        }
        
        .popup-content {
            text-align: center;
        }
        
        .popup-content h2 {
            color: #e74c3c;
            font-size: 2.2rem;
            margin-bottom: 10px;
        }
        
        .popup-content h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.5rem;
        }
        
        .popup-content p {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }
        
        .popup-form {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }
        
        .popup-email-input {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #ddd;
            border-radius: 30px;
            font-size: 1rem;
            min-width: 250px;
        }
        
        .popup-subscribe-btn {
            padding: 15px 30px;
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            border-radius: 30px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .popup-subscribe-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
        }
        
        .popup-disclaimer {
            font-size: 0.85rem;
            color: #999;
            margin-top: 15px;
        }
        
        /* Rekommenderade produkter */
        .recommended-products {
            margin: 50px 0;
            text-align: center;
        }
        
        .recommended-products h2 {
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 1.8rem;
        }
        
        .recommendation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .recommendation-card {
            background: white;
            padding:  25px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .recommendation-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
            border-color: #4a90e2;
        }
        
        .rec-image {
            font-size: 3.5rem;
            margin-bottom: 15px;
        }
        
        .recommendation-card h4 {
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        
        .rec-rating {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
        }
        
        .rec-price {
            color: #e74c3c;
            font-weight: bold;
            font-size: 1.3rem;
            margin-bottom: 15px;
        }
        
        .old-price {
            color: #999;
            text-decoration: line-through;
            font-size: 1rem;
            margin-left: 8px;
        }
        
        .quick-add-btn {
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .quick-add-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
        }
        
        /* Förbättrade kundrecensioner */
        .customer-info {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            text-align: left;
        }
        
        .customer-avatar {
            font-size: 2.5rem;
            margin-right: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .customer-name {
            font-weight: bold;
            color: #2c3e50;
            display: block;
        }
        
        .verified-buyer {
            font-size: 0.8rem;
            color: #27ae60;
            font-weight: bold;
        }
        
        .review-date {
            color: #999;
            font-size: 0.85rem;
            font-style: italic;
            margin-top: 10px;
            display: block;
        }
        
        .testimonial-card p {
            text-align: left;
        }
        
        /* Lazy Loading Placeholders */
        .lazy-placeholder {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 8px;
        }
        
        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .lazy-image {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .lazy-image.loaded {
            opacity: 1;
        }
        
        /* Performance Optimizations */
        .content-card,
        .product-card,
        .recommendation-card {
            contain: layout;
            will-change: transform;
        }
        
        /* Reduce Motion for Users Who Prefer It */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        
        /* High Contrast Mode Support */
        @media (prefers-contrast: high) {
            .content-card, .product-card, .recommendation-card {
                border: 2px solid currentColor;
            }
        }
        
        /* Shopping Cart Styles */
        .cart-overlay {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all var(--animation-duration) ease;
        }
        
        .cart-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .cart-sidebar {
            position: absolute;
            top: 0;
            right: 0;
            width: 450px;
            height: 100%;
            background: white;
            transform: translateX(100%);
            transition: transform var(--animation-duration) ease;
            display: flex;
            flex-direction: column;
            box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        }
        
        .cart-overlay.active .cart-sidebar {
            transform: translateX(0);
        }
        
        .cart-header {
            padding: var(--spacing-medium);
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--primary-color);
            color: white;
        }
        
        .cart-header h3 {
            margin: 0;
            font-size: 1.3rem;
        }
        
        .close-cart {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
        }
        
        .cart-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        
        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: var(--spacing-medium);
        }
        
        .empty-cart {
            text-align: center;
            padding: var(--spacing-xl) var(--spacing-medium);
            color: var(--text-light);
        }
        
        .empty-cart-icon {
            font-size: 4rem;
            margin-bottom: var(--spacing-medium);
            opacity: 0.5;
        }
        
        .cart-item {
            display: flex;
            gap: var(--spacing-medium);
            padding: var(--spacing-medium) 0;
            border-bottom: 1px solid #eee;
            animation: slideInRight var(--animation-duration) ease;
        }
        
        @keyframes slideInRight {
            from { transform: translateX(50px); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        .cart-item-image {
            font-size: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: #f8f9fa;
            border-radius: var(--border-radius);
        }
        
        .cart-item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .cart-item-name {
            font-weight: bold;
            color: var(--text-color);
        }
        
        .cart-item-price {
            color: var(--secondary-color);
            font-weight: bold;
        }
        
        .cart-item-controls {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
        }
        
        .quantity-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-weight: bold;
            transition: all var(--animation-duration) ease;
        }
        
        .quantity-btn:hover {
            background: var(--primary-dark);
            transform: scale(1.1);
        }
        
        .quantity-display {
            min-width: 30px;
            text-align: center;
            font-weight: bold;
        }
        
        .remove-item {
            background: var(--secondary-color);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 15px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all var(--animation-duration) ease;
        }
        
        .remove-item:hover {
            background: var(--secondary-dark);
            transform: scale(1.05);
        }
        
        .cart-summary {
            border-top: 1px solid #eee;
            padding: var(--spacing-medium);
            background: #f8f9fa;
        }
        
        .cart-totals {
            margin-bottom: var(--spacing-medium);
        }
        
        .cart-totals > div {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }
        
        .cart-total-amount {
            font-weight: bold;
            font-size: 1.2rem;
            color: var(--secondary-color);
        }
        
        .shipping-calculator {
            margin-bottom: var(--spacing-medium);
            padding: var(--spacing-medium);
            background: white;
            border-radius: var(--border-radius);
        }
        
        .shipping-calculator h4 {
            margin-bottom: var(--spacing-small);
            color: var(--text-color);
        }
        
        .shipping-calculator input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: var(--spacing-small);
        }
        
        .calculate-shipping-btn {
            width: 100%;
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: background var(--animation-duration) ease;
        }
        
        .calculate-shipping-btn:hover {
            background: var(--primary-dark);
        }
        
        .shipping-result {
            margin-top: var(--spacing-small);
            padding: var(--spacing-small);
            background: #e8f5e8;
            border-radius: 5px;
            color: #2e7d32;
        }
        
        .cart-actions {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-small);
        }
        
        .continue-shopping-btn, .express-checkout-btn, .checkout-btn {
            padding: 15px;
            border: none;
            border-radius: var(--border-radius);
            font-weight: bold;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .continue-shopping-btn {
            background: transparent;
            color: var(--text-light);
            border: 1px solid #ddd;
        }
        
        .continue-shopping-btn:hover {
            background: #f8f9fa;
            color: var(--text-color);
        }
        
        .express-checkout-btn {
            background: linear-gradient(135deg, #ff6b35, #f7931e);
            color: white;
            font-size: 1.1rem;
        }
        
        .express-checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
        }
        
        .checkout-btn {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            font-size: 1.1rem;
        }
        
        .checkout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
        }
        
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: var(--border-radius-large);
            max-width: 600px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn var(--animation-duration) ease;
        }
        
        @keyframes modalSlideIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .modal-header {
            padding: var(--spacing-medium) var(--spacing-large);
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--primary-color);
            color: white;
            border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
        }
        
        .modal-header h3 {
            margin: 0;
        }
        
        .close-modal {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            padding: 5px;
            line-height: 1;
        }
        
        .modal-body {
            padding: var(--spacing-large);
        }
        
        .payment-options h4 {
            margin-bottom: var(--spacing-medium);
            color: var(--text-color);
        }
        
        .payment-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-medium);
            margin-bottom: var(--spacing-large);
        }
        
        .payment-btn {
            display: flex;
            align-items: center;
            gap: var(--spacing-small);
            padding: var(--spacing-medium);
            border: 2px solid #ddd;
            border-radius: var(--border-radius);
            background: white;
            cursor: pointer;
            transition: all var(--animation-duration) ease;
            font-weight: bold;
        }
        
        .payment-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .swish-btn:hover { border-color: #1a1a1a; }
        .apple-pay-btn:hover { border-color: #000; }
        .google-pay-btn:hover { border-color: #4285f4; }
        .paypal-btn:hover { border-color: #0070ba; }
        .klarna-btn:hover { border-color: #ffb3c7; }
        
        .payment-icon {
            font-size: 1.5rem;
        }
        
        .express-summary {
            background: #f8f9fa;
            padding: var(--spacing-medium);
            border-radius: var(--border-radius);
        }
        
        .express-summary h4 {
            margin-bottom: var(--spacing-medium);
            color: var(--text-color);
        }
        
        .express-total {
            margin-top: var(--spacing-medium);
            padding-top: var(--spacing-medium);
            border-top: 1px solid #ddd;
            font-size: 1.2rem;
            color: var(--secondary-color);
        }
        
        .footer-content {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        @media (max-width: 768px) {
            .hero-title { font-size: 2rem; }
            .hero-subtitle { font-size: 1.1rem; }
            .hero-section { padding: 40px 20px; }
            .nav-links { gap: 15px; }
            nav a { padding: 10px 20px; font-size: 0.9rem; }
            main { padding: 30px 20px; }
            .content-card { padding: 20px; }
        }
        
        /* Animation keyframes */
        @keyframes slideInUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        
        @keyframes fadeInScale {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        @keyframes pulseColor {
            0%, 100% {
                background-color: var(--primary-color);
            }
            50% {
                background-color: var(--secondary-color);
            }
        }
        
        /* Mobile optimizations for filters */
        @media (max-width: 768px) {
            .products-header {
                flex-direction: column;
                align-items: stretch;
            }
            
            .products-controls {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .filter-panel {
                padding: var(--spacing-medium);
            }
            
            .filter-section h4 {
                font-size: 1rem;
            }
            
            .color-filters {
                justify-content: center;
            }
            
            .color-filter {
                width: 35px;
                height: 35px;
            }
            
            .price-inputs {
                flex-direction: column;
                gap: var(--spacing-small);
            }
            
            .price-inputs span {
                align-self: center;
                transform: rotate(90deg);
            }
            
            .filter-actions {
                flex-direction: column;
                gap: var(--spacing-small);
            }
            
            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: var(--spacing-medium);
            }
        }

/* Social Media Buttons */
.facebook-btn {
    display: inline-block;
    background-color: #1877f2;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(24, 119, 242, 0.6);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.2);
}

.facebook-btn:hover {
    background-color: #166fe5;
    border-color: rgba(22, 111, 229, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Instagram button styling */
.instagram-btn {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid rgba(240, 148, 51, 0.6);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(240, 148, 51, 0.2);
}

.instagram-btn:hover {
    border-color: rgba(188, 24, 136, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 148, 51, 0.4);
}