/* LAKKA STORIES — refined marketplace-inspired catalogue */
body:has(.hero) .collection .grid {
  max-width: 1240px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
body:has(.hero) .collection .card {
  position: relative;
  overflow: hidden;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 3px 12px rgba(69,32,39,.045);
  cursor: pointer;
}
body:has(.hero) .collection .photo {
  position: relative;
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 430px;
  background: #f7f0e6;
  border-bottom: 1px solid #f0e6d9;
}
body:has(.hero) .collection .photo img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}
body:has(.hero) .collection .card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 158px;
  padding: 13px 13px 14px;
}
body:has(.hero) .collection .category {
  margin: 0;
  color: #a66f2d;
  font-size: 9px;
  letter-spacing: .12em;
}
body:has(.hero) .collection .card h3 {
  min-height: 2.5em;
  margin: 0;
  color: #572329;
  font-size: 16px;
  line-height: 1.25;
}
body:has(.hero) .collection .card p { margin: 0; }
body:has(.hero) .collection .card .price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 5px;
  color: #572329;
  font-size: 14px;
}
body:has(.hero) .collection .card .price-current { font-size: 18px; }
body:has(.hero) .collection .card .price-original { color: #8b8179; font-size: 12px; }
body:has(.hero) .collection .card .discount-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f8ead5;
  color: #8a5b20;
  font-size: 10px;
}
body:has(.hero) .collection .catalogue-availability { width: fit-content; font-size: 9px; }
body:has(.hero) .collection .add-cart-card {
  width: 100%;
  min-height: 39px;
  margin-top: auto;
  border: 1px solid #572329;
  border-radius: 4px;
  background: #572329;
  color: #fffaf2;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
body:has(.hero) .collection .add-cart-card:hover { background: #74333a; border-color: #74333a; }
.catalogue-sort-row { display: none; }
@media (min-width: 701px) {
  body:has(.hero) .collection .catalog-tools { align-items: center; }
  body:has(.hero) .collection .filters { justify-content: flex-end; }
}
@media (max-width: 900px) {
  body:has(.hero) .collection { padding: 26px 12px 48px; }
  body:has(.hero) .collection .section-head { margin-bottom: 15px; }
  body:has(.hero) .collection .catalog-tools { gap: 9px; }
  body:has(.hero) .collection .search { min-height: 42px; border-radius: 6px; }
  body:has(.hero) .collection .filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scrollbar-width: none;
  }
  body:has(.hero) .collection .filters::-webkit-scrollbar { display: none; }
  body:has(.hero) .collection .filters .filter {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
  }
  .catalogue-sort-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 38px;
    margin: 10px 1px 16px;
    padding: 0;
  }
  .catalogue-sort-row .catalogue-sort-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0;
    padding: 0;
    color: #75665d;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }
  .catalogue-sort-row select {
    display: block;
    box-sizing: border-box;
    width: 142px;
    max-width: 142px;
    min-height: 36px;
    height: 36px;
    margin: 0;
    padding: 5px 28px 5px 10px;
    border: 1px solid #e6d8c5;
    border-radius: 6px;
    background: #fffdf9;
    color: #572329;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: normal;
    box-shadow: none;
  }
  .catalogue-sort-row select:focus,
  .catalogue-sort-row select:focus-visible {
    outline: 2px solid rgba(189,139,69,.45);
    outline-offset: 2px;
    box-shadow: none;
  }
  body:has(.hero) .collection .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:has(.hero) .collection .photo { aspect-ratio: 1.08 / 1; }
  body:has(.hero) .collection .photo img { padding: 5px; }
  body:has(.hero) .collection .card { border-radius: 7px; }
  body:has(.hero) .collection .card-body {
    min-height: 132px;
    gap: 4px;
    padding: 9px 9px 10px;
  }
  body:has(.hero) .collection .category { font-size: 8px; }
  body:has(.hero) .collection .card h3 {
    min-height: 2.35em;
    font-size: 13px;
    line-height: 1.22;
  }
  body:has(.hero) .collection .card .price {
    gap: 4px;
    margin: 3px 0 4px;
    font-size: 11px;
  }
  body:has(.hero) .collection .card .price-current { font-size: 15px; }
  body:has(.hero) .collection .card .price-original { font-size: 10px; }
  body:has(.hero) .collection .card .discount-badge { font-size: 8px; padding: 2px 5px; }
  body:has(.hero) .collection .catalogue-availability {
    white-space: normal;
    font-size: 8px;
  }
  body:has(.hero) .collection .add-cart-card {
    min-height: 34px;
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  body:has(.hero) .collection .card-body { padding: 8px; }
  body:has(.hero) .collection .card h3 { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body:has(.hero) .collection .card { transition: none; }
}

/* Final action colours: solid maroon cart action, green WhatsApp enquiry */
body:has(.hero) .collection .card .add-cart-card.cart-action {
  background: #572329 !important;
  border: 1px solid #572329 !important;
  color: #fffaf2 !important;
}
body:has(.hero) .collection .card .add-cart-card.cart-action:hover {
  background: #74333a !important;
  border-color: #74333a !important;
  color: #fffaf2 !important;
}
body:has(.hero) .collection .card .add-cart-card.whatsapp-action {
  background: #eff8f2 !important;
  border: 1px solid #2f7653 !important;
  color: #246344 !important;
}
body:has(.hero) .collection .card .add-cart-card.whatsapp-action:hover {
  background: #e2f2e8 !important;
  border-color: #246344 !important;
}

/* Mobile sort control: prevent selected option text from clipping */
@media (max-width: 700px) {
  .catalogue-sort-row select {
    width: 168px;
    max-width: 168px;
    font-size: 11px;
    padding-left: 9px;
    padding-right: 25px;
  }
}
