/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
  color: #333;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 1rem;
}
.logo img {
  height: 45px;
  max-height: 100%;
}
.nav {
  display: flex;
  align-items: center;
}
.nav a {
  margin-left: 1.5rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav a:hover {
  color: #007bff;
}

/* Footer */
.footer {
  background: #222;
  color: #eee;
  padding: 1rem 0;
  margin-top: 2rem;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-contact p {
  font-weight: bold;
}
.footer-links a {
  color: #eee;
  margin-left: 1rem;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* Hero Slider */
.slider {
  margin-top: 70px; /* push below header */
  position: relative;
  overflow: hidden;
  height: 100vh; /* full screen on desktop */
}
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* desktop default */
  object-position: center;
  display: block;
}

/* About Us */
.about-us {
  padding: 2rem 1rem;
  background: #f9f9f9;
}
.about-us h2 {
  margin-bottom: 1rem;
  text-align: center;
}
.about-us p {
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Catalog page */
.catalog-item {
  margin-bottom: 3rem;
  text-align: center; /* center align on desktop */
}
.catalog-item h3 {
  margin-bottom: 0.5rem;
}
.catalog-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 450px; /* squarish & smaller */
  margin: 0 auto 1rem auto; /* center on page */
  border-radius: 6px;
  aspect-ratio: 1 / 1; /* keep square */
}
.catalog-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}
.catalog-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
}
.catalog-description {
  max-width: 700px;
  margin: 0 auto;
}
.price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #e63946;
}
.strike-price {
  text-decoration: line-through;
  color: #555;
  margin-left: 1rem;
  font-weight: normal;
}
.buy-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.buy-button:hover {
  background: #0056b3;
}

/* Arrows */
.catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  font-size: 1.2rem;
}
.catalog-arrow.left { left: 10px; }
.catalog-arrow.right { right: 10px; }

/* Dots - always visible over image */
.catalog-dots {
  position: absolute;
  bottom: 10px; /* inside the image */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 20;
}
.catalog-dots span {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}
.catalog-dots .active {
  background: #007bff;
}

/* Lightbox (image zoom) */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}
.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }
  .logo img {
    height: 35px;
  }
  .nav {
    gap: 1rem;
  }

  /* Mobile slider fix */
  .slider {
    height: auto;
  }
  .slide {
    position: relative;
    height: auto;
    display: none;
  }
  .slide.active {
    display: block;
    opacity: 1;
  }
  .slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  /* Catalog square smaller on mobile */
  .catalog-slider {
    max-width: 300px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 55px;
  }
  .logo img {
    height: 28px;
  }
  .nav a {
    font-size: 0.9rem;
    margin-left: 1rem;
  }
  .slide img {
    max-height: 60vh;
  }
  .catalog-slider {
    max-width: 250px;
  }
}
