@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #ff4545;
  --navbar: #212121;
  --bg: #fffbf2;
  --white: #ffffff;
  --white-25: #e5e5e5;
  --white-50: #f5f5f5;
  --white-55: #f6f6f6;
  --black: #353535;
  --black-25: #5b5b5b;
  --border-5: 0.3125rem;
  --padding-1: 1rem;
  --padding-2: 2rem;
  --padding-3: 3rem;
  --margin-1: var(--padding-1);
  --margin-2: var(--padding-2);
  --margin-3: var(--padding-3);
}

.material-symbols-rounded {
  user-select: none;
  font-variation-settings: "FILL" 0, "wght" 250, "GRAD" 0, "opsz" 48;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

body {
  color: var(--bg);
  min-height: auto;
  background-color: black;
}

h3 {
  font-size: 0.8125rem;
  line-height: 2rem;
  color: var(--bg);
  font-family: sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

/* NavBar Start */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: var(--navbar);
  border-bottom: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  display: flex;
  align-items: center;
}

.navbar .navbar-logo img {
  width: 10rem;
  height: auto;
}

.navbar .navbar-nav {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .navbar-nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.navbar .navbar-nav ul li {
  position: relative;
  padding: 0 1rem;
}

.navbar .navbar-nav a {
  color: #fffbf2;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  position: relative;
  text-decoration: none;
}

.navbar .navbar-nav a:hover {
  color: var(--primary);
}

.navbar .navbar-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--navbar);
  display: none;
  z-index: 999;
  padding: 0.5rem 0;
  border-radius: 0;
  transition: 0.2s linear;
  width: max-content;
}

.navbar .navbar-nav .dropdown li {
  position: relative;
  margin-bottom: 0.3125rem;
}

.navbar .navbar-nav .dropdown li:hover .subDrop {
  display: block;
}

.navbar .navbar-nav .dropdown .subDrop {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--navbar);
  z-index: 999;
  padding: 0.5rem 0;
  width: max-content;
}

.navbar .navbar-nav .dropdown .droplist {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--navbar);
  z-index: 999;
  padding: 0.5rem 0;
  width: max-content;
}

.navbar .navbar-nav .dropdown .droplist li {
  display: block;
}

.navbar .navbar-nav .dropdown .subDrop ul li {
  white-space: nowrap;
}

.navbar .navbar-nav ul li:hover .dropdown {
  display: block;
}

.navbar .navbar-nav .dropdown .subDrop li:hover .droplist {
  display: block;
}

.navbar .navbar-nav a .fas.fa-chevron-down,
.navbar .navbar-nav a .fas.fa-chevron-right {
  font-size: 0.875rem;
  margin-left: 0.4375rem;
}
/* NavBar End */

/* Hero Section Start*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/headerBG_1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  animation: change 20s infinite ease;
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, black 8%, rgba(38, 38, 43, 0) 35%);
}

.hero .content {
  padding: 2.4rem 15%;
  max-width: 60rem;
}

.hero .content h1 {
  font-size: 3rem;
  color: var(--bg);
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.6rem;
  margin-top: 1rem;
  line-height: 1.4;
  color: var(--bg);
  text-shadow: 0.0625rem 0.0625rem 0.1875rem rgba(1, 1, 3, 0.5);
  mix-blend-mode: diff;
  width: auto;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: var(--bg);
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 0.0625rem 0.0625rem 0.1875rem rgba(1, 1, 3, 0.5);
}

@keyframes change {
  30% {
    background-image: url("../img/headerBG_1.jpg");
  }
  50% {
    background-image: url("../img/headerBG_2.jpg");
  }
  80% {
    background-image: url("../img/headerBG_3.jpg");
  }
}
/* Hero Section End*/

/* About Start */
.about {
  padding: 10rem 7% 1.4rem;
}

.about h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3.5rem; /* Existing margin */
  text-shadow: #ff4545;
}

.about .row {
  display: flex;
  margin-top: 3.5rem; /* Adding margin-top to create a gap */
  flex-wrap: wrap;
}

.about .row2 {
  display: flex;
  margin-top: 3.5rem; /* Adding margin-top to create a gap */
  flex-wrap: wrap;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row2 .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 75%;
  margin-top: 3rem;
}

.about .row2 .about-img img {
  width: 80%;
  margin-top: 2rem;
  margin-left: 150px; /* rubahan */
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row2 .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row2 .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 100;
  line-height: 1.6;
  text-align: justify;
}

.about .row2 .content p {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 100;
  line-height: 1.6;
  text-align: justify;
}
/* About End */

/* Popular Product Start */
.pop-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--margin-3);
  max-width: max-content;
  position: relative;
  margin-right: 1.25rem;
  margin-left: 1.25rem;
}

.pop-products__title {
  margin-top: 3.125rem;
  margin-bottom: var(--margin-3);
  font-size: clamp(1rem, 6vw, 2rem);
}

.popular-products-wrapper {
  overflow-x: auto;
  width: 100%;
}

.product-card__img img {
  position: absolute;
  width: 100%;
  transition: transform 1s ease;
  max-width: 18.75rem;
  max-height: 18.75rem;
  object-fit: contain;
}

.most-popular-products {
  display: flex;
  flex-wrap: wrap;
  padding: 0 var(--padding-1);
  gap: 1.25rem;
  width: max-content;
}

.product-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 15.625rem;
  max-width: 18.75rem;
  border: 0.3125rem solid var(--navbar);
  border-radius: var(--border-5);
  margin-right: 1rem;
}

.product-card__container {
  height: 20rem;
  width: 100%;
  background-color: black;
  overflow: hidden;
}

.product-card__slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-wrapper .image-list {
  display: flex;
  gap: 0.625rem;
}

.slider-wrapper .image-list img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slide-button {
  position: absolute;
  top: 50%;
  height: 3.125rem;
  width: 3.125rem;
  color: var(--navbar);
  border: none;
  outline: none;
  background: var(--bg);
  font-size: 2.2rem;
  cursor: pointer;
  border-radius: 50%;
  transform: translateY(-50%);
}

.slide-button:hover {
  background: var(--primary);
}

#prev-chevron {
  left: -1.25rem;
}

#next-chevron {
  right: -1.25rem;
}

.product-card__description {
  padding: calc(var(--padding-1) / 2) var(--padding-1);
  font-size: 1.2rem;
  margin-top: 1.5625rem;
}

.product-card__text {
  font-weight: 550;
}

.product-card__price {
  padding-top: 0.625rem;
}

.product-card__color {
  display: flex;
  column-gap: 0.5rem;
  padding: calc(var(--padding-1) / 2) var(--padding-1);
}

.product-card__btn-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  overflow: hidden;
}

.product-card__btn-radio span {
  position: absolute;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.product-card__btn-radio.selected {
  border: 0.09375rem solid var(--black);
}

.product-card__btn-radio.selected span {
  width: 0.9375rem;
  height: 0.9375rem;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  background-color: var(--navbar);
  padding: 0.3125rem 0.625rem;
  right: calc(100% + 0.3125rem);
  border-radius: var(--border-5);
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-tooltip]:hover::before {
  opacity: 1;
}

.chevron-buttons {
  margin-top: 0.625rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.chevron-button {
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#prev-chevron.disabled,
#next-chevron.disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* Popular Product End */

/* Category Start */
.category {
  width: 100%;
  padding: 2rem 7% 1.4rem;
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  flex-wrap: wrap;
}

.category h2 {
  text-align: center;
  flex-basis: 100%;
  font-size: 2rem;
  margin-top: 5rem;
}

.category h4 {
  padding-bottom: 0.625rem;
  text-align: center;
  flex-basis: 100%;
  font-size: 1.625rem;
  margin-top: 3.125rem;
  font-weight: bold;
}

.category-box h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-align: center;
  text-shadow: 0px -0.0625rem 0px #000;
  z-index: 100;
}

.category h5 {
  padding-bottom: 0.3125rem;
  text-align: center;
  flex-basis: 100%;
  font-size: 1.625rem;
  margin-bottom: 0.625rem;
}

.category a {
  margin-bottom: 0.9375rem;
}

.category-box {
  width: 20rem;
  height: 12.5rem;
  background-color: var(--navbar);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 0.9375rem;
  border-radius: 2%;
  object-fit: cover;
}

.category-box:nth-child(3) {
  background-image: url("../img/FixedBackSeat.jpg");
}

.category-box:nth-child(4) {
  background-image: url("../img/ReclinableSeat.jpg");
}

.category-box:nth-child(5) {
  background-image: url("../img/RacingHarness.jpg");
}

.category-box:nth-child(6) {
  background-image: url("../img/Accesories.jpg");
}

.category-box:nth-child(9) {
  background-image: url("../img/audiLogo.jpg");
}

.category-box:nth-child(10) {
  background-image: url("../img/bmwLogo.jpg");
}

.category-box:nth-child(11) {
  background-image: url("../img/benzLogo.jpg");
}

.category-box:nth-child(12) {
  background-image: url("../img/miniLogo.jpg");
}

.category-box:nth-child(13) {
  background-image: url("../img/porscheLogo.jpg");
}

.category-box:nth-child(14) {
  background-image: url("../img/VWLogo.jpg");
}

.category-box:nth-child(16) {
  background-image: url("../img/hondaLogo.jpg");
}

.category-box:nth-child(17) {
  background-image: url("../img/hyundaiLogo.jpg");
}

.category-box:nth-child(18) {
  background-image: url("../img/lexusLogo.jpg");
}

.category-box:nth-child(19) {
  background-image: url("../img/mazdaLogo.jpg");
}

.category-box:nth-child(20) {
  background-image: url("../img/mitsubishiLogo.jpg");
}

.category-box:nth-child(21) {
  background-image: url("../img/nissanLogo.jpg");
}

.category-box:nth-child(22) {
  background-image: url("../img/subaruLogo.jpg");
}

.category-box:nth-child(23) {
  background-image: url("../img/suzukiLogo.jpg");
}

.category-box:nth-child(24) {
  background-image: url("../img/toyotaLogo.jpg");
}

.category-box:nth-child(26) {
  background-image: url("../img/fordLogo.jpg");
}

.category-box:nth-child(29) {
  background-image: url("../img/BodyKit_LightweightPackage.png");
}

.category-box:nth-child(30) {
  background-image: url("../img/BodyKit_CustomBodyKit.png");
}

.category-box:nth-child(31) {
  background-image: url("../img/BodyKit_ExoticCarBodySwap.jpg");
}

.category-box:hover .dark-overlay {
  opacity: 0;
}

.dark-overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: #000;
  opacity: 0.3;
  transition: all ease-in-out 200ms;
  border-radius: 2%;
}
/* Category End */

/* Footer Start */
.footer {
  background-color: var(--navbar);
  padding-top: 3.125rem;
  padding-bottom: 4.375rem;
  line-height: 1.5;
  box-sizing: border-box;
  margin-top: 5rem;
}

.footer .container {
  max-width: 73.125rem;
  margin: auto;
}

.footer .row {
  display: flex;
  flex-wrap: wrap;
}

.footer ul {
  list-style: none;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
}

.footer-col h4 {
  font-size: 1.125rem;
  color: var(--bg);
  text-transform: capitalize;
  margin-bottom: 2.1875rem;
  font-weight: 500;
  position: relative;
  font-family: "Poppins", sans-serif;
}

.footer-col h4::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.625rem;
  background-color: var(--primary);
  height: 0.125rem;
  box-sizing: border-box;
  width: 3.125rem;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 1rem;
  text-transform: capitalize;
  color: #ffffff;
  text-decoration: none;
  font-weight: 300;
  color: #bbbbbb;
  display: block;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 0.5rem;
}

.footer-col .social-links a {
  display: inline-block;
  height: 2.5rem;
  width: 2.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0.625rem 0.625rem 0;
  text-align: center;
  line-height: 2.5rem;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
  color: #24262b;
  background-color: #ffffff;
}

.footer .credit {
  margin-top: 1.25rem;
  color: var(--bg);
}

.footer .credit p {
  font-family: "Poppins", sans-serif;
  font-size: 0.6875rem;
  max-width: max-content;
}
/* Footer End */

html {
  scroll-behavior: smooth;
}

/* Media Queries */
/* Laptop */
@media (max-width: 85.375rem) {
  .slider-wrapper .slide-button {
    display: none !important;
  }

  .slider-wrapper .image-list {
    gap: 0.625rem;
    margin-bottom: 0.9375rem;
  }

  .slider-wrapper .image-list .image-item {
    width: 17.5rem;
    height: 23.75rem;
  }

  .slider-scrollbar .scrollbar-thumb {
    width: calc(
      20% - 3.125rem
    ); /* 20% of scrollbar width minus the width of the chevron button */
  }

  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 48rem) {
  html {
    font-size: 62.5%;
  }
}

/* Mobile Phone */
@media (max-width: 28.125rem) {
  html {
    font-size: 55%;
  }
  /* rubahan */
  .about .row2 .about-img img {
    width: 80%;
    margin-top: 2rem;
    margin-left: 37px;
    justify-content: center;
  }
  .about .row .about-img img {
    width: 80%;
    margin-top: 2rem;
    margin-left: 37px;
    margin-bottom: 20px;
  }
  .about {
    padding: 10rem 0% 0rem;
  }
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;       /* jarak dari bawah */
  right: 20px;        /* jarak dari kanan */
  background-color: #25d366;
  color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: background 0.3s;
}

.whatsapp-float i {
  font-size: 24px;
  margin-right: 10px;
}

.whatsapp-float:hover {
  background-color: #20b954; /* warna hijau lebih gelap saat hover */
}
