/* ==================== PRODOTTI ==================== */
.prodotti-hero {
  background: var(--header-bg);
  padding: 60px 40px 52px;
  text-align: center;
  margin-top: var(--navbar-h);
}
.section-tag {
  display: inline-block;
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
/* ==================== FILTER BAR ==================== */
.filter-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(215, 184, 153, 0.3);
  position: sticky;
  top: var(--navbar-h);
  z-index: 900;
}
.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 40px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.filter-inner::-webkit-scrollbar { display: none;}
.filter-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
}
@media (max-width: 768px) {
  .filter-inner {
    padding: 10px 20px;
    justify-content: flex-start;
  }
}
/* ==================== PRODUCTS SECTION ==================== */
.products-section {
  padding: 18px 0 70px;
  background: var(--bg-light);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
/* ── PRODUCT CARD ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(93, 64, 55, 0.09);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(93, 64, 55, 0.16);
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.badge-new {
  background: var(--accent);
  color: var(--text-primary);
}
.badge-best {
  background: var(--primary-dark);
  color: var(--white);
}
.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.card-productImage {
  position: absolute;
  inset: 0;
}
.card-productImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-cat {
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.card-name {
  font-family: var(--font);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-desc {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-alt);
  padding-top: 14px;
}
.card-price {
  font-family: var(--font);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.card-sizes {
  display: flex;
  gap: 5px;
}
.size-dot {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--bg-alt);
  border-color: var(--text-light);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
}
/* ==================== CTA STRIP ==================== */
.promo-cta {
  background: var(--bg-alt);
  padding: 56px 40px;
  text-align: center;
  border-top: 1px solid rgba(215, 184, 153, 0.5);
  /* min-height: 300px;*/
}
.promo-cta .section-title {
  font-size: var(--fs-2xl);
  margin-bottom: 12px;
  /* min-height: 26px;*/
}
.promo-cta-sub {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  /* min-height: 18px;*/
}
.promo-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* ==================== PRODUCT MODAL ==================== */
.product-card { cursor: pointer;}
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.product-modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.product-modal-overlay.open .product-modal { transform: scale(1);}
.modal-img-wrap {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  height: 700px;
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.modal-cat {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.modal-name {
  font-family: var(--font);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.modal-desc {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-alt);
  padding-top: 18px;
}
.modal-price {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-sizes {
  display: flex;
  gap: 6px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--accent);}
/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .prodotti-hero {
    padding: 48px 20px 40px;
  }
  .promo-cta {
    padding: 40px 20px;
  }
  .products-grid{
    gap: 12px;
  }
  .product-modal {
    grid-template-columns: 1fr;
  }
  .modal-img-wrap,
  .modal-img-wrap img {
    min-height: 320px;
    height: 320px;
  }
}