/* 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 detail specification panels. */
.product-specifications {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.07);
}

.product-spec-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.product-spec-heading {
  display: none;
}

.product-spec-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.75fr);
  gap: 24px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f2;
}

.product-spec-row:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.product-spec-panel:first-child:not(:last-child) .product-spec-row:last-child {
  padding-bottom: 13px;
  border-bottom: 1px solid #edf0f2;
}

.product-spec-label,
.product-spec-value {
  font-size: 13px;
  line-height: 1.5;
}

.product-spec-label {
  color: #7b8493;
}

.product-spec-value {
  color: #171717;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-spec-empty {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 24px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 640px) {
  .product-specifications {
    gap: 0;
    padding: 16px;
    border-radius: 14px;
  }

  .product-spec-panel {
    padding: 0;
    border-radius: 0;
  }

  .product-spec-heading {
    font-size: 12px;
  }

  .product-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .product-spec-panel:first-child:not(:last-child) .product-spec-row:last-child {
    padding-bottom: 12px;
  }

  .product-spec-value {
    text-align: left;
  }
}

/* Product review author identity and verification badge. */
.review-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.review-author-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}

.review-author-name {
  margin: 0;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.review-verified-icon {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.review-date {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
}

.review-summary-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.review-summary-star {
  position: relative;
  display: inline-block;
  color: #d1d5db;
  font-size: 27px;
  line-height: 1;
}

.review-summary-star::after {
  content: '★';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--review-star-fill, 0%);
  overflow: hidden;
  color: var(--color-saffron, #f4a300);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .review-author-row {
    align-items: flex-start;
    gap: 10px;
  }

  .review-date {
    font-size: 10px;
  }
}

/* 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); } }

/* The rating beneath the product title opens the product reviews tab. */
.product-title-review-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.product-title-review-link:hover .product-title-review-count {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-title-review-link:focus-visible {
  outline: 2px solid var(--color-saffron, #f4a300);
  outline-offset: 5px;
  border-radius: 6px;
}

.product-details-tabs-anchor {
  scroll-margin-top: 96px;
}

/* Live catalogue loading and active-filter feedback. */
.catalog-loading-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.catalog-filter-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.catalog-filter-status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 12px;
}

.catalog-filter-status-summary strong {
  color: #111827;
  font-size: 13px;
}

.catalog-filter-status-actions,
.catalog-filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-filter-status-actions { justify-content: space-between; }

.catalog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 5px 4px 11px;
  border: 1px solid #f4a300;
  border-radius: 999px;
  background: #fff8e7;
  color: #5d4100;
  font-size: 12px;
  font-weight: 700;
}

.catalog-filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 50%;
  background: #f4a300;
  color: #111827;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.catalog-clear-filters {
  border: 0;
  background: transparent;
  color: #9a6200;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-skeleton-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}

.catalog-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e5e7eb;
}

.catalog-skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: catalog-skeleton-shimmer 1.25s infinite;
}

.catalog-skeleton-image { aspect-ratio: 1 / 1; margin-bottom: 16px; border-radius: 12px; }
.catalog-skeleton-line { width: 100%; height: 12px; margin-top: 10px; }
.catalog-skeleton-line-short { width: 42%; height: 9px; }
.catalog-skeleton-line-price { width: 55%; height: 18px; margin-top: 16px; }
.catalog-skeleton-button { width: 100%; height: 40px; margin-top: 18px; border-radius: 10px; }

.catalog-load-error {
  padding: 48px 24px;
  border: 1px solid #fecaca;
  border-radius: 20px;
  background: #fff7f7;
  text-align: center;
}

.catalog-load-error h3 { margin: 0; color: #111827; font-size: 18px; }
.catalog-load-error p { margin: 7px 0 18px; color: #6b7280; font-size: 13px; }
.catalog-load-error button { padding: 10px 18px; border: 0; border-radius: 10px; background: #111827; color: #fff; cursor: pointer; font-weight: 800; }

@keyframes catalog-skeleton-shimmer { to { transform: translateX(100%); } }

.product-variant-summary {
  margin: -2px 0 8px;
  color: #9a6200;
  font-size: 12px;
  font-weight: 800;
}

.catalog-wishlist-error {
  margin: -16px 0 20px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
  color: #991b1b;
  font-size: 13px;
}

section.bg-black.w-full.relative.overflow-hidden:not([data-deal-ready="true"]) {
  visibility: hidden;
}

.home-deal-countdown {
  align-items: center;
  margin: -12px 0 24px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #f4a300;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton::after { animation: none; }
}

/* Variant cards respond to their column width, including narrow desktop columns. */
.product-variant-selector { container-type: inline-size; min-width: 0; }
.product-variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-variant-card { min-width: 0; padding: 10px; border-radius: 14px; }
.product-variant-content { min-width: 0; gap: 8px; padding-right: 0; }
.product-variant-content > div:last-child { margin-left: 0; padding-right: 16px; overflow-wrap: anywhere; }
.product-variant-content > div:last-child > p:first-child,
.product-variant-content > div:last-child > span { font-size: 13px; }
@container (max-width: 660px) {
  .product-variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 420px) {
  .product-variant-content { flex-direction: column; gap: 8px; }
  .product-variant-content > div:last-child { width: 100%; padding-right: 0; }
}
@container (max-width: 280px) {
  .product-variant-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Detail-page discovery grids share the catalog's readable mobile cards. */
.product-discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-discovery-grid > * { min-width: 0; }
.product-discovery-heading { gap: 20px; }
.product-discovery-heading > * { min-width: 0; }
.product-discovery-heading > a,
.product-discovery-heading > span { flex-shrink: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
  .product-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .product-discovery-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-discovery-heading { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .product-discovery-heading h2,
  .product-discovery-heading h3 { font-size: 20px; line-height: 1.3; }
  .product-recently-viewed { padding: 16px; border-radius: 20px; }
}

/* Full-width mobile catalog rows: product image beside purchase details. */
@media (max-width: 767px) {
  .catalog-filter-status-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .catalog-filter-status-actions { align-items: flex-start; flex-direction: column; }
  .catalog-skeleton-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-skeleton-card {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    column-gap: 12px;
    min-height: 205px;
  }
  .catalog-skeleton-image { grid-column: 1; grid-row: 1 / 6; height: 100%; min-height: 175px; margin: 0; }
  .catalog-skeleton-line,
  .catalog-skeleton-button { grid-column: 2; }
  .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; }
}

/* Hide the delivery estimate on mobile product details. */
@media (max-width: 767px) {
  .product-delivery-estimate { display: none; }
}
