/* Herb Page Specific Styles */
:root {
  --primary-color: #1a472a;
  --secondary-color: #a3d39c;
  --transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-light: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.herb-hero {
  position: relative;
  min-height: 90vh;
  background: #183c2b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.herb-hero .hero-slideshow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(26,71,42,0.7) 0%, rgba(163,211,156,0.2) 100%);
  z-index: 1;
}

.herb-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem 1rem;
  background: rgba(255,255,255,0.10);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(26,71,42,0.10);
  backdrop-filter: blur(2px);
}

.herb-hero h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 24px rgba(26,71,42,0.25);
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}

.herb-hero h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: #fff;
}

.herb-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.herb-hero .cta-button.secondary {
  background: #fff;
  color: var(--primary-color);
}

.herb-hero .cta-button.secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Category Navigation */
.category-nav {
  padding: 20px 0;
  background: #f8f9fa;
  text-align: center;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.category-tabs li {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 50px;
}

.category-tabs li.active,
.category-tabs li:hover {
  background: var(--primary-color);
  color: white;
}

/* Products Section */
.products-section {
  padding: 80px 0;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(26,71,42,0.06);
  transition: box-shadow 0.25s, border 0.25s, transform 0.25s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(26,71,42,0.14);
  border-color: #a3d39c;
  transform: translateY(-5px);
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 18px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(26,71,42,0.06);
  z-index: 2;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06) rotate(-1deg);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26,71,42,0.08);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.view-details {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(26,71,42,0.10);
}

.view-details:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.product-info {
  padding: 28px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-info h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-description {
  color: #555;
  font-size: 1rem;
  margin-bottom: 10px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.product-price {
  background: #eafbe6;
  color: #185c2a;
  font-weight: 700;
  font-size: 1.18rem;
  padding: 6px 18px;
  border-radius: 14px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(26,71,42,0.06);
}

.product-link {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.product-link:hover {
  color: var(--secondary-color);
}

/* Benefits Section */
.benefits-section {
  padding: 80px 0;
  background: #f8f9fa;
  text-align: center;
}

.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.line-decoration {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
  margin: 20px auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 71, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.benefit-card:hover .benefit-icon {
  background: var(--secondary-color);
  color: white;
}

.benefit-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.benefit-card p {
  color: #222;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: white;
  text-align: center;
}

.cta-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-content p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.cta-content .cta-button {
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all var(--transition);
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}

.cta-content .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.cta-content .cta-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  background: url('../images/herbs-bg.jpeg') no-repeat center/cover fixed;
  color: white;
  position: relative;
}

.breadcrumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 71, 42, 0.7);
}

.breadcrumb .container {
  position: relative;
  z-index: 1;
}

.breadcrumb ul {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumb li {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: var(--secondary-color);
  transition: all var(--transition);
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

/* Product Detail Section */
.product-detail {
  padding: 80px 0;
  background: white;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-images .main-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.image-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

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

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details .product-category {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-details .product-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.product-details .product-price {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.product-description p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 20px;
}

.product-features,
.product-uses {
  margin-bottom: 20px;
}

.product-features h3,
.product-uses h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.product-features ul {
  list-style: disc;
  padding-left: 20px;
}

.product-features li,
.product-uses p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.product-quantity {
  margin-bottom: 20px;
}

.product-quantity label {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-right: 10px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.quantity-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}

.quantity-btn:hover {
  background: var(--secondary-color);
}

.quantity-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 1rem;
  background: white;
}

.quantity-selector input:focus {
  outline: none;
}

.whatsapp-order-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: var(--shadow-light);
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}

.whatsapp-order-btn i {
  margin-right: 10px;
}

.whatsapp-order-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.whatsapp-order-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

/* Product Tabs */
.product-tabs {
  padding: 80px 0;
  background: #f8f9fa;
}

.tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-radius: 50px;
  transition: all var(--transition);
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
}

.tab-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

.tab-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.tab-pane {
  display: none;
}

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

.tab-pane p {
  color: #222;
  font-size: 1rem;
  margin-bottom: 15px;
}

.tab-pane ul {
  list-style: disc;
  padding-left: 20px;
}

.tab-pane li {
  color: #222;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* Related Products */
.related-products {
  padding: 80px 0;
  background: white;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Accessibility: Add visible focus styles and improve color contrast for key text */
a, button, .cta-button, .submit-button, .product-link, .view-details, .social-icon {
  outline: none;
  transition: box-shadow 0.2s, outline 0.2s;
}
a:focus, button:focus, .cta-button:focus, .submit-button:focus, .product-link:focus, .view-details:focus, .social-icon:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.2);
}

/* Animation classes to match index.html */
.animate-hero {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}

.animate-hero:nth-child(2) {
  animation-delay: 0.2s;
}

.animate-hero:nth-child(3) {
  animation-delay: 0.4s;
}

.cta-buttons .animate-hero {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .herb-hero h2 {
    font-size: 2rem;
  }
  .herb-hero h3 {
    font-size: 1.4rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .product-info {
    padding: 18px 10px 12px 10px;
  }
  .related-products-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .category-tabs {
    flex-direction: column;
    align-items: center;
  }
  .tab-header {
    flex-direction: column;
    align-items: center;
  }
  .image-thumbnails {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  .product-card {
    padding: 15px;
  }
  .whatsapp-order-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  section {
    padding: 50px 3%;
  }
  .hero h2 {
    font-size: 1.3rem;
  }
  .cta-button, .submit-button {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}