@font-face {
  font-family: 'Handmade Alphabet';
  src: url('/handmade-alphabet.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.storefront {
  --paper: #fcf8f3;
  --ink: #32292b;
  --accent: #872e4d;
  --line: #e8ded9;
  --display-font: 'Handmade Alphabet', Georgia, serif;
  background: var(--paper);
}
.storefront .site-header { background: #fffdf9; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.masthead .brand-logo { width: min(12rem, calc(100% - 4rem)); }
.search-link { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.shop-actions { display: flex; align-items: center; gap: .45rem; }
#cart-open { border-radius: 999px; padding-inline: .65rem; }
#cart-count { background: var(--rose); border-radius: 999px; min-width: 1.5rem; padding-inline: .25rem; font-size: .8rem; text-align: center; }
@media (max-width: 480px) { .cart-label { display: none; } }
.collections-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .35rem .25rem .65rem; }
.collections-nav a, #footer-collections a { min-width: 0; overflow-wrap: anywhere; }
.collections-nav a { display: grid; place-items: center; flex: none; min-height: 44px; padding-inline: .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; }
.collections-nav a:hover { border-color: var(--accent); }
.collections-nav [aria-current='true'] { background: var(--accent); color: #fff; border-color: var(--accent); }
.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  background: linear-gradient(135deg, #f8ebe5, #f1dbd9);
  margin-top: clamp(.65rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(1.35rem, 4.2vw, 4rem); }
.hero-copy h1 { font-family: var(--display-font); font-size: clamp(2rem, 4.8vw, 4.65rem); font-weight: 400; letter-spacing: normal; overflow-wrap: anywhere; }
.hero-copy em { display: block; font-style: normal; font-weight: inherit; color: var(--accent); }
.hero-description { max-width: 36ch; margin: .7rem 0 1rem; color: var(--muted); }
.hero-copy .editorial-link { border-radius: 999px; padding-inline: 1.2rem; }
.hero-media { position: relative; min-width: 0; min-height: clamp(20rem, 34vw, 30rem); background: #ebd5d0; }
.hero-visual { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; min-width: 0; overflow: hidden; }
.hero-visual img { display: block; width: min(87%, 37rem); height: 100%; min-height: 0; object-fit: contain; }
.hero-visual[data-featured='ready'] img { width: 100%; }
.hero-visual figcaption { position: absolute; bottom: 1rem; right: 1rem; max-width: calc(100% - 2rem); padding: .42rem .7rem; background: var(--paper); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.storefront .collection { padding-top: clamp(1.5rem, 4vw, 3.4rem); }
.collection-heading h2 { font-family: var(--display-font); font-weight: 400; }
.collection-heading > p:last-child { color: var(--muted); margin: .55rem 0 0; font-size: .88rem; }
.storefront .filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem 0 .45rem;
}
.storefront .filters label { flex: 1 1 12rem; max-width: 30rem; }
.storefront .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(.7rem, 2.4vw, 2rem); }
.storefront .card { background: #fffdf9; }
.photo-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #f4e8e4;
  cursor: zoom-in;
}
.photo-trigger:focus-visible { outline-offset: -4px; z-index: 1; }
.storefront .product-photo {
  position: relative;
  background: transparent;
  pointer-events: none;
  transition: transform 160ms ease-out;
}
.photo-trigger.is-zooming .product-photo { transform: scale(2); transition: none; }
.photo-icon {
  position: absolute;
  inset: auto .65rem .65rem auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf9;
  color: var(--accent);
  box-shadow: 0 2px 10px #38242b26;
  pointer-events: none;
}
.storefront .card-body { gap: .35rem; padding: clamp(.6rem, 2vw, 1rem); }
.storefront .card h3 { font-size: clamp(.96rem, 2vw, 1.12rem); }
.storefront .card .eyebrow { font-size: .69rem; letter-spacing: .025em; overflow-wrap: anywhere; }
.storefront .price { font-size: 1rem; }
.stock { width: fit-content; border-radius: 999px; padding: .12rem .5rem; background: #f4e8e2; color: #664239; font-size: .75rem; font-weight: 700; }
.stock.available { background: #eaf1e8; color: #325740; }
.product-details { margin-top: auto; padding-inline: .35rem; font-size: .85rem; }
.order-button[aria-disabled='true'] { background: #eee1dc; color: #674e58; cursor: not-allowed; }
.catalog-status[data-state='empty'], .catalog-status[data-state='error'] {
  padding: 1.15rem;
  border: 1px dashed #cfaeb6;
  border-radius: .85rem;
  background: #fffdf9;
}
.photo-dialog {
  width: min(58rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #fffdf9;
  color: var(--ink);
}
.storefront:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog::backdrop { background: #2d1724bf; }
.photo-toolbar, .photo-controls { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1rem; }
.photo-toolbar h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); overflow-wrap: anywhere; min-width: 0; }
.photo-toolbar button, .photo-controls button { flex: none; }
.photo-stage { overflow: auto; height: min(40dvh, 26rem); background: #f4e8e4; }
.photo-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.photo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-stage.is-expanded img { width: auto; height: auto; max-width: none; margin-inline: auto; }
.photo-controls p { color: var(--muted); font-size: .85rem; }
.detail-order { display: grid; gap: .5rem; padding: .85rem 1rem 1.1rem; border-top: 1px solid var(--line); }
.detail-order .price { font-size: 1.3rem; }
.detail-order .hint:empty { display: none; }
#detail-quantity, .cart-row input { max-width: 7rem; }
.cart-dialog { max-width: 34rem; }
.storefront:has(.cart-dialog[open]) { overflow: hidden; }
.cart-body { padding: .35rem 1rem 1rem; overflow-wrap: anywhere; }
#cart-items { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.cart-row { display: grid; gap: .35rem; padding: .7rem; border: 1px solid var(--line); border-radius: .75rem; }
.cart-row-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.cart-row-issue { color: var(--accent); font-size: .88rem; }
.cart-row-issue:empty { display: none; }
#cart-summary { display: grid; gap: .55rem; margin-top: .85rem; }
.cart-subtotal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem; }
@media (max-width: 950px) { .storefront .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .masthead { min-height: 3.65rem; }
  .masthead .brand-logo { width: 9.5rem; }
  .editorial-hero { grid-template-columns: 1fr; }
  .hero-media { min-height: clamp(10rem, 44vw, 17rem); }
  .hero-copy { padding: 1rem; }
  .storefront .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .storefront .product-photo { transition: none; } }
.banner-carousel { position: absolute; inset: 0; }
.banner-stage { height: 100%; touch-action: pan-y pinch-zoom; }
.banner-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.banner-controls { position: absolute; inset: auto .55rem .5rem auto; display: flex; align-items: center; gap: .4rem; padding: .2rem; border-radius: 999px; background: var(--paper); font-size: .8rem; font-weight: 700; }
.banner-controls button { background: #fff; color: var(--accent); border: 1px solid var(--line); border-radius: 50%; min-width: 44px; min-height: 44px; cursor: pointer; font: inherit; font-size: 1.3rem; }
.editorial-footer { background: #f2e8e2; }
.footer-columns { display: grid; grid-template-columns: 1.4fr .9fr 1.15fr .9fr; gap: clamp(1.25rem, 4vw, 3rem); padding-block: 3rem; }
.footer-columns h2 { margin-bottom: .65rem; color: var(--ink); font: 400 1.1rem/1.3 var(--display-font); }
.footer-columns .brand-logo { width: min(11rem, 100%); margin-bottom: .65rem; }
.footer-columns p, .footer-columns nav a, .footer-columns #footer-whatsapp { font-size: .9rem; }
.footer-columns nav a { display: block; margin: .35rem 0; }
.footer-bottom { border-top: 1px solid #d8c9c5; padding-block: 1rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; }
@media (max-width: 760px) { .footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .footer-columns { grid-template-columns: 1fr; padding-block: 1.75rem; } }