/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    /* Brand Colors */
    --clr-renault-yellow: #EFDF00;
    --clr-renault-yellow-hover: #D4C500;
    --clr-whatsapp: #25D366;
    --clr-whatsapp-hover: #128C7E;
    
    /* Neutrals */
    --clr-white: #FFFFFF;
    --clr-bg-light: #F8F8F8;
    --clr-text-dark: #1A1A1A;
    --clr-text-secondary: #666666;
    --clr-border: #E5E5E5;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-yellow: 0 10px 25px rgba(239, 223, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   Reset & Global
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-dark);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }

.accent {
    color: var(--clr-renault-yellow);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }

p { color: var(--clr-text-secondary); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-renault-yellow), var(--clr-renault-yellow-hover));
    color: var(--clr-text-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
}

.btn-outline {
    background: transparent;
    color: var(--clr-text-dark);
    border: 2px solid var(--clr-text-dark);
}

.btn-outline:hover {
    background: var(--clr-text-dark);
    color: var(--clr-white);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links > a,
.navbar.scrolled .nav-links .dropdown > a {
    color: var(--clr-white);
}

.navbar.scrolled .btn-outline {
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.navbar.scrolled .btn-outline:hover {
    background: var(--clr-white);
    color: var(--clr-text-dark);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--clr-text-dark);
}

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

.nav-links > a, .dropdown > a {
    font-weight: 500;
    color: var(--clr-text-dark);
    transition: color var(--transition-fast);
}

.nav-links > a:hover, .dropdown > a:hover {
    color: var(--clr-renault-yellow);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding: 0.5rem 0;
}

.dropdown .arrow {
    font-size: 0.7em;
    margin-left: 2px;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: max-content;
    max-width: 800px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--clr-border);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    pointer-events: none;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu a {
    color: var(--clr-text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    display: block;
    transition: all var(--transition-fast);
}

.mega-menu a:hover {
    color: var(--clr-text-dark);
    background: var(--clr-bg-light);
    padding-left: 0.8rem;
}

.nav-btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--clr-whatsapp);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.nav-btn-whatsapp:hover {
    background: var(--clr-whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--clr-text-dark);
    transition: all 0.3s;
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--clr-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('../images/dukkan-hero.jpg?v=2');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    color: var(--clr-white);
}

.hero h1 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.hero p {
    color: #DDDDDD;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero .btn-outline {
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.hero .btn-outline:hover {
    background: var(--clr-white);
    color: var(--clr-text-dark);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 5rem 0;
    background: var(--clr-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--clr-bg-light);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-renault-yellow);
    box-shadow: var(--shadow-yellow);
    background: var(--clr-white);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--clr-renault-yellow);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--clr-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--clr-text-dark);
    outline: none;
    transition: border-color var(--transition-fast);
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--clr-renault-yellow);
}

.search-group {
    position: relative;
    flex: 2;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--clr-bg-light);
}

.product-img-placeholder {
    width: 100%;
    height: 200px;
    background: var(--clr-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-secondary);
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: var(--clr-bg-light);
    color: var(--clr-text-secondary);
}

.tag.brand { background: var(--clr-renault-yellow); color: var(--clr-text-dark); }

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-oem {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-bottom: 1.5rem;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% { background-color: hsl(200, 20%, 80%); }
    100% { background-color: hsl(200, 20%, 95%); }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 5rem 0;
    background: var(--clr-white);
}

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

.contact-items {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: var(--clr-bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form {
    background: var(--clr-bg-light);
    padding: 2.5rem;
    border-radius: 16px;
}

.contact-form h3 { margin-bottom: 1.5rem; }

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--clr-renault-yellow);
    box-shadow: 0 0 0 3px rgba(239, 223, 0, 0.1);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--clr-text-dark);
    color: var(--clr-white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #AAA;
    margin-top: 1rem;
}

.footer-links h3, .footer-contact h3 {
    color: var(--clr-renault-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #AAA;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-white);
    padding-left: 5px;
}

.footer-contact p {
    color: #AAA;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--clr-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--clr-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        transition: right var(--transition-normal);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links > a, .dropdown > a {
        color: var(--clr-text-dark) !important;
        font-size: 1.2rem;
        padding: 1rem 0;
        width: 100%;
        border-bottom: 1px solid var(--clr-border);
    }
    
    .nav-btn-whatsapp { display: none; }
    
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Toggle via JS */
        grid-template-columns: 1fr 1fr;
        padding: 1rem 0;
        border: none;
    }
    
    .dropdown.active .mega-menu {
        display: grid;
    }
    
    .hero-btns { flex-direction: column; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--clr-primary);
    text-decoration: none;
}

img.product-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}
img.product-img:hover {
    transform: scale(1.05);
}
