/* @import url('https://fonts.googleapis.com/css2?family=Cal+Sans:wght@400;600;700&display=swap'); */

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

:root {
    --primary-color: /* @tweakable primary brand color */ #1a73e8;
    --secondary-color: /* @tweakable secondary accent color */ #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --bg-light: #f8f9fa;
    --bg-light-hv: #e3f2fd;
    --shadow: 0 1px 3px rgba(60,64,67,.3);
    --shadow-hover: 0 2px 8px rgba(60,64,67,.15);
    --border-radius: /* @tweakable global border radius */ 8px;
    --transition: all 0.2s ease;
    
    /* @tweakable additional CSS variables for tweaks */
    --hero-title-size: 2.5rem;
    --product-grid-gap: 24px;
    --spotlight-gap: 20px;
    --france-flag-width: 24px;
    --france-flag-height: 18px;
    
    /* Additional tweakable variables for comprehensive control */
    --font-family: /* @tweakable main font family */ 'Roboto';
    --base-font-size: /* @tweakable base font size */ 16px;
    --card-hover-lift: /* @tweakable card hover lift effect */ 4px;
    --product-image-height: /* @tweakable product image height */ 200px;
    --auto-scroll-interval: /* @tweakable spotlight auto-scroll timing */ 4s;
    /* @tweakable product card width controls */
    --product-card-width: /* @tweakable main product card minimum width */ 280px;
    --spotlight-card-width: /* @tweakable spotlight card width */ 180px;
    --spotlight-cards-visible: /* @tweakable number of visible spotlight cards */ 6;
    --spotlight-card-small-width: /* @tweakable small spotlight card width for 6-card layout */ 150px;
    --us-flag-width: 24px;
    --us-flag-height: 18px;
}

body {
    font-family: var(--font-family), system-ui, -apple-system, sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--text-primary);
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* France Flag Icon */
.france-flag-icon {
    width: /* @tweakable France flag icon width */ var(--france-flag-width, 24px);
    height: /* @tweakable France flag icon height */ var(--france-flag-height, 18px);
    vertical-align: middle;
    border: /* @tweakable France flag icon border */ 1px solid var(--border-color);
    border-radius: /* @tweakable France flag icon border radius */ 2px;
    box-shadow: /* @tweakable France flag icon shadow */ 0 1px 2px rgba(0,0,0,0.1);
    display: /* @tweakable France flag icon display */ inline-block;
}

/* US Flag Icon */
.us-flag-icon {
    width: /* @tweakable US flag icon width */ var(--us-flag-width, 24px);
    height: /* @tweakable US flag icon height */ var(--us-flag-height, 18px);
    vertical-align: middle;
    border: /* @tweakable US flag icon border */ 1px solid var(--border-color);
    border-radius: /* @tweakable US flag icon border radius */ 2px;
    box-shadow: /* @tweakable US flag icon shadow */ 0 1px 2px rgba(0,0,0,0.1);
    display: /* @tweakable US flag icon display */ inline-block;
}

/* Notice Bar */
.notice-bar {
    background: var(--warning-color);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.notice-bar a {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: white;
    padding: 20px;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

/* @tweakable cookie consent link color for better contrast */
.cookie-consent a {
    color: /* @tweakable cookie consent link color */ #87ceeb;
    text-decoration: underline;
}

.cookie-consent a:hover {
    color: /* @tweakable cookie consent link hover color */ #add8e6;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#accept-all {
    background: /* @tweakable accept button background for better contrast */ #0f5132;
    color: white;
}

#reject-all {
    background: /* @tweakable reject button background for better contrast */ #842029;
    color: white;
}

#customize {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 40px;
    z-index: 999;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo img {
    height: 40px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 400px;
    display: flex;
    gap: 8px;
}

.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.header-search button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wishlist-btn, .login-btn, .dashboard-btn {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
}

.wishlist-btn:hover, .login-btn:hover, .dashboard-btn:hover {
    background: var(--bg-light-hv);
    box-shadow: var(--shadow-hover);
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: /* @tweakable hero title font size */ var(--hero-title-size, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.savings-highlight {
    background: /* @tweakable savings highlight background for better contrast */ #0f5132;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 32px;
    font-weight: 600;
}

.savings-amount {
    color: /* @tweakable savings amount text color for better contrast */ #ffffff;
    font-weight: /* @tweakable savings amount font weight */ 700;
}

.cta-btn {
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Spotlight Deals */
.spotlight-section {
    padding: 60px 0;
    background: white;
}

.spotlight-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.spotlight-deals {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.spotlight-nav {
    background: white;
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.spotlight-nav:hover {
    box-shadow: var(--shadow-hover);
    background: var(--bg-light-hv);
}

.spotlight-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.spotlight-track {
    display: flex;
    gap: /* @tweakable spotlight card spacing */ var(--spotlight-gap, 20px);
    transition: transform 0.5s ease;
}

.spotlight-track:hover {
    animation-play-state: paused;
}

/* Product Cards with tweakable hover effects */
.product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    /* @tweakable spotlight card width to fit 6 cards */
    min-width: /* @tweakable use CSS variable for spotlight card width */ var(--spotlight-card-width, 180px);
    flex-shrink: 0;
}

/* @tweakable spotlight card specific sizing for 6-card layout */
.product-card.spotlight-card {
    /* @tweakable adjust spotlight card width for 6-card display */
    min-width: var(--spotlight-card-small-width, 150px);
    max-width: var(--spotlight-card-small-width, 150px);
    /* @tweakable spotlight card cursor styling */
    cursor: pointer;
}

/* @tweakable make spotlight cards clickable */
.spotlight-card {
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(calc(-1 * var(--card-hover-lift)));
}

.product-image {
    position: relative;
    width: 100%;
    height: var(--product-image-height);
    overflow: hidden;
}

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

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

.discount-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: /* @tweakable discount ribbon background for better contrast */ #842029;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* @tweakable spotlight section product meta layout for smaller cards */
.spotlight-card .product-meta {
    /* @tweakable change from flex row to column layout for orders under rating */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: /* @tweakable spacing between rating and orders */ 4px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* @tweakable keep main product cards with horizontal layout */
.product-card:not(.spotlight-card) .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    color: #ffa500;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.view-details-btn, .get-deal-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.get-deal-btn {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-details-btn:hover {
    background: var(--bg-light-hv);
}

.get-deal-btn:hover {
    background: #1557b0;
}

.wishlist-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.wishlist-toggle:hover {
    background: var(--bg-light-hv);
}

.wishlist-toggle.active {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Social Proof */
.social-proof {
    background: var(--bg-light);
    padding: 40px 0;
}

.proof-items {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proof-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.proof-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Filter Bar */
.filter-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 96px;
    z-index: 998;
}

.filters {
    display: flex;
    align-items: center;
    gap: /* @tweakable filter bar element spacing */ 20px;
    flex-wrap: wrap;
}

.filters select, .filters input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* @tweakable price range group container styling */
.price-range-group {
    display: flex;
    align-items: center;
    gap: /* @tweakable price range group internal spacing */ 8px;
    flex-wrap: wrap;
}

/* @tweakable price range filter styling */
.filters input[type="range"] {
    min-width: /* @tweakable price range slider minimum width */ 120px;
    padding: 0;
}

/* @tweakable price input field styling */
.filters input[type="number"] {
    width: /* @tweakable price input field width */ 80px;
    min-width: /* @tweakable price input field minimum width */ 60px;
    padding: /* @tweakable price input field padding */ 6px 8px;
}

/* @tweakable price range label styling */
.filters span {
    font-size: /* @tweakable price range label font size */ 14px;
    font-weight: /* @tweakable price range label font weight */ 600;
    color: var(--text-primary);
    min-width: /* @tweakable price range label minimum width */ 80px;
}

/* Products Grid */
.products-section {
    padding: 40px 0;
}

.products-grid {
    display: grid;
    /* @tweakable use CSS variable for responsive grid with minimum card width */
    grid-template-columns: repeat(auto-fill, minmax(var(--product-card-width, 280px), 1fr));
    gap: /* @tweakable product grid gap */ var(--product-grid-gap, 24px);
}

/* Buying Guide */
.buying-guide {
    background: var(--bg-light);
    padding: 60px 0;
}

.buying-guide h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.guide-item {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.guide-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #d2d3d4;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #404142;
    text-align: center;
    color: #d2d3d4;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(60,64,67,.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scale(0.9) translateY(20px); }
    to { transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    display: flex;
    max-width: 800px;
}

.modal-media {
    flex: 1;
    max-width: 400px;
}

.media-main {
    width: 100%;
    height: 300px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-main video, .media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
}

.media-thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.media-thumbnail.active {
    border-color: var(--primary-color);
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-features {
    font-size: 14px;
    line-height: 1.5;
}

.modal-pricing {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--border-radius);
}

.price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.deal-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.deal-btn:hover {
    background: #1557b0;
}

/* Auth Modal */
.auth-content {
    padding: 32px;
    text-align: center;
    min-width: 400px;
}

.auth-content h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.auth-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#auth-email {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

#auth-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#auth-submit:hover {
    background: #1557b0;
}

#auth-submit:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.auth-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.auth-status.success {
    background: #e8f5e8;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.auth-status.error {
    background: #fce8e6;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-search {
        order: -1;
        max-width: none;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .proof-items {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .auth-content {
        min-width: 300px;
        padding: 24px;
    }
    
    /* @tweakable responsive price range group layout */
    .price-range-group {
        flex-direction: column;
        align-items: flex-start;
        gap: /* @tweakable mobile price range group spacing */ 4px;
    }
    
    .filters input[type="range"] {
        min-width: /* @tweakable mobile price range slider width */ 100px;
    }
    
    .filters input[type="number"] {
        width: /* @tweakable mobile price input field width */ 70px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .spotlight-track {
        gap: 12px;
    }
    
    .product-card {
        min-width: 250px;
    }
}