:root
{
  --primary: #2d6a4f;
  --primary-hover: #1b4332;
  --primary-light: #d8f3dc;
  --accent: #e76f51;
  --font-main: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --warm-bg: #faf7f2;
  --text-main: #1d2d44;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(29, 45, 68, 0.12);
  --transition: all 0.3s ease;
  --radius-md: 18px;
  --radius-pill: 50px;
  --border-color: #e2e8f0;
  --text-muted: #6c757d;
  --text-information-bar: #e2e8f0;








}

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

a
{
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

html
{
    font-size: 16px;
}

body
{
    font-family: var(--font-main);
    background-color: var(--warm-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.top-bar
{
    background-color: var(--primary-hover);
    color: #d8f3dc;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    margin-top: 0;
}

.top-bar .container
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container
{
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.top-bar-info
{
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
}

.top-bar-info span
{
display: inline-flex;
align-items: center;
gap: 0.3rem;
}

.top-bar-info-delivery
{
  background-color: #0ca15e;
  color:#d8f3dc;
  font-family: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  display: block;
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1rem;
}

.header
{
    background-color: rgba(245,245,245,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top:0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo
{
    display: flex;
    align-items: center;
    gap:0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary)
}

.logo svg
{
    height: 32px;
    width: 32px;
    fill: var(--primary);
}

.nav-links
{
    display: flex;
    align-items: center;
    gap:2rem    
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.shopping-cart
{
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-btn
{
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
}

.icon-btn:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-add-animation {
  animation: cart-add-pop 1.55s ease;
}

.cart-add-animation .badge {
  animation: cart-badge-pop 1s ease;
}

.cart-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1100;
  max-width: min(360px, calc(100vw - 3rem));
  padding: 0.8rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: white;
  color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  pointer-events: none;
}

.cart-feedback-visible {
  animation: cart-feedback-pop 2.2s ease forwards;
}

@keyframes cart-add-pop {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.18) rotate(-8deg); }
  65% { transform: scale(0.94) rotate(5deg); }
}

@keyframes cart-badge-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.35); }
}

@keyframes cart-feedback-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  12%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
}
button {
    cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  border-radius: 999px;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

.btn-secondary {
  background-color: #e76f51;
  color: #fff;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
}

.btn-secondary:hover {
  background-color: #d45d3d;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
}

.footer {
  background-color: var(--primary-hover);
  color: #d8f3dc;
  padding: 4rem 0 1.5rem;
}

.footer-legal {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d8f3dc;
}

.footer-legal a {
  color: #d8f3dc;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #b7e4c7;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

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

.product-card-out-of-stock {
  filter: grayscale(0.45);
  opacity: 0.72;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition);
}

.wishlist-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.product-img {
  width: 100%;
  height: 200px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

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

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.35rem 0 0.5rem;
  color: var(--text-main);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f4a261;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.product-rating span {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.product-farm {
  font-size: 0.8rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.product-stock {
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.product-stock-empty {
  color: #c44536;
  font-weight: 600;
}

.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.qty-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
}

/* Price on its own row, so the −/+ control and the cart button fit narrow cards. */
.product-footer-qty .price {
  flex-basis: 100%;
}

.qty-input {
  width: 62px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-main);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.25rem;
  transition: var(--transition);
  outline: none;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.qty-stepper .qty-input {
  width: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-stepper .qty-input::-webkit-outer-spin-button,
.qty-stepper .qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.qty-stepper .qty-input:focus {
  box-shadow: none;
}

.qty-step {
  width: 34px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.qty-step:hover,
.qty-step:focus-visible {
  background: var(--primary-light);
  outline: none;
}

.qty-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
  background: white;
}

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

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-hover);
  flex: 1;
}

.price span.unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.add-cart-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.08);
  transition: var(--transition);
}

.add-cart-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

.add-cart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  background-color: var(--primary-light);
  color: var(--primary);
}

.choose-variant-btn {
  width: auto;
  padding: 0 0.9rem;
  font-size: 0.9rem;
}

/* --- Product Detail Page --- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 90px;
}

.product-gallery img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-variants {
  margin-top: 1.25rem;
}

.product-variants h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-hover);
  font-size: 1rem;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.variant-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 100px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: white;
  color: var(--text-main);
  cursor: pointer;
}

.variant-option span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.variant-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.12);
}

.variant-option:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
}

.product-detail-info h1 {
  margin: 0.5rem 0;
  color: var(--primary-hover);
  font-size: 2.5rem;
}

.product-detail-farm,
.product-description {
  color: var(--text-muted);
}

.product-description {
  line-height: 1.7;
  margin: 1.5rem 0;
  white-space: pre-line;
}

.product-detail-stock {
  color: var(--primary);
  font-weight: 600;
}

.product-detail-purchase {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.product-unit-price {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.product-detail-add-btn {
  width: auto;
  padding: 0 1.25rem;
  font-size: 0.95rem;
}

.product-detail-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: static;
  }

  .product-detail-info h1 {
    font-size: 2rem;
  }

  .product-detail-purchase {
    flex-wrap: wrap;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-title span.subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-hover);
  line-height: 1.25;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Features Banner --- */
.features-bar {
  background: white;
  padding: 2.5rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* --- Header on phones: menu gets its own row under the logo and cart --- */
@media (max-width: 768px) {
  .top-bar .container {
    flex-direction: column;
    gap: 0.25rem;
  }

  .top-bar-info {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1rem;
    padding: 0;
    font-size: 0.8rem;
  }

  .header-container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }
}
