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

:root {
    --vf-blue: #004bb5;
    --vf-blue-hover: #003a8c;
    --vf-dark: #111111;
    --vf-light-bg: #f8f9fa;
    --vf-border: #e9ecef;
    --vf-text: #2b2b2b;
    --vf-text-muted: #6c757d;
    --vf-gradient: linear-gradient(135deg, #004bb5 0%, #007bff 100%);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --max-width: 1280px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-primary);
    color: var(--vf-text);
    background-color: #ffffff;
    line-height: 1.6;
}

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

/* Common Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--vf-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-v {
    font-style: italic;
    color: #004bb5;
}

/* Navigation Links */
.main-nav {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vf-dark);
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-item:hover .nav-link {
    color: var(--vf-blue);
}

/* Megamenu Dropdown */
.megamenu {
    position: absolute;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1000px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid var(--vf-border);
    border-top: 3px solid var(--vf-blue);
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
}

.nav-item:hover .megamenu {
    opacity: 1;
    visibility: visible;
}

.megamenu-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--vf-text-muted);
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--vf-border);
    padding-bottom: 8px;
}

.megamenu-list {
    list-style: none;
}

.megamenu-list li {
    margin-bottom: 8px;
}

.megamenu-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--vf-dark);
    display: block;
    padding: 4px 0;
}

.megamenu-list a:hover {
    color: var(--vf-blue);
    padding-left: 5px;
}

/* Call to Action header button */
.header-cta .btn {
    padding: 10px 20px;
    background-color: var(--vf-blue);
    color: #ffffff;
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.9rem;
}

.header-cta .btn:hover {
    background-color: var(--vf-blue-hover);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vf-dark);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
    background-color: var(--vf-dark);
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 40px;
    color: #ffffff;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e9ecef;
}

/* Slider Controls */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--vf-blue);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

/* Filter Section */
.filter-section {
    padding: 40px 0;
    background-color: var(--vf-light-bg);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--vf-border);
    border-radius: 30px;
    background-color: #ffffff;
    color: var(--vf-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--vf-blue);
    border-color: var(--vf-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 75, 181, 0.2);
}

/* Product Section */
.products-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--vf-blue);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: #ffffff;
    border: 1px solid var(--vf-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: rgba(0, 75, 181, 0.2);
}

.product-img-box {
    padding: 20px;
    background-color: var(--vf-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    position: relative;
}

.product-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-cat-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--vf-blue);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--vf-dark);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--vf-text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--vf-blue);
    margin-bottom: 20px;
}

.product-cta {
    display: flex;
    gap: 10px;
}

.product-cta .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
}

.btn-outline-blue {
    border: 1px solid var(--vf-blue);
    color: var(--vf-blue);
    background: none;
}

.btn-outline-blue:hover {
    background-color: var(--vf-blue);
    color: #ffffff;
}

.btn-solid-blue {
    background-color: var(--vf-blue);
    color: #ffffff;
}

.btn-solid-blue:hover {
    background-color: var(--vf-blue-hover);
}

/* Detail Page CSS */
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: 40px 0;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-main-img {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vf-light-bg);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
}

.detail-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-palette-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 12px;
}

.color-dots-container {
    display: flex;
    gap: 12px;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px var(--vf-border);
    cursor: pointer;
    transition: var(--transition);
}

.color-dot.active {
    box-shadow: 0 0 0 2px var(--vf-blue);
    transform: scale(1.1);
}

.detail-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--vf-dark);
    margin-bottom: 8px;
}

.detail-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--vf-blue);
    margin-bottom: 24px;
}

.detail-summary {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Specifications Table styling */
.specs-card {
    background-color: #ffffff;
    border: 1px solid var(--vf-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.specs-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vf-dark);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--vf-border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.specs-label {
    font-weight: 700;
    color: var(--vf-dark);
    width: 35%;
    background-color: var(--vf-light-bg);
}

.specs-val {
    color: #4a5568;
}

/* Branch Map CSS */
.branch-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    padding: 40px 0;
    height: 600px;
}

.branch-list-card {
    border: 1px solid var(--vf-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    background-color: #ffffff;
}

.branch-list-card h3 {
    padding: 20px;
    border-bottom: 1px solid var(--vf-border);
    background-color: var(--vf-light-bg);
    position: sticky;
    top: 0;
    z-index: 5;
}

.branch-item {
    padding: 20px;
    border-bottom: 1px solid var(--vf-border);
    cursor: pointer;
    transition: var(--transition);
}

.branch-item:hover, .branch-item.active {
    background-color: rgba(0, 75, 181, 0.03);
}

.branch-item.active {
    border-left: 4px solid var(--vf-blue);
}

.branch-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.branch-addr {
    font-size: 0.85rem;
    color: var(--vf-text-muted);
    margin-bottom: 8px;
}

.branch-phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vf-blue);
}

.branch-map-box {
    border: 1px solid var(--vf-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
}

.branch-map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer styling */
.site-footer {
    background-color: #0f1319;
    color: #e9ecef;
    padding: 60px 0 30px;
    font-size: 0.9rem;
    border-top: 5px solid var(--vf-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-company-info {
    line-height: 1.7;
}

.footer-company-info p {
    margin-bottom: 8px;
    color: #a0aec0;
}

.footer-company-info strong {
    color: #ffffff;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--vf-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #a0aec0;
    font-size: 0.8rem;
}

/* Responsive media queries */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .branch-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .branch-map-box {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }
    
    .menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        overflow-y: auto;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 30px;
        justify-content: space-between;
        border-bottom: 1px solid var(--vf-border);
    }
    
    .megamenu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        display: none;
        padding: 15px 40px;
        grid-template-columns: 1fr;
        background-color: var(--vf-light-bg);
    }
    
    .nav-item:hover .megamenu {
        display: grid;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
}
