/*
 * Product listing (.plp-page: /sf, /ss, /s, /search, /similar) and product details
 * (.pdp-page: /dp/..., /dp/.../product-reviews) page styles.
 * Loaded only by those views; every rule is scoped to .plp-page / .pdp-page.
 */

/* ---------- shared: hero, breadcrumb, separation strip ---------- */
.plp-page .hero p,
.pdp-page .hero p {
  width: auto;
  max-width: 540px;
}
.plp-page .breadcrumb-box .breadcrumb,
.pdp-page .breadcrumb-box .breadcrumb {
  flex-wrap: wrap;
  row-gap: 4px;
}
.plp-page .breadcrumb-box .breadcrumb-item,
.pdp-page .breadcrumb-box .breadcrumb-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.plp-page .hero .sub-heading,
.pdp-page .hero .sub-heading {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.plp-page .product-card .product-details h4,
.pdp-page .product-card .product-details h4 {
  overflow-wrap: anywhere;
}

/* product cards: keep a fixed image area even when an image is missing */
.plp-page .product-card .image-box img,
.pdp-page .product-card .image-box img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e9e5e5;
}
.plp-page .product-card,
.pdp-page .product-card,
.plp-page .product-card .card,
.pdp-page .product-card .card {
  height: 100%;
}

/* ---------- "you may also like" / "paws for the best" block ---------- */
.plp-page .pet-products .product-card,
.pdp-page .pet-products .product-card {
  width: 100%;
}

/* ---------- details: gallery, info block ---------- */
.pdp-page .product-details .product-image-carousel .carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 520px;
  object-fit: contain;
  background: #f4f1f1;
}
.pdp-page .product-details .product-image-carousel.has-thumbs {
  margin-bottom: 90px;
}
.pdp-page .product-details .product-image-carousel .carousel-indicators {
  bottom: -85px;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0;
  padding-bottom: 4px;
}
.pdp-page .product-details .product-image-carousel .carousel-indicators button {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  text-indent: 0;
  opacity: 0.6;
  background: #f4f1f1;
}
.pdp-page .product-details .product-image-carousel .carousel-indicators button.active {
  opacity: 1;
  border-color: var(--secondary);
}
.pdp-page .product-details .product-image-carousel .carousel-control-prev,
.pdp-page .product-details .product-image-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  margin: 0 10px;
  border-radius: 50%;
  background: rgba(0, 52, 89, 0.55);
  opacity: 1;
}
.pdp-page .product-details .product-image-carousel .carousel-control-prev-icon,
.pdp-page .product-details .product-image-carousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}
.pdp-page .product-details .details .heading {
  overflow-wrap: anywhere;
}
.pdp-page .product-details .details .product-title .price {
  flex-wrap: wrap;
  row-gap: 6px;
}
.pdp-page .product-details .details .first-subscription {
  flex-wrap: wrap;
}
.pdp-page .purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pdp-page .purchase-actions .button {
  width: auto;
  min-width: 150px;
  margin: 0;
}
.pdp-page .purchase-actions .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pdp-page .purchase-actions .button:disabled:hover {
  background: var(--secondary);
  color: var(--light);
}
.pdp-page .stock-note {
  font-weight: 600;
  font-size: 14px;
}
.pdp-page .stock-note.out {
  color: #d63939;
  font-weight: 600;
  font-size: 14px;
}
.pdp-page .stock-note.in {
  color: #1a7340;
}
.pdp-page .stock-note.low {
  color: #a35200;
}
.pdp-page .stock-note.cart {
  color: var(--black);
  font-weight: 400;
}
.pdp-page .stock-note.cart a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.pdp-page .purchase-actions .wishlist-button i.fas {
  color: #e0474c;
}

/* ---------- details / all reviews: rating summary, review list, review form ---------- */
.pdp-page .product-reviews .review-box {
  flex-wrap: wrap;
  row-gap: 24px;
}
.pdp-page .product-reviews .write-review .button {
  width: auto;
  min-width: 175px;
  white-space: nowrap;
}
.pdp-page .product-reviews .review-note {
  max-width: 360px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #f4f1f1;
  color: var(--text-color);
  font-size: 15px;
}
.pdp-page .product-reviews .reviews-wrapper .review-content p {
  overflow-wrap: anywhere;
}
.pdp-page .product-reviews .reviews-wrapper .pagination .button {
  width: auto;
}
.pdp-page .all-reviews-page .rating-bars {
  flex: 1 1 260px;
  max-width: 420px;
}
.pdp-page .all-reviews-page .rating-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}
.pdp-page .all-reviews-page .rating-bar-label {
  flex: 0 0 38px;
  white-space: nowrap;
}
.pdp-page .all-reviews-page .rating-bar-label i {
  color: var(--secondary);
  font-size: 12px;
}
.pdp-page .all-reviews-page .rating-bar .progress {
  flex: 1 1 auto;
  height: 8px;
}
.pdp-page .all-reviews-page .rating-bar .progress-bar {
  background: var(--secondary);
}
.pdp-page .all-reviews-page .rating-bar-percent {
  flex: 0 0 40px;
  text-align: right;
}
.pdp-page .all-reviews-page .all-ratings {
  font-size: 20px;
}
.pdp-page .review-modal .modal-body .review-form .rating-box i {
  font-size: inherit;
}
.pdp-page .review-modal .rating {
  font-size: 9px;
}

/* ---------- <= 1199px ---------- */
@media (max-width: 1199px) {
  .pdp-page .product-reviews .current-reviews {
    padding-right: 40px;
  }
  .pdp-page .product-reviews .review-box {
    gap: 40px;
  }
}

/* ---------- <= 991px: stack filters above the grid, single column details ---------- */
@media (max-width: 991.98px) {
  .plp-page .pet-products .pet-feature-col,
  .pdp-page .pet-products .pet-feature-col {
    display: none;
  }
  .plp-page .pet-products .pet-tagline-col,
  .pdp-page .pet-products .pet-tagline-col {
    order: -1;
  }
  .plp-page .pet-products .tagline h3,
  .pdp-page .pet-products .tagline h3 {
    margin-left: 0;
    justify-content: center;
  }
  .pdp-page .product-details .product-image-carousel {
    position: relative;
    top: 0;
  }
  .pdp-page .product-details .product-image-carousel .carousel-item img {
    max-height: 440px;
  }
}

/* ---------- <= 767px: phones ---------- */
@media (max-width: 767.98px) {
  .plp-page .section,
  .pdp-page .section {
    padding: 50px 0;
  }
  .plp-page .section.separation,
  .pdp-page .section.separation {
    padding: 12px 0 0;
  }
  .plp-page .product-category-section.pt-0,
  .plp-page .pet-products.pb-0,
  .pdp-page .product-description.pb-0 {
    padding-top: 0;
  }
  .pdp-page .product-description.pb-0 {
    padding-top: 40px;
  }
  .plp-page .hero,
  .pdp-page .hero {
    margin-top: 20px;
  }
  .plp-page .hero .sub-heading,
  .pdp-page .hero .sub-heading {
    font-size: 30px;
  }
  .plp-page .hero p,
  .pdp-page .hero p {
    font-size: 15px;
    margin-bottom: 24px !important;
  }
  .plp-page .hero .breadcrumb-box,
  .pdp-page .hero .breadcrumb-box {
    margin-bottom: 16px !important;
  }
  .plp-page .breadcrumb-box .breadcrumb-item a,
  .pdp-page .breadcrumb-box .breadcrumb-item a,
  .plp-page .breadcrumb-box .breadcrumb-item,
  .pdp-page .breadcrumb-box .breadcrumb-item {
    font-size: 14px;
  }
  /* decorative dog picture sits on top of the heading on phones */
  .plp-page .hero.other-pages .image-box,
  .pdp-page .hero.other-pages .image-box {
    display: none;
  }
  .plp-page .separation .image-text,
  .pdp-page .separation .image-text {
    gap: 14px;
    padding-bottom: 12px;
  }
  .plp-page .separation .image-box img,
  .pdp-page .separation .image-box img {
    width: 56px;
  }
  .plp-page .separation .text-box .title .inner-title,
  .pdp-page .separation .text-box .title .inner-title {
    display: block;
    font-size: 20px;
    margin-right: 0 !important;
  }
  .plp-page .separation .text-box .title,
  .pdp-page .separation .text-box .title,
  .plp-page .separation .text-box .title span,
  .pdp-page .separation .text-box .title span {
    font-size: 16px;
  }
  .plp-page .separation .text-box .title .underline,
  .pdp-page .separation .text-box .title .underline {
    display: none;
  }
  .plp-page .separation .text-box .title span img,
  .pdp-page .separation .text-box .title span img {
    width: 24px;
    margin-left: 8px;
  }
  .plp-page .product-card .image-box img,
  .pdp-page .product-card .image-box img {
    height: 220px;
  }

  .pdp-page .product-details .product-image-carousel .carousel-item img {
    max-height: 360px;
  }
  .pdp-page .product-details .details .heading {
    font-size: 28px;
  }
  .pdp-page .purchase-actions .button {
    flex: 1 1 140px;
  }
  .pdp-page .heading-box .sub-heading {
    font-size: 24px;
  }
  .pdp-page .product-reviews .review-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .pdp-page .product-reviews .current-reviews {
    padding-right: 0;
    border-right: none;
  }
  .pdp-page .product-reviews .review-box .overal-rating h3 {
    font-size: 48px;
  }
  .pdp-page .product-reviews .review-box .review-stars {
    white-space: nowrap;
  }
  .pdp-page .all-reviews-page .rating-bars {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
  .pdp-page .product-reviews .reviews-wrapper .date-likes {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
  }
  .pdp-page .review-modal .modal-body {
    padding: 44px 16px 24px;
  }
  .pdp-page .review-modal .modal-body > .row > .col-lg-5 {
    display: none;
  }
  .pdp-page .review-modal .modal-body .row.g-5 {
    --bs-gutter-y: 1.25rem;
  }
}

/* ---------- <= 400px ---------- */
@media (max-width: 400px) {
  .plp-page .hero .sub-heading,
  .pdp-page .hero .sub-heading {
    font-size: 26px;
  }
  .pdp-page .product-details .details .product-title .price .cost {
    font-size: 24px;
  }
}

/* ---------- QA round 3: phones ---------- */
@media (max-width: 767.98px) {
  /* gallery and product info closer together once they stack */
  .pdp-page .product-details > .container > .row.g-5 {
    --bs-gutter-y: 1.25rem;
  }
  .pdp-page .product-details .details > .product-title.mt-4:first-child {
    margin-top: 0 !important;
  }
  .pdp-page .product-details .details .product-title .review {
    font-size: 14px;
    margin-top: 8px !important;
  }
}

/* =====================================================================
 * Product listing page (viewlist.blade.php): header, filter sidebar /
 * drawer, toolbar, grid cards (.pc-grid), pagination, category content.
 * ===================================================================== */
.plp-page {
  --plp-border: #ebe6df;
  --plp-soft: #f8f6f3;
  --plp-muted: #5f6b76;
  --plp-radius: 16px;
  --plp-green: #1a7340; /* text / badge green, 5.9:1 with white (WCAG AA) */
  --plp-red: #e0474c;
}

/* ---------- header ---------- */
.plp-page .plp-header {
  background: var(--primary);
  padding: 22px 0 26px;
}
.plp-page .plp-breadcrumb {
  flex-wrap: wrap;
  row-gap: 2px;
  margin-bottom: 10px;
  font-size: 13px;
}
.plp-page .plp-breadcrumb .breadcrumb-item,
.plp-page .plp-breadcrumb .breadcrumb-item a {
  color: var(--plp-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.plp-page .plp-breadcrumb .breadcrumb-item a:hover {
  color: var(--secondary);
  text-decoration: underline;
}
.plp-page .plp-breadcrumb .breadcrumb-item.active {
  color: var(--secondary);
  font-weight: 500;
}
.plp-page .plp-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.plp-page .plp-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.plp-page .plp-count {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.plp-page .plp-intro {
  max-width: 720px;
  margin: 10px 0 0;
  color: #3d4750;
  font-size: 15px;
  line-height: 1.6;
}
.plp-page .plp-cat-pills {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.plp-page .plp-cat-pills::-webkit-scrollbar {
  display: none;
}
.plp-page .plp-cat-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 16px 4px 5px;
  border: 1px solid rgba(0, 52, 89, 0.12);
  border-radius: 100px;
  background: var(--light);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.plp-page .plp-cat-pill:hover {
  border-color: var(--secondary);
}
.plp-page .plp-cat-pill.is-active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--light);
}
.plp-page .plp-cat-pill-img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4efe8;
}
.plp-page .plp-cat-pill-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* ---------- layout ---------- */
.plp-page .plp-main {
  padding: 28px 0 64px;
}

/* ---------- sidebar (desktop) / drawer (< 992px) ---------- */
.plp-page .plp-sidebar {
  --bs-offcanvas-width: min(88vw, 360px);
  --bs-offcanvas-zindex: 1060;
}
.plp-page .plp-sidebar-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plp-page .plp-filter-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--plp-border);
}
.plp-page .plp-filter-block:first-child {
  padding-top: 0;
}
.plp-page .plp-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.plp-page .plp-filter-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--secondary);
}
.plp-page .plp-clear-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  white-space: nowrap;
}
.plp-page .plp-clear-link:hover {
  text-decoration: underline;
}

.plp-page .plp-cat-tree,
.plp-page .plp-cat-tree-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plp-page .plp-cat-tree-sub {
  margin: 2px 0 6px 14px;
  padding-left: 10px;
  border-left: 2px solid var(--plp-border);
}
.plp-page .plp-cat-link {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #2c3640;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: background 0.15s ease, color 0.15s ease;
}
.plp-page .plp-cat-link:hover {
  background: var(--plp-soft);
  color: var(--secondary);
}
.plp-page .plp-cat-link.is-open {
  color: var(--secondary);
  font-weight: 600;
}
.plp-page .plp-cat-link.is-active {
  background: #eef3f7;
  color: var(--secondary);
  font-weight: 600;
}
.plp-page .plp-cat-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--secondary);
}

/* price range */
.plp-page .plp-price-values {
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 600;
}
.plp-page .plp-price-slider.ui-slider {
  height: 4px;
  margin: 0 10px 20px;
  border: none;
  border-radius: 4px;
  background: #e4e0da;
}
.plp-page .plp-price-slider .ui-slider-range {
  border-radius: 4px;
  background: var(--secondary);
}
.plp-page .plp-price-slider .ui-slider-handle {
  top: -8px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  background: var(--light);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: grab;
}
.plp-page .plp-price-slider .ui-slider-handle:focus-visible {
  outline: 3px solid rgba(0, 52, 89, 0.3);
  outline-offset: 2px;
}
.plp-page .plp-price-inputs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.plp-page .plp-price-field {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}
.plp-page .plp-price-field > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--plp-muted);
  font-size: 12px;
}
.plp-page .plp-price-input {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #ddd6cd;
  border-radius: 8px;
  background: var(--light);
}
.plp-page .plp-price-input:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 52, 89, 0.12);
}
.plp-page .plp-price-input i {
  font-style: normal;
  color: var(--plp-muted);
  font-size: 14px;
  margin-right: 4px;
}
.plp-page .plp-price-input input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--black);
  -moz-appearance: textfield;
}
.plp-page .plp-price-input input::-webkit-outer-spin-button,
.plp-page .plp-price-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.plp-page .plp-price-dash {
  padding-bottom: 10px;
  color: var(--plp-muted);
}
.plp-page .plp-apply-btn,
.plp-page .plp-clear-all {
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
}
.plp-page .plp-apply-btn {
  border: 1px solid var(--secondary);
  background: var(--secondary);
  color: var(--light);
  transition: background 0.2s ease;
}
.plp-page .plp-apply-btn:hover {
  background: #00243e;
}
.plp-page .plp-clear-all {
  margin-top: 18px;
  border: 1px solid var(--plp-border);
  color: var(--secondary);
}
.plp-page .plp-clear-all:hover {
  border-color: var(--secondary);
}

/* chips */
.plp-page .plp-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.plp-page .plp-chips-bar {
  margin-bottom: 18px;
}
.plp-page .plp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid #d9e3ea;
  border-radius: 100px;
  background: #eef3f7;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.plp-page .plp-chip i {
  font-size: 12px;
}
.plp-page .plp-chip:hover {
  border-color: var(--secondary);
}

/* drawer head / foot (only below 992px) */
.plp-page .plp-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--plp-border);
}
.plp-page .plp-drawer-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
}
.plp-page .plp-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--plp-soft);
  color: var(--secondary);
  font-size: 18px;
}
.plp-page .plp-drawer-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--plp-border);
  background: var(--light);
}
.plp-page .plp-drawer-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--secondary);
  border-radius: 100px;
  background: var(--secondary);
  color: var(--light);
  font-size: 15px;
  font-weight: 500;
}
.plp-page .plp-drawer-btn.is-ghost {
  background: var(--light);
  color: var(--secondary);
}

@media (min-width: 992px) {
  .plp-page .plp-sidebar {
    position: sticky;
    top: var(--plp-sticky-top, 110px);
    max-height: calc(100vh - var(--plp-sticky-top, 110px) - 16px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--plp-border);
    border-radius: var(--plp-radius);
    background: var(--light);
    scrollbar-width: thin;
  }
  .plp-page .plp-applied + .plp-filter-block {
    padding-top: 0;
  }
  .plp-page .plp-sidebar-body > .plp-filter-block:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
}
@media (max-width: 991.98px) {
  .plp-page .plp-sidebar-col {
    margin-top: 0 !important;
    padding: 0;
    height: 0;
  }
  .plp-page .plp-sidebar {
    background: var(--light);
  }
  .plp-page .plp-sidebar-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
  }
  .plp-page .plp-cat-link {
    padding: 10px 12px;
  }
}

/* ---------- toolbar ---------- */
.plp-page .plp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.plp-page .plp-result-text {
  color: var(--plp-muted);
  font-size: 14px;
}
.plp-page .plp-result-text strong {
  color: var(--secondary);
  font-weight: 600;
}
.plp-page .plp-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plp-page .plp-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.plp-page .plp-sort-label {
  margin: 0;
  color: var(--plp-muted);
  font-size: 14px;
  white-space: nowrap;
}
.plp-page .plp-sort-select {
  width: auto;
  min-width: 210px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  border: 1px solid #ddd6cd;
  border-radius: 10px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.plp-page .plp-sort-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 52, 89, 0.12);
}
.plp-page .plp-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #ddd6cd;
  border-radius: 10px;
  background: var(--light);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.plp-page .plp-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--secondary);
  color: var(--light);
  font-size: 12px;
}

/* ---------- grid ---------- */
.plp-page .plp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 992px) {
  .plp-page .plp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (min-width: 1200px) {
  .plp-page .plp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.plp-page .plp-grid-item {
  min-width: 0;
}
.plp-page .plp-grid-empty {
  grid-column: 1 / -1;
  padding: 24px 0;
  border: 1px dashed var(--plp-border);
  border-radius: var(--plp-radius);
  background: var(--plp-soft);
}
.plp-page .plp-grid-empty .empty-state {
  padding-bottom: 36px;
}

/* ---------- listing card (.pc-grid, product_card_item with card_actions) ---------- */
.plp-page .pc-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--plp-border);
  border-radius: var(--plp-radius);
  background: var(--light);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.plp-page .pc-grid:hover {
  border-color: #ddd5ca;
  box-shadow: 0 12px 28px rgba(0, 52, 89, 0.1);
  transform: translateY(-2px);
}
.plp-page .pc-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f4f0;
}
.plp-page .pc-media-link {
  display: block;
  width: 100%;
  height: 100%;
}
.plp-page .pc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.plp-page .pc-media img.img-missing {
  max-height: none;
  min-width: 0;
  min-height: 0;
}
.plp-page .pc-grid:hover .pc-media img:not(.img-missing) {
  transform: scale(1.03);
}
.plp-page .pc-grid.is-out .pc-media img {
  opacity: 0.55;
  filter: grayscale(0.35);
}
.plp-page .pc-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.plp-page .pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.plp-page .pc-badge-off {
  background: var(--plp-green);
  color: var(--light);
}
.plp-page .pc-badge-out {
  background: #2f3a44;
  color: var(--light);
}
.plp-page .pc-badge-low {
  background: #fff1dc;
  color: #a35300;
}
.plp-page .pc-wish {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: color 0.2s ease, transform 0.2s ease;
}
.plp-page .pc-wish:hover {
  color: var(--plp-red);
  transform: scale(1.06);
}
.plp-page .pc-wish.is-active {
  color: var(--plp-red);
}
.plp-page .pc-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 6px;
  padding: 14px 14px 16px;
  text-align: left;
}
.plp-page .pc-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f59e0b;
  font-size: 12px;
}
.plp-page .pc-rating-value {
  margin-left: 4px;
  color: var(--plp-muted);
  font-size: 12px;
  font-weight: 600;
}
.plp-page .pc-title {
  margin: 0;
  font-family: var(--jakar);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.plp-page .pc-title a {
  color: #1c2630;
}
/* the whole card opens the product; wishlist / cart controls sit above this layer */
.plp-page .pc-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.plp-page .pc-title a:focus-visible {
  outline: none;
}
.plp-page .pc-title a:focus-visible::after {
  border-radius: var(--plp-radius);
  box-shadow: inset 0 0 0 3px rgba(0, 52, 89, 0.35);
}
.plp-page .pc-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-family: var(--jakar);
}
.plp-page .pc-price-now {
  color: var(--secondary);
  font-size: 18px;
  font-weight: 700;
}
.plp-page .pc-price-mrp {
  color: #646d75;
  font-size: 13px;
}
.plp-page .pc-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 8px;
}
.plp-page .pc-cart-form {
  margin: 0;
}
.plp-page .pc-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--secondary);
  border-radius: 10px;
  background: var(--secondary);
  color: var(--light);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.plp-page .pc-cart-btn:hover {
  background: #00243e;
  color: var(--light);
}
.plp-page .pc-cart-btn.is-muted {
  background: var(--light);
  border-color: #d6dde3;
  color: var(--secondary);
}
.plp-page .pc-cart-btn.is-muted:hover {
  border-color: var(--secondary);
  background: var(--light);
  color: var(--secondary);
}
.plp-page .pc-cart-btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}

/* ---------- pagination ---------- */
.plp-page .plp-pagination {
  margin-top: 36px;
}
.plp-page .plp-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plp-page .plp-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--plp-border);
  border-radius: 10px;
  background: var(--light);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.plp-page a.plp-page-link:hover {
  border-color: var(--secondary);
}
.plp-page .plp-page-link.is-active {
  border-color: var(--secondary);
  background: var(--secondary);
  color: var(--light);
}
.plp-page .plp-page-link.is-disabled {
  opacity: 0.45;
}
.plp-page .plp-page-status {
  display: none;
  align-items: center;
  padding: 0 10px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.plp-page .plp-page-link.is-gap {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  padding: 0;
}

/* ---------- category content (SEO text) ---------- */
.plp-page .plp-seo {
  padding: 0 0 64px;
}
.plp-page .plp-seo-card {
  padding: 28px 32px;
  border: 1px solid var(--plp-border);
  border-radius: var(--plp-radius);
  background: var(--plp-soft);
  color: #36414b;
  font-size: 15px;
  line-height: 1.75;
}
.plp-page .plp-seo-card > * {
  max-width: 900px;
}
.plp-page .plp-seo-card h1,
.plp-page .plp-seo-card h2,
.plp-page .plp-seo-card h3,
.plp-page .plp-seo-card h4,
.plp-page .plp-seo-card h5,
.plp-page .plp-seo-card h6 {
  margin: 1.2em 0 0.5em;
  font-family: var(--title-font);
  font-weight: 600;
  line-height: 1.3;
  color: var(--secondary);
  text-transform: none;
}
.plp-page .plp-seo-card h1 { font-size: 24px; }
.plp-page .plp-seo-card h2 { font-size: 22px; }
.plp-page .plp-seo-card h3 { font-size: 19px; }
.plp-page .plp-seo-card h4,
.plp-page .plp-seo-card h5,
.plp-page .plp-seo-card h6 { font-size: 17px; }
.plp-page .plp-seo-card p:empty {
  display: none;
}
.plp-page .plp-seo-card > :first-child {
  margin-top: 0;
}
.plp-page .plp-seo-card > :last-child {
  margin-bottom: 0;
}
.plp-page .plp-seo-card p,
.plp-page .plp-seo-card li {
  font-size: 15px;
  line-height: 1.75;
  color: #36414b;
  text-align: left;
}
.plp-page .plp-seo-card p {
  margin: 0 0 0.9em;
}
.plp-page .plp-seo-card ul,
.plp-page .plp-seo-card ol {
  margin: 0 0 1em;
  padding-left: 22px;
}
.plp-page .plp-seo-card a {
  color: var(--secondary);
  text-decoration: underline;
}
/* editor content: tiny inline font sizes, grey inline colours and justified text are normalised */
.plp-page .plp-seo-card [style*="font-size:10px"],
.plp-page .plp-seo-card [style*="font-size:11px"],
.plp-page .plp-seo-card [style*="font-size:12px"],
.plp-page .plp-seo-card [style*="font-size:13px"],
.plp-page .plp-seo-card [style*="font-size:14px"] {
  font-size: inherit !important;
}
.plp-page .plp-seo-card [style*="color"] {
  color: inherit !important;
}
.plp-page .plp-seo-card [style*="justify"] {
  text-align: left !important;
}
.plp-page .plp-seo-card img {
  max-width: 100%;
  height: auto;
}
.plp-page .plp-seo-card table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- listing: tablets and phones ---------- */
@media (max-width: 991.98px) {
  .plp-page .plp-main {
    padding-top: 16px;
  }
  /* filters + sort side by side, stuck below the site header */
  .plp-page .plp-toolbar {
    position: sticky;
    top: var(--plp-sticky-top, 90px);
    z-index: 1010;
    margin: 0 -12px 14px;
    padding: 8px 12px;
    background: var(--light);
    box-shadow: 0 1px 0 var(--plp-border);
  }
  .plp-page .plp-result-text {
    display: none;
  }
  .plp-page .plp-toolbar-actions {
    flex: 1 1 auto;
  }
  .plp-page .plp-filter-btn {
    flex: 0 0 auto;
  }
  .plp-page .plp-sort {
    flex: 1 1 0;
    min-width: 0;
  }
  .plp-page .plp-sort-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .plp-page .plp-sort::before {
    content: "\f160";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 14px;
    pointer-events: none;
  }
  .plp-page .plp-sort-select {
    width: 100%;
    min-width: 0;
    padding-left: 36px;
    text-overflow: ellipsis;
  }
  .plp-page .plp-chips-bar {
    margin-bottom: 14px;
  }
}
@media (max-width: 767.98px) {
  .plp-page .plp-header {
    padding: 14px 0 18px;
  }
  .plp-page .plp-title {
    font-size: 26px;
  }
  .plp-page .plp-intro {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .plp-page .plp-cat-pills {
    margin: 14px -12px 0;
    padding: 0 12px 2px;
  }
  .plp-page .plp-seo {
    padding-bottom: 48px;
  }
  .plp-page .plp-seo-card {
    padding: 20px 18px;
    font-size: 14.5px;
  }
}
@media (max-width: 575.98px) {
  .plp-page .plp-grid {
    gap: 12px;
  }
  .plp-page .pc-grid {
    border-radius: 14px;
  }
  .plp-page .pc-grid:hover {
    transform: none;
  }
  .plp-page .pc-badges {
    top: 8px;
    left: 8px;
    right: 44px;
    gap: 4px;
  }
  .plp-page .pc-badge {
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .plp-page .pc-wish {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .plp-page .pc-body {
    gap: 4px;
    padding: 10px 10px 12px;
  }
  .plp-page .pc-title {
    font-size: 13px;
  }
  .plp-page .pc-price-now {
    font-size: 15.5px;
  }
  .plp-page .pc-price-mrp {
    font-size: 12px;
  }
  .plp-page .pc-cart-btn {
    min-height: 38px;
    gap: 6px;
    padding: 6px 8px;
    font-size: 13px;
  }
  .plp-page .plp-page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
  }
  /* phones: Prev, "Page 3 of 12", Next */
  .plp-page .plp-page-num {
    display: none;
  }
  .plp-page .plp-page-status {
    display: flex;
  }
  .plp-page .plp-pagination ul {
    flex-wrap: nowrap;
  }
}
