/* Product listing page. Follows amarteskincare.com/collections/products as measured at a 1400px viewport:
   centred page title 30px under the header, a "Sort by" control on the right, then a three-column grid
   (1171px wide, 287px pictures, about 458px from one row to the next). */
.plp .in { max-width: 1171px; padding-top: 30px; padding-bottom: 110px; }
.plp-bar { display: flex; justify-content: flex-end; align-items: center; min-height: 30px; margin-top: 22px; }
.plp-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.plp-sort select { appearance: none; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 4px 24px 4px 8px;
  font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%233b1d2a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 6px center; }

.plp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 60px; margin-top: 56px; }
.plp-grid .pic { width: 85%; }

.plp-empty { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-block: 80px 40px; color: var(--muted); text-align: center; }
.plp-empty[hidden], .plp-bar[hidden] { display: none; }

@media (max-width: 820px) {
  .plp .in { padding-top: 26px; padding-bottom: 56px; }
  .plp-bar { margin-top: 14px; }
  .plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: 26px; }
  .plp-grid .pic { width: 100%; }
}
