:root {
  --primary-color: #2d5016;
  --secondary-color: #6b8e23;
  --accent-color: #c24f1d;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --success: #27ae60;
  --border-color: #e0e0e0;
  --price-color: #b34700;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

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

figure {
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo h2 {
  color: var(--primary-color);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.tagline {
  color: var(--text-dark);
  font-size: 0.875rem;
  margin-bottom: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:not(.cart-trigger):hover,
nav a:not(.cart-trigger).active {
  background-color: var(--primary-color);
  color: var(--white);
}

.cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xs);
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cart-trigger,
.cart-trigger:hover,
.cart-trigger:focus-visible,
.cart-trigger:active {
  background: transparent;
  color: var(--text-dark);
  box-shadow: none;
}

.img_panier {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-count.is-visible {
  opacity: 1;
  transform: scale(1);
}

nav a:not(.link_panier):hover,
nav a:not(.link_panier).active {
  background-color: var(--primary-color);
  color: var(--white);
}

.link_panier {
  padding: var(--spacing-xs);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.link_panier:hover {
  background: var(--white);
  color: inherit;
}

.link_panier:hover .img_panier {
  transform: scale(1.1);
}

.hero {
  background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)),
    url("../img/present.webp") center/cover;
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.notre-histoire {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-light);
  text-align: center;
}

.notre-histoire h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.notre-histoire p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
}

.produits-vedettes {
  padding: var(--spacing-xl) 0;
}

.produits-vedettes h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

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

.product-card h3 {
  padding: var(--spacing-sm) var(--spacing-md) 0;
  color: var(--text-dark);
  margin-bottom: 0;
}

.product-card .price {
  padding: var(--spacing-xs) var(--spacing-md) var(--spacing-md);
  color: var(--price-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  color: inherit;
}

.product-card__actions {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--background-light);
}

.product-card__actions .btn {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 900;
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 90vw);
  background: var(--white);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 910;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--spacing-md);
}

.cart-panel.is-visible {
  transform: translateX(0);
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.cart-panel__header h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.cart-panel__close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dark);
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-panel__close:hover,
.cart-panel__close:focus-visible {
  background-color: rgba(45, 80, 22, 0.08);
  color: var(--primary-color);
  outline: none;
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.cart-panel__empty {
  color: var(--text-light);
  text-align: center;
  margin: var(--spacing-md) 0;
}

.cart-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
  align-items: center;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--background-light);
}

.cart-item__info h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.cart-item__info p {
  margin: 0;
  color: var(--text-light);
  display: flex;
  gap: var(--spacing-xs);
}

.cart-item__quantity {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item__remove {
  background: transparent;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-item__remove:hover,
.cart-item__remove:focus-visible {
  background-color: rgba(194, 79, 29, 0.1);
  color: var(--accent-color);
  outline: none;
}

.cart-panel__footer {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
}

.cart-panel__cta.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

body.cart-open {
  overflow: hidden;
}

.cart-page {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.cart-page__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.cart-summary {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
}

.cart-summary h2 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.cart-page__empty {
  margin: 0;
  color: var(--text-light);
}

.cart-summary__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
}

.cart-summary__item {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-sm);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--background-light);
}

.cart-summary__info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.cart-summary__info p {
  margin: 0;
  color: var(--text-light);
  display: flex;
  gap: var(--spacing-xs);
  font-size: 0.95rem;
}

.cart-summary__quantity {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-summary__controls {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.cart-summary__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-summary__btn:hover,
.cart-summary__btn:focus-visible {
  background-color: var(--primary-color);
  color: var(--white);
  outline: none;
}

.cart-summary__remove {
  border: none;
  background: transparent;
  color: var(--accent-color);
  cursor: pointer;
  font-weight: 600;
  padding: var(--spacing-xs);
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-summary__remove:hover,
.cart-summary__remove:focus-visible {
  background-color: rgba(194, 79, 29, 0.12);
  color: var(--accent-color);
  outline: none;
}

.cart-page__aside {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
}

.cart-totals h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.cart-totals__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--price-color);
}

.cart-page__actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-page__action.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.cart-page__action.btn {
  width: 100%;
}

@media (max-width: 992px) {
  .cart-page__content {
    grid-template-columns: 1fr;
  }
}

.rencontrez-producteur {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-light);
}

.producer-intro {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.producer-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

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

.producer-text {
  flex: 1;
}

.producer-text h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.producer-text p {
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.products-section {
  padding: var(--spacing-lg) 0;
}

.products-section h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--secondary-color);
}

.product-detail {
  padding: var(--spacing-xl) 0;
}

.product-layout {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.product-gallery {
  flex: 1;
}

.product-gallery img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-info {
  flex: 1;
}

.product-info h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.product-description {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.product-features {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.product-features li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.product-price {
  background-color: var(--background-light);
  padding: var(--spacing-md);
  border-radius: 8px;
  margin: var(--spacing-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--price-color);
}

.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.producer-portrait {
  background-color: var(--background-light);
  padding: var(--spacing-lg) 0;
}

.portrait-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.producer-story {
  padding: var(--spacing-xl) 0;
}

.producer-story h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.producer-story h2 {
  color: var(--secondary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.producer-story p {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  text-align: justify;
}

.farm-gallery {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-light);
}

.farm-gallery h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

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

.commitments {
  padding: var(--spacing-xl) 0;
}

.commitments h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.commitment-card {
  text-align: center;
  padding: var(--spacing-md);
}

.commitment-icon {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.commitment-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.commitment-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-content {
  padding: var(--spacing-xl) 0;
}

.contact-layout {
  display: flex;
  gap: var(--spacing-xl);
}

.contact-info {
  flex: 1;
}

.info-block {
  margin-bottom: var(--spacing-lg);
}

.info-block h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.info-block p {
  line-height: 1.8;
  margin-bottom: var(--spacing-xs);
}

.info-block a {
  color: var(--accent-color);
  font-weight: 600;
}

.contact-form-container {
  flex: 1;
}

.contact-form {
  background-color: var(--background-light);
  padding: var(--spacing-lg);
  border-radius: 8px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
}

.map-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--background-light);
}

.map-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-info {
  margin-top: var(--spacing-md);
  text-align: center;
  color: var(--text-light);
}

footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h3 {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-section p {
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  opacity: 0.8;
  margin-bottom: 0;
}

.burger {
  display: none;
  width: 44px;
  height: 38px;
  background: transparent;
  border: 0;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--primary-color);
  transition: transform 0.3s, top 0.3s, opacity 0.3s;
}

.burger span:nth-child(1) {
  top: 10px;
}
.burger span:nth-child(2) {
  top: 18px;
}
.burger span:nth-child(3) {
  top: 26px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 18px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 18px;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }
  nav {
    display: none;
    text-align: center;
  }
  nav.open {
    display: block;
  }

  nav {
    position: absolute;
    top: 110px; /* juste en dessous du header */
    left: 0;
    width: 100%;
    background: var(--white);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  nav.open {
    max-height: 400px; /* hauteur max du menu déroulant */
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-sm);
  }

  nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 6px 10px; /* <-- réduit */
    font-size: 0.95rem; /* <-- réduit */
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  header .container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }

  .hero {
    min-height: 350px;
    padding: var(--spacing-lg) var(--spacing-md);
  }

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

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

  .producer-intro {
    flex-direction: column;
  }

  .product-layout {
    flex-direction: column;
  }

  .contact-layout {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .product-actions {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 1.75rem;
  }

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

  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
