/* ===== 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: 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-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.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 */
.fp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 1rem;
  padding: 0.35rem 0 0.75rem;
}

.fp-product-grid .fp-product-card {
  width: 100%;
  min-height: 278px;
}

.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 14px 32px rgba(36, 150, 63, 0.16);
  transform: translateY(-5px);
}

.fp-scroll-track .fp-product-card {
  flex: 0 0 188px;
  width: 188px;
  min-height: 278px;
  scroll-snap-align: start;
}

.fp-scroll-track .fp-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(36, 150, 63, 0.16);
}

.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-product-img {
  position: relative;
  height: 168px;
  padding: 0;
  display: block;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faf9 0%, #f0f4f2 100%);
  border-radius: 12px;
}

.fp-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.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 {
  padding: 0.75rem 0.9rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fp-product-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.38;
  margin-bottom: 0.25rem;
  min-height: 2.45em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1a1a;
  transition: color 0.2s ease;
}

.fp-product-card:hover .fp-product-name {
  color: #24963f;
}

.fp-product-weight {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-bottom: 0;
  min-height: 1.1em;
  font-weight: 500;
}

.fp-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid #f3f4f6;
}

.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: 64px;
  height: 32px;
  padding: 0 0.65rem;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #2daa4e 0%, #24963f 50%, #1a7a32 100%);
  box-shadow: 0 3px 10px rgba(36, 150, 63, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fp-view-btn i {
  font-size: 0.72rem;
}

.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-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, #2daa4e 0%, #24963f 55%, #1a7a32 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(36, 150, 63, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 150, 63, 0.45);
}

.pd-view-btn i {
  font-size: 1rem;
}

.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;
}

@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 .fp-scroll-row,
  .pd-related .fp-scroll-row {
    position: relative;
    gap: 0;
  }

  .fp-product-section .fp-carousel-wrap,
  .pd-related .fp-carousel-wrap {
    position: relative;
    width: 100%;
  }

  .fp-product-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 .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 .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 .fp-scroll-prev,
  .pd-related .fp-scroll-prev {
    left: 2px;
  }

  .fp-product-section .fp-scroll-next,
  .pd-related .fp-scroll-next {
    right: 2px;
  }

  .fp-product-section .fp-product-row.fp-scroll-track,
  .pd-related .fp-product-row.fp-scroll-track {
    gap: 0.65rem;
    padding: 0.2rem 0.35rem 0.5rem;
  }

  .fp-scroll-track .fp-product-card {
    flex: 0 0 148px;
    width: 148px;
    min-height: 0;
  }

  .fp-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.65rem;
    padding: 0.2rem 0 0.5rem;
  }

  .fp-product-grid .fp-product-card {
    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: 5px 5px 0;
  }

  .fp-discount-badge {
    top: 12px;
    left: 12px;
    font-size: 0.58rem;
    padding: 0.2rem 0.4rem;
  }

  .fp-product-img {
    height: 118px;
    border-radius: 10px;
  }

  .fp-img-overlay {
    display: none;
  }

  .fp-product-body {
    padding: 0.55rem 0.6rem 0.65rem;
  }

  .fp-product-name {
    font-size: 0.78rem;
    min-height: 2.2em;
    margin-bottom: 0.15rem;
  }

  .fp-product-weight {
    font-size: 0.68rem;
  }

  .fp-product-footer {
    padding-top: 0.45rem;
    gap: 0.35rem;
  }

  .fp-product-price strong {
    font-size: 0.9rem;
  }

  .fp-product-price s {
    font-size: 0.64rem;
  }

  .fp-view-btn {
    min-width: 54px;
    height: 28px;
    font-size: 0.6rem;
    border-radius: 7px;
    padding: 0 0.5rem;
  }

  .fp-view-btn i {
    font-size: 0.65rem;
  }

  .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 {
    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-card {
    padding: 0.75rem;
  }
}
