/* Luna Intimate — shared styles for the store, account and checkout pages.
   Palette sampled from the logo: perla (background), tinta (wordmark),
   luna (script pink) and the orchid/steel reflections of the glass X. */

@font-face { font-family: "Red Hat Mono"; src: url("/fonts/red-hat-mono-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --perla: #f0efea;
  --perla-raised: #f8f7f3;
  --perla-sunk: #e7e5de;
  --line: #dcd9d1;
  --line-strong: #8f8a83;
  --tinta: #262423;
  --tinta-soft: #3a3735;
  --texto-2: #5f5a56;
  --luna: #ee569f;
  --luna-deep: #b52f72;
  --orquidea: #bd7bf6;
  --acero: #4e7e93;
  --exito: #2f6b4a;
  --error: #a3264f;

  --font-display: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-text: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius-card: 22px;
  --radius-field: 14px;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--perla); color: var(--tinta); font-family: var(--font-text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--luna-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(238, 86, 159, .22); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon.small { width: 17px; height: 17px; }
.muted { color: var(--texto-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: var(--perla); font-size: 15px; }
.skip-link:focus { top: 12px; }

/* Type */
.display-1, .display-2, .display-3, .hero__title, .band__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.display-1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.display-2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06; }
.display-3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; }

/* Actions */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border: 1.5px solid var(--tinta); border-radius: 999px; background: var(--tinta); color: var(--perla); font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: .005em; text-align: center; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.button:hover:not(:disabled) { background: var(--luna-deep); border-color: var(--luna-deep); }
.button:disabled { opacity: .45; }
.button .icon { width: 18px; height: 18px; }
.button--outline { background: transparent; color: var(--tinta); }
.button--outline:hover:not(:disabled) { background: var(--tinta); border-color: var(--tinta); color: var(--perla); }
.button--light { background: transparent; border-color: var(--perla); color: var(--perla); }
.button--light:hover:not(:disabled) { background: var(--perla); border-color: var(--perla); color: var(--tinta); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--tinta); font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-align: left; transition: color .2s, text-decoration-color .2s; }
.text-link:hover { color: var(--luna-deep); text-decoration-thickness: 2px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; transition: background-color .2s; }
.icon-button:hover { background: var(--perla-sunk); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--perla); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: block; flex-shrink: 0; }
.brand img { width: auto; height: 70px; }
.desktop-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 34px); font-size: 15px; white-space: nowrap; }
.desktop-nav > a, .desktop-nav > button, .nav-trigger { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; }
.desktop-nav > a::after, .desktop-nav > button::after, .nav-trigger::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--luna); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.desktop-nav > a:hover::after, .desktop-nav > button:hover::after, .nav-trigger:hover::after, .nav-group.open .nav-trigger::after { transform: scaleX(1); }
.nav-trigger .icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.nav-group { position: relative; }
.nav-group.open .nav-trigger .icon { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: -20px; display: none; min-width: 240px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--perla-raised); box-shadow: 0 28px 60px -32px rgba(38, 36, 35, .35); }
.nav-group.open .dropdown { display: grid; animation: drop-in .22s var(--ease); }
.dropdown a { padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.dropdown a:first-child { font-weight: 700; }
.dropdown a:hover { background: var(--perla-sunk); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.menu-toggle { display: none; }
.cart-button { position: relative; }
#cart-count { position: absolute; top: 4px; right: 2px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--luna); color: var(--tinta); font-size: 11px; font-weight: 700; line-height: 1; }

/* Glass forms taken from the X of the logo */
.glass-pill { position: relative; display: block; width: 30%; max-width: 120px; aspect-ratio: 1 / 2.7; border-radius: 999px; transform: rotate(45deg);
  background:
    radial-gradient(70% 22% at 32% 10%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%),
    linear-gradient(90deg, rgba(43, 39, 48, .5), rgba(255, 255, 255, .92) 16%, #f4f3f0 52%, #e3e1e0 84%, rgba(53, 44, 60, .55));
  box-shadow: inset 2px 0 0 rgba(238, 86, 159, .55), inset -2px 0 0 rgba(189, 123, 246, .5), inset 0 0 0 1px rgba(255, 255, 255, .7), inset 12px 0 22px -12px rgba(238, 86, 159, .45), inset -14px 0 26px -12px rgba(78, 126, 147, .35); }
.glass-pill--tiny { width: 9px; max-width: none; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .display-2 { max-width: 22ch; }
.section__foot { display: flex; justify-content: center; margin-top: 40px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.product-card { position: relative; min-width: 0; }
.product-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-card); background: var(--perla-raised); border: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { display: grid; gap: 4px; padding: 16px 4px 0; }
.product-card__name { font-size: 16px; line-height: 1.4; }
.product-card__name::after { content: ""; position: absolute; inset: 0; }
.product-card__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card__price { font-size: 16px; font-weight: 700; }
.product-card__tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--perla); font-size: 13px; }
.empty-state { display: grid; justify-items: center; gap: 12px; padding: clamp(36px, 5vw, 56px) 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--perla-raised); text-align: center; }
.empty-state .glass-pill { width: 44px; margin-bottom: 18px; }
.empty-state h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.empty-state p { max-width: 42ch; color: var(--texto-2); }

/* Product page */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 28px; color: var(--texto-2); font-size: 14px; }
.breadcrumbs a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 4px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.gallery { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.thumbnails { display: flex; flex-direction: column; gap: 10px; }
.thumbnail { display: grid; place-items: center; height: 80px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--perla-raised); transition: border-color .2s; }
.thumbnail.selected { border-color: var(--tinta); }
.thumbnail:hover { border-color: var(--line-strong); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: var(--perla-raised); border: 1px solid var(--line); }
.soon-badge { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 7px 14px; border-radius: 999px; background: var(--perla); font-size: 13px; }
.image-placeholder { display: grid; justify-items: center; gap: 36px; color: var(--texto-2); font-size: 15px; }
.image-placeholder .glass-pill { width: 72px; }
.image-placeholder:has(.main-product-image) { position: absolute; inset: 0; }
.main-product-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-counter { position: absolute; left: 22px; bottom: 20px; font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-counter > span:last-child { color: var(--texto-2); margin-left: 4px; }
.gallery-next { position: absolute; right: 14px; bottom: 12px; background: var(--perla); }
.product-info { padding-top: 8px; }
.product-brand { margin-bottom: 14px; color: var(--texto-2); font-size: 15px; }
.product-info h1 { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.product-price > span { font-size: 24px; font-weight: 700; }
.product-price small { color: var(--texto-2); font-size: 14px; }
.launch-note { max-width: 46ch; color: var(--texto-2); }
.feature-list { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; align-items: baseline; }
.feature-list .icon { width: 17px; height: 17px; color: var(--luna-deep); transform: translateY(3px); }
.variant-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.variant-heading { display: flex; gap: 10px; font-size: 15px; }
.variant-heading > span:first-child { font-weight: 700; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.variant-options:empty { display: none; }
.real-variant { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; transition: background-color .2s, color .2s; }
.real-variant.selected { background: var(--tinta); border-color: var(--tinta); color: var(--perla); }
.purchase-row { display: flex; gap: 12px; margin-top: 28px; }
.quantity { display: flex; align-items: center; flex-shrink: 0; height: 52px; padding: 0 6px; border: 1.5px solid var(--tinta); border-radius: 999px; }
.quantity button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; }
.quantity button:hover:not(:disabled) { background: var(--perla-sunk); }
.quantity button:disabled { color: var(--line-strong); }
.quantity .icon { width: 16px; height: 16px; }
.quantity input { width: 34px; padding: 0; border: 0; background: none; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.add-to-cart { flex: 1; }
.purchase-note { margin-top: 12px; color: var(--texto-2); font-size: 14px; text-align: center; }
.shopping-details { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.shopping-details > * { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.shopping-details > * > span { flex: 1; }
.shopping-details small { display: block; color: var(--texto-2); font-size: 14px; }
.shopping-details > *:hover > span { color: var(--luna-deep); }
.product-details { border-top: 1px solid var(--line); }
.product-details__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 32px; }
.product-details__text { max-width: 60ch; color: var(--texto-2); white-space: pre-line; }
.spec-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list > div:first-child { border-top: 1px solid var(--line); }
.spec-list dt { font-weight: 700; }
.spec-list dd { color: var(--texto-2); }
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); padding-block: 12px clamp(64px, 8vw, 112px); }
.faq-intro p { max-width: 36ch; margin: 20px 0 22px; color: var(--texto-2); }
.faq-list h3 { margin: 0 0 8px; color: var(--texto-2); font-size: 15px; font-weight: 700; }
.faq-list h3:not(:first-child) { margin-top: 36px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; }
.faq-list summary:hover { color: var(--luna-deep); }
.faq-list summary .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.faq-list details > p { max-width: 60ch; padding: 0 32px 22px 0; color: var(--texto-2); }
summary::-webkit-details-marker { display: none; }
details[open] > summary .icon { transform: rotate(45deg); }
.related { border-top: 1px solid var(--line); }

/* Catalog */
.catalog-view { padding-bottom: clamp(64px, 8vw, 112px); min-height: 70vh; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin: 12px 0 32px; }
.catalog-heading > p { max-width: 38ch; color: var(--texto-2); }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--tinta); }
.chip.active { background: var(--tinta); border-color: var(--tinta); color: var(--perla); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; margin-bottom: 32px; border-block: 1px solid var(--line); color: var(--texto-2); font-size: 15px; }
.catalog-toolbar label { display: flex; align-items: center; gap: 10px; }
.catalog-toolbar select { min-height: 40px; padding: 0 30px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--perla-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262423' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; color: var(--tinta); font-size: 15px; appearance: none; }
.catalog-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(48px, 8vw, 96px) 24px; border-radius: var(--radius-card); background: var(--perla-raised); border: 1px solid var(--line); text-align: center; }
.catalog-empty .glass-pill { width: 52px; margin-bottom: 26px; }
.catalog-empty h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.035em; }
.catalog-empty p { max-width: 44ch; color: var(--texto-2); }
.catalog-empty .button { margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.site-footer__main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-logo img { width: auto; height: 120px; margin: -6px 0 18px -6px; }
.site-footer__brand p { margin-bottom: 14px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.site-footer__brand .text-link { font-size: 15px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
.footer-column h2 { margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.footer-column a, .footer-column button { color: var(--texto-2); text-align: left; }
.footer-column a:hover, .footer-column button:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 24px 32px; background: linear-gradient(var(--line), var(--line)) no-repeat top center / calc(100% - 2 * var(--gutter)) 1px; color: var(--texto-2); font-size: 14px; }
.site-footer__bottom nav { display: flex; gap: 20px; }
.site-footer__bottom nav button:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 4px; }
.age-note { color: var(--tinta); }

.floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 35; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; background: var(--tinta); color: var(--perla); font-size: 15px; box-shadow: 0 18px 40px -20px rgba(38, 36, 35, .6); transition: background-color .2s; }
.floating-contact:hover { background: var(--luna-deep); }

/* Panels and dialogs */
.side-panel, .info-dialog { border: 0; padding: 0; color: var(--tinta); }
.side-panel::backdrop, .info-dialog::backdrop { background: rgba(38, 36, 35, .42); backdrop-filter: blur(6px); }
.side-panel { position: fixed; inset: 0 0 0 auto; width: 480px; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; overflow: auto; background: var(--perla); }
.side-panel[open] { animation: slide-in .35s var(--ease); }
.panel-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; background: var(--perla); border-bottom: 1px solid var(--line); }
.panel-header h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
#panel-body { padding: 28px; }
.panel-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 0 8px; text-align: center; }
.panel-empty .glass-pill { width: 40px; margin-bottom: 18px; }
.panel-empty h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.panel-empty p { max-width: 32ch; margin-bottom: 12px; color: var(--texto-2); }
.panel-footnote { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--texto-2); font-size: 15px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 0 8px 0 18px; min-height: 56px; border: 1.5px solid var(--tinta); border-radius: 999px; background: var(--perla-raised); }
.search-input-wrap:focus-within { outline: 2px solid var(--luna-deep); outline-offset: 3px; }
.search-input-wrap input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; font-size: 17px; }
.search-input-wrap input:focus { outline: none; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.search-label { margin: 28px 0 12px; color: var(--texto-2); font-size: 15px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-results { padding-top: 32px; }
.search-results h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.search-results > p { color: var(--texto-2); }
.search-results .text-link { margin-top: 18px; }
.search-product-list { display: grid; margin-top: 16px; border-top: 1px solid var(--line); }
.search-product { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-product > span { flex: 1; }
.search-product:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.cart-items { display: grid; }
.cart-item { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item h3 { margin-bottom: 4px; font-size: 17px; font-weight: 700; }
.cart-item p { color: var(--texto-2); font-size: 15px; }
.cart-item > .text-link { align-self: flex-start; font-size: 14px; }
.cart-quantity { display: flex; align-items: center; gap: 14px; width: max-content; margin-top: 14px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 999px; font-variant-numeric: tabular-nums; }
.cart-quantity button { width: 36px; height: 36px; border-radius: 999px; font-size: 18px; }
.cart-quantity button:hover { background: var(--perla-sunk); }
.cart-total { display: flex; justify-content: space-between; margin-top: 24px; font-size: 18px; }
.cart-total strong { font-weight: 700; }
.checkout-button { width: 100%; margin-top: 20px; }
.mobile-nav { display: grid; }
.mobile-nav > a, .mobile-nav > button, .mobile-nav summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; text-align: left; }
.mobile-nav summary { cursor: pointer; list-style: none; }
.mobile-nav summary .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav details summary { border-bottom: 0; }
.mobile-nav details a { display: block; padding: 10px 0 10px 16px; color: var(--texto-2); font-size: 16px; }
.mobile-nav details a:last-child { padding-bottom: 20px; }
.info-dialog { position: fixed; width: 560px; max-width: calc(100% - 32px); max-height: calc(100dvh - 48px); margin: auto; overflow: auto; border-radius: 28px; background: var(--perla-raised); box-shadow: 0 40px 90px -40px rgba(38, 36, 35, .5); }
.info-dialog[open] { animation: rise-in .3s var(--ease); }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.info-content { padding: 52px 44px 40px; }
.info-content > .glass-pill { width: 28px; margin: 0 0 30px 10px; }
.info-content h2 { margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.info-content > p { color: var(--texto-2); }
.info-fields { margin-top: 24px; border-top: 1px solid var(--line); }
.info-fields > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-fields dt { font-weight: 700; }
.info-fields dd { color: var(--texto-2); }
.info-content > .button { width: 100%; margin-top: 32px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 120; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px; background: var(--tinta); color: var(--perla); font-size: 15px; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
  .footer-logo img { height: 104px; margin: 0; }
  .site-footer__brand p { margin: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { gap: 8px; }
  .brand { margin-right: auto; }
  .brand img { height: 56px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; display: flex; flex-direction: column-reverse; gap: 12px; }
  .thumbnails { flex-direction: row; }
  .thumbnail { width: 64px; height: 72px; }
  .product-details__grid, .faq-section { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { padding-inline: 12px; }
  .brand img { height: 50px; }
  .account-button { display: none; }
  .icon-button { width: 42px; height: 42px; }
  .section__head { align-items: flex-start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .product-card__media { border-radius: 18px; }
  .product-card__name, .product-card__price { font-size: 15px; }
  .purchase-row { flex-wrap: wrap; }
  .add-to-cart { min-width: 180px; }
  .catalog-toolbar { flex-wrap: wrap; }
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .info-content { padding: 48px 26px 30px; }
  #panel-body { padding: 24px 20px; }
  .panel-header { padding: 18px 20px; }
  .floating-contact { right: 16px; bottom: 16px; width: 52px; padding: 0; justify-content: center; }
  .floating-contact > span { display: none; }
  .toast { bottom: 88px; border-radius: 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
