/* Scoped enhancement: native details and POST forms work without JavaScript. */
.editorial-card { min-width: 0; align-self: start; }
.editorial-card .card-media { position: relative; background: #fff; }
html[data-theme="light"] .editorial-card .product-image { padding: 0; background: #fff; aspect-ratio: 4 / 5; }
.editorial-card .product-image .product-cover { display: block; object-fit: contain; opacity: 1; transform: none; }
.editorial-card .product-image .product-alternate { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.editorial-card [hidden] { display: none !important; }
.editorial-card .product-badges { top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.editorial-card .product-badge { font-size: .6875rem; letter-spacing: .04em; padding: 6px 9px; line-height: 1.3; }
.editorial-card .photo-empty { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--muted); }
.card-quick-add { position: absolute; bottom: 12px; inset-inline: 12px; background: #fff; color: #181817; }
.card-quick-add summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); cursor: pointer; font-size: .875rem; font-weight: 600; list-style: none; transition: background-color .2s ease; }
.card-quick-add summary::-webkit-details-marker { display: none; }
.card-quick-add summary:hover { background: #f7f4ef; }
.card-quick-add[open] { position: static; margin: 0; }
.card-quick-add[open] summary { border-bottom: 0; }
.card-quick-add[open] summary > span[aria-hidden] { transform: rotate(45deg); }
.card-variant-form { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); }
.card-variant-form label { margin: 0; font-size: .8125rem; line-height: 1.5; }
.card-variant-form select { min-width: 0; width: 100%; min-height: 48px; padding: 10px 32px 10px 12px; background: #fff; color: #181817; border: 1px solid #bbb5aa; border-radius: 0; font: inherit; font-size: 1rem; }
.card-variant-form .card-stock { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.card-variant-form .card-add-button { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; background: #181817; color: #fff; border: 1px solid #181817; border-radius: 0; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.card-add-button:disabled { opacity: .55; cursor: not-allowed; }
.card-sold-out { position: absolute; bottom: 12px; left: 12px; padding: 8px 12px; background: #fff; color: #555; font-size: .8125rem; }
.editorial-card .product-info { padding: 18px 0 0; }
.editorial-card .product-info h3 { font-family: var(--serif); font-size: clamp(1.0625rem, 1.25vw, 1.3125rem); line-height: 1.4; font-weight: 400; letter-spacing: 0; margin: 6px 0; overflow-wrap: anywhere; }
.editorial-card .product-info h3 a { display: flex; align-items: center; min-height: 44px; padding-block: 4px; }
.editorial-card .product-price-line { gap: 6px 12px; margin-top: 10px; }
.editorial-card .product-price-line .price { color: #181817; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.editorial-card .product-price-line del { font-size: .8125rem; white-space: normal; overflow-wrap: anywhere; }
.card-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 44px; width: fit-content; margin-top: 4px; color: #56534d; font-size: .8125rem; }
.card-stars { display: inline-flex; gap: 2px; font-size: .9375rem; }
.card-star { color: #d3cfc7; }
.star-full { color: #806130; }
.star-half { color: transparent; background: linear-gradient(90deg, #806130 50%, #d3cfc7 50%); background-clip: text; }
.card-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.card-swatch { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid transparent; background: transparent; border-radius: 50%; cursor: pointer; }
.card-swatch:hover { border-color: #c4b79f; }
.card-swatch[aria-pressed="true"] { border-color: #181817; }
.swatch-dot { width: 22px; height: 22px; display: block; border-radius: 50%; border: 1px solid #9d968d; background: #eeeae4; }
.tone-gold { background: linear-gradient(135deg, #e7cc87, #b78a35); }
.tone-silver { background: linear-gradient(135deg, #f4f4f4, #9fa2a5); }
.tone-rose-gold { background: linear-gradient(135deg, #f0c9b9, #ba7e70); }
.tone-white { background: #fff; }.tone-black { background: #252525; }
.tone-gray { background: #929292; }.tone-beige { background: #d8c5a8; }
.tone-brown { background: #735343; }.tone-red { background: #a03939; }
.tone-pink { background: #dda9bc; }.tone-orange { background: #d28241; }
.tone-yellow { background: #e3c654; }.tone-green { background: #64816a; }
.tone-blue { background: #6589ad; }.tone-navy { background: #273d59; }
.tone-purple { background: #93719a; }.tone-multicolor { background: conic-gradient(#a03939, #e3c654, #6589ad, #a03939); }
.editorial-card .card-color { font-size: .8125rem; color: var(--muted); margin: 4px 0 8px; overflow-wrap: anywhere; }
.editorial-card :is(a, button, summary, select):focus-visible { outline: 2px solid #806130; outline-offset: 4px; }
.editorial-card .product-image.has-alternate:focus-visible .product-cover { opacity: 0; }
.editorial-card .product-image.has-alternate:focus-visible .product-alternate { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .editorial-card .product-image.has-alternate:hover .product-cover { opacity: 0; }
  .editorial-card .product-image.has-alternate:hover .product-alternate { opacity: 1; }
  .editorial-card.card-enhanced .card-quick-add:not([open]) { opacity: 0; transition: opacity .2s ease; }
  .editorial-card.card-enhanced:hover .card-quick-add, .editorial-card.card-enhanced:focus-within .card-quick-add { opacity: 1; }
}
@media (min-width: 761px) and (max-width: 1023px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-card.card-enhanced .card-quick-add:not([open]) { opacity: 1; }
  .editorial-card .product-badges { top: 8px; left: 8px; right: 8px; }
  .card-quick-add { bottom: 8px; inset-inline: 8px; }
  .card-quick-add summary, .card-variant-form .card-add-button { padding: 10px; }
  .card-variant-form { padding: 10px; }
}
@media (max-width: 379px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none), (pointer: coarse) {
  .editorial-card .product-image.has-alternate:hover .product-cover { opacity: 1; }
  .editorial-card .product-image.has-alternate:hover .product-alternate { opacity: 0; }
  .editorial-card .product-image.has-alternate:focus-visible .product-cover { opacity: 0; }
  .editorial-card .product-image.has-alternate:focus-visible .product-alternate { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-card .product-image img, .card-quick-add, .card-quick-add summary { transition: none !important; }
}
