/*
Theme Name: Van Wezel Theme
Author: Unipart
Description: Custom Van Wezel Autoparts branded theme with CATASHOP visual design elements and tramline layout alignment.
Version: 1.2.1
Text Domain: base-woo-theme
*/

:root {
    --vw-red: #d30815;
    --vw-red-hover: #b00510;
    --vw-dark-bg: #1f1f1f;
    --vw-dark-card: #2b2b2b;
    --vw-gray-light: #f4f5f7;
    --vw-gray-border: #cccccc;
    --vw-text-dark: #222222;
}

/* Global Typography & Base Styles */
body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--vw-text-dark);
    background-color: #f8f9fa;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 700;
    text-transform: none;
}

/* Header & Tramline Navigation Styling */
.header-top-banner {
    background-color: #ffffff;
    border-bottom: 1px solid var(--vw-gray-border);
}

.sub-brands-banner {
    max-height: 60px;
    width: auto;
}

.vw-nav-wrapper {
    background-color: transparent;
    padding-top: 10px;
}

.vw-main-nav {
    background-color: var(--vw-red) !important;
    padding: 2px 8px;
    border: none;
}

.vw-main-nav .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 14px !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vw-main-nav .navbar-nav .nav-link:hover,
.vw-main-nav .navbar-nav .nav-link.active {
    background-color: rgba(0, 0, 0, 0.25);
    color: #ffffff !important;
}

/* Hero Banner Component */
.vw-hero-banner {
    border: 1px solid var(--vw-gray-border);
}

.vw-hero-banner .hero-img {
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
}

/* Brand Tabs & Language Switching */
.nav-tabs .nav-link {
    color: var(--vw-text-dark);
    font-weight: 700;
    background-color: #e2e2e2;
    border-radius: 4px 4px 0 0;
    border: 1px solid var(--vw-gray-border);
    border-bottom: none;
}

.nav-tabs .nav-link.active {
    background-color: var(--vw-red) !important;
    color: #ffffff !important;
    border-color: var(--vw-red) !important;
}

.notice-card {
    border: 1px solid var(--vw-gray-border);
    border-left: 5px solid var(--vw-red);
    background-color: #ffffff;
}

/* Sidebar & News Widget Styling (CATASHOP Sidebar) */
.vw-dark-widget {
    background-color: var(--vw-dark-card);
    color: #ffffff;
    padding: 24px;
    border-radius: 6px;
}

.vw-dark-widget h5 {
    border-bottom: 2px solid var(--vw-red);
    padding-bottom: 8px;
    font-size: 1.1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.vw-dark-widget a {
    color: var(--vw-red);
    text-decoration: none;
    font-weight: bold;
}

.vw-dark-widget a:hover,
.hover-red:hover {
    color: #ff4d4d !important;
    text-decoration: underline;
}

/* Category Grid Cards (Web Directory View) */
.vw-cat-card {
    background-color: var(--vw-gray-light);
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    text-align: center;
    padding: 20px 15px;
    height: 100%;
}

.vw-cat-card:hover {
    border-color: var(--vw-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.vw-cat-card img {
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 15px;
}

.vw-cat-card h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
}

/* Modernized Forms & Action Buttons */
.btn-vw-red {
    background-color: var(--vw-red);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-vw-red:hover {
    background-color: var(--vw-red-hover);
    color: #ffffff;
}

.btn-vw-red:active {
    transform: scale(0.98);
}

.autocomplete-results {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
    color: var(--vw-red);
}

/* Table Design (CATASHOP Catalog View) */
.table-vw {
    border: 1px solid var(--vw-gray-border);
}

.table-vw thead {
    background-color: var(--vw-dark-card);
    color: #ffffff;
    font-size: 0.9rem;
}

.table-vw th {
    font-weight: 700;
    border: none;
}