:root {
  --green: #1a6b3a; --green-light: #2d8f52; --green-pale: #e8f5ee;
  --gold: #c8922a; --gold-light: #f0c96a;
  --dark: #111a14; --mid: #3d4f42; --muted: #7a8c7e;
  --border: #d4e0d8; --bg: #f4f8f5; --white: #ffffff; --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

.ifs-products-page {
    background-color: #f5f5f5;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--dark); padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; position: sticky; top: 0; z-index: 400;
  border-bottom: 3px solid var(--green);
}
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: #fff; letter-spacing: 2px; }
.logo span { color: var(--gold-light); }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-badge { font-family: 'DM Mono', monospace; font-size: 0.67rem; color: var(--green-light); border: 1px solid var(--green); padding: 3px 10px; border-radius: 20px; letter-spacing: 1px; white-space: nowrap; }
.header-search { position: relative; }
.header-search input { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; border: 1.5px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 7px 12px 7px 32px; outline: none; width: 220px; background: rgba(255,255,255,0.08); color: #fff; transition: all 0.2s; }
.header-search input::placeholder { color: rgba(255,255,255,0.35); }
.header-search input:focus { border-color: var(--green-light); background: rgba(255,255,255,0.12); }
.header-search .si { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 0.9rem; pointer-events: none; }



/* ═══════════════════════════════════════
   FILTER PANEL — BV Foods row style
   Each filter = labelled row of pills
═══════════════════════════════════════ */
.filter-panel {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky; top: 60px; z-index: 90;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  display: flex;
  justify-content: center;
  padding: 15px 20px 0;
  flex-wrap: wrap;
  background-color:var(--e-global-color-primary);
}

/* Collapsed/expanded toggle header */
.filter-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; cursor: pointer; min-height: 48px;
  transition: border-color 0.2s;
  user-select: none;
  width:100%;
  max-width:1400px;
}
.filter-toggle.open { border-bottom-color: var(--border); }
.filter-toggle-left { display: flex; align-items: center; gap: 12px; }
.filter-toggle-icon {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.filter-toggle-icon img{
	filter: brightness(0) invert(1);
}

.filter-toggle-label {     
	font-size: 1em;
    font-weight: 300;
    color: #FFF;
    letter-spacing: 0.3px;
    font-family: "Poppins", Sans-serif;
}
.filter-active-preview { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; }
.fap-chip { font-family: "Poppins", Sans-serif; border:1px solid #FFF; color: #fff; font-size: 0.8rem; font-weight: 400; padding: 2px 8px; border-radius: 10px; }

.filter-toggle-right { display: flex; align-items: center; gap: 14px; }
.filter-clear-btn { font-size: 0.73rem; font-weight: 600; color: #FFF; background: none; border: 1px solid #FFF; padding: 4px 10px; border-radius: 20px; cursor: pointer; transition: all 0.15s; display: none; }
.filter-clear-btn.vis { display: block; }
.filter-chevron { font-size: 0.6rem; color: #CCC; transition: transform 0.2s; }
.filter-toggle.open .filter-chevron { transform: rotate(180deg); }

/* Results count inline */
.results-inline { font-family: "Poppins", Sans-serif; font-size: 1rem; color: #FFF; }

/* Filter body — the rows */
.filter-body { display: none; padding: 0 0 16px; width:100%;max-width:1400px;gap: 15px;align-items: flex-start;}
.filter-body.open { display: flex;}

/* A single filter ROW: label + pills */
.filter-row {
  display: flex; align-items: flex-start; gap: 0;
  padding: 10px 0;
  flex-direction: column;
}
.filter-row:last-child { border-bottom: none; }

.filter-row-label {
  font-size: 0.68rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: #FFF;
  min-width: 130px; flex-shrink: 0;
  padding-bottom: 7px;
  font-family: "Poppins", Sans-serif;
}

.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }

/* Individual pill button */
.fp {
  border: none;
  background: var(--white); color:#333;
  font-family: "Poppins", Sans-serif; font-size: 0.75rem; font-weight: 400;
  padding: 5px 14px; border-radius: 20px; cursor: pointer;
  transition: all 0.14s; line-height: 1.1; white-space: nowrap;
}
.fp:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.fp.active {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 2px 6px rgba(26,107,58,0.25);
}

/* ─── SPEC DOWNLOAD BUTTON ─── */
.spec-btn {
  display: block; margin-top: 10px;
  background:#FFF; color: var(--e-global-color-primary); text-align: center;
  padding: 6px 10px; font-size: 1rem; font-weight: 500;
  letter-spacing: 0.4px; border-radius: 5px; text-decoration: none;
  font-family: "Poppins", sans-serif; cursor: pointer;
  margin-top:20px;
  border: 1px var(--e-global-color-primary) solid; width: 100%;
  transition: background 0.15s;
}
.spec-btn:hover { background:var(--e-global-color-primary); color:#FFF; }


.product-card.new .pictures.slider:after {
    content: 'NEW';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--e-global-color-primary);
    padding: 5px 15px;
    color: #FFF;
    font-weight: 700;
    font-size: 14px;
}

button.spec-btn.disabled {
    color: #666;
    background-color: #f5f5f5;
    border-color: #666;
}

/* ─── MAIN ─── */
.main-content { max-width: 1440px; margin: 50px auto 0; padding: 1.2rem 2rem 4rem; }

.section-header { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 0.9rem; padding-top: 1.8rem; border-top: 2px solid var(--border); }
.section-header:first-of-type { border-top: none; padding-top: 0; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.65rem; letter-spacing: 2px; color: var(--dark); line-height: 1; }
.section-count { font-family: 'DM Mono', monospace; font-size: 0.69rem; color: var(--muted); margin-bottom: 2px; }
.subsection-label { font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); margin: 1.1rem 0 0.6rem; display: flex; align-items: center; gap: 8px; }
.subsection-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── PRODUCT CARDS ─── */
.main-content { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.main-content.noresults{grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));}
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 40px; transition: all 0.2s; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover {border:1px solid var(--e-global-color-primary);}
.product-card.hidden { display: none; }
.card-name {     line-height: 1.2;
    color: var(--dark);
    margin-bottom: 10px;
    font-family: "Poppins", Sans-serif;
    font-size: 22px;
	padding: 30px 50px 20px 0;
    font-weight: 700;
    text-align: left;
	border-bottom:1px solid #CCC;
	min-height:104px;
}
.card-codes { display: flex;gap: 10px; margin-bottom: 10px; margin-top:10px; }
.code-block { flex-grow: 1;}
.code-block-label { font-family: "Poppins", Sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--e-global-color-secondary); }
.code-val {  font-family: "Poppins", Sans-serif; font-size: 1.2rem; font-weight: 500; color: #333; line-height: 1;}
.card-commodity { display: flex; align-items: center; gap: 6px;}
.card-commodity-label { font-family: "Poppins", Sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--e-global-color-secondary); }
.card-commodity-val { font-family: "Poppins", Sans-serif; font-size: 1rem; font-weight: 500; color: #333; margin-left: 2px; font-style:italic; line-height: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: auto; padding: 10px 0; }
.tag {     font-size: 0.8rem;
    font-weight: 500;
    padding: 0;
    text-transform: uppercase;
    font-family: "Poppins", Sans-serif; 
	border-bottom: 1px #666 solid;
	color:#666;
}

.new-ribbon { position: absolute; top: 9px; right: -1px; background: var(--gold); color: white; font-size: 0.58rem; font-weight: 700; letter-spacing: 1px; padding: 3px 9px 3px 7px; border-radius: 4px 0 0 4px; }

.back-top { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--green); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.2); transition: all 0.2s; opacity: 0; pointer-events: none; z-index: 300; }
.back-top.vis { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--green-light); transform: translateY(-2px); }


.pictures {
	margin: -40px 0 0 -40px;
    width: calc(100% + 80px);
    border-radius: 5px 5px 0 0;	
	overflow:hidden;
}

.pictures img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.no-results {
    display: none;
    text-align: center;
    padding: 40px 20px;
	width:100%;
}

.no-results.show {
    display: block;
}

.no-results__content {
    margin: 0 auto;
	max-width:830px;
}

.no-results__text {
	font-family: "Poppins", Sans-serif;
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.no-results__action {
	font-family: "Poppins", Sans-serif;
    background: none;
    border: 1px solid var(--e-global-color-primary);
    border-radius: 25px;
    color: var(--e-global-color-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
}

.no-results__action:hover {
    opacity: 0.8;
}

@media (max-width: 1024px) {
	div#filter-body {
		flex-direction: column;
		gap: 0;
	}
	.filter-row {
		padding: 10px 0 0 0;
	}
	#fap{
		display:none;
	}
	.main-content {
		margin: 0;
		padding: 20px;
		gap: 20px;
	}
	.pictures img {
		height: 200px;
	}
}

.pictures.slider {
    position: relative;
    overflow: hidden;
}
.pictures .slide img {
    width: 100%;
    display: block;
}
.pictures .slider-dots {
    text-align: center;
    position: absolute;
    width: 100%;
    z-index: 9;
    bottom: 0;
    background-color: #00000088;
}
.pictures .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.pictures .dot.active {
    background: #FFF;
}

.pictures.slider {
    position: relative;
    min-height: 180px;
    overflow: hidden;
}
.pictures .slider-track {
    display: flex;
    transition: transform 0.5s;
    width: 100%;
    height: 100%;
}
.pictures .slide {
    opacity: 0;
	flex: 0 0 100%;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0; width: 100%;
    transition: opacity 0.5s;
}
.pictures .slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}


@media (max-width: 750px) {
  .filter-row { flex-direction: column; gap: 6px; }
  .filter-row-label { min-width: auto; padding: 0; }
  .main-content, .filter-body, .filter-toggle { padding-left: 1rem; padding-right: 1rem; }
  
  .filter-body{
	  background-color:#a10823;
  }
  
  div#filter-panel {
	padding: 10px 0 0 0;
  }
  span.filter-toggle-label, .results-inline {
    font-size: 0.8em;
  }
  .filter-chevron{
	  font-size:1em;
  }
  .filter-toggle-right{
	  gap:10px;
  }
  .pictures img {
		height: 250px;
	}
}