/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
  background: #111;
  color: #eee;
  font-family: Arial, sans-serif;
  margin: 0;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 15px 30px;
  position: relative;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 22px;
}

.logo span {
  color: orange;
}

/* =========================
   MENU
========================= */
.menu {
  padding: 0;
  margin: 0;
}

.menu li {
  display: inline-block;
  position: relative;
}

.menu a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.menu a:hover {
  color: orange;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.7);
}

/* =========================
   DROPDOWN MENU
========================= */
.dropdown ul {
  display: none;
  position: absolute;
  background: #222;
  min-width: 220px;
  padding: 20px 15px;
  z-index: 999;
}

.dropdown:hover ul {
  display: block;
}

.dropdown ul li {
  display: block;
  margin-bottom: 2rem;
}

.dropdown ul li:last-child {
  margin-bottom: 0;
}

.dropdown ul li a {
  color: #eee;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.dropdown ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: orange;
  transition: width 0.3s ease;
}

.dropdown ul li a:hover,
.dropdown ul li a.active {
  color: orange;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.8);
}

.dropdown ul li a:hover::after,
.dropdown ul li a.active::after {
  width: 100%;
}

/* =========================
   SEARCH BAR
========================= */
.search input {
  padding: 6px;
  background: #222;
  border: 1px solid #444;
  color: #fff;
}

.search button {
  padding: 6px 10px;
  background: orange;
  border: none;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  background: #222;
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin: 0;
}

/* =========================
   TEXT CAROUSEL
========================= */
.text-carousel {
  position: relative;
  height: 200px;
  background: #0d0d0d;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  text-align: center;
  transform: translateX(100%);
}

.carousel-slide.active {
  opacity: 1;
  animation: slideIn 1.2s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================
   TEXT CAROUSEL – BRAND COLORS
========================= */
.carousel-slide.toyota h2 {
  color: #e60012;
  text-shadow: 0 0 12px rgba(230, 0, 18, 0.7);
}

.carousel-slide.toyota p {
  color: #ffd6d6;
}

.carousel-slide.nissan h2 {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(195, 0, 47, 0.7);
}

.carousel-slide.nissan p {
  color: #ffccd5;
}

.carousel-slide.mazda h2 {
  color: #1e90ff;
  text-shadow: 0 0 12px rgba(30, 144, 255, 0.7);
}

.carousel-slide.mazda p {
  color: #cfe7ff;
}

/* =========================
   PRODUCTS GRID
========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card {
  background: #1f1f1f;
  padding: 15px;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 165, 0, 0.35);
}

/* =========================
   PAGINATION
========================= */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.pagination a {
  padding: 8px 14px;
  margin: 3px;
  background: #222;
  color: #fff;
  text-decoration: none;
}

.pagination a.active,
.pagination a:hover {
  background: orange;
  color: #000;
}

/* =========================
   PRODUCT DETAILS LAYOUT
========================= */
.product-details-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.product-gallery {
  flex: 0 0 45%;
  max-width: 45%;
}

.product-info {
  flex: 0 0 55%;
  max-width: 55%;
}

.product-info p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* =========================
   MAIN IMAGE
========================= */
.main-image-wrapper {
  position: relative;
}

.main-image-wrapper img {
  width: 100%;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.main-image-wrapper img:hover {
  transform: scale(1.05);
}

/* =========================
   IMAGE NAV ARROWS
========================= */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  cursor: pointer;
  z-index: 10;
}

.nav-arrow.left {
  left: 10px;
}

.nav-arrow.right {
  right: 10px;
}

/* =========================
   THUMBNAILS
========================= */
.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
  transform: scale(1.25);
  border-color: orange;
}

/* =========================
   BUTTONS
========================= */
.btn-add-cart {
  display: inline-block;
  padding: 10px 20px;
  background: orange;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.btn-whatsapp {
  display: inline-block;
  padding: 10px 20px;
  background: #25D366;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

/* =========================
   ZOOM OVERLAY
========================= */
#zoomOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  overflow: auto;
}

#zoomOverlay.show {
  display: block;
}

#zoomOverlay img {
  display: block;
  margin: 80px auto;
  width: 110%;
  max-width: 70%;
  height: auto;
}

.close-zoom {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #1a1a1a;
  padding: 40px 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .product-details-layout {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    max-width: 100%;
    flex: 1 1 100%;
  }

  #zoomOverlay img {
    width: 120%;
  }
}

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  .menu li {
    display: block;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }
}
