@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");

:root {
  color-scheme: light;
  --paper: #fbf6f2;
  --white: #fffdfa;
  --ink: #2b172a;
  --muted: #685463;
  --plum: #37172f;
  --purple: #671e75;
  --rose: #f6bdd1;
  --line: #e6d7df;
  --pink-paper: #f6e7ee;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --edge: clamp(1.15rem, 5vw, 4.75rem);
  --content: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
button:not(:disabled), summary, select { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a24594; outline-offset: 4px; }
#catalogo, #preguntas { scroll-margin-top: 1.25rem; }

.shell { width: min(calc(100% - 2 * var(--edge)), var(--content)); margin-inline: auto; }
.visually-hidden, .shop-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 3;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  transform: translateY(-150%);
  background: var(--white);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--white); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.35rem; }
.header-inner { position: relative; min-height: 4.85rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; text-decoration: none; }
.brand img { width: 4.6rem; }
.brand span {
  padding-left: .8rem;
  border-left: 1px solid var(--line);
  color: var(--purple);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); }
.main-nav a, .footer-link { color: var(--muted); font-size: .875rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .footer-link:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .25em; }
.cart-button {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  gap: .55rem;
  padding: .35rem .65rem .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 700;
}
.cart-button:hover { background: var(--pink-paper); }
.bag-icon { position: relative; width: .85rem; height: .74rem; margin-top: .2rem; border: 1px solid; border-radius: 2px; }
.bag-icon::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 1px);
  width: .4rem;
  height: .23rem;
  transform: translateX(-50%);
  border: 1px solid;
  border-bottom: 0;
  border-radius: .4rem .4rem 0 0;
  content: "";
}
.cart-count {
  display: inline-grid;
  min-width: 1.35rem;
  min-height: 1.35rem;
  place-items: center;
  padding: 0 .22rem;
  border-radius: 2rem;
  background: var(--pink-paper);
  color: var(--plum);
  font-size: .7rem;
}

.hero { background: #300f24; color: #fff6f5; }
.hero-inner { display: grid; width: 100%; min-height: clamp(28rem, 36vw, 35rem); grid-template-columns: 45% 55%; }
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 3.5rem 2.5rem 3.75rem max(var(--edge), calc((100vw - var(--content)) / 2));
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: #fae3ec;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.age {
  display: inline-flex;
  min-height: 1.35rem;
  align-items: center;
  padding-inline: .38rem;
  border: 1px solid #aa6a8b;
  border-radius: 1rem;
  color: #ffd7e6;
  letter-spacing: .03em;
}
h1 { font-size: clamp(3.9rem, 7vw, 7.2rem); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--rose); font-weight: inherit; }
.hero-description { max-width: 27rem; margin-top: 1.35rem; color: #fae0e9; font-size: clamp(.98rem, 1.3vw, 1.14rem); }
.hero-copy .button { margin-top: 1.8rem; }
.hero-visual { position: relative; min-height: 100%; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #300f24 0%, rgb(48 15 36 / 0) 23%);
  pointer-events: none;
  content: "";
}
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  padding: .58rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.button-light { background: #ffebef; color: var(--plum); }
.button-light:hover { background: #ffd2e1; }
.button-primary { background: var(--plum); color: white; }
.button-primary:hover:not(:disabled) { background: var(--purple); }
.button-primary:disabled { background: #eee2e9; color: #685463; }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--plum); }
.button-secondary:hover { background: var(--pink-paper); }

.catalog { padding-block: clamp(2.5rem, 4.6vw, 4.4rem) clamp(3.5rem, 7vw, 6rem); }
h2 { font-size: clamp(2.35rem, 4.1vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.catalog-heading p { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.search-box {
  position: relative;
  display: flex;
  width: min(100%, 16rem);
  min-height: 2.75rem;
  align-items: center;
  gap: .65rem;
  padding-inline: .95rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: var(--white);
  color: var(--muted);
}
.search-box:focus-within { outline: 2px solid #a24594; outline-offset: 2px; }
.search-box input { width: 100%; padding: .45rem 0; border: 0; background: transparent; color: var(--ink); font-size: .88rem; }
.search-box input:focus { outline: 0; }
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.search-icon { position: relative; flex: 0 0 .69rem; width: .69rem; height: .69rem; border: 1.3px solid; border-radius: 50%; }
.search-icon::after { position: absolute; right: -.23rem; bottom: -.15rem; width: .32rem; border-bottom: 1.3px solid; transform: rotate(48deg); content: ""; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; margin-top: 1.55rem; }
.category-filters { display: flex; flex-wrap: wrap; gap: .42rem; }
.category-filters button {
  min-height: 2.45rem;
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: transparent;
  color: var(--plum);
  font-size: .85rem;
  font-weight: 600;
}
.category-filters button:hover { background: var(--pink-paper); }
.category-filters button[aria-pressed="true"] { border-color: var(--plum); background: var(--plum); color: white; }
.sort-control { display: flex; min-height: 2.65rem; align-items: center; gap: .55rem; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.sort-control select { min-height: 2.6rem; padding: .15rem .2rem; border: 0; background: var(--paper); color: var(--ink); font-weight: 700; }
.catalog-count { margin: .9rem 0 .75rem; color: var(--muted); font-size: .79rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.85rem, 2.1vw, 1.6rem); }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.product-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.product-picture { width: 100%; aspect-ratio: 1; border-radius: .6rem; background: var(--pink-paper); object-fit: cover; }
.product-open:hover .product-picture { filter: brightness(1.04); }
.product-open:hover .product-name { text-decoration: underline; text-underline-offset: .2em; }
.product-category {
  display: block;
  margin-top: .85rem;
  color: var(--purple);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.product-name { display: block; margin-top: .24rem; font-size: clamp(.95rem, 1.6vw, 1.13rem); font-weight: 700; line-height: 1.3; }
.product-bottom { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: .4rem; margin-top: auto; padding-top: .35rem; }
.product-price { color: var(--ink); font-size: .9rem; font-weight: 600; }
.product-add {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--plum);
  font-size: 1.25rem;
  line-height: 1;
}
.product-add:hover { border-color: var(--plum); background: var(--plum); color: white; }
.catalog-empty { padding: 2rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--muted); }
.catalog-empty .button { margin-top: .8rem; }

.faq { border-block: 1px solid #efdce6; background: var(--pink-paper); }
.faq-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.faq-list details { border-bottom: 1px solid #dfc6d6; }
.faq-list details:first-child { border-top: 1px solid #dfc6d6; }
.faq-list summary { position: relative; padding: .95rem 2.1rem .95rem 0; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: .85rem; right: .3rem; color: var(--purple); font-size: 1.2rem; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 36rem; padding: 0 2rem 1.05rem 0; color: var(--muted); }
.site-footer { background: var(--white); }
.footer-inner { min-height: 6rem; color: var(--muted); font-size: .85rem; }
.footer-link { white-space: nowrap; }

dialog {
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--white);
  color: var(--ink);
}
dialog::backdrop { background: rgb(29 11 24 / .64); }
.close-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  place-items: center;
  padding: 0 0 .14rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.5rem;
  line-height: 1;
}
.close-button:hover { background: var(--pink-paper); }
.product-dialog { position: relative; width: min(calc(100% - 2rem), 48rem); }
.product-dialog .close-button { position: absolute; z-index: 1; top: .75rem; right: .75rem; }
#product-detail { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; }
.detail-image { width: 100%; height: 100%; aspect-ratio: 1 / 1.1; background: var(--pink-paper); object-fit: cover; }
.detail-copy { padding: 2.35rem 1.6rem 1.6rem; }
.detail-copy .product-category { margin: 0 0 .5rem; }
.detail-title { padding-right: .75rem; font-size: clamp(1.9rem, 4vw, 2.75rem); }
.detail-description, .detail-attributes { margin-top: .8rem; color: var(--muted); font-size: .93rem; }
.detail-attributes { padding-left: 1.15rem; }
.detail-price { margin-top: 1.2rem; font-size: 1.2rem; font-weight: 700; }
.detail-add { margin-top: .9rem; }
.detail-status { margin-top: .65rem; color: var(--purple); font-size: .86rem; }
.detail-status:empty { display: none; }
.cart-dialog { inset: 0 0 0 auto; width: min(100%, 29rem); height: 100%; max-width: 100%; max-height: 100%; margin: 0; border: 0; border-radius: .9rem 0 0 .9rem; }
.cart-panel { display: flex; height: 100%; flex-direction: column; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.4rem 1.2rem; border-bottom: 1px solid var(--line); }
.cart-heading h2 { font-size: 2.15rem; }
.cart-body { flex: 1; overflow: auto; padding-inline: 1.4rem; }
.cart-empty { display: grid; justify-items: start; gap: .9rem; padding-block: 1.5rem; }
.cart-items { padding: 0; list-style: none; }
.cart-item { display: grid; grid-template-columns: 3.7rem minmax(0, 1fr) auto; align-items: start; gap: .65rem .75rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.cart-item-image { width: 3.7rem; aspect-ratio: 1; border-radius: .4rem; object-fit: cover; }
.cart-item-title { font-size: .9rem; font-weight: 700; }
.cart-item-price, .cart-item-total, .cart-remove { font-size: .79rem; }
.cart-item-price { color: var(--muted); }
.cart-item-actions { display: grid; justify-items: end; }
.cart-item-total { font-weight: 700; }
.cart-quantity { display: flex; width: fit-content; min-height: 2rem; align-items: center; gap: .48rem; margin-top: .38rem; border: 1px solid var(--line); border-radius: 1rem; font-size: .82rem; }
.cart-quantity-button { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 1rem; background: transparent; }
.cart-quantity-button:hover:not(:disabled) { background: var(--pink-paper); }
.cart-quantity-button:disabled { color: #a692a1; }
.cart-remove { width: fit-content; min-height: 2rem; padding: 0; border: 0; background: transparent; color: var(--purple); text-decoration: underline; text-underline-offset: .18em; }
.cart-summary { display: grid; gap: .75rem; padding: 1.15rem 1.4rem 1.45rem; border-top: 1px solid var(--line); background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.05rem; }
#cart-note { color: var(--muted); font-size: .84rem; }
.shop-status:not(:empty) {
  position: fixed;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  max-width: min(calc(100% - 2rem), 27rem);
  padding: .75rem 1rem;
  border-radius: .55rem;
  background: var(--plum);
  color: white;
  font-size: .86rem;
  box-shadow: 0 2px 12px rgb(43 23 42 / .19);
  pointer-events: none;
}

@media (max-width: 56rem) {
  .hero-copy { padding-left: var(--edge); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .header-inner { min-height: 4.15rem; }
  .main-nav { display: none; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem var(--edge) .75rem; }
  .eyebrow { margin-bottom: .8rem; }
  h1 { font-size: clamp(3.6rem, 12vw, 6rem); }
  .hero-description { margin-top: .95rem; }
  .hero-copy .button { margin-top: 1.2rem; }
  .hero-visual { min-height: clamp(13.25rem, 58vw, 20.5rem); }
  .hero-visual::after { background: linear-gradient(180deg, #300f24 0%, rgb(48 15 36 / 0) 28%); }
  .hero-photo { object-position: center 60%; }
  .catalog-heading, .catalog-toolbar { align-items: start; flex-direction: column; }
  .catalog-toolbar { gap: .55rem; margin-top: .85rem; }
  .search-box { width: 100%; }
  .catalog-count { margin-top: .4rem; }
  .product-bottom { flex-wrap: wrap; }
  .faq-inner { grid-template-columns: 1fr; gap: 1.1rem; }
  .faq-inner h2 br { display: none; }
  .footer-inner { min-height: 0; flex-wrap: wrap; gap: .9rem 1.5rem; padding-block: 1.2rem; }
  .footer-inner p { order: 1; flex-basis: 100%; }
  #product-detail { grid-template-columns: 1fr; }
  .detail-image { height: min(44vw, 13.5rem); aspect-ratio: auto; object-position: center; }
  .detail-copy { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
