﻿.products-containers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 992px) {
  .products-containers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-containers {
    grid-template-columns: 1fr;
  }
}

.card-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

/* Selected product card glow */
.card-products.is-selected {
  border-color: rgba(180, 220, 255, 0.95);

  /* Stronger, more obvious selection ring + glow */
  box-shadow: 0 0 0 3px rgba(210, 235, 255, 0.98),
    0 0 0 6px rgba(120, 190, 255, 0.35), 0 10px 26px rgba(0, 0, 0, 0.12),
    inset 0 0 0 9999px rgba(160, 210, 255, 0.06);

  transform: translateY(-1px);
}

/* Optional: make the highlight pop a bit more on hover while selected */
.card-products.is-selected:hover {
  box-shadow: 0 0 0 3px rgba(210, 235, 255, 0.98),
    0 0 0 7px rgba(120, 190, 255, 0.42), 0 12px 28px rgba(0, 0, 0, 0.14),
    inset 0 0 0 9999px rgba(160, 210, 255, 0.07);
}

.card-img-tops {
  width: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  height: 230px;
}

.details-links {
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  color: #111;
  width: fit-content;
  line-height: 38px;
}

.card-body-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.card-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.card-actions.card-actions--row {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.card-actions.card-actions--row .details-links {
  margin-right: 0;
}

.card-actions.card-actions--row .product-card-buttons {
  width: 60%;
}

@media (max-width: 420px) {
  .card-actions.card-actions--row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-actions.card-actions--row .product-card-buttons {
    width: 100%;
  }
}

.details-links {
  background: none;
  border: none;
  font-weight: 600;
  text-decoration: underline;
  color: #111;
  cursor: pointer;
}

.product-card-buttons {
  width: 90%;
  border-radius: 15px 15px 0 15px !important;
}

.card-texts {
  font-size: 14px !important;
}

.card-texts {
  font-size: 14px;
  color: #555 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges {
  background: linear-gradient(90deg, #0088a9, #15998e);
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

.selected-productss {
  width: 60%;
  border-radius: 10px 10px 0 0;
  grid-template-columns: repeat(2, 1fr);
  display: grid;
  margin: 0 auto;
  color: #0088aa;
  position: fixed;
  height: auto;
  box-shadow: none;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  transform: none !important;
  flex-direction: column !important;
  padding: 0 30px;
  background-color: rgba(1, 89, 87, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-product-selecteds {
  width: 60px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  margin: 5px;
  border-radius: 50%;
}

.card-product-selecteds img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

.selected-numbers {
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  color: black !important;
  line-height: 1;
}

.selected-products-rows {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 10px 0;
}

.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 10px;
}

.pd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: right;
  z-index: 2000;
}

.pd-modal-xl {
  background: white;
  width: 50%;
  max-width: 1100px;
  padding: 10px 20px 20px 20px;
  max-height: 100vh;
  overflow: auto;
}

.pd-modal-xl::-webkit-scrollbar {
  display: none;
}

.pd-modal-xl {
  scrollbar-width: none;
}

.main-img {
  height: 200px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eee;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.tag-pill {
  background: #20c997;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 6px;
}

.bundle-accordion summary {
  cursor: pointer;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.bundle-content {
  padding: 10px;
  border-top: 0;
}

.carousel-wrapper {
  position: relative;
}

.main-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #eee;
}

.carousel-btn {
  position: absolute;
  top: 45%;
  background: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

.thumb-row {
  display: flex;
  gap: 8px;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}

.active-thumb {
  border: 2px solid #f0ad4e;
}

.color-font-class {
  color: #111 !important;
  font-weight: 800;
}

.color-font-class-normal {
  color: #000000 !important;
  font-weight: 400;
}

.products-scroll-area {
  padding-bottom: 180px;
}

.bundle-item {
  padding: 1.25rem 0;
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.bundle-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.bundle-arrow {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.bundle-arrow.open {
  transform: rotate(180deg);
}

.bundle-content {
  margin-top: 0.75rem;
}

.bundle-description {
  margin-bottom: 0.75rem;
  color: #333;
}

.bundle-madeby {
  margin-bottom: 1rem;
  color: #333;
}

.ingredients-header {
  background: #f3f3f3;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 400;
}

.ingredients-box {
  background: #f3f3f3;
  padding: 1rem;
}

.ingredient-block {
  margin-bottom: 1rem;
}

.ingredient-block p {
  margin: 0.25rem 0 0;
}

.bundle-divider {
  border-top: 1px solid black;
}

.pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pd-back-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  padding-left: 22px;
  font-weight: 400 !important;
}

.pd-back-btn::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 656px) {
  .pd-overlay {
    justify-content: center !important;
    align-items: center;
  }

  .card-img-tops {
    width: 100%;
    border-radius: 10px 10px 0 0;
    height: auto !important;
  }

  .pd-modal-xl {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 15px;
    background: #004439;
  }

  .below-des {
    background: #fff !important;
    padding: 15px;
  }

  .pd-header {
    margin: -15px -15px 0px -15px;
    padding: 12px 16px;
  }

  .pd-back-btn {
    min-height: 44px;
    padding-left: 28px;
    font-size: 16px;
    color: #fff !important;
  }

  .pd-back-btn::before {
    left: 8px;
  }

  .selected-productss {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
    border-radius: 16px 16px 0 0;
  }

  .selected-products-rows {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .card-product-selecteds {
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-product-selecteds img {
    border-radius: 16px 16px 0 16px;
  }

  .selected-numbers {
    font-size: 16px;
    font-weight: 600;
  }

  .confirm-buttons {
    margin-top: 0;
    width: auto;
  }

  .confirm-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
}

.chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  display: inline-block;
  margin-left: 8px;
}

.chevron.open {
  transform: rotate(-135deg);
}

.product-detail-actions {
  justify-content: flex-start !important;
  text-align: left !important;
}

.product-detail-actions {
  align-self: flex-start !important;
}

/* ── Product Suggestion Filter Bar ── */

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 16px;
  background: #004135;
  border-radius: 8px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
}

.filter-label {
  font-weight: 600;
  font-size: 1rem;
  color: #fff !important;
}

.filter-hint {
  font-size: 0.78rem;
  color: #fff !important;
  margin: 0;
}

.price-filter-row,
.category-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Base chip ── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #ccc;
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-chip:hover {
  border-color: #888;
  background: #f5f5f5;
}

/* ── Include state (single click) ── */
.filter-chip.active {
  background: #ffce5a;
  border-color: #ffce5a;
  color: #000;
}

.filter-chip.active:hover {
  opacity: 0.92;
}

/* ── Exclude state (click again) ── */
.filter-chip.excluded {
  border-style: dashed;
  background: #f8d7da;
  color: #842029;
  border-color: #d9534f;
  text-decoration: line-through;
}

.filter-chip.excluded:hover {
  opacity: 0.92;
}

.filter-chip .exclude-icon {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Reset chip ── */
.filter-chip.filter-chip-reset {
  border-style: dashed;
  color: #888;
  font-size: 0.8rem;
}

.filter-chip.filter-chip-reset:hover {
  color: #333;
  border-color: #666;
}

/* Ensure selected product thumbnails stay perfectly round */
.selected-product-img {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ─────────────────────────────────────────────────────────────
   Mobile bottom-sheet filter (ProductListBlazor)
   ───────────────────────────────────────────────────────────── */

/* Desktop-only / Mobile-only helpers */
.psm-desktop-only {
  display: block;
}

.psm-mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .psm-desktop-only {
    display: none !important;
  }

  .psm-mobile-only {
    display: block !important;
  }
}

/* Mobile filter trigger button row */
.psm-filter-trigger-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.psm-filter-trigger {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #111;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Overlay */
.psm-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1050;
}

/* Panel (bottom sheet) */
.psm-filter-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1051;
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 220ms ease;
  will-change: transform;
}

.psm-filter-panel.open {
  transform: translateY(0);
}

.psm-filter-sheet {
  background: #0a4b43; /* deep green */
  color: #fff;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.psm-filter-header {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.5rem;
  background: rgba(0, 0, 0, 0.12);
}

.psm-filter-grabber {
  grid-column: 1 / -1;
  justify-self: center;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.4rem;
}

.psm-filter-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.psm-filter-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.25rem 0.25rem;
}

.psm-filter-body {
  padding: 0.75rem 1rem 1.1rem;
  overflow: auto;
}

/* Make labels readable on dark sheet (chips keep their own colors) */
.psm-filter-panel .filter-label {
  color: rgba(255, 255, 255, 0.92) !important;
}

.psm-filter-panel .filter-hint {
  color: rgba(255, 255, 255, 0.7) !important;
}
