/* ===== Food Products Pages ===== */

.food-products-page {
  --ft-accent: #24963f;
  --ft-accent-dark: #1a7a32;
  --ft-pink-bg: #e8f8ed;
  background: #f8f8f8;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.food-products-page .fp-main,
.food-products-page .pd-main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.food-products-page #fpProductSections {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.food-products-page .ft-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.food-products-page .auth-modal-icon-signup,
.food-products-page .auth-submit-signup {
  background: linear-gradient(135deg, #2daa4e, var(--ft-accent));
}

.food-products-page .auth-submit-signup:hover {
  background: linear-gradient(135deg, var(--ft-accent), var(--ft-accent-dark));
}

.food-products-page .auth-input-wrap:focus-within {
  box-shadow: 0 0 0 3px rgba(36, 150, 63, 0.15);
}

.fp-main,
.pd-main {
  padding-bottom: 2rem;
}

.fp-breadcrumb,
.pd-breadcrumb {
  padding-top: 1rem;
  margin-bottom: 1rem;
}

/* Top bar */
.fp-top-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.fp-location {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.fp-location > i {
  font-size: 1.35rem;
  color: var(--ft-accent);
}

.fp-location strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.fp-location span {
  font-size: 0.82rem;
  color: var(--ft-gray);
}

.fp-top-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
}

.fp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ft-dark);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.fp-filter-btn:hover,
.fp-filter-btn.active {
  border-color: var(--ft-accent);
  background: #e8f8ed;
  color: var(--ft-accent);
}

.fp-filter-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.fp-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ft-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.fp-filter-modal {
  width: min(860px, 100%);
  max-height: min(620px, calc(100dvh - 3rem));
}

.fp-filter-product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-filter-product-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.fp-filter-product-item:last-child {
  border-bottom: none;
}

.fp-filter-product-item:hover {
  background: #f0faf3;
  color: inherit;
}

.fp-filter-product-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #ebebeb;
}

.fp-filter-product-body {
  flex: 1;
  min-width: 0;
}

.fp-filter-product-name {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ft-dark);
}

.fp-filter-product-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ft-gray);
}

.fp-filter-product-price {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ft-dark);
}

.fp-filter-empty {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--ft-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.fp-filter-radio-count {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ft-gray);
  font-weight: 500;
}

.hr-filter-radio {
  width: 100%;
}

.hr-filter-radio span:not(.hr-filter-radio-mark):not(.fp-filter-radio-count) {
  flex: 1;
  min-width: 0;
}

.fp-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  z-index: 120;
  transition: border-radius 0.2s ease, box-shadow 0.2s ease;
}

.fp-search-wrap.is-open {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.fp-search-wrap i.bi-search {
  color: var(--ft-gray);
  flex-shrink: 0;
}

.fp-search-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  min-width: 0;
}

.fp-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.fp-search-clear:hover {
  background: #eff6ff;
}

.fp-search-dropdown {
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  max-height: 420px;
  overflow-y: auto;
}

.fp-search-section {
  padding: 0.5rem 0;
}

.fp-search-section + .fp-search-section {
  border-top: 1px solid #f0f0f0;
}

.fp-search-section-label {
  margin: 0;
  padding: 0.5rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ft-gray);
}

.fp-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-search-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.fp-search-item:hover {
  background: #f0faf3;
}

.fp-search-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #ebebeb;
}

.fp-search-thumb.fp-search-thumb-round {
  border-radius: 12px;
}

.fp-search-item-body {
  flex: 1;
  min-width: 0;
}

.fp-search-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--ft-dark);
  line-height: 1.35;
}

.fp-search-item-name strong {
  color: #24963f;
  font-weight: 700;
}

.fp-search-item-meta {
  font-size: 0.78rem;
  color: var(--ft-gray);
  margin: 0;
}

.fp-search-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ft-dark);
  flex-shrink: 0;
}

.fp-search-empty {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  color: var(--ft-gray);
  font-size: 0.88rem;
}

.fp-search-empty i {
  font-size: 1.1rem;
  opacity: 0.6;
}

.fp-search-view-all {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #24963f;
  text-decoration: none;
  border: none;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fp-search-view-all:hover {
  background: #f0faf3;
  color: #1a7a32;
}

/* Hero banner — auto carousel */
.fp-hero-banner {
  margin-bottom: 1.25rem;
}

.fp-hero-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(36, 150, 63, 0.12);
  aspect-ratio: 7 / 2;
}

.fp-hero-carousel.carousel {
  height: auto;
}

.fp-hero-carousel .carousel-inner {
  border-radius: inherit;
  height: 100%;
}

.fp-hero-carousel .carousel-item {
  height: 100%;
}

.fp-hero-full-link {
  display: block;
  overflow: hidden;
  line-height: 0;
  height: 100%;
}

.fp-hero-full-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
}

.fp-hero-carousel .carousel-control-prev { left: 0.75rem; }
.fp-hero-carousel .carousel-control-next { right: 0.75rem; }

.fp-hero-carousel .carousel-control-prev,
.fp-hero-carousel .carousel-control-next {
  width: 34px;
  height: 34px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  opacity: 1;
  z-index: 3;
}

.fp-hero-carousel .carousel-control-prev-icon,
.fp-hero-carousel .carousel-control-next-icon {
  filter: invert(1);
  width: 1rem;
  height: 1rem;
}

.fp-hero-carousel .carousel-indicators {
  margin-bottom: 0.65rem;
}

.fp-hero-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Promo cards — full image, no crop */
.fp-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: start;
}

.fp-promo-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
  background: #fff;
  border: 1px solid #eef0f2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(36, 150, 63, 0.14);
}

.fp-promo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Categories */
.fp-categories {
  margin-bottom: 2rem;
}

.fp-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Side arrows — outside scroll area */
.fp-scroll-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fp-scroll-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #2daa4e 0%, #24963f 55%, #1a7a32 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(36, 150, 63, 0.35);
  transition: all 0.22s ease;
}

.fp-scroll-arrow:hover:not(.is-disabled):not(:disabled) {
  background: linear-gradient(135deg, #24963f 0%, #1a7a32 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(36, 150, 63, 0.45);
  transform: scale(1.08);
}

.fp-scroll-arrow:active:not(.is-disabled):not(:disabled) {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(36, 150, 63, 0.3);
}

.fp-scroll-arrow.is-disabled,
.fp-scroll-arrow:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  border: 1.5px solid #c8ebd4;
  background: #e8f8ed;
  color: #8ecfaa;
  box-shadow: none;
}

.fp-scroll-arrow:focus-visible:not(.is-disabled):not(:disabled) {
  outline: 2px solid #24963f;
  outline-offset: 2px;
}

.fp-category-carousel-wrap,
.fp-carousel-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.fp-category-carousel-wrap {
  position: relative;
}

.fp-category-track,
.fp-scroll-track {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 0.25rem 0.15rem 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fp-category-track::-webkit-scrollbar,
.fp-scroll-track::-webkit-scrollbar {
  display: none;
}

.fp-product-row.fp-scroll-track {
  gap: 1.1rem;
  align-items: stretch;
  padding: 0.35rem 0.15rem 0.75rem;
}

.fp-category-card {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ft-dark);
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

.fp-category-card:hover {
  transform: translateY(-4px);
  color: var(--ft-accent);
}

.fp-category-img {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid #ebebeb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fp-category-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.fp-category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fp-category-icon-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ft-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.fp-category-card:hover .fp-category-img img {
  transform: scale(1.08);
}

.fp-category-card:hover .fp-category-shade {
  opacity: 1;
}

.fp-category-card.active .fp-category-img {
  border-color: var(--ft-accent);
  box-shadow: 0 6px 20px rgba(36, 150, 63, 0.22);
}

.fp-category-card.active .fp-category-name {
  color: var(--ft-accent);
}

.fp-category-name {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  max-width: 132px;
}

/* Product sections */
.fp-product-section {
  margin-bottom: 2rem;
}

.fp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fp-section-head-left {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.fp-section-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.fp-section-head a {
  color: #24963f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.fp-section-head a:hover {
  text-decoration: underline;
}

.fp-section-head-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fp-section-count {
  font-size: 0.82rem;
  color: var(--ft-gray);
  font-weight: 500;
}

.fp-view-hidden {
  display: none !important;
}

/* Subcategory grid */
.fp-subcategories {
  margin-bottom: 2rem;
}

.fp-subcategories-head {
  align-items: center;
  gap: 0.75rem 1rem;
}

.fp-subcategories-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-subcategories-back {
  white-space: nowrap;
}

.fp-subcategories-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fp-subcat-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e8eaed;
  color: #3d4043;
  box-shadow: none;
}

.fp-subcat-arrow:hover:not(.is-disabled):not(:disabled) {
  background: #dde1e6;
  color: #1a1a1a;
  box-shadow: none;
  transform: none;
}

.fp-subcat-arrow.is-disabled,
.fp-subcat-arrow:disabled {
  background: #f1f3f4;
  color: #b0b3b8;
  opacity: 1;
}

.fp-subcategory-carousel-wrap {
  width: 100%;
}

.fp-subcategory-track.fp-scroll-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3.75rem) / 4);
  gap: 1.35rem 1.25rem;
  align-items: start;
  padding: 0.2rem 0.1rem 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

@media (max-width: 1100px) {
  .fp-subcategory-track.fp-scroll-track {
    grid-auto-columns: calc((100% - 2.5rem) / 3);
    gap: 1.2rem 1.25rem;
  }
}

.fp-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.fp-subcategory-grid--images {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.fp-subcategory-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  min-width: 0;
  scroll-snap-align: start;
  transition: transform 0.22s ease;
}

.fp-subcategory-tile:hover {
  transform: translateY(-2px);
  color: inherit;
  border: none;
  box-shadow: none;
}

.fp-subcategory-tile-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 16px;
}

.fp-subcategory-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.fp-subcategory-tile:hover .fp-subcategory-tile-img img {
  transform: scale(1.05);
}

.fp-subcategory-tile-body {
  padding: 0.7rem 0.15rem 0.15rem;
}

.fp-subcategory-tile-brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1c1c1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-subcategory-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.fp-subcategory-card:hover {
  border-color: #b8e6c8;
  box-shadow: 0 10px 24px rgba(36, 150, 63, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.fp-subcategory-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.fp-subcategory-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-subcategory-body {
  flex: 1;
  min-width: 0;
}

.fp-subcategory-body h3 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ft-dark);
}

.fp-subcategory-body span {
  font-size: 0.76rem;
  color: var(--ft-gray);
}

.fp-subcategory-arrow {
  flex-shrink: 0;
  color: #c5c9d0;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.fp-subcategory-card:hover .fp-subcategory-arrow {
  color: #24963f;
  transform: translateX(2px);
}

.fp-subcategory-card:hover .fp-subcategory-body h3 {
  color: #24963f;
}

/* Product rows — fixed 6-per-row grid, no slider */
.fp-product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.35rem 0 0.75rem;
  align-items: stretch;
}

.fp-product-grid .fp-product-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
}

@media (max-width: 1200px) {
  .fp-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .fp-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .fp-product-grid,
  .fp-product-grid--brand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

@media (max-width: 560px) {
  .fp-product-grid,
  .fp-product-grid--brand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .fp-product-grid .fp-product-card,
  .fp-product-grid--brand .fp-product-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
  }

  .fp-product-grid .fp-product-img-wrap,
  .fp-product-grid--brand .fp-product-img-wrap {
    min-height: 140px;
    height: auto;
  }

  .fp-product-grid .fp-product-img,
  .fp-product-grid--brand .fp-product-img {
    min-height: 140px;
    height: 148px;
    padding: 0.45rem;
  }

  .fp-product-grid .fp-product-img img,
  .fp-product-grid--brand .fp-product-img img {
    max-height: 140px;
    object-fit: cover;
  }

  .fp-product-grid .fp-company-logo,
  .fp-product-grid--brand .fp-company-logo,
  .fp-product-grid--related .fp-company-logo {
    top: auto;
    left: auto;
    bottom: 8px;
    right: 8px;
    width: auto;
    height: auto;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
  }

  .fp-product-grid .fp-company-logo.has-logo,
  .fp-product-grid--brand .fp-company-logo.has-logo,
  .fp-product-grid--related .fp-company-logo.has-logo {
    width: auto;
    height: 38px;
    min-width: 84px;
    padding: 0.3rem 0.85rem;
  }

  .fp-product-grid .fp-company-logo-img,
  .fp-product-grid--brand .fp-company-logo-img,
  .fp-product-grid--related .fp-company-logo-img {
    height: 22px;
    max-width: 96px;
    padding: 0;
  }

  .fp-product-grid .fp-company-logo-name,
  .fp-product-grid--brand .fp-company-logo-name,
  .fp-product-grid--related .fp-company-logo-name {
    font-size: 0.72rem;
    max-width: 8rem;
  }

  .fp-product-grid .fp-product-body,
  .fp-product-grid--brand .fp-product-body {
    --fp-body-pad-x: 0.6rem;
    padding: 0.55rem var(--fp-body-pad-x) 0.65rem;
    justify-content: flex-start;
    text-align: left;
  }

  .fp-product-grid .fp-product-name,
  .fp-product-grid--brand .fp-product-name {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .fp-product-grid .fp-company-name,
  .fp-product-grid--brand .fp-company-name,
  .fp-product-grid--related .fp-company-name {
    font-size: 0.58rem;
    height: 20px;
  }

  .fp-product-grid .fp-product-footer,
  .fp-product-grid--brand .fp-product-footer {
    margin-top: auto;
    justify-content: flex-start;
  }

  .fp-product-grid .fp-view-btn,
  .fp-product-grid--brand .fp-view-btn {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 72px;
    height: 34px;
    font-size: 0.74rem;
    padding: 0 0.75rem;
  }

  .fp-product-grid--related,
  .pd-related .fp-product-grid--related {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem;
    width: 100%;
    overflow: visible;
  }

  .fp-product-grid--related .fp-product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }

  /* Non-home product lists stay as 2-col grid on mobile */
  .fp-product-sections:not(.fp-home-view) .fp-product-section .fp-scroll-row .fp-scroll-arrow,
  .bd-products-section .fp-scroll-row .fp-scroll-arrow,
  .pd-related .fp-scroll-row .fp-scroll-arrow {
    display: none;
  }

  .fp-product-sections:not(.fp-home-view) .fp-product-section .fp-scroll-row,
  .bd-products-section .fp-scroll-row,
  .pd-related .fp-scroll-row {
    display: block;
    width: 100%;
  }

  .fp-product-sections:not(.fp-home-view) .fp-product-section .fp-carousel-wrap,
  .bd-products-section .fp-carousel-wrap,
  .pd-related .fp-carousel-wrap {
    width: 100%;
    overflow: visible;
  }

  .fp-product-sections:not(.fp-home-view) .fp-product-section .fp-product-row.fp-scroll-track,
  .bd-products-section .fp-product-row.fp-scroll-track,
  .pd-related .fp-product-row.fp-scroll-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    overflow: visible;
    padding: 0;
    width: 100%;
  }

  .fp-product-sections:not(.fp-home-view) .fp-product-section .fp-scroll-track .fp-product-card,
  .bd-products-section .fp-scroll-track .fp-product-card,
  .pd-related .fp-scroll-track .fp-product-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  /* Home page — keep horizontal product slides on mobile */
  .fp-home-view .fp-home-slide-section .fp-carousel-wrap {
    width: 100%;
    overflow: hidden;
  }

  .fp-home-view .fp-home-slide-section .fp-product-row.fp-scroll-track {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0.2rem 0 0.5rem;
    width: 100%;
  }

  .fp-home-view .fp-home-slide-section .fp-scroll-track .fp-product-card {
    flex: 0 0 62% !important;
    width: 62% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0;
    height: auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
  }

  .fp-home-view .fp-home-slide-section .fp-product-img-wrap {
    padding: 6px 6px 0;
  }

  .fp-home-view .fp-home-slide-section .fp-product-img {
    height: 128px;
    border-radius: 10px;
  }

  .fp-home-view .fp-home-slide-section .fp-product-img img {
    object-fit: cover;
    object-position: center;
  }

  .fp-home-view .fp-home-slide-section .fp-product-body {
    --fp-body-pad-x: 0.55rem;
    padding: 0.45rem var(--fp-body-pad-x) 0.55rem;
  }

  .fp-home-view .fp-home-slide-arrows {
    display: inline-flex;
  }

  .fp-home-view .fp-home-arrow {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .fp-product-grid,
  .fp-product-grid--brand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fp-product-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.fp-no-results {
  color: var(--ft-gray);
  padding: 2rem;
  grid-column: 1 / -1;
}

.fp-product-section.is-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.fp-product-section.is-empty .fp-section-head {
  flex-shrink: 0;
}

.fp-empty-state {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 42vh, 460px);
  padding: 2.5rem 1.5rem;
  margin: 0.5rem 0 1rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #dce3e8;
  border-radius: 16px;
}

.fp-empty-state > i {
  font-size: 2.75rem;
  color: #c5d0c9;
  margin-bottom: 1rem;
}

.fp-empty-state p {
  margin: 0 0 1rem;
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ft-gray);
}

.fp-empty-state-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #e8f8ed;
  color: #24963f;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.fp-empty-state-link:hover {
  background: #24963f;
  color: #fff;
}

/* Product card */
.fp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.fp-product-card:hover {
  border-color: #b8e6c8;
  box-shadow: 0 10px 24px rgba(36, 150, 63, 0.14);
  transform: translateY(-4px);
}

.fp-scroll-track .fp-product-card {
  flex: 0 0 236px;
  width: 236px;
  min-height: 0;
  height: auto;
  align-self: stretch;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.fp-scroll-track .fp-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(36, 150, 63, 0.14);
}

.fp-product-img-wrap {
  position: relative;
  flex-shrink: 0;
  padding: 8px 8px 0;
}

.fp-discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: linear-gradient(135deg, #24963f, #1a7a32);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(36, 150, 63, 0.4);
}

.fp-company-logo {
  --fp-tag-blue: #2f6fed;
  position: absolute;
  top: auto;
  left: auto;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  width: auto;
  max-width: calc(100% - 16px);
  min-width: 0;
  height: auto;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.08),
    0 8px 18px rgba(15, 23, 42, 0.12);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-company-logo:hover {
  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.1),
    0 12px 24px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.fp-company-logo.has-logo {
  width: auto;
  min-width: 92px;
  height: 42px;
  padding: 0.4rem 0.95rem;
  background: #ffffff;
}

.fp-company-logo--name {
  background: #ffffff;
}

.fp-company-logo-img {
  position: static;
  inset: auto;
  width: auto;
  height: 26px;
  max-width: 108px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
  z-index: 1;
  display: block;
  image-rendering: auto;
  filter: contrast(1.12) saturate(1.1);
}

.fp-company-logo-name {
  display: block;
  max-width: 9rem;
  color: var(--fp-tag-blue);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-company-logo.has-logo .fp-company-logo-name[hidden] {
  display: none;
}

.fp-company-logo-initials {
  color: var(--fp-tag-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.fp-brand-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fp-brand-banner-logo {
  flex-shrink: 0;
  width: 120px;
  height: 64px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fp-brand-banner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px 10px;
  display: block;
}

.fp-brand-banner-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--fp-brand-hue, 140) 55% 38%);
}

.fp-brand-banner-text {
  flex: 1;
  min-width: 140px;
}

.fp-brand-banner-text h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

.fp-brand-banner-text .fp-section-count {
  display: block;
  margin-top: 0.2rem;
}

.fp-brand-banner-back {
  margin-left: auto;
  color: #24963f;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.fp-brand-banner-back:hover {
  color: #1a7a32;
  text-decoration: underline;
}

.fp-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.fp-brand-carousel-section {
  margin-top: 0.5rem;
}

.fp-brand-carousel-head {
  align-items: center;
  gap: 0.75rem 1rem;
}

.fp-brand-carousel-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-brand-carousel-back {
  white-space: nowrap;
}

.fp-brand-carousel-arrows {
  display: none;
}

.fp-brand-slide-section .fp-brand-carousel-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fp-brand-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: static;
  transform: none;
  box-shadow: 0 2px 8px rgba(36, 150, 63, 0.28);
}

.fp-brand-arrow:hover:not(.is-disabled):not(:disabled) {
  transform: scale(1.05);
}

.fp-brand-arrow:active:not(.is-disabled):not(:disabled) {
  transform: scale(0.96);
}

.fp-brand-carousel-wrap {
  width: 100%;
}

.fp-home-slide-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fp-home-slide-arrows {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.fp-home-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: static;
  transform: none;
  box-shadow: 0 2px 8px rgba(36, 150, 63, 0.28);
}

.fp-home-arrow:hover:not(.is-disabled):not(:disabled) {
  transform: scale(1.05);
}

.fp-home-arrow:active:not(.is-disabled):not(:disabled) {
  transform: scale(0.96);
}

.fp-home-slide-section .fp-carousel-wrap {
  width: 100%;
}

.fp-brand-slide-section .fp-company-track.fp-scroll-track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 0.25rem 0 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fp-brand-slide-section .fp-company-track.fp-scroll-track::-webkit-scrollbar {
  display: none;
}

.fp-brand-slide-section .fp-company-track .fp-company-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  width: calc((100% - 2rem) / 3);
  min-width: 0;
  max-width: none;
  scroll-snap-align: start;
}

.fp-company-grid-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  padding: 0.15rem 0 0.35rem;
  box-sizing: border-box;
}

.fp-company-grid-row .fp-company-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.fp-company-card {
  --fp-company-pad-x: 0.85rem;
  --fp-company-pad-y: 0.85rem;
  --fp-company-gap: 0.55rem;
  --fp-company-thumb: 80px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  min-height: 0;
  box-sizing: border-box;
}

.fp-company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(36, 150, 63, 0.14);
  border-color: #b8e6c8;
  color: inherit;
}

.fp-company-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--fp-company-gap);
  padding: var(--fp-company-pad-y) var(--fp-company-pad-x) 0.5rem;
  box-sizing: border-box;
  width: 100%;
}

.fp-company-card-head .fp-company-card-cta {
  margin-left: auto;
}

.fp-company-card-brand-logo {
  flex-shrink: 0;
  width: var(--fp-company-thumb);
  height: var(--fp-company-thumb);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ecf0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.fp-company-card-brand-logo:not(.has-logo) {
  background: linear-gradient(145deg, hsl(var(--fp-brand-hue, 140) 55% 42%), hsl(calc(var(--fp-brand-hue, 140) + 20) 60% 52%));
  border-color: transparent;
}

.fp-company-card-brand-logo:hover {
  border-color: #b8e6c8;
  box-shadow: 0 4px 12px rgba(36, 150, 63, 0.14);
  transform: none;
}

.fp-company-card-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.4rem;
  display: block;
  background: #fff;
  box-sizing: border-box;
}

.fp-company-card-media {
  display: none;
}

.fp-company-card-logo {
  display: none;
}

.fp-company-card-initials {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.fp-company-card-brand-logo.has-logo .fp-company-card-initials {
  color: hsl(var(--fp-brand-hue, 140) 55% 38%);
}

.fp-company-card-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
}

.fp-company-card-meta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-company-card:hover .fp-company-card-meta h3 {
  color: #24963f;
}

.fp-company-card-meta > span {
  display: block;
  margin-top: 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.2;
}

.fp-company-card-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #2aad48 0%, #24963f 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(36, 150, 63, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fp-company-card-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #24963f 0%, #1a7a32 100%);
  box-shadow: 0 5px 14px rgba(36, 150, 63, 0.45);
  transform: scale(1.04);
}

.fp-company-card-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--fp-company-gap);
  align-items: stretch;
  padding: 0 var(--fp-company-pad-x) var(--fp-company-pad-y);
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.fp-company-card-products::-webkit-scrollbar {
  display: none;
}

.fp-company-card-products::before,
.fp-company-card-products::after {
  display: none;
  content: none;
}

.fp-company-product-thumb {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e8ecf0;
  box-shadow: none;
  display: block;
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-company-product-thumb:hover {
  transform: none;
  border-color: #b8e6c8;
  box-shadow: 0 4px 12px rgba(36, 150, 63, 0.14);
}

.fp-company-product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  margin: 0;
  display: block;
  box-sizing: border-box;
}

.fp-company-product-thumb--logo {
  width: 100%;
  background: #fff;
}

.fp-company-product-thumb--logo img {
  object-fit: contain;
  padding: 0.4rem;
  background: #fff;
}

.fp-company-product-thumb--logo .fp-company-card-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1100px) {
  .fp-company-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-brand-slide-section .fp-company-track .fp-company-card {
    flex: 0 0 calc((100% - 1rem) / 2);
    width: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 900px) {
  .fp-company-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
  }

  .fp-company-grid-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .fp-brand-slide-section .fp-company-track .fp-company-card {
    flex: 0 0 86%;
    width: 86%;
  }
}

@media (max-width: 560px) {
  .fp-company-card {
    --fp-company-thumb: 68px;
    --fp-company-pad-x: 0.7rem;
    --fp-company-pad-y: 0.7rem;
  }

  .fp-company-card-meta h3 {
    font-size: 0.95rem;
  }
}

.fp-company-logo-initials {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.fp-product-img {
  position: relative;
  height: 168px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf9 0%, #f0f4f2 100%);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.fp-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.fp-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(36, 150, 63, 0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fp-product-card:hover .fp-img-overlay {
  opacity: 1;
}

.fp-product-card:hover .fp-product-img img {
  transform: scale(1.06);
}

.fp-product-body {
  --fp-body-pad-x: 0.75rem;
  padding: 0.5rem var(--fp-body-pad-x) 0.7rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 0;
  gap: 0.28rem;
}

/* Left-flush green brand tag — flat left, rounded right */
.fp-company-name {
  --fp-brand-tag-bg: #24963f;
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: calc(100% + var(--fp-body-pad-x));
  height: 24px;
  margin: 0.05rem 0 0.1rem calc(-1 * var(--fp-body-pad-x));
  padding: 0 0.85rem 0 var(--fp-body-pad-x);
  font-size: 0.64rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  background: var(--fp-brand-tag-bg);
  border: 0;
  border-radius: 0 999px 999px 0;
  box-sizing: border-box;
  line-height: 1;
  z-index: 1;
  clip-path: none;
  -webkit-clip-path: none;
}

.fp-company-name::before,
.fp-company-name::after {
  content: none;
  display: none;
}

.fp-product-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  min-height: calc(1.25em * 2);
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  text-align: left;
  transition: color 0.2s ease;
}

.fp-product-card:hover .fp-product-name {
  color: #24963f;
}

.fp-product-weight {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.fp-product-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: none;
  width: 100%;
}

.fp-product-price {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.fp-product-price strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.fp-product-price s {
  font-size: 0.7rem;
  color: #b0b5bd;
  line-height: 1.2;
}

.fp-view-btn {
  flex-shrink: 0;
  min-width: 78px;
  height: 34px;
  padding: 0 0.8rem;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #3bb85a 0%, #2daa4e 45%, #24963f 100%);
  box-shadow: 0 3px 10px rgba(36, 150, 63, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fp-view-btn i {
  font-size: 0.8rem;
}

.fp-product-card:hover .fp-view-btn {
  background: linear-gradient(135deg, #24963f 0%, #1a7a32 100%);
  box-shadow: 0 5px 14px rgba(36, 150, 63, 0.45);
  transform: scale(1.06);
}

/* ===== Product Detail Page ===== */
.pd-layout {
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pd-thumbs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pd-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover {
  border-color: #b8e6c8;
  transform: translateY(-2px);
}

.pd-thumb.active {
  border-color: #24963f;
  box-shadow: 0 0 0 2px rgba(36, 150, 63, 0.2);
}

.pd-details-block {
  margin-bottom: 2rem;
}

.pd-details-heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ft-dark);
}

.pd-details-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pd-main-img {
  position: relative;
  border: none;
  padding: 0;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
  aspect-ratio: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pd-main-img:hover img {
  transform: scale(1.04);
}

.fp-img-overlay-lg {
  font-size: 0.95rem;
}

.fp-img-overlay-lg i {
  font-size: 1.25rem;
}

.pd-main-img:hover .fp-img-overlay {
  opacity: 1;
}

.pd-info-card {
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 16px;
  padding: 1.5rem 1.65rem;
  height: 100%;
}

.pd-brand {
  font-size: 0.88rem;
  color: var(--ft-gray);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.pd-info-card h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  color: #111;
}

.pd-weight {
  color: var(--ft-gray);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8eaed;
}

.pd-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pd-rating-score {
  background: #24963f;
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.pd-rating-score i {
  font-size: 0.65rem;
}

.pd-rating-count {
  font-size: 0.85rem;
  color: var(--ft-gray);
}

.pd-price-box {
  margin-bottom: 1.15rem;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pd-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.pd-mrp {
  font-size: 1rem;
  color: #9ca3af;
}

.pd-save {
  font-size: 0.88rem;
  color: #24963f;
  font-weight: 600;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8eaed;
}

.pd-tag {
  font-size: 0.88rem;
  font-weight: 500;
  color: #4b5563;
}

.pd-desc-block {
  margin-top: 0.25rem;
}

.pd-desc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #111;
}

.pd-desc-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 0.85rem;
}

.pd-desc-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pd-desc-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.45;
}

.pd-desc-highlights i {
  color: #24963f;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

body.fp-lightbox-open {
  overflow: hidden;
}

.fp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 1rem;
}

.fp-lightbox[hidden] {
  display: none !important;
}

.fp-lightbox-body img {
  max-width: min(92vw, 720px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.fp-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Tabs */
.pd-tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.pd-tab {
  padding: 0.85rem 1.25rem;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ft-gray);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.pd-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ft-accent);
  transform: scaleX(0);
  transition: transform var(--ft-transition);
}

.pd-tab.active {
  color: var(--ft-accent);
}

.pd-tab.active::after {
  transform: scaleX(1);
}

.pd-panel {
  display: none;
}

.pd-panel.active {
  display: block;
}

.pd-about-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.pd-about-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.pd-about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.25rem 0 0.65rem;
}

.pd-about-card > p {
  color: var(--ft-gray);
  line-height: 1.75;
  font-size: 0.93rem;
}

.pd-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-highlight-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--ft-dark);
}

.pd-highlight-list i {
  color: #24963f;
}

.pd-details-table {
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}

.pd-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.pd-detail-row:last-child {
  border-bottom: none;
}

.pd-detail-row span {
  color: var(--ft-gray);
  flex-shrink: 0;
}

.pd-detail-row strong {
  text-align: right;
  font-weight: 500;
}

.pd-nutrition-note {
  font-size: 0.85rem;
  color: var(--ft-gray);
  margin-bottom: 1rem;
}

.pd-related {
  margin-top: 2rem;
}

.fp-product-grid--related {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .fp-product-grid--related {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fp-product-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .fp-product-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
  }

  .fp-product-grid--related .fp-product-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }
}

@media (max-width: 991.98px) {
  .fp-hero-carousel {
    aspect-ratio: 5 / 2;
  }

  .fp-promo-row {
    grid-template-columns: 1fr;
  }

  .fp-category-card {
    flex: 0 0 118px;
  }

  .fp-category-img {
    width: 118px;
    height: 118px;
  }

  .fp-category-name {
    max-width: 118px;
    font-size: 0.72rem;
  }

  .pd-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 767.98px) {
  .fp-hero-carousel {
    aspect-ratio: 2 / 1;
  }

  .fp-hero-carousel .carousel-control-prev,
  .fp-hero-carousel .carousel-control-next {
    width: 30px;
    height: 30px;
  }

  .fp-category-card {
    flex: 0 0 108px;
  }

  .fp-category-img {
    width: 108px;
    height: 108px;
    border-radius: 14px;
  }

  .fp-scroll-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .fp-scroll-row {
    gap: 0.5rem;
  }

  /* Product carousels — overlay arrows, compact cards */
  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-row,
  .pd-related .fp-scroll-row {
    position: relative;
    gap: 0;
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-carousel-wrap,
  .pd-related .fp-carousel-wrap {
    position: relative;
    width: 100%;
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-arrow,
  .pd-related .fp-scroll-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 12px rgba(36, 150, 63, 0.4);
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-arrow:hover:not(.is-disabled):not(:disabled),
  .pd-related .fp-scroll-arrow:hover:not(.is-disabled):not(:disabled) {
    transform: translateY(-50%) scale(1.06);
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-arrow:active:not(.is-disabled):not(:disabled),
  .pd-related .fp-scroll-arrow:active:not(.is-disabled):not(:disabled) {
    transform: translateY(-50%) scale(0.95);
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-prev,
  .pd-related .fp-scroll-prev {
    left: 2px;
  }

  .fp-product-section:not(.fp-brand-carousel-section):not(.fp-home-slide-section) .fp-scroll-next,
  .pd-related .fp-scroll-next {
    right: 2px;
  }

  .fp-home-slide-nav {
    width: auto;
    margin-left: auto;
  }

  .fp-home-slide-arrows {
    display: inline-flex;
  }

  .fp-home-arrow {
    width: 34px;
    height: 34px;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .fp-brand-carousel-nav {
    width: auto;
    margin-left: auto;
  }

  .fp-brand-carousel-arrows {
    display: none;
  }

  .fp-brand-slide-section .fp-brand-carousel-arrows {
    display: inline-flex;
  }

  .fp-brand-slide-section .fp-brand-arrow {
    width: 34px;
    height: 34px;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .fp-product-section .fp-product-row.fp-scroll-track,
  .pd-related .fp-product-row.fp-scroll-track {
    gap: 0.65rem;
    padding: 0.2rem 0 0.5rem;
  }

  .fp-product-row.fp-scroll-track .fp-product-card,
  .fp-scroll-track .fp-product-card {
    flex: 0 0 calc((100% - 1.3rem) / 3);
    width: calc((100% - 1.3rem) / 3);
    min-height: 0;
  }

  .fp-product-grid,
  .fp-product-grid--brand,
  .fp-product-grid--related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.2rem 0 0.5rem;
    width: 100%;
  }

  .fp-product-grid .fp-product-card,
  .fp-product-grid--brand .fp-product-card,
  .fp-product-grid--related .fp-product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    min-height: 0;
  }

  .fp-product-section,
  .pd-related {
    margin-bottom: 1.35rem;
  }

  .fp-section-head {
    margin-bottom: 0.65rem;
  }

  .fp-section-head h2 {
    font-size: 1.15rem;
  }

  .fp-section-count {
    font-size: 0.76rem;
  }

  .fp-section-head a {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .fp-product-img-wrap {
    padding: 6px 6px 0;
  }

  .fp-discount-badge {
    top: 12px;
    left: 12px;
    font-size: 0.58rem;
    padding: 0.2rem 0.4rem;
  }

  .fp-company-logo {
    top: auto;
    left: auto;
    bottom: 8px;
    right: 8px;
    width: auto;
    height: auto;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
  }

  .fp-company-logo.has-logo {
    width: auto;
    height: 38px;
    min-width: 84px;
    padding: 0.3rem 0.85rem;
  }

  .fp-company-logo-img {
    height: 22px;
    max-width: 96px;
    padding: 0;
  }

  .fp-company-logo-name {
    font-size: 0.72rem;
    max-width: 8rem;
  }

  .fp-company-logo-initials {
    font-size: 0.72rem;
  }

  .fp-brand-banner {
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
  }

  .fp-brand-banner-logo {
    width: 96px;
    height: 52px;
  }

  .fp-brand-banner-text h2 {
    font-size: 1.15rem;
  }

  .fp-company-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .fp-company-card {
    --fp-company-pad-x: 0.75rem;
    --fp-company-pad-y: 0.75rem;
    --fp-company-gap: 0.45rem;
    --fp-company-thumb: 72px;
  }

  .fp-company-card-head {
    padding: var(--fp-company-pad-y) var(--fp-company-pad-x) 0.45rem;
  }

  .fp-company-card-brand-logo {
    width: var(--fp-company-thumb);
    height: var(--fp-company-thumb);
    border-radius: 10px;
  }

  .fp-company-card-meta h3 {
    font-size: 0.95rem;
  }

  .fp-company-card-cta {
    padding: 0.3rem 0.55rem;
    font-size: 0.62rem;
  }

  .fp-company-card-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0 var(--fp-company-pad-x) var(--fp-company-pad-y);
    gap: var(--fp-company-gap);
  }

  .fp-company-product-thumb,
  .fp-company-product-thumb--logo {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .fp-company-logo-initials {
    font-size: 0.6rem;
  }

  .fp-product-img {
    height: 120px;
    border-radius: 10px;
  }

  .fp-img-overlay {
    display: none;
  }

  .fp-product-body {
    --fp-body-pad-x: 0.55rem;
    padding: 0.45rem var(--fp-body-pad-x) 0.55rem;
    text-align: left;
    align-items: stretch;
  }

  .fp-company-name {
    font-size: 0.58rem;
    height: 20px;
    text-align: left;
  }

  .fp-company-name::before,
  .fp-company-name::after {
    content: none;
    display: none;
  }

  .fp-product-name {
    font-size: 0.78rem;
    min-height: calc(1.25em * 2);
    margin-bottom: 0;
    text-align: left;
  }

  .fp-product-weight {
    font-size: 0.68rem;
  }

  .fp-product-footer {
    padding-top: 0.3rem;
    margin-top: auto;
    gap: 0.35rem;
    justify-content: flex-start;
  }

  .fp-product-price strong {
    font-size: 0.9rem;
  }

  .fp-product-price s {
    font-size: 0.64rem;
  }

  .fp-view-btn {
    min-width: 72px;
    height: 34px;
    font-size: 0.74rem;
    border-radius: 9px;
    padding: 0 0.75rem;
  }

  .fp-view-btn i {
    font-size: 0.8rem;
  }

  .fp-scroll-track .fp-product-card:hover,
  .fp-product-grid .fp-product-card:hover {
    transform: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    border-color: #eef0f2;
  }

  .fp-product-card:hover .fp-product-name,
  .fp-product-card:hover .fp-product-name a {
    color: #1a1a1a;
  }

  .fp-top-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-top-actions {
    flex-direction: column;
  }

  .fp-filter-btn {
    justify-content: center;
    width: 100%;
  }

  .fp-subcategory-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .fp-subcategory-grid--images {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem 0.85rem;
  }

  .fp-subcategories-nav {
    width: 100%;
    justify-content: space-between;
  }

  .fp-subcategory-track.fp-scroll-track {
    grid-auto-columns: calc((100% - 0.85rem) / 2);
    gap: 1.1rem 0.85rem;
  }

  .fp-subcategory-card {
    padding: 0.75rem;
  }

  .fp-subcategory-tile-img {
    border-radius: 12px;
    aspect-ratio: 16 / 11;
  }

  .fp-subcategory-tile-body {
    padding: 0.55rem 0.05rem 0.1rem;
  }

  .fp-subcategory-tile-brand {
    font-size: 0.92rem;
  }
}

/* ===== Brand / Company detail page ===== */
html:has(body.brand-detail-page),
body.brand-detail-page {
  /* overflow-x: hidden breaks position:sticky and leaves empty left space on scroll */
  overflow-x: clip;
}

.brand-detail-page {
  --bd-header-offset: 5.75rem;
}

.brand-detail-page .bd-main {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.bd-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.bd-sidebar {
  position: sticky;
  top: var(--bd-header-offset);
  align-self: start;
  z-index: 20;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  max-height: calc(100vh - var(--bd-header-offset) - 1rem);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.bd-sidebar-search {
  position: relative;
  margin-bottom: 0.85rem;
}

.bd-sidebar-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
}

.bd-sidebar-search input,
.bd-filter-group select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.85rem;
  color: #111;
}

.bd-sidebar-search input {
  padding: 0.65rem 0.75rem 0.65rem 2.1rem;
}

.bd-filter-group {
  margin-bottom: 0.75rem;
}

.bd-filter-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bd-filter-group select {
  padding: 0.55rem 0.7rem;
}

.bd-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.65rem;
}

.bd-brands-dropdown {
  margin-top: 0.35rem;
}

.bd-brands-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0.65rem 0 0.65rem;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.bd-brands-toggle i {
  font-size: 0.95rem;
  color: #6b7280;
  transition: transform 0.2s ease;
  display: none;
}

.bd-brand-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bd-brand-ref {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bd-brand-ref:hover,
.bd-brand-ref.is-active {
  background: #f3faf5;
  border-color: #c8ebd3;
}

.bd-brand-ref-logo {
  width: 48px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(145deg, hsl(var(--fp-brand-hue, 140) 55% 42%), hsl(calc(var(--fp-brand-hue, 140) + 20) 60% 52%));
  flex-shrink: 0;
  overflow: hidden;
}

.bd-brand-ref-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bd-brand-ref-body strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-brand-ref-body small {
  font-size: 0.68rem;
  color: #9ca3af;
}

.bd-brand-ref-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.bd-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bd-company-header {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.bd-header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: start;
}

.bd-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.bd-logo {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: linear-gradient(145deg, hsl(var(--fp-brand-hue, 140) 55% 42%), hsl(calc(var(--fp-brand-hue, 140) + 20) 60% 52%));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bd-logo.has-logo {
  width: 140px;
  height: 88px;
  background: #fff;
}

.bd-logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 10px 12px;
  z-index: 1;
}

.bd-logo-initials {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.bd-brand-ref-logo.has-logo {
  width: 48px;
  height: 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.bd-brand-ref-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px 5px;
  display: block;
}

.bd-fssai-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  min-width: 72px;
}

.bd-fssai-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a7a32;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.bd-fssai-badge small {
  font-size: 0.55rem;
  color: #6b7280;
  line-height: 1.2;
  text-align: center;
}

.bd-header-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #111;
}

.bd-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

.bd-address-line,
.bd-contact-line {
  font-size: 0.84rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.bd-address-line i,
.bd-contact-line i {
  color: #24963f;
}

.bd-contact-line a {
  color: #1a7a32;
  text-decoration: none;
  font-weight: 500;
}

.bd-contact-line a:hover {
  text-decoration: underline;
}

.bd-header-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: 0.45rem;
}

.bd-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bd-action-btn:hover,
.bd-action-btn.is-saved {
  border-color: #24963f;
  background: #f3faf5;
  color: #1a7a32;
}

.bd-action-whatsapp:hover {
  border-color: #25d366;
  background: #f0fdf4;
  color: #128c7e;
}

.bd-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.82rem;
  color: #4b5563;
}

.bd-header-meta a {
  color: #1a7a32;
  text-decoration: none;
  font-weight: 600;
}

.bd-section h2,
.bd-subheading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #111;
}

.bd-subheading {
  font-size: 1.05rem;
  margin-top: 1rem;
}

.bd-card {
  background: #fff;
  border: 1px solid #111;
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
}

.bd-overview-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #111;
  margin-bottom: 0.75rem;
}

.bd-about-company-card {
  border: 1px solid #111;
  border-radius: 2px;
  padding: 0.9rem 1rem;
}

.bd-marketer {
  font-size: 0.88rem;
  color: #4b5563;
  margin: 0;
}

.bd-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem 1rem;
}

.bd-services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: #374151;
}

.bd-services-list i {
  color: #24963f;
  margin-top: 0.15rem;
}

.bd-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.bd-photo {
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 1;
  cursor: pointer;
}

.bd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bd-photo:hover img {
  transform: scale(1.05);
}

.bd-info-table,
.bd-item-table {
  display: flex;
  flex-direction: column;
}

.bd-info-row,
.bd-item-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.bd-info-row:last-child,
.bd-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bd-info-row:first-child,
.bd-item-row:first-child {
  padding-top: 0;
}

.bd-info-row span,
.bd-item-row span {
  color: #4b5563;
  font-weight: 500;
}

.bd-info-row strong,
.bd-item-row strong {
  color: #111;
  font-weight: 600;
  word-break: break-word;
}

.bd-veg-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid #24963f;
  position: relative;
  vertical-align: middle;
}

.bd-veg-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #24963f;
}

.bd-item-details {
  border: none;
}

.bd-item-details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.bd-item-details > summary::-webkit-details-marker {
  display: none;
}

.bd-item-details > summary h2 {
  margin: 0;
}

.bd-item-details > summary i {
  transition: transform 0.2s ease;
}

.bd-item-details:not([open]) > summary i {
  transform: rotate(180deg);
}

.bd-item-table-card {
  border-color: #d1d5db;
}

.bd-info-tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.85rem;
}

.bd-info-tab {
  border: none;
  background: none;
  padding: 0.55rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}

.bd-info-tab.active {
  color: #24963f;
  border-bottom-color: #24963f;
}

.bd-more-block {
  margin-bottom: 1.15rem;
}

.bd-more-block:last-child {
  margin-bottom: 0;
}

.bd-more-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #374151;
}

.bd-more-block p {
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.bd-more-block p span {
  color: #6b7280;
}

.bd-more-block a {
  color: #8b1a2b;
  font-weight: 600;
  text-decoration: none;
}

.bd-more-block a:hover {
  text-decoration: underline;
}

.bd-map-wrap {
  margin: 0.85rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}

.bd-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.bd-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1a7a32;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.bd-map-link:hover {
  text-decoration: underline;
}

.bd-social-card p {
  margin-bottom: 0.85rem;
  color: #4b5563;
}

.bd-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.bd-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #111;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  background: #fff;
}

.bd-social-btn:hover {
  border-color: #24963f;
  color: #1a7a32;
  background: #f3faf5;
}

.bd-empty {
  color: #9ca3af;
  font-size: 0.88rem;
  margin: 0;
}

.bd-products-section .fp-section-head {
  margin-bottom: 0.5rem;
}

.fp-product-grid--brand {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .fp-product-grid--brand {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fp-product-grid--brand {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fp-product-name a,
.fp-company-name {
  text-decoration: none;
}

.fp-product-name a {
  color: #111827;
}

.fp-company-name:hover {
  color: #ffffff;
  background: #1a7a32;
  text-decoration: none;
}

.fp-product-card:hover .fp-product-name a {
  color: #24963f;
}

.fp-view-btn {
  text-decoration: none;
}

.pd-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pd-company-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 2rem;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: linear-gradient(135deg, #2daa4e 0%, #24963f 55%, #1a7a32 100%);
  box-shadow: 0 4px 14px rgba(36, 150, 63, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-company-btn i {
  font-size: 1rem;
}

.pd-company-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 150, 63, 0.45);
}

.pd-brand a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.pd-brand a:hover {
  color: #24963f;
  text-decoration: underline;
}

.pd-usage-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.bd-more-info-card {
  border: 1px solid #e5e7eb;
}

@media (max-width: 992px) {
  .brand-detail-page {
    --bd-header-offset: 4.75rem;
  }

  .bd-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .bd-sidebar {
    position: static;
    max-height: none;
    z-index: auto;
  }

  .bd-content {
    gap: 0.75rem;
  }

  .bd-brands-toggle {
    pointer-events: auto;
    cursor: pointer;
    padding: 0.75rem 0.9rem;
    margin: 0.35rem 0 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
  }

  .bd-brands-toggle i {
    display: inline-block;
  }

  .bd-brands-dropdown.is-open .bd-brands-toggle {
    border-color: #b8e6c8;
    background: #f3faf5;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .bd-brands-dropdown.is-open .bd-brands-toggle i {
    transform: rotate(180deg);
    color: #24963f;
  }

  .bd-brands-dropdown.is-mobile .bd-brand-list {
    display: none;
    max-height: min(55vh, 420px);
    overflow: auto;
    padding: 0.55rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fff;
  }

  .bd-brands-dropdown.is-mobile.is-open .bd-brand-list {
    display: flex;
  }

  .bd-header-top {
    grid-template-columns: 1fr;
  }

  .bd-header-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .bd-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-info-row,
  .bd-item-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .bd-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
