/* Same category layout rules as products/posters/index.php. */

/* ===============================
   SHARED HERO + CARD STYLES
   (copied from Flyers / BC pages)
=============================== */

.flyers-header-container {
  position: relative;
  width: 100%;
  margin: 20px 0;
  overflow: hidden;
}

.flyers-header-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.flyers-header-overlay {
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  transform: translateY(-50%);
  max-width: 460px;
  color: #111;
}

.flyers-header-overlay h1 {
  margin: 0 0 10px 0;
  font-size: 36px;
  font-weight: 700;
}

.flyers-header-overlay p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.right_content {
  padding-right: 10px;
}

/* Product cards */
.border-product.flyer-card {
  border: none;
  padding: 0;
  margin: 15px;
  width: 196px;
  max-width: 100%;
  min-width: 0;
}

.border-product.flyer-card > a:first-child {
  display: block;
  width: 100%;
  overflow: hidden;
}

.border-product.flyer-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.border-product.flyer-card h5 {
  margin: 6px 0 4px 0;
  padding: 0 10px;
}

.border-product.flyer-card .flyer-card-price {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #3583c1;
}

.border-product.flyer-card .btn {
  display: block;
  margin: 6px auto 10px auto;
}

/* Mobile */
@media (max-width: 767px) {

  .product-section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .border-product.flyer-card {
    margin: 0;
    width: 100%;
  }

  .right_content,
  .product-section,
  .flyers-header-container,
  .flyers-size-heading {
    padding-left: 12px;
    padding-right: 12px;
  }

  .flyers-header-container {
    display: none;
  }
}

/* Shorter frames match the supplied beta thumbnails without side cropping. */
.border-product.flyer-card img{aspect-ratio:5/3;object-fit:cover}
.right_content .product-section .border-product.flyer-card h5{margin:8px 0 4px;padding:0 10px}
/* Original A4 menu artwork on the right, fading into the text background. */
.menus-category-banner{aspect-ratio:5/1;min-height:220px;max-height:280px;background:#f2eee8}
.menus-category-banner>.flyers-header-img{position:absolute;inset:0 0 0 auto;width:auto;max-width:60%;height:100%;max-height:none;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent 0%,#000 35%)}
.menus-category-banner::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#f2eee8 0%,#f2eee8 48%,rgba(242,238,232,.95) 58%,rgba(242,238,232,0) 78%)}
.menus-category-banner>.flyers-header-overlay{z-index:1}
