/* GDST Vehicle Catalog – Brand Archive */

:root {
    --gdst-primary: #111111;
    --gdst-red: #FF4545;
    --gdst-text: #696969;
    --gdst-bg: #F7F7F7;
    --gdst-white: #FFFFFF;
    --gdst-border: #E5E5E5;
    --gdst-radius: 8px;
    --gdst-sidebar-w: 280px;
}

/* ── Hero ── */
.gdst-hero {
    background: var(--gdst-primary);
    color: var(--gdst-white);
    padding: 50px 24px 40px;
    text-align: center;
}
.gdst-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}
.gdst-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--gdst-red);
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.gdst-hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.2;
}
.gdst-hero-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
    line-height: 1.6;
}
.gdst-hero-desc strong {
    color: rgba(255,255,255,0.85);
}
.gdst-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.gdst-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--gdst-radius);
    padding: 16px 28px;
    text-align: center;
    min-width: 180px;
}
.gdst-stat-num {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gdst-red);
    line-height: 1;
    margin-bottom: 4px;
}
.gdst-stat-label {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* ── Layout ── */
.gdst-brand-archive {
    background: var(--gdst-bg);
}
.gdst-layout {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Sidebar ── */
.gdst-sidebar {
    width: var(--gdst-sidebar-w);
    flex-shrink: 0;
}
.gdst-sidebar-toggle {
    display: none;
}
.gdst-sidebar-inner {
    position: sticky;
    top: 100px;
}
.gdst-sidebar-section {
    background: var(--gdst-white);
    border-radius: var(--gdst-radius);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--gdst-border);
}
.gdst-sidebar-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gdst-primary);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gdst-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.gdst-heading-icon {
    font-size: 14px;
}

/* Category / Brand Lists */
.gdst-cat-list,
.gdst-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gdst-cat-list li,
.gdst-brand-list li {
    margin: 0;
}
.gdst-cat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}
.gdst-cat-toggle {
    cursor: pointer;
    font-size: 9px;
    color: var(--gdst-text);
    user-select: none;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.15s;
}
.gdst-cat-toggle:hover {
    color: var(--gdst-primary);
}
.gdst-cat-link,
.gdst-brand-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--gdst-text);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    transition: color 0.15s;
    width: 100%;
}
.gdst-cat-link:hover,
.gdst-brand-link:hover {
    color: var(--gdst-primary);
}
.gdst-cat-link.active,
.gdst-brand-link.active {
    color: var(--gdst-red);
    font-weight: 600;
}
.gdst-count {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}
.gdst-brand-link.active .gdst-count {
    color: var(--gdst-red);
}
.gdst-cat-children,
.gdst-brand-children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
}
.gdst-region-name {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gdst-primary);
    cursor: default;
}

/* OE Search */
.gdst-oe-form {
    margin: 0;
}
.gdst-oe-input-wrap {
    display: flex;
    gap: 0;
    border: 1px solid var(--gdst-border);
    border-radius: var(--gdst-radius);
    overflow: hidden;
}
.gdst-oe-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    background: var(--gdst-white);
    min-width: 0;
}
.gdst-oe-btn {
    padding: 10px 16px;
    border: none;
    background: var(--gdst-primary);
    color: var(--gdst-white);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    white-space: nowrap;
}
.gdst-oe-btn:hover {
    background: #333;
}

/* ── Main ── */
.gdst-main {
    flex: 1;
    min-width: 0;
}

/* Active Filter */
.gdst-active-filter {
    background: var(--gdst-white);
    padding: 10px 14px;
    border-radius: var(--gdst-radius);
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: var(--gdst-text);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gdst-border);
}
.gdst-clear-filter {
    color: var(--gdst-red);
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    cursor: pointer;
}

/* ── Product Grid ── */
.gdst-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gdst-product-card {
    background: var(--gdst-white);
    border-radius: var(--gdst-radius);
    overflow: hidden;
    border: 1px solid var(--gdst-border);
    transition: box-shadow 0.2s, transform 0.2s;
}
.gdst-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.gdst-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.gdst-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
}
.gdst-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gdst-product-card:hover .gdst-product-image img {
    transform: scale(1.05);
}
.gdst-product-info {
    padding: 14px;
}
.gdst-product-title {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gdst-primary);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gdst-product-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    margin-bottom: 3px;
    line-height: 1.5;
}
.gdst-meta-label {
    color: var(--gdst-text);
}
.gdst-meta-value {
    color: var(--gdst-primary);
    font-weight: 500;
}
.gdst-view-details {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gdst-red);
    transition: opacity 0.15s;
}
.gdst-product-card:hover .gdst-view-details {
    opacity: 0.8;
}

/* No Products */
.gdst-no-products {
    text-align: center;
    padding: 60px 24px;
    background: var(--gdst-white);
    border-radius: var(--gdst-radius);
    border: 1px solid var(--gdst-border);
}
.gdst-no-products-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.gdst-no-products p {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--gdst-text);
    margin: 0 0 4px;
}
.gdst-no-products-hint {
    font-size: 13px !important;
    color: #aaa !important;
}

/* Pagination */
.gdst-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}
.gdst-page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gdst-border);
    border-radius: var(--gdst-radius);
    background: var(--gdst-white);
    color: var(--gdst-text);
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.gdst-page-btn:hover {
    border-color: var(--gdst-primary);
    color: var(--gdst-primary);
}
.gdst-page-btn.active {
    background: var(--gdst-primary);
    color: var(--gdst-white);
    border-color: var(--gdst-primary);
}

/* Show All */
.gdst-show-all {
    text-align: center;
    margin-top: 24px;
}
.gdst-show-all-btn {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid var(--gdst-primary);
    border-radius: var(--gdst-radius);
    background: transparent;
    color: var(--gdst-primary);
    cursor: pointer;
    transition: all 0.2s;
}
.gdst-show-all-btn:hover {
    background: var(--gdst-primary);
    color: var(--gdst-white);
}

/* Loading */
.gdst-products-wrap.loading {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gdst-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gdst-hero-stats {
        gap: 12px;
    }
    .gdst-stat {
        min-width: 140px;
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    .gdst-layout {
        flex-direction: column;
        padding: 16px;
    }
    .gdst-sidebar {
        width: 100%;
    }
    .gdst-sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--gdst-border);
        border-radius: var(--gdst-radius);
        background: var(--gdst-white);
        font-family: 'Roboto', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--gdst-primary);
        cursor: pointer;
    }
    .gdst-sidebar-inner {
        display: none;
        position: static;
        margin-top: 12px;
    }
    .gdst-sidebar-inner.open {
        display: block;
    }
    .gdst-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .gdst-hero {
        padding: 32px 16px;
    }
    .gdst-hero-title {
        font-size: 24px;
    }
    .gdst-hero-stats {
        flex-direction: column;
        align-items: center;
    }
    .gdst-stat {
        width: 100%;
        max-width: 280px;
    }
}
