:root {
  --paper: #fff9f3;
  --ink: #282026;
  --muted: #665762;
  --line: #e5d8d7;
  --accent: #a12159;
  --pink: #f6c9dc;
  --heading: Rubik, Arial, sans-serif;
  --body: Nunito, Arial, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; }
h2 { font-size: clamp(26px, 3.3vw, 46px); letter-spacing: -.05em; }
img { display: block; max-width: 100%; }
button, select, textarea, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { z-index: 30; padding: 12px; background: white; }

.announcement { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 7px 5%; background: var(--ink); color: #fff7f2; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.partner-links { display: flex; gap: 18px; letter-spacing: 0; }
.partner-links a:hover, .footer a:hover { text-decoration: underline; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 5%; background: var(--paper); min-height: 83px; position: relative; z-index: 2; }
.brand { display: inline-block; }
.brand img { width: 104px; height: auto; }
.header nav, .header-actions { display: flex; gap: 24px; align-items: center; }
.header nav a { font-weight: 800; padding-block: 10px; }
.header nav a:hover, .header nav .active { color: var(--accent); }
.header-actions { gap: 6px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.icon-button:hover { background: #f2e2e7; }
.icon-button[aria-pressed=true] { color: var(--accent); }
.icon-button[aria-pressed=true] svg { fill: #ed9bbd; }
.cart-count { display: grid; place-items: center; min-width: 18px; padding: 0 4px; height: 18px; border-radius: 10px; font-size: 10px; font-weight: 800; background: var(--accent); color: white; }
.mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin: 0 auto; min-height: 510px; padding: 0 2.2%; }
.hero-content { padding: clamp(30px, 5vw, 80px) clamp(22px, 5vw, 78px); background: #f5e8d9; border-radius: 23px 0 0 23px; align-content: center; }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 900; letter-spacing: .13em; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.hero h1 { font-size: clamp(49px, 6.3vw, 95px); line-height: .96; letter-spacing: -.076em; font-weight: 800; margin: 20px 0; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { max-width: 360px; font-size: 16px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 25px; }
.hero-secondary { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.hero-secondary:hover { text-decoration: underline; }
.button { border-radius: 100px; font-size: 14px; letter-spacing: 0; padding: 12px 20px; gap: 12px; text-align: center; }
.red { background: var(--accent); color: white; }
.red:hover { background: #7f1646; }
.light { background: var(--paper); color: var(--ink); }
.light:hover { background: white; }
.outline { background: transparent; border-color: var(--line); }
.outline:hover { background: #f5e9ed; }

.hero-art { position: relative; overflow: hidden; min-height: 350px; border-radius: 0 23px 23px 0; isolation: isolate; background: radial-gradient(circle at 52% 42%, #ffe6f0, #f1a9ca 85%); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#a1215938 1.2px, transparent 1.2px) 0 0 / 19px 19px; mask-image: linear-gradient(145deg,#000,transparent 85%); }
.hero-tile { position: absolute; overflow: hidden; border-radius: 20px; box-shadow: 0 15px 26px #692b4542, inset 0 0 0 1px #ffffffa6; }
.hero-tile img { width: 100%; height: 100%; padding: 6px; object-fit: contain; mix-blend-mode: multiply; }
.tile-letters { width: 53%; height: 44%; top: 13%; left: 14%; transform: rotate(-13deg); background: #fffbf2; z-index: 2; }
.tile-cherries { width: 32%; height: 44%; top: 8%; right: 9%; transform: rotate(13deg); background: #fff0d1; }
.tile-flowers { width: 32%; height: 47%; bottom: 10%; left: 17%; transform: rotate(-12deg); background: #e8f2db; }
.tile-hearts { width: 49%; height: 39%; bottom: 12%; right: 9%; transform: rotate(10deg); background: #f4e6ff; z-index: 3; }

.categories { padding-top: 50px; padding-bottom: 54px; }
.team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.team { display: flex; align-items: center; gap: 14px; padding: 10px 17px 10px 10px; min-width: 0; min-height: 100px; border: 1px solid #00000012; border-radius: 15px; transition: transform .2s, box-shadow .2s; }
.team:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #35242915; }
.team img { flex: none; width: clamp(52px,7vw,104px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.team strong { font: 700 clamp(16px,1.7vw,23px)/1.15 var(--heading); letter-spacing: -.035em; }
.team svg { margin-left: auto; }
.category-letters { background: #fae1ea; }
.category-charms { background: #e7efe0; }
.category-sets { background: #f9ebcc; }

.products { padding-bottom: 54px; }
.shop-page .products { padding-top: clamp(26px, 4vw, 56px); }
.shop-page h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -.05em; }
.products > .section-heading + .product-grid { margin-top: 20px; }
.section-heading, .product-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; }
.collection-note, .product-counter { color: var(--muted); }
.product-toolbar { margin-top: 20px; align-items: center; flex-wrap: wrap; }
.filters, .catalog-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button, #sort { min-height: 44px; background: white; border: 1px solid var(--line); border-radius: 40px; padding: 8px 16px; font-weight: 800; }
.filters button:hover { background: #fae9f0; }
.filters button[aria-pressed=true], .filters button[aria-pressed=true]:hover { background: var(--ink); border-color: var(--ink); color: white; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; border: 1px solid var(--line); background: white; border-radius: 40px; }
.search-field svg { width: 17px; }
.search-field input { min-width: 0; width: 158px; border: 0; background: none; padding-block: 6px; }
.search-field:focus-within { outline: 2px solid var(--accent); }
.search-field input:focus { outline: 0; }
.product-counter { margin: 14px 0; font-size: 14px; }
.product-card { position: relative; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 7px 7px 14px; background: #fff; }
.product-image { width: 100%; aspect-ratio: 1.15; padding: 10px 14px; display: grid; place-items: center; overflow: hidden; border: 0; background: #f6ece7; border-radius: 11px; }
.product-card[data-kind=letras] .product-image { background: #f7e9ef; }
.product-card[data-kind=sets] .product-image { background: #fff4da; }
.product-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; transition: transform .23s; }
.product-image:hover img { transform: scale(1.06); }
.favorite { position: absolute; top: 11px; right: 11px; background: #fffdf5ed; }
.product-team { margin: 14px 8px 5px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.product-card h3 { margin: 0 8px 9px; font-size: clamp(15px,1.5vw,19px); line-height: 1.25; }
.product-card h3 a:hover { text-decoration: underline; }
.product-price { display: flex; justify-content: space-between; align-items: center; gap: 3px; margin: auto 8px 0; }
.product-price strong { font-size: 16px; }
.product-price small { display: block; color: var(--muted); font-size: 12px; }
.add-cart { flex: none; background: var(--ink); color: white; }
.add-cart:hover { background: var(--accent); }
.collection-link { display: flex; width: fit-content; margin: 22px auto 0; }
#empty-state { padding: 20px 0; }
#reset-filter { background: transparent; border: 0; text-decoration: underline; min-height: 44px; }

.palette { display: grid; grid-template-columns: minmax(190px,.7fr) 1fr; gap: 18px 36px; align-items: center; padding-block: 30px 56px; }
.palette h2 { font-size: clamp(24px,2.9vw,36px); margin-bottom: 8px; }
.palette p { color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.swatches li { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: 13px; padding: 4px 8px; }
.swatches span { width: 15px; height: 15px; border: 1px solid #0003; border-radius: 50%; }
.club { display: grid; grid-template-columns: .9fr 1fr; gap: 36px; max-width: 1378px; margin: 0 auto 38px; width: 95.6%; padding: clamp(22px,5vw,62px); color: white; background: #761841; border-radius: 20px; }
.club p { margin: 12px 0 18px; max-width: 400px; }
.terms { display: grid; gap: 13px; margin: 0; }
.terms div { padding-top: 11px; border-top: 1px solid #ffffff5c; }
.terms dt { font-weight: 900; }
.terms dd { margin: 3px 0 0; color: #fff0f6; }

.footer { background: var(--ink); color: #fff8f6; padding: 24px 5%; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.footer-top a { min-height: 44px; display: inline-flex; align-items: center; }
.footer .brand img { filter: brightness(0) invert(1); width: 94px; }
.footer-bottom { border-top: 1px solid #ffffff40; padding-top: 12px; margin-top: 16px; font-size: 13px; }

dialog { color: var(--ink); background: var(--paper); border: 0; box-shadow: 0 20px 90px #21101e66; }
dialog::backdrop { background: #2516228a; }
.product-detail { width: min(890px,calc(100% - 24px)); max-height: 92dvh; padding: 20px 24px 24px; border-radius: 18px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.detail-main { display: grid; place-items: center; background: #f4e7e8; border-radius: 12px; aspect-ratio: 1; padding: 12px; overflow: hidden; }
.detail-main img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.detail-copy h2 { font-size: clamp(26px,3vw,38px); margin-bottom: 10px; }
#detail-description { color: var(--muted); margin-bottom: 10px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 6px; font-weight: 900; }
.lot-options { display: grid; gap: 5px; }
.lot-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 9px; background: white; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.lot-options label:has(input:checked) { border-color: var(--accent); background: #fbe9f1; }
.lot-options input { accent-color: var(--accent); }
.lot-options strong { margin-left: auto; }
.detail-price { margin: 10px 0; font-weight: 900; color: var(--accent); font-size: 18px; }

.cart-dialog { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(100%, 440px); height: 100dvh; max-height: 100dvh; max-width: 100%; padding: 19px; }
.cart-dialog h2 { font-size: 31px; }
.cart-line { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 66px; height: 66px; object-fit: contain; border-radius: 8px; background: white; }
.cart-line h3 { font-size: 16px; }
.cart-line p { margin: 4px 0; color: var(--muted); }
.cart-quantity { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cart-quantity .icon-button { border: 1px solid var(--line); border-radius: 8px; }
.remove-item { background: none; min-height: 44px; border: 0; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; gap: 8px; font-size: 20px; padding: 12px 0; }
.order-note { font-size: 14px; font-weight: 800; }
textarea { width: 100%; padding: 8px; border: 1px solid #9b8991; border-radius: 8px; resize: vertical; }
.cart-dialog .button { width: 100%; margin-top: 8px; }
.demo-note { font-size: 14px; color: var(--muted); }
.toast { position: fixed; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 10px 16px; background: var(--ink); color: white; border-radius: 12px; max-width: calc(100% - 30px); }
.toast:empty { display: none; }

@media (max-width: 820px) {
  .hero { min-height: 430px; }
  .header nav { gap: 12px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 640px) {
  .announcement { flex-wrap: wrap; gap: 2px 12px; padding-block: 5px; font-size: 10px; }
  .partner-links { gap: 12px; }
  .partner-links a { display: inline-flex; align-items: center; min-height: 24px; }
  .header { min-height: 62px; gap: 6px; }
  .brand img { width: 78px; }
  .header-actions { gap: 1px; }
  .mobile-menu { display: inline-grid; }
  .header nav { display: none; position: absolute; inset: 100% 0 auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 9px 5%; align-items: stretch; flex-direction: column; gap: 0; }
  .header nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 0 4%; }
  .hero-content { border-radius: 18px 18px 0 0; }
  .hero h1 { font-size: clamp(45px,10vw,66px); }
  .hero-art { min-height: clamp(245px,70vw,355px); border-radius: 0 0 18px 18px; }
  .hero-tile { border-radius: 13px; }
  .hero-tile img { padding: 4px; }
  .categories { padding-block: 32px; }
  .team-grid { grid-template-columns: 1fr; gap: 7px; }
  .team { min-height: 65px; padding-block: 5px; }
  .team img { width: 54px; }
  .section-heading { align-items: start; flex-direction: column; gap: 3px; }
  .catalog-controls { width: 100%; }
  .search-field { flex: 1 1 155px; }
  .search-field input { width: 100%; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { padding: 5px 5px 8px; }
  .product-image { padding: 12px 6px; }
  .favorite { top: 7px; right: 7px; }
  .product-price { margin-inline: 4px; }
  .product-price strong { font-size: 14px; }
  .palette, .club, .detail-layout { grid-template-columns: 1fr; }
  .club { gap: 22px; width: 92%; }
  .products { padding-bottom: 32px; }
  .product-detail { padding: 12px; }
  .detail-main { height: min(215px, 36dvh); aspect-ratio: auto; }
  .detail-layout { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
