/* HERO */
.products-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(90,107,30,0.18) 0%, rgba(90,107,30,0) 52%),
    radial-gradient(circle at 85% -10%, rgba(62,74,18,0.12) 0%, rgba(62,74,18,0) 55%),
    linear-gradient(160deg, #f7f6f2 0%, #efe8dc 100%);
  padding:140px 0 100px;
}

.products-hero::before{
  content:"";
  position:absolute;
  inset:-25% -10%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(62,74,18,0.06) 0,
      rgba(62,74,18,0.06) 1px,
      transparent 1px,
      transparent 16px
    );
  opacity:0.18;
  transform:rotate(-2deg);
  pointer-events:none;
}

.products-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 0%, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 62%);
  pointer-events:none;
}

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

.products-hero h1{
  font-size:48px;
}

.products-hero p{
  max-width:600px;
  margin:15px auto 0;
  color:#555;
}

/* FILTERS */
.product-filters{
  padding:40px 0 10px;
}

.filter-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(160px, 1fr));
  gap:16px;
}

.filter-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(62,74,18,0.14);
  background:linear-gradient(160deg, #ffffff 0%, #f3f5ef 100%);
  border-radius:22px;
  isolation:isolate;
  padding:20px 16px;
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
  font-family:inherit;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(20,33,24,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
  transition:transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.filter-card::before{
  content:"";
  position:absolute;
  top:-50px;
  right:-45px;
  width:130px;
  height:130px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(177,198,33,0.26) 0%, rgba(177,198,33,0) 70%);
  opacity:0.55;
  pointer-events:none;
  transition:opacity 0.22s ease, transform 0.22s ease;
}

.filter-card:hover{
  transform:translateY(-4px);
  border-color:rgba(90,107,30,0.28);
  box-shadow:0 18px 34px rgba(20,33,24,0.12);
  background:#ffffff;
}

.filter-card:hover::before{
  opacity:0.85;
  transform:scale(1.08);
}

.filter-card:focus-visible{
  outline:2px solid #3e4a12;
  outline-offset:3px;
}

.filter-icon{
  width:auto;
  height:auto;
  border-radius:0;
  background:transparent;
  border:0;
  display:block;
  line-height:0;
  box-shadow:none;
}

.filter-icon img{
  width:clamp(120px, 11vw, 145px);
  height:clamp(92px, 8.5vw, 110px);
  object-fit:cover;
  border-radius:14px;
  box-shadow:0 12px 20px rgba(20,33,24,0.16);
  transition:transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.filter-label{
  font-size:17px;
  font-weight:600;
  color:#3e4a12;
}

.filter-card.active{
  background:linear-gradient(155deg, #114b37 0%, #0f3f2f 55%, #215943 100%);
  border-color:transparent;
  box-shadow:0 24px 42px rgba(15,63,47,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}

.filter-card.active::before{
  background:radial-gradient(circle, rgba(207,224,107,0.45) 0%, rgba(207,224,107,0) 72%);
  opacity:0.9;
}

.filter-card.active .filter-label{
  color:#f6ffdb;
}

.filter-card.active .filter-icon{
  padding:12px 16px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.1) 100%);
  border:1px solid rgba(255,255,255,0.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.35), 0 14px 26px rgba(0,0,0,0.28);
}

.filter-card.active .filter-icon img{
  transform:translateY(-2px) scale(1.08);
  filter:contrast(1.22) saturate(1.22) brightness(1.12);
  box-shadow:0 10px 18px rgba(0,0,0,0.22);
}

.filter-card:not(.active):hover .filter-icon img{
  transform:translateY(-2px) scale(1.12);
  object-fit:cover;
  border-radius:0;
  box-shadow:none;
  mix-blend-mode:multiply;
  filter:drop-shadow(0 14px 20px rgba(20,33,24,0.24)) contrast(1.1) saturate(1.12);
}

.product-section.is-hidden{
  display:none;
}

/* PRODUCT SECTION */
.product-section{
  padding:120px 0;
    scroll-margin-top:120px;
  position:relative;

}

/* Subtle separators between main product sections */
.product-section:not(:last-of-type)::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:0;
  height:1px;
  background:linear-gradient(to right, transparent, rgba(0,0,0,0.12), transparent);
}

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

/* REVERSED */
.product-section.alt .product-row{
  direction:rtl;
}

.product-section.alt .product-content{
  direction:ltr;
}

/* CONTENT */
.product-content h2{
  font-size:36px;
  margin-bottom:20px;
}

.product-content p{
  line-height:1.8;
  margin-bottom:15px;
  color:#444;
}

/* IMAGE */
.product-image{
  height:420px;
  border-radius:26px;
  background-size:cover;
  background-position:center;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}

/* Images */
.product-image.olives{
  background:url('../images/products/olives/cover.webp') center/cover;
}

.product-image.artichoke{
  background:url('../images/products/artichoke/hero.webp') center/cover;
}

.product-image.peppers{
  background:url('../images/products/peppers/cover.webp') center/cover;
}

/* PRODUCT VARIANTS */
.product-variants{
  margin-top:40px;
}

.variants-heading{
  font-size:28px;
  margin:10px 0 20px;
  color:#3e4a12;
}

.variant-group{
  margin-bottom:40px;
}

.variant-title{
  font-size:22px;
  margin-bottom:16px;
  color:#3e4a12;
  font-family:'Sora',sans-serif;
}

.variant-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.variant-card{
  text-align:left;
}

.variant-img{
  height:180px;
  border-radius:16px;
  margin-bottom:14px;
  background-size:cover;
  background-position:center;
}

.variant-card h4,
.variant-card h5{
  font-size:18px;
  margin-bottom:8px;
  color:#3e4a12;
  font-family:'Sora',sans-serif;
}

.variant-card p{
  color:#444;
  line-height:1.6;
}

/* RESPONSIVE */
@media(max-width:900px){
  .filter-row{
    grid-template-columns:repeat(2, minmax(160px, 1fr));
  }

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

  .product-section.alt .product-row{
    direction:ltr;
  }

  .product-image{
    height:300px;
  }

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

@media(max-width:600px){
  .product-filters{
    padding:30px 0 0;
  }

  .filter-row{
    grid-auto-flow:column;
    grid-auto-columns:minmax(160px, 1fr);
    overflow-x:auto;
    padding-bottom:8px;
    scroll-snap-type:x mandatory;
  }

  .filter-card{
    scroll-snap-align:start;
  }

  .filter-icon img{
    width:118px;
    height:88px;
  }

  .variant-grid{
    grid-template-columns:1fr;
  }

  .variants-heading{
    font-size:24px;
  }
}
