/* -------------------------------------------------------------
   GS MOTO LLANTAS Y MAS - STYLESHEET
   Premium Dark & Light Theme System with Racing Red & Silver Highlights
   ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    /* Default Dark Mode */
    --bg-dark-deep: #08090c;
    --bg-dark-base: #0f1115;
    --bg-dark-card: #171a21;
    --bg-dark-glass: rgba(23, 26, 33, 0.75);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(255, 31, 53, 0.3);
    
    --brand-red: #ff2a3b;
    --brand-red-hover: #e01b2b;
    --brand-red-glow: rgba(255, 42, 59, 0.5);
    --brand-silver: #e0e0e0;
    --brand-silver-dark: #8c9099;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(255, 42, 59, 0.2);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 24px;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-dark-deep: #f3f4f6;   /* Light gray */
    --bg-dark-base: #ffffff;   /* Pure white */
    --bg-dark-card: #e5e7eb;   /* Gray card */
    --bg-dark-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(255, 42, 59, 0.15);
    
    --brand-red: #e01b2b;
    --brand-red-hover: #b30e1c;
    --brand-red-glow: rgba(224, 27, 43, 0.3);
    --brand-silver: #475569;
    --brand-silver-dark: #64748b;
    
    --text-primary: #0f172a;   /* Slate 900 */
    --text-secondary: #334155; /* Slate 700 */
    --text-muted: #64748b;     /* Slate 500 */
    
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0,0,0,0.02);
    --shadow-glow: 0 0 15px rgba(224, 27, 43, 0.1);
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* Preloader Screen Styling */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #08090c; /* Force dark during load for premium feel */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.loading-tire-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.loading-tire {
    width: 100px;
    height: 100px;
    animation: rotateTire 1.5s linear infinite;
    filter: drop-shadow(0 4px 10px rgba(255, 42, 59, 0.3));
}

.tire-shadow {
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 6px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
    animation: shadowPulse 1.5s ease-in-out infinite;
}

.loading-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loading-brand {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 42, 59, 0.4);
}

.progress-bar-container {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--brand-red);
    box-shadow: 0 0 8px var(--brand-red);
    transition: width 0.1s linear;
}

.loading-percentage {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-red);
}

@keyframes rotateTire {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(0.85); opacity: 0.3; }
}

/* Scroll Scrollbar customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-dark-card);
    border: 2px solid var(--bg-dark-deep);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background-color: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
    transform: rotate(30deg) scale(1.05);
    box-shadow: 0 4px 12px var(--brand-red-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--brand-red-glow);
}
.btn-primary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--brand-red-glow), 0 0 10px var(--brand-red);
}

.btn-danger {
    background: linear-gradient(135deg, var(--brand-red) 0%, #b30e1c 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255, 42, 59, 0.4);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff4757 0%, var(--brand-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 42, 59, 0.6);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
}
[data-theme="dark"] .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.btn-outline:hover {
    border-color: var(--brand-red);
    background-color: rgba(255, 42, 59, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

.btn-block {
    width: 100%;
}

/* Utilities */
.text-red { color: var(--brand-red); }
.text-glow-red {
    color: #ffffff;
    text-shadow: 0 0 10px var(--brand-red-glow), 0 0 30px rgba(255, 42, 59, 0.3);
}
[data-theme="light"] .text-glow-red {
    color: var(--brand-red);
    text-shadow: 0 0 8px rgba(224, 27, 43, 0.2);
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.w-100 { width: 100%; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Header & Sticky Nav Bar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-dark-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-normal), background-color var(--transition-normal);
}

.main-header.scrolled {
    padding: 0.5rem 0;
    background-color: var(--bg-dark-deep);
    box-shadow: var(--shadow-premium);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo-area:hover .brand-logo {
    transform: rotate(5deg) scale(1.05);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-red);
    transition: var(--transition-normal);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    z-index: 1000;
    background-color: var(--bg-dark-base);
    border-left: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: right var(--transition-normal), background-color var(--transition-normal);
    box-shadow: var(--shadow-premium);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header-actions {
    display: flex;
    align-items: center;
}

.drawer-logo {
    height: 48px;
    object-fit: contain;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.drawer-link:hover {
    color: var(--brand-red);
    padding-left: 5px;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
    
    /* Background Image with overlay */
    background-image: linear-gradient(to right, rgba(8, 9, 12, 0.95) 30%, rgba(8, 9, 12, 0.6) 100%), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image var(--transition-normal);
}

[data-theme="light"] .hero-section {
    background-image: linear-gradient(to right, rgba(243, 244, 246, 0.95) 30%, rgba(243, 244, 246, 0.6) 100%), url('assets/hero-bg.jpg');
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Mouse coordinates caught by section handler */
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

[data-theme="light"] .glow-sphere {
    opacity: 0.07;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background-color: var(--brand-red);
    top: -100px;
    right: -100px;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background-color: #555555;
    bottom: -50px;
    left: -50px;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 42, 59, 0.12);
    border: 1px solid rgba(255, 42, 59, 0.3);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="light"] .hero-badge {
    background-color: rgba(224, 27, 43, 0.08);
    border-color: rgba(224, 27, 43, 0.25);
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(255, 42, 59, 0.15));
    z-index: 5;
    animation: floating 6s ease-in-out infinite;
}

[data-theme="light"] .hero-main-logo {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 5px rgba(224, 27, 43, 0.1));
}

.pulse-ring {
    position: absolute;
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    aspect-ratio: 1;
    width: 80%;
    opacity: 0;
    z-index: 2;
}

.ring-1 {
    animation: pulseGlow 4s linear infinite;
}

.ring-2 {
    animation: pulseGlow 4s linear infinite 2s;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
    0% {
        width: 80%;
        opacity: 0.8;
    }
    100% {
        width: 150%;
        opacity: 0;
    }
}

/* Sections General Layout */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-header {
    max-width: 680px;
    margin: 0 auto 4rem auto;
}

.subtitle {
    display: inline-block;
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Categories Section */
.categories-section {
    background-color: var(--bg-dark-base);
    transition: background-color var(--transition-normal);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 1.75rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 59, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), var(--shadow-glow);
}

[data-theme="light"] .category-card:hover {
    border-color: rgba(224, 27, 43, 0.3);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background-color: var(--brand-red);
    filter: blur(50px);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.category-card:hover .card-glow {
    opacity: 0.12;
}

.category-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 42, 59, 0.1);
    border: 1px solid rgba(255, 42, 59, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    color: var(--brand-red);
    transition: var(--transition-normal);
}

.category-card:hover .category-icon {
    background-color: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 42, 59, 0.4);
    transform: scale(1.05);
}

.category-name {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    font-weight: 700;
}

.category-text {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.category-action {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.category-action i {
    transition: transform var(--transition-fast);
}

.category-card:hover .category-action i {
    transform: translateX(4px);
}

/* Finder Widget */
.finder-widget {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
    margin-bottom: 2rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.finder-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.filter-group select, .form-control {
    background-color: var(--bg-dark-base);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-sm);
    outline: none;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-group select:focus, .form-control:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(255, 42, 59, 0.15);
}

.finder-actions {
    display: flex;
    justify-content: flex-end;
}

.active-filters-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid var(--border-glass);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .active-filters-info {
    background-color: rgba(0,0,0,0.03);
}

/* Catalog Grid & Tire Cards */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tire-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.tire-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium);
}

[data-theme="light"] .tire-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.tire-card-image {
    position: relative;
    background: radial-gradient(circle at center, #1b1e25 0%, #0d0f13 100%);
    padding: 2.5rem;
    aspect-ratio: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .tire-card-image {
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tire-graphic {
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
    transition: transform var(--transition-normal);
}

[data-theme="light"] .tire-graphic {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
}

.tire-card:hover .tire-graphic {
    transform: scale(1.08) rotate(5deg);
}

.tire-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background-color: var(--brand-red);
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 42, 59, 0.3);
    z-index: 3;
}

.tire-badge.premium {
    background: linear-gradient(135deg, #d4af37 0%, #856404 100%);
    box-shadow: 0 4px 10px rgba(133, 100, 4, 0.3);
}

.tire-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.tire-brand {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-red);
    font-weight: 700;
}

.tire-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.tire-specs-row {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    align-self: flex-start;
    border: 1px solid var(--border-glass);
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .tire-specs-row {
    background-color: rgba(0,0,0,0.03);
}

.tire-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.metric-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.metric-track {
    height: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

[data-theme="light"] .metric-track {
    background-color: rgba(0, 0, 0, 0.08);
}

.metric-fill {
    height: 100%;
    background-color: var(--brand-red);
    border-radius: 2px;
}

.tire-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
    margin-top: auto;
}

.tire-price {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.no-results {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--bg-dark-card);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
}

[data-theme="light"] .no-results {
    border-style: dashed;
    border-color: rgba(0,0,0,0.15);
}

.no-results i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

[data-theme="light"] .modal-overlay {
    background-color: rgba(15, 23, 42, 0.65);
}

.modal-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
}

[data-theme="light"] .modal-card {
    background-color: var(--bg-dark-base);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
    z-index: 10;
}

[data-theme="light"] .modal-close-btn {
    background: rgba(0, 0, 0, 0.04);
}

.modal-close-btn:hover {
    background-color: var(--brand-red);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.modal-product-visual {
    background: radial-gradient(circle at center, #1b1e25 0%, #0d0f13 100%);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-glass);
}

[data-theme="light"] .modal-product-visual {
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
}

.modal-product-image {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
}

[data-theme="light"] .modal-product-image {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .modal-specs-grid {
    background-color: rgba(0,0,0,0.02);
}

.spec-cell {
    display: flex;
    flex-direction: column;
}

.spec-cell span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spec-cell strong {
    font-size: 1rem;
    color: var(--text-primary);
}

/* Calculator Section */
.calculator-section {
    background-color: var(--bg-dark-base);
    transition: background-color var(--transition-normal);
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: stretch;
}

.calc-panel {
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-glass);
    padding: 3.5rem;
    background-color: var(--bg-dark-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.inputs-panel {
    gap: 2rem;
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.panel-subtitle {
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.panel-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

.step-num {
    background-color: var(--brand-red);
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 180px;
}

.qty-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

[data-theme="light"] .qty-btn {
    background-color: rgba(0,0,0,0.03);
}

.qty-btn:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
}

.qty-control input {
    height: 44px;
    font-weight: 700;
    font-size: 1.1rem;
    pointer-events: none; /* User should only use buttons */
}

.services-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    transition: var(--transition-fast);
}

[data-theme="light"] .checkmark {
    background-color: rgba(0,0,0,0.03);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--brand-red);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.srv-price {
    font-size: 0.85rem;
    color: var(--brand-red);
    font-weight: 500;
}

/* Receipt Style Calculator Result */
.receipt-panel {
    position: relative;
    background: linear-gradient(180deg, #1b1e26 0%, #101217 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

[data-theme="light"] .receipt-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.receipt-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 42, 59, 0.06);
    filter: blur(80px);
    pointer-events: none;
}

.receipt-header {
    border-bottom: 2px dashed var(--border-glass);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.receipt-header h3 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
}

.receipt-date {
    font-size: 0.8rem;
    color: var(--brand-red);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.receipt-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-item-main {
    align-items: flex-start;
}

.receipt-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.receipt-item-details strong {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.receipt-item-details span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.receipt-item-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.receipt-item-pricing span {
    font-size: 1.1rem;
    font-weight: 700;
}

.receipt-divider {
    height: 1px;
    background-color: var(--border-glass);
}

.receipt-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subtotal-row, .tax-row {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.total-row {
    margin-top: 0.5rem;
    font-family: var(--font-heading);
}

.total-row span {
    font-weight: 700;
    font-size: 1.1rem;
}

.total-price {
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: var(--brand-red);
    text-shadow: 0 0 15px rgba(255, 42, 59, 0.15);
}

[data-theme="light"] .total-price {
    text-shadow: none;
}

.receipt-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.receipt-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Services & Benefits Section */
.services-section {
    background-color: var(--bg-dark-deep);
    transition: background-color var(--transition-normal);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-feature-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    transition: all var(--transition-normal);
}

.service-feature-card:hover {
    border-color: rgba(255, 42, 59, 0.25);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-dark-base);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 250px;
}

.testimonial-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.testimonial-slide.active {
    display: flex;
    opacity: 1;
}

.testimonial-slide .stars {
    color: #f59e0b; /* Yellow rating stars */
    font-size: 1.25rem;
}

.testimonial-slide .comment {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.client-avatar {
    font-size: 2.5rem;
    color: var(--brand-red);
}

.client-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.15rem;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="light"] .slider-dots .dot {
    background-color: rgba(0, 0, 0, 0.15);
}

.slider-dots .dot.active {
    background-color: var(--brand-red);
    width: 25px;
    border-radius: 10px;
}

/* Contact & Store Location Section */
.contact-section {
    background-color: var(--bg-dark-deep);
    transition: background-color var(--transition-normal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
    width: 100%;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.4rem;
    color: var(--brand-red);
    background-color: rgba(255, 42, 59, 0.1);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form-panel {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.contact-form-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.contact-form textarea.form-control {
    resize: none;
}

/* Map Card */
.map-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 380px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
}

.map-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 42, 59, 0.08);
    filter: blur(80px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark-card);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 0);
    background-size: 24px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background-color var(--transition-normal);
}

[data-theme="light"] .map-placeholder {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 2px, transparent 0);
}

.map-bg-icon {
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.015);
    position: absolute;
}

[data-theme="light"] .map-bg-icon {
    color: rgba(0, 0, 0, 0.015);
}

.map-overlay-info {
    position: relative;
    z-index: 2;
    background-color: var(--bg-dark-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0 1.5rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .map-overlay-info {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.map-overlay-info h3 {
    font-size: 1.4rem;
}

.map-overlay-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer Section */
.main-footer {
    background-color: #050608;
    border-top: 1px solid var(--border-glass);
    padding: 5rem 0 2rem 0;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="light"] .main-footer {
    background-color: #e2e8f0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr 1.3fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

[data-theme="light"] .social-links a {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0,0,0,0.06);
}

.social-links a:hover {
    background-color: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
    transform: translateY(-3px);
}

.footer-links h3, .footer-newsletter h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links ul a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: var(--brand-red);
    padding-left: 5px;
}

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .newsletter-form input {
    background-color: #ffffff;
}

.newsletter-form button {
    padding: 0 1.25rem;
}

.footer-bottom {
    max-width: 1280px;
    margin: 4rem auto 0 auto;
    padding: 2rem 1.5rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (Media Queries)
   ------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 4rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .finder-filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .header-cta .btn {
        display: none; /* Hide header WhatsApp button on small screens */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .modal-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 580px) {
    section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .finder-filters {
        grid-template-columns: 1fr;
    }
    
    .finder-widget {
        padding: 1.5rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-panel {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        padding: 0.85rem;
    }
}
