/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #f9f9f9;
  color: #111;
  padding-bottom: 50px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- HEADER ---------- */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  padding-left: 5px;
}

/* ---------- NAVIGATION ---------- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.nav-menu > li > a {
  font-size: 15px;
  padding: 10px 0;
  color: #111;
  transition: color 0.3s ease;
}

.nav-menu > li:hover > a {
  color: #000;
}

/* ---------- MEGA MENU (DESKTOP) ---------- */
.mega-parent:hover .mega-menu {
  display: flex;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  background: #fff;
  padding: 40px 60px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  gap: 50px;
  justify-content: center;
}

.mega-column {
  min-width: 180px;
}

.mega-column h4 {
  font-size: 14px;
  margin-bottom: 15px;
  color: #333;
  text-transform: uppercase;
}

.mega-column ul li {
  margin-bottom: 10px;
}

.mega-column ul li a {
  font-size: 14px;
  color: #555;
  transition: color 0.3s ease;
}

.mega-column ul li a:hover {
  color: #000;
}

/* ---------- MENU TOGGLE (MOBILE) ---------- */
.menu-toggle {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  order: 2; /* ensures it stays to the right */
  display: none; /* hidden by default */
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  padding: 40px 60px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-info .label {
  color: red;
  font-size: 13px;
  font-weight: bold;
}

.product-info h4 {
  font-size: 16px;
  margin: 5px 0;
}

.product-info p {
  font-size: 14px;
  margin: 2px 0;
}

.product-info .muted {
  color: #888;
}

.product-info .price {
  font-weight: bold;
  margin-top: 6px;
}

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  text-align: center;
  padding-top: 60px;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal .prev,
.modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.modal .prev { left: 10px; }
.modal .next { right: 10px; }

.modal .prev:hover,
.modal .next:hover {
  color: #ccc;
}

/* ---------- IMAGE SLIDER ---------- */
.image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.slider-image {
  position: absolute;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  opacity: 0;
  transform: translateX(100%);
}

.slider-image.active {
  opacity: 1;
  transform: translateX(0);
}

.slider-image.exit-right { transform: translateX(100%); opacity: 0; }
.slider-image.enter-left { transform: translateX(-100%); opacity: 1; }

/* ---------- FOOTER ---------- */
.footer-box {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.footer-box a {
  color: #1da1f2;
  font-weight: bold;
}

.footer-box a:hover {
  text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav { width: 100%; }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.show { display: flex; }

  .nav-menu > li {
    border-bottom: 1px solid #f2f2f2;
    text-align: center;
  }

  .nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
  }

  .mega-menu {
    display: none;
    position: static;
    transform: none;
    width: 100%;
    background: #fafafa;
    flex-direction: column;
  }

  .mega-parent.open .mega-menu { display: flex; }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .menu-toggle { display: none; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
