/* ========== Base ========== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #2b2b2b;
  background: #faf7f2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== Layout ========== */

/* Content width container - all sections use this */
.content-width {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

main {
  flex: 1;
  width: 100%;
}

/* ========== Header ========== */

.site-header {
  background: linear-gradient(135deg, #fff9e6 0%, #faf7f2 100%);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #e8e0d0;
  margin-bottom: 60px;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  width: 100%;
  padding: 0 20px;
}

.lang-row,
.social-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.lang-btn {
  background: #ffde59;
  border: 2px solid #ffde59;
  color: #000000;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: #ffd700;
  border-color: #ffd700;
  color: #000000;
}

.lang-btn.active {
  background: #ffde59;
  border-color: #ffde59;
  color: #000000;
}

.social-btn {
  background: #ffde59;
  border: 2px solid #ffde59;
  color: #000000;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-btn:hover {
  background: #ffd700;
  border-color: #ffd700;
  color: #000000;
}

.logo {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== Hero Section ========== */

.hero-section {
  margin-bottom: 80px;
}

.hero-section .content-width {
  max-width: 900px;
}

.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: block;
}

/* ========== Products Section ========== */

.products-section {
  margin-bottom: 80px;
}

.products-section .content-width {
  max-width: 900px;
}

.products-section h2 {
  font-size: 2.5rem;
  color: #8b6914;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.news-intro {
  text-align: center;
  color: #6b5b3d;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 30px;
}

.tab-btn {
  background: #d4c4a8;
  border: 2px solid #d4c4a8;
  color: #6b5b3d;
  padding: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.tab-btn:hover {
  background: #c4b498;
  border-color: #c4b498;
}

.tab-btn.active {
  background: #ffde59;
  border-color: #ffde59;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.product-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e0d0;
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-content {
  flex: 1;
  min-width: 0;
}

.product-item h3 {
  font-size: 1.5rem;
  color: #8b6914;
  margin-bottom: 12px;
  font-weight: 600;
}

.product-item p {
  color: #6b5b3d;
  line-height: 1.6;
}

.product-meta {
  margin-top: -6px; /* tighter spacing under title */
  margin-bottom: 12px;
}

.product-image {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #faf7f2;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Hint that there are multiple photos by slightly stacking the first two */
.product-image img:nth-child(1) {
  z-index: 2;
}

.product-image img:nth-child(2) {
  z-index: 1;
  transform: translate(10px, 10px) scale(0.92);
  opacity: 0.85;
}

/* Any additional images stay hidden in the card but are still available for the modal */
.product-image img:nth-child(n + 3) {
  display: none;
}

/* ========== Image Gallery Modal ========== */

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.image-modal-content {
  position: relative;
  z-index: 1001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  width: auto;
  height: auto;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-modal.active .image-modal-img {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1002;
}

.image-modal-close:hover {
  background: #ffffff;
  transform: rotate(90deg);
}

/* ========== Order Section ========== */

.order-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  padding: 60px 20px;
  border-radius: 16px;
  margin-bottom: 80px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e0d0;
}

.order-section .content-width {
  max-width: 900px;
}

.order-section h2 {
  font-size: 2.5rem;
  color: #8b6914;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.order-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #6b5b3d;
  margin-bottom: 40px;
}

.order-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.qr-codes {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-item {
  text-align: center;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  margin-left: auto;
  margin-right: auto;
}

.qr-item.active {
  display: block;
}

.qr-item img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}

.qr-link {
  display: inline-block;
  line-height: 0;
}

.qr-link:focus-visible {
  outline: 3px solid #ffde59;
  outline-offset: 4px;
  border-radius: 10px;
}

.contact-info {
  text-align: center;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e0d0;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-info p {
  color: #6b5b3d;
  margin-bottom: 8px;
}

.contact-info p:first-child {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-info strong {
  color: #8b6914;
}

/* ========== Footer ========== */

.site-footer {
  background: #2b2b2b;
  color: #faf7f2;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.site-footer .content-width {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.footer-logo-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer-logo {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 50%;
}

.site-footer p {
  font-size: 0.95rem;
  margin: 0;
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
  .logo {
    width: 200px;
    height: 200px;
  }

  .header-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lang-row,
  .social-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .lang-btn,
  .social-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .product-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .tab-btn {
    font-size: 1rem;
    padding: 10px 0;
  }

  .products-section h2,
  .order-section h2 {
    font-size: 2rem;
  }

  .product-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-image {
    width: 100%;
    height: 250px;
  }

  .order-section {
    padding: 40px 20px;
  }

  .qr-codes {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .qr-item {
    width: 100%;
    max-width: 300px;
  }

  .qr-item img {
    width: 180px;
    height: 180px;
  }

  .hero-image img {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 180px;
    height: 180px;
  }

  .tab-btn {
    font-size: 0.95rem;
    padding: 8px 0;
  }

  .products-section h2,
  .order-section h2 {
    font-size: 1.75rem;
  }

  .product-item {
    padding: 20px;
    gap: 20px;
  }

  .product-image {
    width: 100%;
    height: 200px;
  }

  .image-modal-img {
    max-width: 90%;
    max-height: 50vh;
  }

  .image-modal-close {
    top: -30px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .order-section {
    padding: 30px 15px;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }
}