/* 
   Doi Tung Premium Design System
   Colors: Deep Forest Green, Coffee Gold, Mist White, Charcoal
*/

:root {
  --primary: hsl(140, 30%, 20%);
  /* Deep Forest */
  --secondary: hsl(35, 40%, 45%);
  /* Coffee Gold */
  --accent: hsl(35, 60%, 55%);
  --bg: hsl(0, 0%, 98%);
  --text: hsl(0, 0%, 15%);
  --text-light: hsl(0, 0%, 40%);
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', 'Prompt', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Typography Enhancements */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.th {
  display: none;
}

.en {
  display: inline;
}

[data-lang="th"] .th {
  display: inline;
}

[data-lang="th"] .en {
  display: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow);
}

.logo {
  flex: 1;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

#lang-toggle {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

#lang-toggle:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.lang-toggle:hover {
  background: var(--secondary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0 10%;
}

.hero-badge {
  background: var(--secondary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
  animation: fadeInUp 1s ease-out both;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
  line-height: 1.1;
  max-width: 800px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 650px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .cta-button {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--secondary);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-5px);
  background: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Timeline Section */
.timeline-container {
  width: 100%;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  position: relative;
}

/* Horizontal Connector Line (Desktop only) */
.timeline-container::before {
  content: "";
  position: absolute;
  top: 332px;
  /* Positioned in the gap below the images */
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bg);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-image {
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.timeline-content {
  padding: 0 10px;
}

.timeline-year {
  color: var(--secondary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.timeline-item:hover .timeline-image img {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .timeline-container::before {
    display: none;
  }
}

/* Features Section */
.features {
  background: var(--white);
}

.features-grid {
  width: 100%;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  position: relative;
}

/* Horizontal Connector Line for Features */
.features-grid::before {
  content: "";
  position: absolute;
  top: 332px;
  /* Same as timeline */
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bg);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.feature-img {
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  object-fit: cover;
  transition: var(--transition);
}

.feature-info {
  padding: 0 10px;
}

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

.feature-card p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

@media (max-width: 992px) {
  .features-grid::before {
    display: none;
  }
}

/* Featured Products (Home) */
.featured-products {
  background: var(--bg);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 10px;
}

.view-all-container {
  text-align: center;
}

/* Sections */
section {
  padding: 100px 10%;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

/* Products Page Layout */
.products-section {
  display: flex;
  gap: 40px;
  padding: 80px 10%;
  margin: 0 auto;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 15px;
}

.filter-toggle {
  display: none;
}

.filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
}

.filter-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.filter-item.active {
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  border-color: rgba(0, 0, 0, 0.05);
}

.product-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .products-section {
    flex-direction: column;
    padding: 40px 5%;
  }

  .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 30px;
  }

  .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #f8f8f8;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Contact Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info div {
  margin-bottom: 30px;
}

.contact-info h4 {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
}

.contact-form button {
  background: var(--primary);
  color: var(--white);
  padding: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.contact-form button:hover {
  background: var(--secondary);
}

.contact-form button:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.form-status {
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-status.success {
  background: hsl(140, 50%, 90%);
  color: hsl(140, 50%, 25%);
  border: 1px solid hsl(140, 50%, 80%);
}

.form-status.error {
  background: hsl(0, 70%, 95%);
  color: hsl(0, 70%, 30%);
  border: 1px solid hsl(0, 70%, 90%);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 10%;
  text-align: center;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Reveal on scroll class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  nav {
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .logo {
    font-size: 1.3rem;
    flex: 1;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    flex-direction: column;
    list-style: none;
    padding: 1rem 0;
    gap: 0;
    display: none;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-right {
    flex: 0 0 auto;
    order: 3;
  }

  #lang-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .sidebar {
    position: relative;
  }

  .filter-toggle {
    display: block !important;
    width: 100%;
    padding: 0.8rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
  }

  .sidebar h3 {
    display: none !important;
  }

  .filter-toggle::after {
    content: ' ▼';
    float: right;
    transition: transform 0.3s ease;
  }

  .filter-toggle.active::after {
    transform: rotate(180deg);
  }

  .filter-list {
    flex-direction: column;
    justify-content: flex-start;
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 100;
    box-shadow: var(--shadow);
  }

  .filter-list.active {
    display: flex;
  }
}

/* Product Detail Page */
.back-link-container {
  padding: 140px 10% 20px;
  width: 100%;
  margin: 0 auto;
}

.product-detail {
  width: 100%;
  margin: 0 auto;
  padding: 20px 10% 60px;
}

.back-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.back-link:hover {
  color: var(--secondary);
  transform: translateX(-5px);
}

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

.detail-img {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.detail-info h2 {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1.2;
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
}

.detail-description-label {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.detail-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.detail-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-story {
  background: hsl(0, 0%, 95%);
  padding: 2rem;
  border-radius: 20px;
  border-left: 5px solid var(--secondary);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 10px 0;
}

.detail-highlights-label {
  margin-top: 15px;
  font-weight: 700;
  color: var(--primary);
}

.detail-highlights-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.detail-highlights-list li {
  background: var(--white);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.detail-highlights-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 800;
}

.detail-contact-box {
  margin-top: 30px;
  padding: 2.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.detail-contact-box p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-btn:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.detail-view-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 1rem;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.detail-view-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Skeleton Loading */
.skeleton-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 30px;
}

.skeleton-title {
  height: 4rem;
  width: 80%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
  margin-bottom: 20px;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 5px;
  margin-bottom: 10px;
}

.skeleton-price {
  height: 2.5rem;
  width: 40%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 10px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1100px) {
  nav {
    padding: 1rem 3%;
  }

  .product-detail {
    padding: 20px 3% 40px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- Enhanced Product Detail --- */
.product-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.detail-badge {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1.5rem 0;
}

.detail-story-section {
  background: var(--surface);
  padding: 3rem;
  border-radius: 20px;
  border-left: 8px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.story-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.story-content p {
  font-style: italic;
  line-height: 1.8;
  color: var(--text-light);
}

.detail-extended-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.detail-about-box,
.detail-highlights-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.detail-about-box h3,
.detail-highlights-box h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.detail-highlights-list {
  list-style: none;
  padding: 0;
}

.detail-highlights-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-highlights-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
}

.royal-project-box {
  background: linear-gradient(135deg, #fef9e7 0%, #fdf2e9 100%);
  padding: 3rem;
  border-radius: 20px;
  border: 2px solid #f1c40f;
  text-align: center;
}

.royal-project-box h3 {
  color: #7d6608;
  margin-bottom: 1rem;
}

.royal-project-box p {
  color: #5d4e37;
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .product-detail {
    padding: 5rem 1rem 2rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-info {
    text-align: left;
    padding-top: 1rem;
  }

  .detail-badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .detail-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .owner-line {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .detail-price {
    font-size: 2rem;
    margin: 1rem 0 2rem;
  }

  .detail-description {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .detail-extended-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-story-section {
    padding: 1.5rem;
    border-left-width: 5px;
  }
}

/* --- Gallery Styles --- */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f0f0f0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
  opacity: 0.6;
}

.thumb:hover {
  opacity: 0.9;
}

.thumb.active {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}

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

.owner-line {
  font-size: 0.9rem;
  color: var(--text-light);
  opacity: 0.7;
  margin-top: -15px;
  margin-bottom: 5px;
}

/* --- Farmer Directory --- */
.farmer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.farmer-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.farmer-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
}

.farmer-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.farmer-card:hover .farmer-img-container img {
  transform: scale(1.1);
}

.farmer-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.farmer-info {
  padding: 1.5rem;
}

.farmer-info h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.farmer-owner {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.farmer-specialty {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.farmer-contact-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.farmer-contact-btn:hover {
  background: var(--secondary);
}