/*
 * 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 {
    /* SKANITEK steel + amber */
    --tech-primary: #c45c16;
    --tech-primary-dark: #9a4410;
    --tech-accent: #e8a317;
    --tech-dark: #1a222c;
    --tech-steel: #2c3a4a;
    --tech-gray: #eef1f4;
    --tech-border: #d5dbe3;
    --tech-text: #1f2933;
    --tech-success: #2f9e44;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

body:not(.admin-body) {
    font-family: var(--font-body);
    color: var(--tech-text);
    background-color: #f3f5f7;
}

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;
}

/* Language Selector in Top Strip */
body:not(.admin-body) .top-strip .language-selector {
    position: relative;
    z-index: 1050;
}

body:not(.admin-body) .top-strip .language-selector .dropdown-menu {
    z-index: 1051;
    margin-top: 5px;
    min-width: 180px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body:not(.admin-body) .top-strip .language-btn {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 5px 12px !important;
    font-size: 0.9rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body:not(.admin-body) .top-strip .language-btn:hover,
body:not(.admin-body) .top-strip .language-btn:focus {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-1px);
}

body:not(.admin-body) .top-strip .language-btn:active {
    border-color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(0);
}

body:not(.admin-body) .top-strip .language-selector .flag-icon {
    font-size: 1.4rem !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 0 !important;
}

body:not(.admin-body) .top-strip .language-selector .language-code {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #fff !important;
}

body:not(.admin-body) .top-strip .language-selector .dropdown-item {
    padding: 8px 12px;
    font-size: 0.9rem;
}

body:not(.admin-body) .top-strip .language-selector .dropdown-item .flag-icon {
    font-size: 1.4rem;
    width: 28px;
    text-align: center;
}

body:not(.admin-body) .top-strip .language-selector .dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}

body:not(.admin-body) .top-strip .language-selector .dropdown-item:hover:not(.active) {
    background-color: #f8f9fa;
}

/* 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:
        linear-gradient(105deg, rgba(26, 34, 44, 0.94) 0%, rgba(26, 34, 44, 0.72) 42%, rgba(26, 34, 44, 0.35) 100%),
        url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-position: center 40%;
    min-height: min(92vh, 720px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 48px 0 56px;
}

body:not(.admin-body) .hero-overlay {
    display: none;
}

body:not(.admin-body) .hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 0.95;
    color: #fff;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

body:not(.admin-body) .hero-brand span {
    color: var(--tech-accent);
}

body:not(.admin-body) .hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}

body:not(.admin-body) .hero-support {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34rem;
    margin: 0 0 1.5rem;
}

body:not(.admin-body) .selector-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 2px;
    border-left: 4px solid var(--tech-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 2;
}

body:not(.admin-body) .selector-header {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--tech-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--tech-border);
    padding-bottom: 0.65rem;
}

body:not(.admin-body) .selector-form label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5b6770;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body:not(.admin-body) .selector-form select,
body:not(.admin-body) .selector-form .form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid var(--tech-border);
    border-radius: 2px;
    background: #f7f8fa;
}

body:not(.admin-body) .btn-find {
    width: 100%;
    background: var(--tech-primary);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    padding: 12px;
    border: none;
    text-transform: uppercase;
}

body:not(.admin-body) .btn-find:hover {
    background: var(--tech-primary-dark);
}

body:not(.admin-body) .btn-find:disabled {
    opacity: 0.55;
}

/* --- 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 var(--tech-border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 2px;
}

body:not(.admin-body) .tech-card:hover {
    border-color: var(--tech-primary);
    box-shadow: 0 8px 22px rgba(26, 34, 44, 0.12);
    transform: translateY(-2px);
}

body:not(.admin-body) .tech-img-container {
    height: 190px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--tech-border);
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    position: relative;
    overflow: hidden;
}

body:not(.admin-body) .tech-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

body:not(.admin-body) .tech-img-empty {
    color: #9aa5b1;
    font-size: 2.75rem;
    opacity: 0.55;
}

body:not(.admin-body) .tech-badge-offer {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--tech-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
}

body:not(.admin-body) .tech-badge-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 7px;
    background: #fff;
    border: 1px solid var(--tech-border);
}

body:not(.admin-body) .tech-badge-stock.in {
    color: var(--tech-success);
    border-color: #b7e0c0;
}

body:not(.admin-body) .tech-badge-stock.out {
    color: #c92a2a;
    border-color: #f1b0b0;
}

body:not(.admin-body) .tech-info {
    padding: 14px 14px 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body:not(.admin-body) .tech-brand {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tech-primary);
    margin-bottom: 4px;
}

body:not(.admin-body) .tech-title {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--tech-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body:not(.admin-body) .tech-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

body:not(.admin-body) .tech-refs span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #52606d;
    background: #f3f5f7;
    border: 1px solid var(--tech-border);
    padding: 2px 6px;
}

body:not(.admin-body) .tech-fitment {
    font-size: 0.78rem;
    color: #52606d;
    margin-bottom: 10px;
}

body:not(.admin-body) .tech-fitment i {
    color: var(--tech-primary);
    margin-right: 4px;
}

body:not(.admin-body) .tech-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid var(--tech-border);
    padding-top: 12px;
}

body:not(.admin-body) .btn-tech-cart {
    background: var(--tech-dark);
    color: white;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
    transition: background-color 0.2s;
}

body:not(.admin-body) .btn-tech-cart:hover:not(:disabled) {
    background: var(--tech-primary);
}

body:not(.admin-body) .btn-tech-cart:disabled {
    background: #9aa5b1;
    cursor: not-allowed;
    opacity: 0.9;
}

body:not(.admin-body) .tech-price {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tech-dark);
    text-align: right;
    line-height: 1.1;
    min-width: 40%;
}

body:not(.admin-body) .tech-price-old {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9aa5b1;
    text-decoration: line-through;
}

body:not(.admin-body) .tech-delivery-footer {
    display: none;
}

/* 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 (SKANITEK) --- */
.product-detail-wrapper {
    background: #fff;
    padding: 28px;
    border: 1px solid var(--tech-border);
    border-radius: 2px;
}

.pd-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--tech-dark);
    margin-bottom: 6px;
}

.pd-ref {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.pd-ref span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #52606d;
    background: #f3f5f7;
    border: 1px solid var(--tech-border);
    padding: 3px 8px;
}

.pd-ref .pd-ref-brand {
    color: var(--tech-primary);
    border-color: #e8c4a8;
    background: #fff7f0;
}

.pd-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tech-dark);
}

.pd-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6770;
    margin-bottom: 4px;
}

.pd-qty .form-control {
    width: 100px;
    border-radius: 2px;
    border-color: var(--tech-border);
}

.pd-gallery {
    border: 1px solid var(--tech-border);
    border-radius: 2px;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    overflow: hidden;
}

.pd-gallery-img {
    max-height: 480px;
    object-fit: contain;
    background: transparent;
    padding: 12px;
}

.pd-price-block {
    background: #f7f8fa;
    padding: 22px;
    border: 1px solid var(--tech-border);
    border-left: 4px solid var(--tech-primary);
    border-radius: 2px;
    margin-bottom: 20px;
}

.pd-price {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--tech-dark);
    line-height: 1;
}

.pd-vat {
    font-size: 0.8rem;
    color: #8895a1;
}

.btn-bas-action {
    background: var(--tech-dark);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px;
    font-size: 1.15rem;
    border: none;
    width: 100%;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
    border-radius: 2px;
}

.btn-bas-action:hover {
    background: var(--tech-primary);
    color: #fff;
}

.btn-bas-action:disabled {
    background: #9aa5b1;
    border-color: #9aa5b1;
    cursor: not-allowed;
    opacity: 0.9;
    color: white;
}

.pd-delivery-info {
    font-size: 0.85rem;
    margin-top: 15px;
    border-top: 1px solid var(--tech-border);
    padding-top: 10px;
    color: #52606d;
}

.pd-delivery-info i {
    color: var(--tech-primary);
    margin-right: 5px;
}

/* Fitment Box */
.fitment-check-box {
    background: #f7f8fa;
    border: 1px solid var(--tech-border);
    border-left: 4px solid var(--tech-accent);
    padding: 16px;
    border-radius: 2px;
    margin: 28px 0;
}

.fitment-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tech-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border: 1px solid var(--tech-border);
}

.specs-table tr {
    border-bottom: 1px solid var(--tech-border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.specs-key {
    font-weight: 600;
    color: #5b6770;
    width: 34%;
    background: #f7f8fa;
}

.specs-val {
    font-weight: 700;
    color: var(--tech-dark);
}

.pd-main-img {
    border: 1px solid var(--tech-border);
    border-radius: 2px;
    padding: 40px 20px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: 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 var(--tech-border);
    border-radius: 2px;
    padding: 5px;
    cursor: pointer;
    object-fit: contain;
    background: #fff;
}

.pd-thumb:hover,
.pd-thumb.active {
    border-color: var(--tech-primary);
    opacity: 1;
}

.pd-thumb-more {
    width: 80px;
    height: 80px;
    border: 1px solid var(--tech-border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fa;
    color: var(--tech-primary);
    font-weight: 700;
    font-family: var(--font-display);
    transition: all 0.2s;
}

.pd-thumb-more:hover {
    border-color: var(--tech-primary);
    background: var(--tech-primary);
    color: white;
}

/* Product Carousel */
#productCarousel {
    border-radius: 2px;
    overflow: hidden;
    background: transparent;
}

#productCarousel .carousel-inner {
    border-radius: 2px;
}

#productCarousel .carousel-control-prev,
#productCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--tech-dark);
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
}

#productCarousel .carousel-control-prev:hover,
#productCarousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--tech-primary);
}

#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: var(--tech-primary);
    color: white;
    padding: 6px 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Catalog search toolbar */
body:not(.admin-body) .catalog-toolbar {
    background: #fff;
    border: 1px solid var(--tech-border);
    border-top: 3px solid var(--tech-primary);
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
}

body:not(.admin-body) .catalog-toolbar .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5b6770;
}

body:not(.admin-body) .catalog-toolbar .btn-primary {
    background: var(--tech-dark);
    border-color: var(--tech-dark);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body:not(.admin-body) .catalog-toolbar .btn-primary:hover {
    background: var(--tech-primary);
    border-color: var(--tech-primary);
}

body:not(.admin-body) .catalog-results-meta {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tech-dark);
    font-size: 0.95rem;
}

body:not(.admin-body) .catalog-results-bar {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--tech-border);
}

body:not(.admin-body) .catalog-page-hint {
    font-family: var(--font-body, "Source Sans 3", sans-serif);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
    color: #8895a1;
    margin-left: 0.5rem;
}

body:not(.admin-body) .catalog-view-toggle .btn {
    border-radius: 2px;
}

.bas-core-part-info {
    background: #fff;
    padding: 10px 12px;
    border-radius: 2px;
    border: 1px solid var(--tech-border);
    font-size: 0.9rem;
    color: #52606d;
}

.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-status.out {
    color: #c92a2a;
}

.bas-stock-dot {
    width: 10px;
    height: 10px;
    background: var(--tech-success);
    border-radius: 50%;
    display: inline-block;
}

.bas-help-section {
    background: #fff;
    padding: 14px;
    border-radius: 2px;
    border: 1px solid var(--tech-border);
}

/* --- 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 var(--tech-border);
    border-top: 3px solid var(--tech-primary);
    border-radius: 2px;
    padding: 18px;
}

.bas-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tech-border);
}

.bas-filter-header h5 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tech-dark);
    margin: 0;
}

.bas-clear-filters {
    font-size: 0.8rem;
    color: var(--tech-primary);
    text-decoration: none;
    font-weight: 700;
}

.bas-clear-filters:hover {
    text-decoration: underline;
}

.bas-filter-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.bas-filter-section:last-child {
    border-bottom: none;
}

.bas-filter-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tech-dark);
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    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-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--tech-dark);
    margin-bottom: 6px;
}

.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;
}