/* ==========================================
   RESET / BASE
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: #111;
}

img {
    display: block;
    max-width: 100%;
}

/* ==========================================
   UNIVERSAL HEADER WRAPPER
========================================== */
.header {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
}
/* Sticky header */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

/* Sticky desktop navigation bar */
.desktop-nav {
    top: 70px; /* height of your top header */
    z-index: 999;
    background: #fff;

    /* FIX: restore bottom border */
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;

    width: 100%;
}




/* ==========================================
   MOBILE HEADER  (default)
========================================== */
.header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
}

/* mobile left + right groups */
.hm-left,
.hm-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* mobile center logo */
.hm-center {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.header-logo {
    height: 38px;
    width: auto;
}

.icon-menu,
.icon-search,
.icon-user,
.icon-cart,
.icon-close,
.vehicle-icon {
filter: invert(19%) sepia(88%) saturate(2200%) hue-rotate(350deg) brightness(110%) contrast(95%);
}


/* icons */
.icon-menu,
.icon-search,
.icon-user,
.icon-cart {
    width: 26px;
    height: 26px;
}

/* cart bubble */
.cart-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #4CAF50;
    color: #fff;
    width: 19px;
    height: 19px;
    font-size: 11px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* hide desktop items on mobile */
.header-desktop,
.desktop-nav {
    display: none;
}



/* ==========================================
   DESKTOP HEADER (≥900px)
========================================== */
@media (min-width: 900px) {

    /* MOBILE HEADER HIDES */
    .header-mobile {
        display: none;
    }

    /* DESKTOP HEADER SHOWS */
    .header-desktop {
        width: 100%;
        padding: 12px 150px;
        background: #fff;
        display: flex;
        align-items: center;
    justify-content: flex-start;
    gap: 20px; /* controls spacing between sections */
            column-gap: 20px;
    }

    /* ============================
   VEHICLE SELECT BOX
============================ */
.vehicle-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(214, 40, 40, 0.10);   /* light red tint */
    border: 1px solid rgba(214, 40, 40, 0.35);
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;             /* space before search bar */
}

.vehicle-select:hover {
    background: rgba(214, 40, 40, 0.20);
}

.vehicle-select span {
    font-size: 15px;
    font-weight: 500;
    color: rgba(214, 40, 40, 1); /* BRAND RED */
}

.vehicle-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: invert(17%) sepia(72%) saturate(3000%) hue-rotate(350deg) brightness(92%) contrast(96%);
}


    /* Left side (hamburger only) */
    .hd-left {
          margin-right: 15px;

        display: flex;
        align-items: center;
    }

    /* Logo desktop */
    .hd-logo img {
          margin-right: 15px;

        height: 48px;
        width: auto;
    }

    /* Search bar */
    .hd-search {
        flex-grow: 1;
        max-width: 650px;
        display: flex;
        align-items: center;
        margin: 0 20px;
        position: relative;
            margin-right: 15px;

    }


    .search-input {
        width: 100%;
        height: 42px;
        padding: 0 14px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 4px 0 0 4px;
        outline: none;
    }

    .search-btn {
        height: 42px;
        width: 55px;
        background: #E60000;
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-btn img {
        width: 20px;
        height: 20px;
        filter: invert(100%);
    }

    /* Right side */
.hd-right {
    display: flex;
    align-items: center;
    gap: 15px;       /* spacing between Account + Cart */
    margin-left: 0;  /* DO NOT push it to the right */

    /* The magic line ↓ */

}


    .language-switch {
        font-size: 14px;
        color: #222;
        cursor: pointer;
    }

    .account-box,
    .cart-wrapper {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
    }

    .account-text,
    .cart-text {
        font-size: 14px;
        color: #333;
    }

    .cart-wrapper .cart-count {
        top: -6px;
        right: -10px;
    }


    /* =======================================
       DESKTOP NAV MENU
    ======================================== */
    .desktop-nav {
        display: block;
        background: #fff;
        border-top: 1px solid #e5e5e5;
        padding: 10px 0;
    }

    .nav-list {
        display: flex;
        justify-content: center;
        gap: 34px;
        list-style: none;
    }

    .nav-item {
        font-size: 15px;
        font-weight: 500;
        color: #222;
        cursor: pointer;
        position: relative;
    }

    .nav-item:hover {
        color: #E60000;
    }

}






/* ===============================
   HERO SLIDER — MOBILE FIRST
=============================== */

.hero-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: auto;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- Slider Dots --- */
.slider-dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #dcdcdc;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s;
}

.dot.active {
    background: rgba(214, 40, 40, 1); /* MAT red */
    transform: scale(1.2);
}


/* ===============================
   DESKTOP VERSION
=============================== */

/* ==========================================
   DESKTOP HERO SPLIT LAYOUT (Vehicle Left + Slider Right)
========================================== */

.desktop-hero-layout {
    width: 100%;
    display: block; /* mobile default */
    padding: 0px;
}

@media (min-width: 900px) {

    .desktop-hero-layout {
        max-width: 1400px;
        margin: 20px auto;
        display: grid;
        grid-template-columns: 360px 1fr; /* left box 360px, slider auto */
        gap: 25px;
        align-items: start;
    }

    .hero-left {
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-right {
        border-radius: 10px;
        overflow: hidden;
    }

    /* slider size */
    .hero-slider {
        max-width: 100%;
        max-height: 480px;   /* smaller, not fullscreen */
        border-radius: 10px;
        overflow: hidden;
    }

    .slider-wrapper, 
    .slide {
        max-height: 480px;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}








/* =======================================
   MAT BENEFIT SECTION (Mobile First)
======================================= */
/* ==========================================
   NEW BENEFIT GRID (3-box layout)
   Inspired by user reference image
========================================== */
/* ==========================================
   NEW BENEFIT GRID v3 – Icon prominent
========================================== */

.mat-benefits-v2 {
    max-width: 1300px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Card */
.benefit-box {
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #D62828;
}

/* TOP ROW = icon + title */
.b-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* Icon now prominent */
.b-icon {
    width: 42px;
    height: 42px;
    filter: invert(19%) sepia(88%) saturate(2200%) hue-rotate(350deg) brightness(110%) contrast(95%);
}

/* Title */
.b-title {
    font-size: 19px;
    font-weight: 700;
    color: #111;
}

/* Description */
.b-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}


/* Desktop layout */
@media (min-width: 900px) {
    .mat-benefits-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .b-icon {
        width: 48px;
        height: 48px;
    }

    .b-title {
        font-size: 20px;
    }

    .benefit-box {
        padding: 26px 28px;
    }
}



/* =======================================
   DESKTOP VERSION 
======================================= */




/* ===============================
   SELECT VEHICLE (Mobile First)
=============================== */

.vehicle-select-box {
    width: 90%;
    background: #D62828; /* MAT Red */
    padding: 28px 20px;
    border-radius: 12px;
    margin: 25px auto;
    color: #fff;
    max-width: 480px;
}

.vs-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

.vs-select {
    margin-bottom: 15px;
}

.vs-select select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ffffffaa;
    background: #fff;
    color: #444;
    outline: none;
    appearance: none; /* removes default arrow */
    background-image: url('assets/icons/down-chevron.png');
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.vs-button {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    margin-top: 5px;
    cursor: pointer;
    transition: 0.25s ease;
}

.vs-button:hover {
    background: #000;
    transform: translateY(-1px);
}




@media (min-width: 900px) {

    .vehicle-select-box {
        max-width: 360px;
        padding: 35px 28px;
        border-radius: 14px;
        margin-top: 40px;
    }

    .vs-title {
        font-size: 24px;
    }

    .vs-select select {
        font-size: 16px;
        padding: 15px 18px;
    }

    .vs-button {
        padding: 16px 0;
        font-size: 17px;
    }
}

/* ==========================================
   MOBILE — move Find Parts BELOW Benefits
========================================== */
@media (max-width: 899px) {
      .hero-slider {
        width: 100vw;          /* full viewport width */
        margin-left: calc(50% - 50vw);  /* negative margin trick to break out of container */
        margin-right: calc(50% - 50vw);
        border-radius: 0 !important;   /* remove rounded corners on mobile */
    }

    .slide img {
        border-radius: 0 !important;
    }

    /* convert hero layout to vertical stack */
    .desktop-hero-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* order items top → bottom */
    .hero-right { order: 1; }     /* slider */
    .mat-benefits { order: 2; }   /* benefits */
    .hero-left { order: 3; }      /* find parts */
}




/* ==========================================
   BRAND STATEMENT (Centered Feature Banner)
========================================== */
.mat-brand-statement {
    width: 100%;
    background: #f6f8fa;         /* soft clean grey like your references */
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin: 20px auto 40px auto;
}

.brand-title {
    font-size: 30px;
    font-weight: 780;
    color: #111;
    margin-bottom: 14px;
}

.brand-sub {
    font-size: 16px;
    color: #555;
    max-width: 1500px;   /* was 780px – now wider */
    margin: 0 auto;
    line-height: 1.55;
}


/* Desktop enhancements */
@media (min-width: 900px) {
    .mat-brand-statement {
        padding: 70px 40px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 36px;
    }

    .brand-sub {
        font-size: 18px;
    }
}


/* ==========================================
   CATEGORY TABS + SEARCH (Mobile First)
=========================================== */

.category-nav {
    width: 100%;
    max-width: 1300px;
    margin: 40px auto 25px auto;
    padding: 0 16px;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Tabs container */
.cat-tabs {
    display: flex;
    overflow-x: auto;
    gap: 26px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
}

/* Each tab */
.cat-tab {
    white-space: nowrap;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: 0.25s ease;
    font-weight: 500;
}

/* Active underline */
.cat-tab.active {
    color: #d62828;
}

.cat-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #d62828;
    border-radius: 2px;
}

/* Hover */
.cat-tab:hover {
    color: #d62828;
}

/* Search bar */
.cat-search input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d2d2ff;
    border-radius: 6px;
    outline: none;
}

/* Placeholder color */
.cat-search input::placeholder {
    color: #666;
}

/* ==========================================
   DESKTOP VERSION (≥900px)
=========================================== */
@media (min-width: 900px) {

    .category-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cat-tabs {
        overflow: visible;
        gap: 34px;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .cat-tab {
        font-size: 16px;
    }

    .cat-search {
        min-width: 280px;
    }

    .cat-search input {
        padding: 12px 16px;
        font-size: 16px;
    }
}








/* ==========================================
   CATEGORY CATALOG (Mobile First)
========================================== */

.mat-catalog {
    max-width: 1300px;
    margin: 50px auto;
    padding: 0 16px;
}

.catalog-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* Mobile grid (2 columns) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Card */
.cat-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.35s ease;
}

/* Image container */
.cat-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}


.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.35s ease;
    border-radius: 10px 10px 0 0;
}



/* Card hover behavior */
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-color: #d62828;
}

.cat-card:hover img {
    transform: scale(1.06);
}

/* Category title */
.cat-name {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
}

/* Underline hover animation */
.cat-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: #d62828;
    transition: width 0.3s ease;
}

.cat-card:hover .cat-name::after {
    width: 100%;
}


/* ==========================================
   DESKTOP VERSION (≥900px)
========================================== */
@media (min-width: 900px) {
    
    .catalog-title {
        font-size: 30px;
        margin-bottom: 35px;
    }

    /* Desktop grid (4 columns) */
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }

    .cat-img {
        height: 160px;
    }



    .cat-name {
        font-size: 16px;
    }

    .cat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    }

    .cat-card:hover img {
        transform: scale(1.08);
    }
}


/* ===========================
/* ===========================
   AWAN AUTO FOOTER — MOBILE FIRST
   =========================== */

.awan-footer {
  background: #0d0d0d;
  color: #fff;
  padding: 55px 25px 40px;
  margin-top: 0px;
  font-family: Arial, sans-serif;
}

/* MOBILE GRID (1 column) */
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.footer-col {
  width: 100%;
}

/* Logo */
.footer-logo {
  width: 150px;
  margin-bottom: 12px;
}

/* Slogan */
.footer-slogan {
  color: #cfcfcf;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Titles */
.footer-title {
  color: #D62828
;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Lists */
.footer-links,
.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-info li {
  margin-bottom: 10px;
  color: #bfbfbf;
  font-size: 0.95rem;
}

.footer-links li a {
  color: #bfbfbf;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-links li a:hover {
  color: #D62828
;
  padding-left: 5px;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.footer-socials img {
  width: 28px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.footer-socials img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px #67df33);
}

/* Bottom bar */
.footer-bottom {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #222;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.footer-bottom-right {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-bottom-right img {
  width: 24px;
  filter: brightness(0) invert(1);
}



/* ===========================
     DESKTOP FOOTER (≥ 900px)
   =========================== */
@media (min-width: 900px) {

    .footer-info li {
    white-space: nowrap;
}

  .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
grid-template-columns: 1.6fr 1.2fr 1.2fr 1fr 1fr 1fr;
    gap: 55px;

    /* NEW → ensures all columns align titles perfectly */
    align-items: start;
  }

  /* Make all columns consistent vertical structure */
  .footer-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  /* Fix title alignment */
  .footer-title {
    margin-top: 10px;       /* NEW → uniform spacing */
    padding-top: 0;
    line-height: 1.2;
  }

  /* Increase logo size on desktop */
  .footer-logo {
    width: 180px;          /* increased from 150px */
  }

  /* Bottom bar alignment stays the same */
.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    display: flex;
    justify-content: center;   /* ⬅ CENTER ALL CONTENT */
    align-items: center;
    text-align: center;        /* ⬅ TEXT SHOULD ALSO BE CENTERED */
    gap: 20px;                 /* OPTIONAL: space between text & icons */
}
}
