/* Mobile-first CSS with CSS Variables */

/* Header Styles */
.header {
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.logo h1 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Updated language switcher styling for better visibility */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  right: 60px;
}

.lang-btn {
  background: var(--brown);
  color: var(--text-light);
  border: 2px solid var(--text-light);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--text-light);
  color: var(--brown);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.navigation {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: var(--gold);
  transition: left 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navigation.active {
  left: 0;
}

.nav-list {
  list-style: none;
  text-align: center;
}

.nav-list li {
  margin: 2rem 0;
}

.nav-list a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--brown);
}

/* Hero Section */
.hero {
  background: var(--bg);
  padding: 4rem 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--brown);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* About Section */
.about {
  padding: 4rem 0;
  background: #f8f9fa;
}

.about h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brown);
  font-size: 1.75rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Products Section */
.products {
  padding: 4rem 0;
  background: var(--bg);
}

.products h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--brown);
  font-size: 1.75rem;
}

/* Updated products grid for 6 items with descriptions */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-card h3 {
  text-align: center;
  color: var(--brown);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  text-align: center;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* Contact Section */
.contact {
  padding: 4rem 0;
  background: #f8f9fa;
}

.contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brown);
  font-size: 1.75rem;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--brown);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Tablet Styles (≥600px) */
@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .product-card img {
    height: 300px;
  }
}

/* Desktop Styles (≥992px) */
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .navigation {
    position: static;
    width: auto;
    height: auto;
    background: none;
    display: block;
  }

  .nav-list {
    display: flex;
    gap: 2rem;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
  }

  .language-switcher {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.375rem;
  }

  .product-card img {
    height: 350px;
  }

  .container {
    padding: 0 40px;
  }
}

/* Large Desktop (≥1200px) */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .product-card img {
    height: 280px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border-width: 3px;
  }

  .nav-list a:hover {
    background: var(--text-light);
    color: var(--brown);
  }
}
