/* Reset & Base */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary-main: #FD0101;
    --dark-main: #b11212;
    --white: #ffffff;
    --light-gray: #EBF2FA;
    --text-color: #3D3C3B;
    --green: #1DA750;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-main);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
}

.top-bar-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.contacts {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 1. Header */
header {
    background-color: var(--light-gray);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px; /* Ajuste a altura conforme necessário */
    width: auto;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-main);
}

/* 2. Banner */
.hero-banner {
    width: 100%;
    height: 600px;
    /* Placeholder image from Unsplash */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.2rem;
}

/* 3. Filter Section */
.filter-container {
    background-color: var(--white);
    padding: 30px;
    display: flex;
    justify-content: center;
    margin: 0 auto -60px auto;
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    transform: translateY(-50%);
}

.filter-box {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.input-group {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: var(--primary-main);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 29, 38, 0.1);
}

.input-group i {
    padding-left: 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.filter-box select, .filter-box input {
    padding: 15px;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
}

.filter-box button {
    padding: 15px 40px;
    background-color: var(--primary-main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
}

.filter-box button:hover {
    background-color: var(--dark-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 29, 38, 0.3);
}

/* 4. Recommended Section */
.recommended-section {
    padding: 60px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recommended-section h2 {
    color: var(--text-color);
    border-left: 5px solid var(--primary-main);
    padding-left: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-link {
    text-decoration: none;
    color: var(--primary-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: var(--dark-main);
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    padding-top: 5px;
    /* scroll-snap-type: x mandatory; Removido para evitar travamento */
    -webkit-overflow-scrolling: touch;
    cursor: grab; /* Cursor de mão aberta para indicar que é arrastável */
}

.carousel-container.active {
    cursor: grabbing; /* Cursor de mão fechada quando estiver arrastando */
    cursor: -webkit-grabbing;
}

.carousel-container::-webkit-scrollbar {
    height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: var(--primary-main);
    border-radius: 4px;
}

.car-card {
    min-width: 300px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.car-image {
    height: 200px;
    background-color: #f0f0f0;
    /* Placeholder image for cars */
    background-image: url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?q=80&w=600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 1.15rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 10px 0 15px 0;
}

.specs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.specs li {
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee;
}

.specs li i {
    color: var(--primary-main);
    font-size: 0.9em;
}

.details-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--primary-main);
    color: var(--primary-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.details-btn:hover {
    background-color: var(--primary-main);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(232, 29, 38, 0.2);
}

/* 5. Inventory Page Styles */
.inventory-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* Sidebar */
.sidebar-filters {
    width: 280px;
    height: fit-content;
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    color: var(--text-color);
    font-size: 1.1rem;
}

.clear-filters {
    background: none;
    border: none;
    color: var(--primary-main);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
}

.checkbox-group label span {
    color: #999;
    font-size: 0.85rem;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--primary-main);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
}

.price-input:focus {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 2px rgba(232, 29, 38, 0.1);
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    background-color: var(--white);
    transition: all 0.3s;
}

.filter-select:focus {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 2px rgba(232, 29, 38, 0.1);
}

.apply-filters-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filters-btn:hover {
    background-color: var(--dark-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 29, 38, 0.2);
}

/* Inventory Content */
.inventory-content {
    flex: 1;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inventory-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 15px;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 5px;
    font-size: 0.9rem;
}

.search-bar-container button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.search-bar-container button:hover {
    color: var(--primary-main);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.sort-options select {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    background-color: white;
}

/* Grid Layout */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-main);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-filter-btn:hover {
    background-color: var(--dark-main);
}

/* Sidebar Controls */
.close-filters-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000; /* Darker color */
    cursor: pointer;
    padding: 5px;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.clear-filters {
    background: none;
    border: 1px solid var(--primary-main);
    color: var(--primary-main);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s;
}

.clear-filters:hover {
    background-color: #fff0f0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .inventory-page-container {
        flex-direction: column;
    }
    
    .sidebar-filters {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 85%; /* Leave small space on left */
        height: 100vh;
        background-color: var(--white);
        z-index: 2000; /* Above everything */
        padding: 20px;
        overflow-y: auto;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: block; /* Always block, visibility controlled by position */
        border-radius: 0; /* Remove border radius for full height */
        padding-bottom: 70px;
    }

    .sidebar-filters.active {
        right: 0; /* Slide in */
    }

    .mobile-filter-btn {
        display: flex; /* Show button on mobile */
    }

    .inventory-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-bar-container {
        max-width: 100%;
        margin: 0;
    }
    
    .sort-options {
        justify-content: space-between;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    /* Show close button only on mobile */
    .close-filters-btn {
        display: block;
    }

    /* Filter Overlay */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
        z-index: 1999; /* Below sidebar, above content */
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .filter-overlay.active {
        display: block;
        opacity: 1;
    }
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-main);
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        display: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        border-top: 1px solid #eee;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 15px 0;
        margin-left: 0;
        font-size: 1.1rem;
        color: var(--text-color);
    }
}

/* Details Page Styles */
.details-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-main);
}

.breadcrumb i {
    font-size: 0.7rem;
    margin: 0 10px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    grid-template-areas: 
        "gallery info"
        "desc info"
        "opts info"
        "loc info";
}

/* Assign grid areas */
.car-gallery {
    grid-area: gallery;
}

.description-section {
    grid-area: desc;
    margin-top: 30px;
}

.optional-list {
    grid-area: opts;
}

.location-contact-section {
    grid-area: loc;
    margin-top: 30px;
}

.car-info-detailed {
    grid-area: info;
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Gallery */
.car-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 1px solid transparent;
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border: 2px solid var(--primary-main);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info Detailed - Already defined in grid area above, removing duplicate block to avoid confusion */
/* .car-info-detailed { ... } */

.car-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.car-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.detail-price {
    font-size: 2.5rem;
    color: var(--green);
    font-weight: bold;
    margin-bottom: 30px;
}

.specs-grid-detailed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.spec-item-detailed {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-item-detailed i {
    color: var(--primary-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.spec-item-detailed span {
    font-size: 0.85rem;
    color: #888;
}

.spec-item-detailed strong {
    font-size: 1rem;
    color: var(--text-color);
}

.description-section {
    margin-bottom: 30px;
}

.description-section h3, .optional-list h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-main);
    padding-left: 10px;
}

.description-section p {
    color: #555;
    line-height: 1.6;
}

.optional-list {
    margin-bottom: 30px;
}

.optional-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.optional-list li {
    color: #555;
    font-size: 0.95rem;
}

.optional-list li i {
    color: var(--primary-main);
    margin-right: 8px;
    font-size: 0.8rem;
}

.action-buttons-detailed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-btn-large {
    width: 100%;
    padding: 15px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
}

.whatsapp-btn-large:hover {
    background-color: #128C7E;
}

.finance-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--text-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
}

.finance-btn:hover {
    background-color: #000;
}

/* Brands Section */
.brands-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
    transition: all 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
    color: var(--primary-main);
}

.brand-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-card:hover img {
    filter: grayscale(0%);
}

.brand-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Location & Contact Styles */
.location-contact-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-main);
    padding-left: 10px;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.whatsapp-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.whatsapp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    transition: transform 0.3s;
    text-decoration: none; /* Remove underline from link */
    cursor: pointer;
}

.whatsapp-item:hover {
    transform: translateY(-3px);
    border-color: #d0d0d0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.whatsapp-item i {
    font-size: 2rem;
    color: #25D366;
}

.whatsapp-item div {
    display: flex;
    flex-direction: column;
}

.whatsapp-item strong {
    color: var(--text-color);
    font-size: 1rem;
}

.whatsapp-item span {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Details */
@media (max-width: 900px) {
    .details-grid {
        display: flex;
        flex-direction: column;
    }

    .car-gallery {
        order: 1;
    }

    .car-info-detailed {
        order: 2;
        position: static; /* Remove sticky on mobile */
    }

    .description-section {
        order: 3;
    }

    .optional-list {
        order: 4;
    }

    .location-contact-section {
        order: 5;
    }

    .main-image {
        height: 300px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--primary-main);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 2001;
}

.lightbox-next {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 20px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Mobile Lightbox Adjustments */
@media (max-width: 900px) {
    .lightbox-content {
        max-height: 70vh;
        margin: auto; /* Center vertically and horizontally */
    }

    .lightbox-prev, .lightbox-next {
        top: auto;
        bottom: 30px;
        margin-top: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .lightbox-prev {
        left: 30px;
    }

    .lightbox-next {
        right: 30px;
        left: auto;
    }
    
    .lightbox-prev:active, .lightbox-next:active {
        background-color: var(--primary-main);
    }
}

/* Financing Page Styles */
.financing-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.financing-header {
    text-align: center;
    margin-bottom: 40px;
}

.financing-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.financing-header p {
    color: #666;
    font-size: 1.1rem;
}

.financing-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.form-section {
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-section h3 i {
    color: var(--primary-main);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-main);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 29, 38, 0.1);
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-btn {
    background-color: var(--primary-main);
    color: var(--white);
    border: none;
    padding: 15px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}
.submit-btn:hover {
    background-color: var(--dark-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 29, 38, 0.3);
}

.submit-btn:hover {
    background-color: var(--dark-main);
}

@media (max-width: 768px) {
    .financing-form {
        padding: 20px;
    }
    
    .financing-header h1 {
        font-size: 2rem;
    }
}

/* CTA Financing Section */
.cta-financing-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.cta-financing-section a {
    display: block;
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.cta-financing-section a:hover {
    transform: scale(1.002);
}

.cta-financing-section img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

@media (max-width: 768px) {
    .cta-financing-section {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .cta-financing-section img {
        border-radius: 8px;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-main);
    border-radius: 2px;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--text-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}

.about-btn:hover {
    background-color: var(--primary-main);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-main);
    border-radius: 12px;
    z-index: 0;
}

.about-image img {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 40px;
    }

    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-image::before {
        top: 15px;
        right: 15px;
        left: -15px;
        bottom: -15px;
        width: auto;
        height: auto;
    }
}

/* Location Section */
.location-section {
    padding: 60px 20px;
    background-color: var(--light-gray);
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.location-header {
    text-align: center;
    margin-bottom: 20px;
}

.location-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.location-header p {
    color: #666;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Page Styles */
.contact-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.info-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.info-card h3 i {
    color: var(--primary-main);
}

.info-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-map-small {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-map-small iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-column {
        order: 2;
    }
    
    .contact-form-column {
        order: 1;
    }
}

/* Contact Form Separator & WhatsApp Button */
.form-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-separator::before,
.form-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.form-separator::before {
    margin-right: 15px;
}

.form-separator::after {
    margin-left: 15px;
}

.whatsapp-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-contact-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-contact-btn i {
    font-size: 1.4rem;
}

/* About Page Styles */
.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-story-section {
    padding: 60px 0;
    text-align: center;
}

.story-content h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--primary-main);
    font-weight: 500;
    margin-bottom: 40px;
}

.story-text {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: left;
}

.story-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

/* Seller Card Styles */
.seller-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.seller-icon-wrapper {
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.seller-info strong {
    color: var(--text-color);
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.seller-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-main);
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Store Gallery Section */
.store-gallery-section {
    padding: 60px 0 80px;
    background-color: var(--light-gray);
    margin: 0 -20px; /* Extend background to full width relative to container padding */
    padding-left: 20px;
    padding-right: 20px;
}

.gallery-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 0; /* No gap for full width slides */
}

.gallery-item {
    min-width: 100%;
    height: 500px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--primary-main);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 300px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--dark-main);
}

.brand-info p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Make logo white if it's dark */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--dark-main);
    transform: translateY(-3px);
}

.links ul {
    list-style: none;
}

.links ul li {
    margin-bottom: 12px;
}

.links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links ul li a:hover {
    color: var(--light-gray);
    padding-left: 5px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info ul li i {
    color: var(--dark-main);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .site-footer {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .links ul li a {
        justify-content: center;
    }
    
    .links ul li a:hover {
        padding-left: 0;
    }
    
    .contact-info ul li {
        justify-content: center;
    }
}



/* About Page Additional Styles */

.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}


.social-buttons-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.youtube {
    background: #ff0000;
}

.sales-team-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.map-section {
    padding: 0 20px 60px;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-embed {
    width: 100%;
    height: 400px;
    border: 0;
}

