/* Hide the wishlist control on product cards without affecting header or detail-page actions. */
main .group.bg-white.rounded-2xl > button.absolute.top-4.right-4 {
  display: none;
}

/* Product ratings show a five-star scale before the numeric score. */
main .group.bg-white.rounded-2xl div.flex.items-center.text-\[var\(--color-saffron\)\] svg {
  display: none;
}

main .group.bg-white.rounded-2xl div.flex.items-center.text-\[var\(--color-saffron\)\]::before {
  content: '★★★★★';
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}
/* Catalog layout and native modal filters. */
.catalog-page { width: 100%; min-width: 0; }
.catalog-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-products > * { min-width: 0; }
.catalog-sidebar { width: 260px; flex-shrink: 0; padding: 24px; background: white; border: 1px solid #e5e7eb; border-radius: 20px; position: sticky; top: 90px; }
@media (min-width: 768px) { .catalog-page .catalog-filter-trigger { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) { .catalog-page .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.catalog-toolbar { flex-wrap: wrap; gap: 16px; }
.catalog-toolbar > div { min-width: 0; }
.catalog-toolbar select { max-width: 100%; }
.catalog-filter-trigger { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 24px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 14px 22px; border: 1px solid #111; border-radius: 999px; background: #f4a300; color: #111; font-weight: 800; box-shadow: 0 6px 24px #0003; cursor: pointer; }
.catalog-filter-dialog { margin: auto; padding: 0; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 22px; background: white; color: #111; box-shadow: 0 24px 80px #0004; }
.catalog-filter-dialog[open] { display: flex; flex-direction: column; }
.catalog-filter-dialog::backdrop { background: #0009; }
.catalog-dialog-header, .catalog-dialog-footer { padding: 16px 24px; flex-shrink: 0; background: white; }
.catalog-dialog-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; }
.catalog-dialog-header h2 { font-size: 20px; font-weight: 900; }
.catalog-dialog-header button { width: 44px; height: 44px; border-radius: 50%; background: #f3f4f6; font-size: 26px; cursor: pointer; }
.catalog-dialog-content { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.catalog-dialog-content label { min-height: 36px; }
.catalog-dialog-footer { border-top: 1px solid #eee; }
.catalog-dialog-footer button { width: 100%; padding: 14px; border-radius: 12px; background: #f4a300; font-weight: 800; cursor: pointer; }
.catalog-page button:focus-visible, .catalog-page select:focus-visible { outline: 2px solid #b77900; outline-offset: 3px; }
@media (max-width: 1023px) { .catalog-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .catalog-sidebar { display: none; }
  .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-banner { padding: 24px 20px !important; margin-bottom: 20px !important; }
  .catalog-banner h1 { font-size: 26px !important; }
  .catalog-toolbar > div:last-child { width: 100%; }
  .catalog-toolbar select { min-width: 0; flex: 1; }
  .catalog-filter-trigger { left: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 479px) { .catalog-products { grid-template-columns: minmax(0, 1fr); } }

/* Full-width mobile catalog rows: product image beside purchase details. */
@media (max-width: 767px) {
  .mobile-product-list .catalog-products { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mobile-product-list .product-card {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    padding: 12px;
    border-radius: 12px;
    align-items: start;
    height: auto;
  }
  .mobile-product-list .product-card-image {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: stretch;
    min-height: 180px;
    margin: 0;
    padding: 28px 8px 12px;
    aspect-ratio: auto;
  }
  .mobile-product-list .product-card-image img { max-height: 210px; }
  .mobile-product-list .product-card-details { grid-column: 2; grid-row: 1; min-width: 0; }
  .mobile-product-list .product-card-details > a { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; }
  .mobile-product-list .product-card-details > div { margin-bottom: 6px; }
  .mobile-product-list .product-card-details .text-xl { font-size: 20px; margin-bottom: 8px; }
  .mobile-product-list .product-card-details .space-x-2 { flex-wrap: wrap; column-gap: 4px; }
  .mobile-product-list .product-card > button { grid-column: 2; grid-row: 2; font-size: 11px !important; margin-top: 0 !important; }
  .mobile-product-list .product-whatsapp-button { white-space: normal; font-size: 10px; line-height: 1.3; padding: 10px 6px; min-height: 44px; }
  .mobile-product-list .product-out-of-stock-button { white-space: normal; font-size: 10px; padding: 10px 6px; }
  .mobile-product-list .product-card > .absolute { max-width: 36%; }
  .mobile-product-list .product-save-badge, .mobile-product-list .product-stock-badge { white-space: normal; font-size: 8px; }
}
