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

/* Scroll performance optimization - Chrome specific */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overscroll-behavior-y: contain;
    background:
        linear-gradient(
            180deg,
            var(--bg-top) 0%,
            var(--bg-mid) 45%,
            var(--bg-bottom) 100%
        );
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: 100% 120%;
}

img,
video,
iframe,
svg {
    max-width: 100%;
}

/* Chrome-specific: Aggressive scroll optimizations */
@supports (-webkit-appearance: none) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Chrome: Disable backdrop-filter completely for better scroll performance */
    .glass-card,
    .main-header,
    .main-footer,
    .announcement-banner,
    .accessibility-tools {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* Page load fade-in */
.main-content {
    animation: fadeIn 0.5s ease both;
}

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

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
}

/* Glass surfaces - Chrome Optimized: NO backdrop-filter */
.glass-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm), var(--shadow-md);
    padding: 2rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    contain: layout style paint;
    content-visibility: auto;
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        border-color: rgba(0, 0, 0, 0.25);
        box-shadow: var(--shadow-sm), var(--shadow-pink);
    }
}

/* Header - Chrome Optimized: NO backdrop-filter */
.main-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid transparent;
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
    /* CSS containment */
    contain: layout style paint;
    /* Chrome: isolate compositing layer */
    isolation: isolate;
    /* Chrome: will-change only when needed */
    will-change: auto;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    /* Don't clip the fixed mobile menu panel (it's a descendant of header) */
    .main-header {
        padding: 1rem 0;
        contain: layout style;
    }
    
    .logo-image {
        height: 45px;
        max-width: 140px;
    }

    .logo-text {
        font-size: 1.1rem;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 1.6rem;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: var(--text-dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.55);
    white-space: nowrap;
    flex-shrink: 0;
}

.whatsapp-btn:hover {
    background: #1EBE5A;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 26px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn .whatsapp-icon {
    width: 20px;
    height: 20px;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.whatsapp-text {
    display: none;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .whatsapp-text {
        display: inline;
    }
    
    .nav-menu {
        gap: 2rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
    transform: translate3d(0, 0, 0);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.whatsapp-btn::after {
    display: none;
}

.nav-menu .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    min-width: 140px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
        order: 3;
        z-index: 1002;
        position: relative;
        padding: 6px;
        flex-shrink: 0;
    }
    
    .navbar {
        flex-wrap: nowrap;
        position: relative;
        gap: 0.75rem;
    }
    
    .logo {
        order: 1;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .logo-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Mobile menu overlay (below header so logo + hamburger stay visible) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(85vw, 320px);
        height: 100vh;
        min-height: 0;
        max-height: 100vh;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.95));
        padding: 0;
        padding-top: 4rem;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.12);
        border: none;
        border-left: 1px solid rgba(0, 0, 0, 0.2);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        overscroll-behavior-y: contain;
        visibility: hidden;
        pointer-events: none;
    }
    
    .nav-menu.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-menu li {
        margin: 0;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu li:first-child {
        padding-top: 0;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
        transition: background-color 0.2s ease;
        border-bottom: none;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background: rgba(0, 0, 0, 0.15);
        transform: none;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu li:last-child {
        margin-top: 0;
        padding-top: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.2);
        border-bottom: none;
        padding-bottom: 0.5rem;
    }
    
    .nav-menu .whatsapp-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
        justify-content: center;
        font-size: 0.95rem;
    }
    
    /* Mobile: Better spacing for sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Mobile: Better hero section */
    .hero-section {
        min-height: 50vh;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
        margin: 0 auto;
    }
    
    /* Mobile: Better glass cards */
    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile: Better products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    /* Mobile: Better forms */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    form button[type="submit"],
    form .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
    
    /* Mobile: Touch-friendly buttons site-wide */
    .btn,
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    /* Mobile: Better footer */
    .main-footer {
        padding: 2rem 0 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul li a {
        padding: 0.5rem 0;
        min-height: 44px;
        line-height: 1.4;
        display: flex;
        align-items: center;
    }
    
    /* Mobile: Catalogue filters touch-friendly */
    .catalogue-filters {
        margin: 1.5rem 0;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-group input,
    .filter-group select {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Mobile: FAQ accordion touch-friendly */
    .faq-question {
        min-height: 44px;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-item {
        padding: 0;
    }
    
    /* Mobile: Bottom bar – cookie en floating button (geen overlap) */
    .floating-book-btn {
        bottom: 1rem;
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 30px;
        min-height: 44px;
    }
    
    /* Mobile: Better headings */
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile: Better contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1.5rem 0;
    }
    
    /* Mobile: Better product detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 1.5rem 0;
    }
    
    /* Mobile: Better newsletter form */
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Mobile: Cookie consent – same horizontal layout as PC */
    .cookie-consent {
        width: calc(100% - 1.5rem);
        max-width: none;
        padding: 1rem 1.25rem;
        bottom: 1rem;
    }
    
    .cookie-consent-btn {
        min-height: 44px;
        padding: 0.7rem 1.25rem;
    }
}

