@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --primary-amber: #e3b73e;
  --secondary-orange: #e75830;
  --light-amber: #f9f0d8;
  --dark-amber: #5a4918;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fefefe;
  direction: ltr;
  text-align: left;
}

.pattern-bg {
  background-image: url(../images/pattern.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  left: 0;
  right: auto;
}

.mobile-menu.open-ltr {
  transform: translateX(0);
}

.menu-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.header-gradient {
  background: linear-gradient(90deg, var(--primary-amber) 0%, var(--secondary-orange) 100%);
}

.product-image {
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.product-image:hover {
  transform: scale(1.02);
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--primary-amber);
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f3e2b1;
}

.feature-item:last-child {
  border-bottom: none;
}

.tab-button {
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

.tab-button.active {
  color: var(--secondary-orange);
  border-bottom-color: var(--secondary-orange);
}

.tab-content {
  display: none;
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--primary-amber);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}

.quantity-btn {
  background: var(--light-amber);
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: var(--primary-amber);
  color: white;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 16px;
  background: white;
}

.related-product {
  transition: all 0.3s ease;
  border-radius: 12px;
}

.related-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 10px; /* از چپ‌چین شده */
}

.badge-primary {
  background: var(--primary-amber);
  color: white;
}

.badge-secondary {
  background: var(--secondary-orange);
  color: white;
}

@media (max-width: 768px) {
  .product-image-container .h-96 {
    height: 16rem;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .tab-button {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .quantity-selector {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
