/*
 * MAIN WEBSITE STYLES (app.css)
 * 
 * IMPORTANT: Most styles in this file are scoped to main website pages only
 * using body:not(.admin-body) selector to prevent conflicts with admin panel.
 * 
 * The admin panel uses its own stylesheet (admin.css) and has the 'admin-body'
 * class added to the body element when on /admin/* routes.
 * 
 * CSS Variables (--tech-*) are global and can be used by both main site and admin.
 */

:root {
    /* Technical Blue Theme */
    --tech-primary: #0066cc;
    /* Strong Blue */
    --tech-primary-dark: #004c99;
    --tech-accent: #ffcc00;
    /* Warning Yellow (common in construction/trucks) */
    --tech-dark: #232f3e;
    /* Very Dark Blue/Gray */
    --tech-gray: #f4f4f4;
    --tech-border: #ddd;
    --tech-text: #333;
    --tech-success: #28a745;
}

body:not(.admin-body) {
    font-family: 'Open Sans', 'Segoe UI', sans-serif;
    /* Clean, legible font */
    color: var(--tech-text);
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--tech-primary);
}

/* --- HEADER LAYOUT (JS Truck Parts / Wilms Style) --- */
/* NOTE: These styles only apply to main website, not admin pages */

/* 1. Top Strip */
body:not(.admin-body) .top-strip {
    background-color: var(--tech-dark);
    color: #ccc;
    font-size: 0.8rem;
    padding: 6px 0;
}

body:not(.admin-body) .top-strip a {
    color: #fff;
    margin-left: 15px;
}

/* 2. Main Header (Logo, Search, Actions) */
body:not(.admin-body) .main-header-area {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

body:not(.admin-body) .brand-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tech-dark);
    text-transform: uppercase;
    font-style: italic;
    /* Dynamic look */
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.admin-body) .brand-logo i {
    color: var(--tech-primary);
}

body:not(.admin-body) .header-search {
    position: relative;
    max-width: 600px;
    width: 100%;
}

body:not(.admin-body) .header-search input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--tech-primary);
    border-radius: 4px;
    /* Slight round */
    font-size: 0.95rem;
}

body:not(.admin-body) .header-search button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: var(--tech-primary);
    color: white;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 0 2px 2px 0;
}

body:not(.admin-body) .header-search button:hover {
    background: var(--tech-primary-dark);
}

body:not(.admin-body) .header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

body:not(.admin-body) .action-item {
    text-align: center;
    font-size: 0.8rem;
    color: var(--tech-dark);
    font-weight: 600;
}

body:not(.admin-body) .action-item i {
    display: block;
    font-size: 1.6rem;
    color: var(--tech-primary);
    margin-bottom: 2px;
}

body:not(.admin-body) .cart-badge {
    background: var(--tech-accent);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* 3. Navigation Bar (Blue Ribbon) */
body:not(.admin-body) .nav-ribbon {
    background-color: var(--tech-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body:not(.admin-body) .nav-ribbon .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 20px !important;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.admin-body) .nav-ribbon .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body:not(.admin-body) .nav-ribbon .nav-link.active {
    background-color: var(--tech-primary-dark);
}

body:not(.admin-body) .sale-link {
    background: #b91c1c;
}

/* Red background for Sale */

/* --- HERO & SELECTOR --- */
body:not(.admin-body) .hero-wrapper {
    background: url('https://images.unsplash.com/photo-1596707333671-b0e6e8e86095?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    /* Fallback */
    background-position: center 30%;
    /* Shift focus */
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

body:not(.admin-body) .hero-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, rgba(35, 47, 62, 0.95) 0%, rgba(35, 47, 62, 0.6) 50%, rgba(35, 47, 62, 0.1) 100%);
}

body:not(.admin-body) .selector-box {
    background: #fff;
    padding: 25px;
    border-radius: 4px;
    border-top: 5px solid var(--tech-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

body:not(.admin-body) .selector-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tech-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

body:not(.admin-body) .selector-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

body:not(.admin-body) .selector-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
}

body:not(.admin-body) .btn-find {
    width: 100%;
    background: var(--tech-primary);
    color: white;
    font-weight: 700;
    padding: 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body:not(.admin-body) .btn-find:hover {
    background: var(--tech-primary-dark);
}

/* --- PRODUCT GRID (Technical - BAS Parts Style) --- */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .section-heading {
    border-bottom: 2px solid var(--tech-border);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

body:not(.admin-body) .section-heading h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tech-dark);
    margin: 0;
    text-transform: uppercase;
}

body:not(.admin-body) .section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--tech-primary);
    margin-top: 10px;
    margin-bottom: -12px;
}

body:not(.admin-body) .tech-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    transition: all 0.2s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .tech-card:hover {
    border-color: #aaa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body:not(.admin-body) .tech-img-container {
    height: 200px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

body:not(.admin-body) .tech-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body:not(.admin-body) .tech-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .tech-title {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.3;
}

body:not(.admin-body) .tech-ref {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

body:not(.admin-body) .tech-dismantled {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    font-style: italic;
}

body:not(.admin-body) .tech-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: #444;
}

body:not(.admin-body) .tech-spec-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body:not(.admin-body) .tech-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

body:not(.admin-body) .btn-tech-cart {
    background: #28a745;
    /* BAS Green */
    color: white;
    border: none;
    padding: 8px 15px;
    /* Wider button */
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    width: 45%;
    /* Fixed width proportion */
    justify-content: center;
    transition: background-color 0.2s;
}

body:not(.admin-body) .btn-tech-cart:hover:not(:disabled) {
    background: #218838;
}

body:not(.admin-body) .btn-tech-cart:disabled {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    cursor: not-allowed;
    opacity: 0.9;
}

body:not(.admin-body) .tech-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000;
    text-align: right;
    width: 50%;
}

body:not(.admin-body) .tech-delivery-footer {
    border-top: 1px solid #eee;
    padding: 8px 15px;
    font-size: 0.75rem;
    color: var(--tech-dark);
    font-weight: 600;
    background: #fff;
    text-align: center;
}

/* Category Grid (Box Style) - Legacy */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .cat-grid-item {
    background: white;
    border: 1px solid #eee;
    text-align: center;
    padding: 25px 15px;
    transition: transform 0.2s;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

body:not(.admin-body) .cat-grid-item:hover {
    transform: translateY(-3px);
    border-color: var(--tech-primary);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

body:not(.admin-body) .cat-grid-icon {
    font-size: 3rem;
    color: var(--tech-dark);
    margin-bottom: 15px;
}

body:not(.admin-body) .cat-grid-title {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-height: 2.8em;
}

/* BAS Parts Style Category Cards */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .bas-category-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .bas-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--tech-primary);
}

body:not(.admin-body) .bas-category-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8f9fa;
}

body:not(.admin-body) .bas-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
}

body:not(.admin-body) .bas-category-card:hover .bas-category-image img {
    transform: scale(1.1);
}

body:not(.admin-body) .bas-category-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body:not(.admin-body) .bas-category-card:hover .bas-category-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

body:not(.admin-body) .bas-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

body:not(.admin-body) .bas-category-label {
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tech-dark);
    text-transform: uppercase;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- FOOTER (Technical) --- */
footer {
    background: var(--tech-dark);
    color: #ccc;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

footer a {
    color: #888;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- PRODUCT DETAILS (BAS Style) --- */
.product-detail-wrapper {
    background: #fff;
    padding: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.pd-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tech-dark);
    margin-bottom: 5px;
}

.pd-ref {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pd-price-block {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin-bottom: 20px;
}

.pd-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tech-dark);
}

.pd-vat {
    font-size: 0.8rem;
    color: #888;
}

.btn-bas-action {
    background: #28a745;
    color: white;
    font-weight: 700;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-bas-action:hover {
    background: #218838;
}

.btn-bas-action:disabled {
    background: #dc3545;
    /* Bootstrap Danger Red */
    border-color: #dc3545;
    cursor: not-allowed;
    opacity: 0.9;
    color: white;
}

.pd-delivery-info {
    font-size: 0.85rem;
    margin-top: 15px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.pd-delivery-info i {
    color: var(--tech-primary);
    margin-right: 5px;
}

/* Fitment Box */
.fitment-check-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 15px;
    border-radius: 4px;
    margin: 30px 0;
}

.fitment-title {
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 10px;
    font-size: 0.9rem;
}

.specs-key {
    font-weight: 600;
    color: #666;
    width: 30%;
}

.specs-val {
    font-weight: 700;
    color: #333;
}

.pd-main-img {
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pd-main-img img {
    max-width: 100%;
    max-height: 500px;
}

.pd-thumbnails {
    display: flex;
    gap: 10px;
}

.pd-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    padding: 5px;
    cursor: pointer;
    object-fit: contain;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--tech-primary);
    opacity: 1;
}

.pd-thumb-more {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--tech-primary);
    font-weight: 600;
    transition: all 0.2s;
}

.pd-thumb-more:hover {
    border-color: var(--tech-primary);
    background: var(--tech-primary);
    color: white;
}

/* Product Carousel */
#productCarousel {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

#productCarousel .carousel-inner {
    border-radius: 8px;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
    opacity: 1;
}

#productCarousel .carousel-control-prev {
    left: 15px;
}

#productCarousel .carousel-control-next {
    right: 15px;
}

#productCarousel .carousel-indicators {
    margin-bottom: 15px;
}

#productCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

#productCarousel .carousel-indicators button.active {
    background-color: var(--tech-primary);
    border-color: var(--tech-primary);
}

/* BAS Parts Product Details Enhancements */
.bas-special-offer-badge {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 4px;
}

.bas-core-part-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}

.bas-core-part-info i {
    color: var(--tech-primary);
    margin-right: 5px;
}

.bas-stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.bas-stock-dot {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
}

.bas-help-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

/* --- BAS PARTS CART STYLES --- */
.bas-cart-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
}

.bas-cart-image {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bas-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bas-cart-image i {
    font-size: 3rem;
    opacity: 0.3;
}

.bas-cart-product-info {
    padding-left: 15px;
}

.bas-cart-product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-bottom: 5px;
}

.bas-cart-product-ref {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.bas-cart-stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.bas-cart-delivery-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.bas-cart-core-part {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.bas-cart-core-part i {
    color: var(--tech-primary);
    margin-right: 5px;
}

.bas-cart-warranty {
    font-size: 0.85rem;
    color: #666;
}

.bas-cart-price {
    text-align: right;
}

.bas-cart-price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tech-dark);
}

.bas-cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.bas-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bas-qty-btn:hover {
    background: #f8f9fa;
    border-color: var(--tech-primary);
}

.bas-qty-value {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.bas-cart-remove {
    font-size: 0.85rem;
    text-decoration: none !important;
}

.bas-cart-subtotal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.bas-cart-add-item {
    padding: 15px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
}

.bas-cart-summary {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.bas-summary-section {
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.bas-summary-note {
    font-size: 0.85rem;
    color: #888;
}

.bas-summary-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tech-dark);
    text-align: right;
}

.bas-benefits-section {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.bas-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bas-benefits-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- BAS PARTS STYLE FILTERS --- */
.bas-filter-sidebar {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px;
}

.bas-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e1e1;
}

.bas-filter-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin: 0;
}

.bas-clear-filters {
    font-size: 0.85rem;
    color: var(--tech-primary);
    text-decoration: none;
    font-weight: 600;
}

.bas-clear-filters:hover {
    text-decoration: underline;
}

.bas-filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.bas-filter-section:last-child {
    border-bottom: none;
}

.bas-filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.bas-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bas-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bas-filter-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--tech-primary);
}

.bas-filter-item label {
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.bas-filter-subcategory {
    padding-left: 20px;
    font-size: 0.85rem;
}

.bas-filter-subcategory label {
    color: #666;
}

/* Statistics Cards */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .stat-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

body:not(.admin-body) .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body:not(.admin-body) .stat-icon {
    margin-bottom: 1rem;
}

body:not(.admin-body) .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--tech-primary);
    margin: 0.5rem 0;
}

body:not(.admin-body) .stat-label {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Brand Cards */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .brand-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body:not(.admin-body) .brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--tech-primary);
}

body:not(.admin-body) .brand-logo {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

body:not(.admin-body) .brand-placeholder {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, var(--tech-primary), var(--tech-primary-dark));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
}

body:not(.admin-body) .brand-initial {
    font-size: 1.2rem;
    color: white;
}

body:not(.admin-body) .brand-name {
    font-weight: 600;
    color: var(--tech-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

body:not(.admin-body) .brand-count {
    font-size: 0.85rem;
    color: #666;
}

/* Vehicle Type Cards */
/* NOTE: These styles only apply to main website, not admin pages */
body:not(.admin-body) .vehicle-type-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

body:not(.admin-body) .vehicle-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

body:not(.admin-body) .vehicle-type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tech-primary);
}

body:not(.admin-body) .vehicle-type-header i {
    font-size: 2rem;
    color: var(--tech-primary);
}

body:not(.admin-body) .vehicle-type-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--tech-dark);
}

body:not(.admin-body) .vehicle-type-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body:not(.admin-body) .vehicle-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--tech-text);
    transition: background 0.2s;
}

body:not(.admin-body) .vehicle-category-link:hover {
    background: #f8f9fa;
    color: var(--tech-primary);
}

.vehicle-category-link .badge {
    font-size: 0.75rem;
}

.bas-filter-count {
    color: #888;
    font-weight: 400;
}

.bas-show-more {
    font-size: 0.85rem;
    color: var(--tech-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.bas-show-more:hover {
    text-decoration: underline;
}

.bas-price-range {
    margin-top: 10px;
}

.bas-price-range .form-select {
    font-size: 0.9rem;
}

/* Page Title */
.bas-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tech-dark);
    margin-bottom: 10px;
}

.bas-results-info {
    font-size: 0.95rem;
    color: #666;
}

.bas-sort-dropdown {
    min-width: 200px;
}

.bas-sort-dropdown .form-select {
    font-size: 0.9rem;
}

/* Category Card Styles (for /categories page) */
body:not(.admin-body) .category-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--tech-primary);
}

body:not(.admin-body) .category-card-image {
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body:not(.admin-body) .category-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

body:not(.admin-body) .category-card-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

body:not(.admin-body) .category-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

body:not(.admin-body) .category-card-count {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Vehicle Make and Model Styles (for /vehicles page) */
body:not(.admin-body) .vehicle-make-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body:not(.admin-body) .vehicle-make-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--tech-primary);
}

body:not(.admin-body) .vehicle-make-card .card-header {
    background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-primary-dark) 100%) !important;
    border: none;
    padding: 1rem 1.25rem;
}

body:not(.admin-body) .vehicle-models-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

body:not(.admin-body) .vehicle-model-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

body:not(.admin-body) .vehicle-model-item:hover {
    background-color: #f8f9fa;
    border-color: var(--tech-primary);
    transform: translateX(5px);
}

body:not(.admin-body) .vehicle-model-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

body:not(.admin-body) .vehicle-model-item strong {
    color: var(--tech-dark);
    font-size: 0.95rem;
}

body:not(.admin-body) .vehicle-model-item small {
    font-size: 0.8rem;
}