/* =====================================================
   AUZ Auto Parts — Main Stylesheet
   Palette drawn from the AUZ logo:
   - Primary Red:    #E63329
   - Dark Charcoal:  #2B2B2B
   - White:          #FFFFFF
   - Light grey bg:  #F5F6F8
===================================================== */

:root {
    --auz-red: #E63329;
    --auz-red-hover: #C92A20;
    --auz-red-dark: #B01E15;
    --auz-dark: #2B2B2B;
    --auz-black: #1A1A1A;
    --auz-grey-100: #F5F6F8;
    --auz-grey-200: #E9ECEF;
    --auz-grey-300: #DEE2E6;
    --auz-grey-500: #6C757D;
    --auz-grey-700: #495057;
    --auz-text: #212529;
    --auz-muted: #6C757D;
    --auz-success: #28A745;
    --auz-warning: #FFC107;
    --auz-danger: #DC3545;
    --auz-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --auz-shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
    --auz-radius: 8px;
    --auz-radius-sm: 4px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--auz-text);
    background: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--auz-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--auz-red); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--auz-black); }

/* ========= Buttons ========= */
.btn {
    font-weight: 600;
    border-radius: var(--auz-radius-sm);
    padding: 0.55rem 1.2rem;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}
.btn i[data-lucide] { width: 16px; height: 16px; }

.btn-primary, .btn-auz {
    background: var(--auz-red);
    border-color: var(--auz-red);
    color: #fff;
}
.btn-primary:hover, .btn-auz:hover {
    background: var(--auz-red-hover);
    border-color: var(--auz-red-hover);
    color: #fff;
}
.btn-dark-auz {
    background: var(--auz-dark);
    border: 1px solid var(--auz-dark);
    color: #fff;
}
.btn-dark-auz:hover {
    background: var(--auz-black);
    color: #fff;
}
.btn-outline-auz {
    background: transparent;
    color: var(--auz-red);
    border: 1px solid var(--auz-red);
}
.btn-outline-auz:hover {
    background: var(--auz-red);
    color: #fff;
}

/* ========= Topbar (flash deals) ========= */
.topbar {
    background: var(--auz-black);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
    overflow: hidden;
}
.topbar a { color: #fff; text-decoration: underline; }
.topbar a:hover { color: var(--auz-red); }
.topbar-marquee {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}

/* ========= Header ========= */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--auz-grey-200);
}
.site-header .header-main {
    padding: 15px 0;
}
.site-logo img {
    max-height: 55px;
    width: auto;
}
.header-search .form-control {
    border-right: 0;
    border-radius: var(--auz-radius-sm) 0 0 var(--auz-radius-sm);
    height: 44px;
}
.header-search .btn {
    border-radius: 0 var(--auz-radius-sm) var(--auz-radius-sm) 0;
    height: 44px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.header-icon-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--auz-dark);
    position: relative;
    font-size: 14px;
}
.header-icon-link:hover { color: var(--auz-red); }
.header-icon-link i { width: 24px; height: 24px; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--auz-red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* ========= Main nav ========= */
.main-nav {
    background: var(--auz-dark);
    border-top: 3px solid var(--auz-red);
}
.main-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 14px 18px !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    background: var(--auz-red);
    color: #fff;
}
.main-nav .nav-link i { width: 18px; height: 18px; }
.main-nav .dropdown-menu {
    border-radius: 0;
    border: 0;
    margin-top: 0;
    box-shadow: var(--auz-shadow-lg);
    padding: 10px 0;
    min-width: 240px;
}
.main-nav .dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--auz-dark);
}
.main-nav .dropdown-item:hover {
    background: var(--auz-grey-100);
    color: var(--auz-red);
}

/* ========= Hero ========= */
.hero {
    background: linear-gradient(135deg, var(--auz-black) 0%, var(--auz-dark) 100%);
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(230,51,41,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(230,51,41,0.08) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: .4;
}
.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    position: relative;
}
.hero h1 .accent { color: var(--auz-red); }
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    position: relative;
}
.hero-img {
    position: relative;
    text-align: center;
}
.hero-img img { max-width: 100%; height: auto; }

/* ========= Section ========= */
.section {
    padding: 60px 0;
}
.section-light { background: var(--auz-grey-100); }
.section-dark { background: var(--auz-dark); color: #fff; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title h2 {
    font-size: 1.75rem;
    margin: 0;
    position: relative;
    padding-left: 16px;
}
.section-title h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--auz-red);
    border-radius: 3px;
}
.section-title .view-all {
    color: var(--auz-red);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========= Browse by Make grid ========= */
.make-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
.make-card {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    padding: 20px 10px;
    text-align: center;
    transition: all .2s ease;
    display: block;
    color: var(--auz-dark);
}
.make-card:hover {
    border-color: var(--auz-red);
    transform: translateY(-3px);
    box-shadow: var(--auz-shadow-lg);
    color: var(--auz-red);
}
.make-card img {
    height: 55px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 10px;
    filter: grayscale(20%);
    transition: filter .2s;
}
.make-card:hover img { filter: grayscale(0); }
.make-card .make-name {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-top: 6px;
}

/* ========= Category tiles ========= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    padding: 25px 15px;
    text-align: center;
    transition: all .2s ease;
    color: var(--auz-dark);
}
.category-card:hover {
    border-color: var(--auz-red);
    color: var(--auz-red);
    transform: translateY(-3px);
    box-shadow: var(--auz-shadow);
}
.category-card .icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--auz-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.category-card:hover .icon-wrap {
    background: var(--auz-red);
}
.category-card .icon-wrap i {
    width: 28px; height: 28px;
    color: var(--auz-red);
    transition: color .2s;
}
.category-card:hover .icon-wrap i { color: #fff; }
.category-card .cat-name {
    font-weight: 600;
    font-size: 14px;
}

/* ========= Product card ========= */
.product-card {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    overflow: hidden;
    transition: all .2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    border-color: var(--auz-red);
    box-shadow: var(--auz-shadow-lg);
    transform: translateY(-3px);
}
.product-card .product-img {
    position: relative;
    padding-top: 85%;
    background: var(--auz-grey-100);
    overflow: hidden;
}
.product-card .product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform .3s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--auz-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}
.product-card .product-badge.oos {
    background: var(--auz-grey-500);
}
.product-card .product-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--auz-muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.product-card .product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--auz-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.product-card .product-title a { color: inherit; }
.product-card .product-title a:hover { color: var(--auz-red); }
.product-card .product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 10px;
}
.product-card .price-current {
    color: var(--auz-red);
    font-weight: 700;
    font-size: 17px;
}
.product-card .price-old {
    color: var(--auz-muted);
    text-decoration: line-through;
    font-size: 13px;
}
.product-card .btn-add {
    width: 100%;
    background: var(--auz-dark);
    color: #fff;
    border: 0;
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    border-radius: var(--auz-radius-sm);
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.product-card .btn-add:hover {
    background: var(--auz-red);
}

/* ========= Shop sidebar filters ========= */
.shop-sidebar {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    padding: 20px;
    position: sticky;
    top: 20px;
}
.filter-group {
    border-bottom: 1px solid var(--auz-grey-200);
    padding: 15px 0;
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--auz-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.filter-group h5 i { width: 18px; height: 18px; transition: transform .2s; }
.filter-group.collapsed h5 i { transform: rotate(-90deg); }
.filter-group.collapsed .filter-body { display: none; }
.filter-list {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}
.filter-list::-webkit-scrollbar { width: 5px; }
.filter-list::-webkit-scrollbar-thumb { background: var(--auz-grey-300); border-radius: 3px; }
.form-check {
    margin-bottom: 7px;
    font-size: 14px;
}
.form-check-input:checked {
    background-color: var(--auz-red);
    border-color: var(--auz-red);
}
.form-check-label { cursor: pointer; }
.filter-count {
    color: var(--auz-muted);
    font-size: 12px;
    margin-left: 4px;
}

/* ========= Breadcrumb ========= */
.breadcrumb-wrap {
    background: var(--auz-grey-100);
    padding: 12px 0;
    border-bottom: 1px solid var(--auz-grey-200);
}
.breadcrumb {
    margin: 0;
    font-size: 13px;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--auz-muted);
}
.breadcrumb-item a { color: var(--auz-muted); }
.breadcrumb-item a:hover { color: var(--auz-red); }
.breadcrumb-item.active { color: var(--auz-dark); font-weight: 600; }

/* ========= Product detail ========= */
.product-detail-gallery {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    padding: 20px;
}
.gallery-main {
    text-align: center;
    margin-bottom: 15px;
    background: var(--auz-grey-100);
    border-radius: var(--auz-radius-sm);
    padding: 30px;
}
.gallery-main img { max-width: 100%; max-height: 400px; object-fit: contain; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 2px solid var(--auz-grey-200);
    border-radius: var(--auz-radius-sm);
    cursor: pointer;
    padding: 5px;
    background: #fff;
}
.gallery-thumbs img.active,
.gallery-thumbs img:hover {
    border-color: var(--auz-red);
}

.product-detail-info h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.product-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--auz-muted);
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--auz-grey-200);
}
.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 20px;
}
.product-detail-price .current {
    font-size: 2rem;
    color: var(--auz-red);
    font-weight: 800;
}
.product-detail-price .old {
    font-size: 1.1rem;
    color: var(--auz-muted);
    text-decoration: line-through;
}
.product-detail-price .discount {
    background: var(--auz-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--auz-grey-300);
    border-radius: var(--auz-radius-sm);
    overflow: hidden;
}
.qty-input button {
    background: var(--auz-grey-100);
    border: 0;
    width: 40px;
    height: 44px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.qty-input button:hover { background: var(--auz-grey-200); }
.qty-input input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: 0;
    border-left: 1px solid var(--auz-grey-300);
    border-right: 1px solid var(--auz-grey-300);
    font-weight: 600;
}

.fitment-table {
    background: #fff;
    border: 1px solid var(--auz-grey-200);
    border-radius: var(--auz-radius);
    overflow: hidden;
}
.fitment-table th {
    background: var(--auz-dark);
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========= Cart & Checkout ========= */
.cart-table th { background: var(--auz-grey-100); font-size: 13px; text-transform: uppercase; }
.cart-table .product-thumb {
    width: 70px; height: 70px; object-fit: contain;
    background: var(--auz-grey-100); border-radius: var(--auz-radius-sm);
    padding: 5px;
}
.cart-summary {
    background: var(--auz-grey-100);
    border-radius: var(--auz-radius);
    padding: 25px;
    position: sticky;
    top: 20px;
}
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--auz-grey-200);
}
.cart-summary .summary-row.total {
    border-bottom: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--auz-red);
    padding-top: 15px;
}

/* ========= Footer ========= */
.site-footer {
    background: var(--auz-black);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 20px;
}
.site-footer h5 {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.site-footer h5::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--auz-red);
}
.site-footer a {
    color: rgba(255,255,255,0.75);
    display: block;
    padding: 4px 0;
    font-size: 14px;
}
.site-footer a:hover { color: var(--auz-red); padding-left: 5px; transition: padding .15s; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}
.social-icons { display: flex; gap: 10px; margin-top: 15px; }
.social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.social-icons a:hover { background: var(--auz-red); padding: 0; }
.social-icons a i { width: 16px; height: 16px; color: #fff; }

/* ========= Mobile ========= */
@media (max-width: 991px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 2rem; }
    .site-logo img { max-height: 42px; }
    .header-icons { gap: 1rem; }
    .header-icon-link span { display: none; }
    .section { padding: 40px 0; }
    .shop-sidebar { position: static; margin-bottom: 20px; }
}

/* ========= Utility ========= */
.text-auz-red { color: var(--auz-red) !important; }
.bg-auz-red { background: var(--auz-red) !important; }
.bg-auz-dark { background: var(--auz-dark) !important; }
.border-auz-red { border-color: var(--auz-red) !important; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--auz-muted);
}
.empty-state i {
    width: 64px; height: 64px;
    color: var(--auz-grey-300);
    margin-bottom: 15px;
}
.empty-state h4 { color: var(--auz-dark); margin-bottom: 8px; }

/* WhatsApp float button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform .2s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
.whatsapp-float i { width: 28px; height: 28px; }
