* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

:root {
  --primary-color: black;
  --secondary-color: white;
  --tertiary-color: rgb(109, 162, 176);
}

/* ==========================================
   HEADER
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  background-color: var(--primary-color);
  z-index: 1000;
  color: var(--secondary-color);
  transition: 0.4s ease;
  flex-shrink: 0;
}

header.scrolled {
  background-color: var(--primary-color);
  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, 0.1);
}

header.scrolled #headerSearch {
    background: #fff;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(109, 162, 176, 0.45);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header.scrolled .language-switcher {
  background: #fff;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #222;
  font-size: 17px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: rgb(109, 162, 176);
  color: #fff;
}

.lang-btn:hover {
  background: rgba(109, 162, 176, 0.18);
}

.language-switcher span {
  display: none;
}

header nav {
  width: 100%;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

header .nav-list {
  padding-top: 0;
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

header h1 {
  margin-left: 0;
  white-space: nowrap;
}

header h1 span {
  font-size: 1.5rem;
}

header h1 .iconify {
  color: var(--tertiary-color);
  margin-right: 0.5rem;
}

header .nav-list li a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

header .nav-list li a:hover {
  color: var(--tertiary-color);
}

/* ==========================================
   MENU BUTTON
   ========================================== */
.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  color: var(--secondary-color);
  z-index: 1003;
}

/* ==========================================
   HEADER SEARCH
   ========================================== */
header nav > div:not(.menu-toggle) {
  position: relative;
}

header nav input {
  width: 16rem;
  height: 2.5rem;
  padding-left: 3.2rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  border: 2px solid #ccc;
  outline: none;
  background:
    rgba(255, 255, 255, 0.95);
  margin-top: 0;
}

header nav input:focus {
  border:
    3px solid
    var(--tertiary-color);
}

header nav > div:not(.menu-toggle)
.iconify {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--tertiary-color);
  font-size: 1.8rem;
}

/* ==========================================
   NAVIGATION ICONS
   ========================================== */

header .nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Home */
header .nav-list li:nth-child(1) a::before {
    content: "\f015";
}

/* Auto Parts */
header .nav-list li:nth-child(2) a::before {
    content: "\f1b9";
}

/* About */
header .nav-list li:nth-child(3) a::before {
    content: "\f05a";
}

/* Contact */
header .nav-list li:nth-child(4) a::before {
    content: "\f0e0";
}

header .nav-list li a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--tertiary-color);
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {

    header .nav-list li a {
        gap: 0.9rem;
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    header .nav-list li a::before {
        width: 1.15rem;
        margin-right: 0.5rem;
    }

    header .nav-list li {
        min-height: 3.4rem;
    }

}

/* ==========================================
   MAIN
   ========================================== */
main,
section {
  flex: 1 0 auto;
}

/* ==========================================
   BREADCRUMB
   ========================================== */
.breadcrumb {
  margin-left: 5rem;
  margin-top: 5rem;
}

.breadcrumb-btn {
  background-color:
    var(--tertiary-color);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 2px 6px
    rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.breadcrumb-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px
    rgba(0, 0, 0, 0.2);
}

.breadcrumb-separator {
  color: #888;
  font-weight: bold;
  font-size: 0.9rem;
}

/* ==========================================
   FILTER
   ========================================== */
.filter-container {
  margin-left: 5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.filter-container label {
  font-size: 1.5rem;
}

#categorySelect {
  padding: 0.2rem;
  font-size: 1rem;
  border-radius: 0.3rem;
  border: 1px solid #ccc;
  outline: none;
  background: white;
}

/* ==========================================
   CATALOG
   ========================================== */
.catalog-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.3rem;
  margin-left: 5rem;
  margin-right: 4rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  flex: 1 0 auto;
}

/* ==========================================
   CARD
   ========================================== */
.card {
  background: #ffffff;
  flex:
    0 0 calc(25% - 1rem);
  border: 1px solid #ccc;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  min-width: 0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 5px 15px
    rgba(0, 0, 0, 0.1);
  border-color:
    var(--tertiary-color);
}

.card img {
  max-width: 100%;
  width: 100%;
  height: 10rem;
  object-fit: contain;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.2rem;
  color: #333;
  word-break: break-word;
}

/* ==========================================
   PART / YEAR CARDS
   ========================================== */
.catalog-flex .card.part-card,
.catalog-flex .card.year-card {
  flex:
    0 0 calc(20% - 1.1rem);
  box-sizing: border-box;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 1rem;
}

.pagination-btn {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  color: #333;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 2px 5px
    rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
  background-color:
    var(--tertiary-color);
  color: #ffffff;
  border-color:
    var(--tertiary-color);
  transform: translateY(-2px);
}

.pagination-btn.active {
  background-color:
    var(--tertiary-color);
  color: #ffffff;
  border-color:
    var(--tertiary-color);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================
   CART TOAST
   ========================================== */

#cartToast {
    position: fixed;
    top: 85px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 30px);

    display: flex;
    align-items: center;
    gap: 12px;

    background: #ffffff;
    color: #333;

    border-radius: 14px;
    padding: 14px 16px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.18);

    border-left: 5px solid var(--tertiary-color);

    opacity: 0;
    transform: translateX(120px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    z-index: 99999;
}

#cartToast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--tertiary-color);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.cart-toast-content {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.cart-toast-content strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #222;
}

.cart-toast-content span {
    font-size: 0.82rem;
    color: #666;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast-close {
    border: none;
    background: transparent;

    color: #999;

    font-size: 1.4rem;
    cursor: pointer;

    padding: 0;
    line-height: 1;
}

.cart-toast-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    #cartToast {
        top: 80px;
        right: 15px;
        width: calc(100vw - 30px);
        padding: 12px 14px;
    }

    .cart-toast-content strong {
        font-size: 0.88rem;
    }

    .cart-toast-content span {
        font-size: 0.76rem;
    }

    .cart-toast-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding: 0;
  background-color:
    var(--primary-color);
  color:
    rgb(201, 218, 223);
  flex-shrink: 0;
}

.footer-1 {
  width: 100%;
  max-width: none;
  min-height: 15rem;
  margin: 0;
  padding:
    4rem 5rem 3rem;
  background-color:
    var(--primary-color);
  display: flex;
  justify-content:
    space-between;
  align-items:
    flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-1 > div {
  flex: 1;
  min-width: 0;
}

.footer-1 .iconify {
  font-size: 1.5rem;
  color:
    var(--tertiary-color);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer-1 h2 {
  font-size: 0.95rem;
  font-weight: normal;
  line-height: 1.8;
  margin-bottom: 1rem;
  margin-right: 0;
}

.footer-1 h2 span {
  display: block;
  margin-left: 0;
  color:
    var(--tertiary-color);
  font-weight: bold;
  margin-top: 0.2rem;
}

.footer-1 h3 {
  color:
    var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  margin-right: 0;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-1 h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background-color:
    var(--tertiary-color);
}

.footer-1 .quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  text-decoration: none;
  color:
    rgb(201, 218, 223);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.footer-1 .quick-link::after {
  display: none;
}

.footer-1 .quick-link span {
  margin-left: 0;
  color:
    var(--tertiary-color);
  font-weight: bold;
}

.footer-1 .quick-link:hover {
  color:
    var(--secondary-color);
  transform:
    translateX(5px);
}

.footer-1 h4 {
  font-size: 1.5rem;
  color:
    var(--secondary-color);
  margin-top: 0;
}

.footer-1 h4 .iconify {
  font-size: 2rem;
}

/* ==========================================
   FOOTER BOTTOM
   ========================================== */
.footer-2 {
  width: 100%;
  max-width: none;
  min-height: 3.5rem;
  height: auto;
  margin: 0;
  background:
    rgb(25, 25, 25);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color:
    rgba(207, 223, 233, 0.7);
  padding: 1rem;
  font-size: 0.85rem;
  border-top:
    1px solid
    rgba(255, 255, 255, 0.05);
}

/* ==========================================
   WHATSAPP
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color:
    var(--tertiary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px
    rgba(0, 0, 0, 0.25);
  z-index: 10000;
  transition:
    transform 0.2s ease;
  text-decoration: none;
}

.whatsapp-float .fa-whatsapp {
  color: #ffffff;
  font-size: 2.4rem;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* ==========================================
   RESPONSIVE 1200px
   ========================================== */
@media (max-width: 1200px) {
  header .nav-list {
    gap: 1.5rem;
  }
  .breadcrumb,
  .filter-container {
    margin-left: 3rem;
  }
  .catalog-flex {
    margin-left: 3rem;
    margin-right: 3rem;
  }
  .catalog-flex .card.part-card,
  .catalog-flex .card.year-card {
    flex-basis:
      calc(25% - 1rem);
  }
  .footer-1 {
    padding:
      4rem 3rem 3rem;
  }
}

/* ==========================================
   RESPONSIVE 900px
   ========================================== */
@media (max-width: 900px) {
  header {
    height: auto;
    min-height: 7rem;
  }
  header nav {
    min-height: 7rem;
    height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.35rem 1rem 0.55rem;
    row-gap: 0.25rem;
    position: relative;
  }
  header nav > div:not(.menu-toggle) {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  header nav input {
    width: 100%;
    max-width: none;
    height: 2.45rem;
    margin-top: 0;
  }
  .breadcrumb {
    margin: 8rem 1rem 0;
  }
  .filter-container {
    margin: 1rem;
  }
  .catalog-flex {
    margin: 1rem 1rem 3rem;
    gap: 1rem;
  }
  /* 3 CARDS PER ROW */
  .catalog-flex .card,
  .catalog-flex .card.part-card,
  .catalog-flex .card.year-card {
    flex: 0 0 calc(33.333% - 0.7rem);
    width: calc(33.333% - 0.7rem);
    max-width: calc(33.333% - 0.7rem);
  }
}
/* ==========================================
   MOBILE 768px
   ========================================== */
@media (max-width: 768px) {
  /* ==========================================
     MENU BUTTON
     ========================================== */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.45rem;
    z-index: 1003;
  }

  /* ==========================================
     LOGO
     ========================================== */
  header h1 {
    position: absolute;
    left: 50%;
    top: 0.7rem;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
    z-index: 1001;
  }

  header h1 span {
    font-size: 0.85rem;
  }

  /* ==========================================
     DARK OVERLAY
     ========================================== */
  body:has(header .nav-list.active)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 998;
    pointer-events: none;
  }

  /* ==========================================
     SIDE MENU
     ========================================== */
  header .nav-list {
    position: fixed;
    top: 0;
    left: -290px;
    right: auto;
    width: 290px;
    max-width: 78vw;
    height: 100vh;
    padding: 5.2rem 0 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.25);
    transition: left 0.35s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  header .nav-list.active {
    left: 0;
    right: auto;
  }

  header .nav-list li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #ececec;
  }

  header .nav-list li:first-child {
    border-top: 1px solid #ececec;
  }

  header .nav-list li a {
    display: block;
    width: 100%;
    padding: 1rem 1.2rem;
    color: #666 !important;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      padding-left 0.2s ease;
  }

  body:has(header .nav-list.active) .menu-toggle {
    position: fixed;
    top: 0.65rem;
    left: 240px;
    color: #666 !important;
  }

  header .nav-list li a:hover,
  header .nav-list li a:focus,
  header .nav-list li a:focus-visible {
    background: transparent;
    color: #666 !important;
    padding-left: 1.2rem;
    outline: none;
  }

  header .nav-list li a:active {
    color: var(--tertiary-color) !important;
    background: #f4f4f4;
  }

  /* ==========================================
     CATALOG
     2 CARDS PER ROW
     ========================================== */
  .catalog-flex {
    width: auto;
    margin: 1rem 0.75rem 3rem;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .catalog-flex .card,
  .catalog-flex .card.part-card,
  .catalog-flex .card.year-card {
    flex: 0 0 calc(50% - 0.375rem);
    width: calc(50% - 0.375rem);
    max-width: calc(50% - 0.375rem);
    min-width: 0;
    padding: 0.7rem;
  }

  .card img {
    width: 100%;
    height: 8.5rem;
    object-fit: contain;
  }

  .card h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    word-break: break-word;
  }

  /* ==========================================
     CAR PART SLIDER CARDS
     ========================================== */
  .car-part .crousel .group .card {
    flex: 0 0 42vw;
    width: 42vw;
    max-width: 42vw;
    height: 7rem;
    padding: 0.5rem;
  }

  .car-part .crousel .group .card img {
    width: 100%;
    height: 7.5rem;
    object-fit: contain;
  }

  .car-part .crousel .group .card h3 {
    padding: 0.3rem;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.2;
  }

  /* ==========================================
     FOOTER SAME AS CONTACT
     ========================================== */
  footer {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .footer-1 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr)
      !important;
    align-items: start !important;
    text-align: left !important;
    padding: 2rem 1rem !important;
    gap: 1.25rem 1rem !important;
  }

  .footer-1 > div {
    min-width: 0 !important;
    width: 100% !important;
    flex: none !important;
  }

  .footer-1 > div:nth-child(3) {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.5rem;
  }

  .footer-1 h2 {
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.8rem !important;
    overflow-wrap: anywhere;
  }

  .footer-1 h2 .iconify {
    font-size: 1rem !important;
    margin-right: 0.3rem !important;
  }

  .footer-1 h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem !important;
    padding-bottom: 0.4rem !important;
  }

  .footer-1 h3::after {
    left: 0 !important;
    transform: none !important;
  }

  .footer-1 .quick-link {
    font-size: 0.76rem !important;
    margin-bottom: 0.55rem !important;
    gap: 0.35rem !important;
  }

  .footer-1 h4 {
    font-size: 1rem !important;
    white-space: nowrap;
  }

  .footer-1 h4 .iconify {
    font-size: 1.35rem !important;
  }

  .footer-2 {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 3rem;
    padding: 0.7rem 1rem;
    text-align: center;
  }

  /* ==========================================
     WHATSAPP
     ========================================== */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-float .fa-whatsapp {
    font-size: 2rem;
  }
}

/* ==========================================
   REAL MOUSE HOVER
   ========================================== */
@media (hover: hover)
and (pointer: fine)
and (max-width: 768px) {
  header .nav-list li a:hover {
    background: #f4f4f4;
    color: var(--tertiary-color) !important;
    padding-left: 1.45rem;
  }
}

/* ==========================================
   SMALL MOBILE 480px
   ========================================== */
@media (max-width: 480px) {
  /* ==========================================
     MENU
     ========================================== */
  header .nav-list {
    width: 76vw;
    max-width: 280px;
    left: -80vw;
  }
  body:has(header .nav-list.active)
  .menu-toggle {
    left:
      min(
        calc(76vw - 42px),
        238px
      );
  }
  header .nav-list li a {
    font-size: 0.88rem;
    padding:
      0.95rem 1rem;
  }
  /* ==========================================
     BREADCRUMB
     ========================================== */
  .breadcrumb {
    margin:
      8rem 0.75rem 0;
  }
  .breadcrumb-btn {
    font-size: 0.88rem;
    padding:
      6px 10px;
  }
  /* ==========================================
     FILTER
     ========================================== */
  .filter-container {
    margin:
      1rem 0.75rem;
  }
  .filter-container label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
  }
  #categorySelect {
    width: 100%;
    padding: 0.55rem;
  }
  /* ==========================================
     2 CARDS PER ROW
     ========================================== */
  .catalog-flex {
    margin:
      1rem 0.65rem 3rem;
    gap: 0.65rem;
  }
  .catalog-flex .card,
  .catalog-flex .card.part-card,
  .catalog-flex .card.year-card {
    flex:
      0 0 calc(50% - 0.325rem);
    width:
      calc(50% - 0.325rem);
    max-width:
      calc(50% - 0.325rem);
    min-width: 0;
    padding: 0.6rem;
    border-radius: 0.8rem;
  }
  .card img {
    width: 100%;
    height: 7.5rem;
    object-fit: contain;
  }
  .card h3 {
    font-size: 0.9rem;
    line-height: 1.3;
  }
  .card small {
    font-size: 0.72rem;
  }
  .card p {
    font-size: 0.9rem;
  }
  .card select {
    font-size:
      0.78rem !important;
  }
  /* ==========================================
     PAGINATION
     ========================================== */
  .pagination-container {
    margin:
      2rem 0.75rem;
    gap: 0.35rem;
  }
  .pagination-btn {
    padding:
      7px 10px;
    font-size: 0.84rem;
  }
  /* ==========================================
     FOOTER
     ========================================== */
  .footer-1 {
    width:
      100% !important;
    max-width:
      none !important;
    margin:
      0 !important;
    grid-template-columns:
      minmax(0, 1.15fr)
      minmax(0, 0.85fr)
      !important;
    padding:
      1.6rem 0.8rem
      !important;
    gap:
      1rem 0.75rem
      !important;
  }
  .footer-1 h2 {
    font-size:
      0.8rem !important;
  }
  .footer-1 h3 {
    font-size:
      1.2rem !important;
  }
  .footer-1 .quick-link {
    font-size:
      0.9rem !important;
  }
  .footer-1 h4 {
    font-size:
      1.5rem !important;
  }
}

/* ==========================================
   VERY SMALL PHONE 390px
   KEEP 2 CARDS
   ========================================== */
@media (max-width: 390px) {
  .catalog-flex {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    gap: 0.5rem;
  }
  .catalog-flex .card,
  .catalog-flex .card.part-card,
  .catalog-flex .card.year-card {
    flex:
      0 0 calc(50% - 0.25rem);
    width:
      calc(50% - 0.25rem);
    max-width:
      calc(50% - 0.25rem);
    padding: 0.5rem;
  }
  .card img {
    height: 7rem;
  }
  .card h3 {
    font-size: 0.85rem;
  }
}

/* =========================================================
   E-COMMERCE PRODUCT CONTROLS
   Type buttons + Add to Cart button
   ========================================================= */
.catalog-flex .card.part-card {
  height: auto;
  min-height: 22rem;
}

.type-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
}

.type-btn {
  border: 1px solid var(--tertiary-color);
  background-color: #ffffff;
  color: rgb(70, 120, 135);
  padding: 0.38rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease;
}

.type-btn:hover {
  background-color: rgba(109, 162, 176, 0.14);
}

.type-btn.active {
  background-color: var(--tertiary-color);
  border-color: var(--tertiary-color);
  color: #ffffff;
}

.type-btn:active {
  transform: scale(0.96);
}

.add-cart-btn {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--tertiary-color);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    transform 0.18s ease,
    box-shadow 0.22s ease;
}

.add-cart-btn:hover {
  background-color: rgb(78, 132, 147);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.add-cart-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.modal-add-cart-btn {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .catalog-flex .card.part-card {
    min-height: 10rem;
  }
  .type-buttons {
    gap: 0.3rem;
  }
  .type-btn {
    padding: 0.33rem 0.5rem;
    font-size: 0.74rem;
  }
  .add-cart-btn {
    padding: 0.58rem 0.5rem;
    font-size: 0.82rem;
  }
}

/* ==========================================
   MOBILE LANGUAGE INSIDE MENU
   ========================================== */
.mobile-language-item {
    display: none;
}

@media (max-width: 768px) {
    .desktop-language-switcher {
        display: none !important;
    }

    header nav {
        position: relative;
        justify-content: space-between;
    }

    header .nav-list .mobile-language-item {
        display: block;
        width: 100%;
        padding: 1rem 1.2rem 1.2rem;
        border-bottom: 1px solid #ececec;
    }

    .mobile-language-title {
        margin-bottom: 0.7rem;
        color: #666;
        font-size: 0.92rem;
        font-weight: 700;
        text-align: left;
    }

    .mobile-language-switcher {
        display: flex;
        align-items: center;
        gap: 0.55rem;
    }

    .mobile-lang-btn {
        min-width: 82px;
        padding: 0.5rem 0.8rem;
        border: 1px solid rgba(109, 162, 176, 0.55);
        border-radius: 18px;
        background: #fff;
        color: #555;
        cursor: pointer;
        font-size: 0.82rem;
        font-weight: 700;
        transition: 0.2s ease;
    }

    .mobile-lang-btn.active {
        background: var(--tertiary-color);
        color: #fff;
        border-color: var(--tertiary-color);
    }
}
