/* =====================
   BFF PAGE RESET
===================== */

/* Prevent global section padding from stacking */
body.page-bff section {
  padding: 10px;
}

/* =====================
   HERO
===================== */
.brand-hero-inner {
  max-width: 1200px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
}

.brand-logo img {
  width: 220px;
  height: auto;
  display: block;
}

.brand-text p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  padding: 10px 10px;
}


/* Rounded corners (images or containers) */
body.page-bff .brand-box img,
body.page-bff .brand-story img,
body.page-bff .brand-box,
body.page-bff .brand-story {
  border-radius: 24px;
}

body.page-bff .brand-box,
body.page-bff .brand-story {
  overflow: hidden;
}

/* =====================
   DESCRIPTION
===================== */
body.page-bff .brand-description {
  max-width: 900px;
  margin: 32px auto 56px;
  padding: 0 20px;
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
}

/* =====================
   PRODUCTS
===================== */
body.page-bff .brand-products {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

body.page-bff .product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;

  padding: 40px;
  border-radius: 32px;
  margin-bottom: 48px;
}

body.page-bff .product-row img {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

body.page-bff .product-row a {
  display: block;
  transition: transform 0.2s ease;
}

body.page-bff .product-row a:hover {
  transform: scale(1.05);
}

/* =====================
   PRODUCTS (NEW GRID)
===================== */
body.page-bff .brand-products {
  max-width: 1200px;
  margin: 64px auto;
  padding: 0 16px;
}

/* GRID */
body.page-bff .brand-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
   gap: 20px 24px;
}

/* PRODUCT CARD */
body.page-bff .product-card {
  border-radius: 28px;
  padding: 24px;
flex-direction: column; 
  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease;
  text-decoration: none;
}

body.page-bff .product-card:hover {
  transform: translateY(-6px);
}

/* COLORS */
body.page-bff .product-card.orange {
  background: #f6822a;
}

body.page-bff .product-card.green {
  background: #004d1a;
}

/* IMAGE */
body.page-bff .product-card img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
}


/* =====================
   CTA
===================== */
body.page-bff .brand-cta {
  text-align: center;
  padding: 15px  15px;
}

body.page-bff .brand-cta a {
  display: inline-block;
  background: #006400;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

body.page-bff .brand-cta a:hover {
  background: #009900;
}

/* =====================
   PRODUCT CARD CONTENT
===================== */

/* MAIN IMAGE */
body.page-bff .product-main {
  display: flex;
  justify-content: center;
  align-items: center;
}

body.page-bff .product-main img {
  max-width: 220px;
  width: 100%;
  height: auto;
}

/* INFO IMAGES ROW */
body.page-bff .product-info {
  display: flex;
  gap: 20px;
margin-top: 14px;
  width: 100%;
  justify-items: center;
}

body.page-bff .product-info img {
  width: 100%;
  max-width: 120px;
  margin: auto;
}

/* =====================
   AVAILABLE PRODUCTS
===================== */
.product-tiles-grid {
  max-width: 1200px;
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* TILE */
.product-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
.product-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 16px;
}

.product-slider img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  animation: fadeSlider 16s infinite;
}

.product-slider img:nth-child(1) { animation-delay: 0s; }
.product-slider img:nth-child(2) { animation-delay: 4s; }
.product-slider img:nth-child(3) { animation-delay: 8s; }
.product-slider img:nth-child(4) { animation-delay: 12s; }

@keyframes fadeSlider {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

.brand-products-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  align-items: stretch;
}

.page-recipe-tailor {
  --pill-color: #b23927;
}

.page-bff {
  --pill-color: #67003f;
}

.product-pill {
  display: flex;             
  align-items: center;          
  justify-content: center;
  
  padding: 0 5px 0 5px;

  width: 100%;
  min-height: 50px;
  background-color: var(--pill-color);
  color: #ffffff;
  border-radius: 16px;

  text-align: center;
  white-space: normal;         
  line-height: 1.3;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {

  body.page-bff .brand-hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  body.page-bff .brand-box img {
    width: 300px;
    height: 300px;
  }

  body.page-bff .product-row {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px;
  }
}

@media (max-width: 480px) {

  body.page-bff .brand-hero {
    padding: 15px 16px 15px;
  }

  body.page-bff .brand-description {
    margin: 24px auto 40px;
    font-size: 16px;
  }

  body.page-bff .product-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
    margin-bottom: 40px;
  }

  body.page-bff .brand-cta a {
    font-size: 16px;
    padding: 12px 32px;
  }
}
