.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid var(--ink); background: transparent; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { background: var(--ink); color: #fff; }
.button--primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.button--primary:hover { border-color: var(--gold-dark); background: var(--gold-dark); }
.button--wide { width: 100%; }
.button:disabled { border-color: var(--line); background: #d8d2c9; color: #746f67; }
.button.is-disabled { pointer-events: none; border-color: var(--line); background: #d8d2c9; color: #746f67; }
.cart-link { display: inline-flex; align-items: center; gap: .42rem; font-size: .82rem; white-space: nowrap; }
.cart-link__icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.cart-link [data-cart-count] { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .68rem; transform-origin: center; }
.cart-link [data-cart-count].is-pulsing { animation: cart-count-pulse 280ms ease-out; }
@keyframes cart-count-pulse { 50% { transform: scale(1.16); } }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; padding: .65rem .65rem 1rem; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgb(72 52 26 / 8%); transition: transform 220ms ease, box-shadow 220ms ease; }
.product-card__link { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.product-media, .product-detail__media, .cart-item__image, .collection-card { background-color: var(--surface-deep); background-image: url("/storefront/assets/images/reference.png"); background-repeat: no-repeat; background-size: 300% 200%; }
.fallback-0 { background-position: 0 0; }.fallback-1 { background-position: 50% 0; }.fallback-2 { background-position: 100% 0; }.fallback-3 { background-position: 0 100%; }.fallback-4 { background-position: 50% 100%; }.fallback-5 { background-position: 100% 100%; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 1rem; border-radius: 18px; background-color: var(--surface-deep); background-image: url("/storefront/assets/images/reference.png"); background-repeat: no-repeat; background-size: 300% 200%; }
.product-media img, .product-detail__media img, .cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__line { display: flex; min-width: 0; align-items: start; justify-content: space-between; gap: .8rem; padding-inline: .35rem; }
.product-card h3 { min-width: 0; margin-bottom: .3rem; overflow-wrap: anywhere; font-size: 1.08rem; }
.product-card p { margin-bottom: .7rem; padding-inline: .35rem; color: var(--muted); font-size: .76rem; }
.price { flex: none; color: var(--gold-dark); font-size: .9rem; font-weight: 700; }
.product-badge { position: absolute; top: .8rem; left: .8rem; padding: .35rem .62rem; border-radius: 999px; background: rgb(255 254 250 / 92%); box-shadow: 0 4px 14px rgb(41 37 31 / 12%); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quick-add, .text-button { align-self: flex-start; margin-inline: .35rem; padding: .35rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-size: .72rem; letter-spacing: .06em; }
.quick-add { min-inline-size: 7.8rem; text-align: left; }
.quick-add:disabled { border-color: var(--muted); color: var(--muted); }
.quick-add.is-added, .button.is-added { color: var(--gold-dark); }
.purchase-row .button { min-inline-size: 8.5rem; }
.link-with-icon { display: inline-flex; align-items: center; gap: .42rem; }
.link-arrow-icon { width: .95em; height: .95em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .cart-link [data-cart-count].is-pulsing { animation: none; }
}
.loading-state, .empty-state { grid-column: 1 / -1; padding: 2.5rem; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-align: center; }
.empty-state h2 { margin-bottom: .6rem; }
.empty-state .button { margin-top: 1rem; }
.muted { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; color: var(--ink); font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.field span { color: var(--muted); font-weight: 400; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .purchase-row input, .collection-toolbar select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: .8rem .9rem; }
.field textarea { resize: vertical; }
.form-message { min-height: 1.5rem; margin: .8rem 0 0; color: var(--danger); font-size: .85rem; }
.consent-banner { position: fixed; z-index: 80; right: 1rem; bottom: 1rem; left: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; width: min(calc(100% - 2rem), 1080px); margin-inline: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: #fffefa; box-shadow: 0 20px 60px rgb(41 37 31 / 22%); }
.consent-banner h2, .consent-dialog h2 { margin: 0 0 .45rem; font-size: 1.35rem; }
.consent-banner p, .consent-dialog > form > p { max-width: 650px; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.consent-banner__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; }
.consent-banner__actions .button { min-height: 42px; padding: .65rem .9rem; }
.consent-dialog { width: min(calc(100% - 2rem), 580px); padding: 0; border: 0; border-radius: 20px; background: #fffefa; box-shadow: 0 25px 80px rgb(41 37 31 / 30%); }
.consent-dialog::backdrop { background: rgb(28 25 21 / 55%); }
.consent-dialog form { display: grid; gap: 1.1rem; padding: 1.5rem; }
.consent-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.consent-dialog__header .eyebrow { margin-bottom: .4rem; }
.consent-dialog__close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.35rem; }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.consent-option span { display: grid; gap: .25rem; }
.consent-option small { color: var(--muted); line-height: 1.45; }
.consent-option input { width: 20px; height: 20px; accent-color: var(--gold-dark); }
.consent-banner button:focus-visible, .consent-dialog button:focus-visible, .consent-dialog input:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }

@media (hover: hover) {
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgb(72 52 26 / 14%); }
}
.product-card:focus-within { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--gold), 0 18px 42px rgb(72 52 26 / 12%); }

@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .product-grid, .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .product-card { padding: .55rem .55rem .9rem; border-radius: 21px; }
  .product-media { aspect-ratio: 5 / 6; border-radius: 16px; }
  .product-card__line { gap: 1rem; }
  .consent-banner { grid-template-columns: 1fr; padding: 1rem; }
  .consent-banner__actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .consent-banner__actions .button { width: 100%; }
  .consent-dialog form { padding: 1.15rem; }
}
