:root {
  color-scheme: light;
  --ink: #1b1916;
  --muted: #6d675f;
  --cream: #f4efe6;
  --paper: #fcfaf6;
  --white: #ffffff;
  --gold: #9b7b45;
  --line: #ded7cb;
  --success: #42634f;
  --danger: #8a514b;
  --radius: 1.15rem;
  --shadow: 0 16px 44px rgba(43, 36, 26, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 4px; background: var(--gold); z-index: 20; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.sr-only { 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: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--ink); color: white; z-index: 100; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #b98d42; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(252, 250, 246, .94); border-bottom: 1px solid rgba(222, 215, 203, .8); backdrop-filter: blur(12px); }
.header-inner { height: 4.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-mark { font: 600 1.6rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.brand-text { font-size: .72rem; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); }
.header-whatsapp { font-weight: 700; font-size: .82rem; text-underline-offset: .3rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.account-control { position: relative; }
.account-button { min-height: 2.75rem; max-width: 9rem; display: inline-flex; align-items: center; gap: .42rem; border: 1px solid transparent; border-radius: 999px; padding: .45rem .6rem; background: transparent; color: var(--ink); font-size: .75rem; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.account-button:hover, .account-button[aria-expanded="true"] { border-color: var(--line); background: var(--white); }
.account-button.auth-pending { visibility: hidden; }
.account-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-icon { position: relative; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 50%; }
.account-icon::before { content: ""; position: absolute; left: 50%; top: .21rem; width: .36rem; height: .36rem; border: 1.3px solid currentColor; border-radius: 50%; transform: translateX(-50%); }
.account-icon::after { content: ""; position: absolute; left: 50%; bottom: .18rem; width: .72rem; height: .38rem; border: 1.3px solid currentColor; border-radius: .55rem .55rem .3rem .3rem; transform: translateX(-50%); }
.account-button:has(.account-avatar:not([hidden])) .account-icon { display: none; }
.account-avatar { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.account-menu { position: absolute; z-index: 40; right: 0; top: calc(100% + .45rem); width: min(17rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); box-shadow: var(--shadow); }
.account-menu-identity { display: grid; gap: .18rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.account-menu-identity strong { overflow: hidden; font: 500 1rem Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-identity span { overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu > button { width: 100%; min-height: 2.65rem; border: 0; border-bottom: 1px solid rgba(222, 215, 203, .7); padding: .7rem 1rem; background: white; color: var(--ink); text-align: left; font-size: .75rem; font-weight: 700; cursor: pointer; }
.account-menu > button:last-child { border-bottom: 0; color: var(--muted); }
.account-menu > button:hover { background: var(--cream); }
.cart-button { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .75rem; background: var(--white); color: var(--ink); font-weight: 800; cursor: pointer; }
.cart-button > span:nth-child(2) { display: none; }
.cart-button strong { min-width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .68rem; }
.cart-button.cart-pulse { animation: cart-pulse .45s ease-out; }
@keyframes cart-pulse { 50% { transform: scale(1.07); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(155, 123, 69, .12); } }

.intro { padding: 2.25rem 0 1.5rem; max-width: 46rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 18ch; font-size: clamp(2rem, 8.5vw, 4rem); line-height: .98; }
.intro > p:nth-of-type(2) { max-width: 38rem; color: var(--muted); line-height: 1.6; margin: 1rem 0 0; font-size: .96rem; }
.payment-return-status { max-width: 44rem; margin-top: 1rem !important; padding: .85rem 1rem; border: 1px solid #d7c79d; border-radius: .8rem; background: #fff8df; color: var(--ink) !important; }
.payment-return-status[data-status="approved"] { border-color: #a8c4b2; background: #eff8f2; }
.payment-return-status[data-status="failure"] { border-color: #d8b5b1; background: #fff2f0; }

.catalog-tools { display: grid; gap: .75rem; padding: .8rem 0 1rem; }
.search-field { position: relative; display: block; }
.search-field input { width: 100%; min-height: 3.35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: .85rem 1rem .85rem 3rem; color: var(--ink); }
.search-field input::placeholder { color: #817a71; }
.search-icon { position: absolute; left: 1.15rem; top: 50%; width: .95rem; height: .95rem; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-55%); pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: .45rem; height: 2px; right: -.35rem; bottom: -.18rem; background: var(--muted); transform: rotate(45deg); }
.toolbar-row { display: flex; gap: .7rem; align-items: stretch; }
.button { min-height: 3rem; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; border-radius: 999px; border: 1px solid transparent; padding: .8rem 1.2rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--ink); color: white; }
.button-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button-whatsapp { width: 100%; background: #245d42; color: white; }
.button-disabled { width: 100%; cursor: not-allowed; color: #817a71; background: #e9e4dc; }
.filter-trigger { flex: 1; background: var(--white); }
.count-badge { min-width: 1.25rem; height: 1.25rem; display: inline-grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-size: .68rem; }
.sort-field { flex: 1.25; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: .35rem 1rem; display: grid; align-content: center; }
.sort-field span { font-size: .63rem; color: var(--muted); }
.sort-field select { border: 0; background: transparent; color: var(--ink); padding: 0; font-size: .84rem; font-weight: 700; outline: none; }

.results-line { min-height: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.results-line p { margin: 0; color: var(--muted); font-size: .85rem; }
.text-button { padding: .5rem 0; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.status-panel { min-height: 18rem; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); padding: 2rem; }
.status-panel strong { color: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.status-panel p { max-width: 26rem; margin: .35rem 0; }
.status-panel .button { margin-top: 1rem; }
.loader { width: 2rem; height: 2rem; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; padding-bottom: 1.5rem; }
.product-card { min-width: 0; display: flex; flex-direction: column; }
.product-open { width: 100%; flex: 1; display: flex; flex-direction: column; padding: 0; color: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; border-radius: var(--radius); }
.image-frame { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; overflow: hidden; border: 1px solid rgba(222, 215, 203, .72); border-radius: var(--radius); background: #fffdfa; box-shadow: 0 10px 28px rgba(43, 36, 26, .045); }
.image-frame img { width: calc(100% - clamp(1.1rem, 8%, 2rem)); height: calc(100% - clamp(1.1rem, 8%, 2rem)); object-fit: contain; transition: transform .3s ease; }
.product-open:hover img { transform: scale(1.015); }
.image-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: .35rem; text-align: center; background: var(--cream); color: var(--muted); font-size: .72rem; }
.image-fallback[hidden] { display: none; }
.image-fallback span { font: 600 2rem Georgia, serif; color: var(--gold); }
.product-badges { position: absolute; left: .55rem; top: .55rem; display: flex; max-width: calc(100% - 1.1rem); gap: .3rem; }
.product-badge { padding: .28rem .5rem; border: 1px solid rgba(155, 123, 69, .22); border-radius: 999px; background: rgba(252, 250, 246, .95); color: var(--gold); box-shadow: 0 3px 10px rgba(43, 36, 26, .06); font-size: .58rem; font-weight: 850; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.product-badge--offer { border-color: rgba(66, 99, 79, .22); color: var(--success); }
.product-badge--unavailable { border-color: rgba(138, 81, 75, .22); color: var(--danger); }
.product-info { display: flex; flex-direction: column; flex: 1; padding: .8rem .15rem 0; }
.product-brand { min-height: 1.25em; display: -webkit-box; overflow: hidden; color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.product-name { min-height: 3.36em; display: -webkit-box; overflow: hidden; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.12; margin-top: .28rem; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-meta { min-height: 1.35em; color: var(--muted); font-size: .72rem; margin-top: .28rem; line-height: 1.35; }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; align-items: baseline; margin-top: auto; padding-top: .7rem; }
.product-price { color: var(--ink); font-size: 1.08rem; font-weight: 850; letter-spacing: -.015em; }
.availability { color: var(--success); font-size: .65rem; font-weight: 700; }
.availability.unavailable, .detail-stock.unavailable { color: var(--danger); }
.add-to-cart { width: 100%; min-height: 2.85rem; margin-top: .72rem; border-color: var(--ink); background: var(--ink); color: white; font-size: .73rem; padding: .65rem; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.add-to-cart:hover { background: #35312c; }
.add-to-cart.is-added { border-color: var(--success); background: var(--success); animation: button-feedback .7s ease; }
.view-item { min-height: 2.75rem; width: 100%; border: 0; background: transparent; color: var(--muted); font-size: .71rem; font-weight: 750; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .22rem; transition: color .18s ease, text-decoration-color .18s ease; }
.view-item:hover { color: var(--ink); text-decoration-color: var(--line); }
@keyframes button-feedback { 45% { transform: scale(.98); } }

.catalog-progress { display: grid; justify-items: center; gap: .65rem; padding: .5rem 0 3.5rem; text-align: center; }
.catalog-progress p { margin: 0; color: var(--muted); font-size: .76rem; }
.load-more-products { min-height: 2.65rem; padding: .65rem 1.35rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .76rem; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.load-more-products:hover { border-color: var(--gold); background: var(--cream); transform: translateY(-1px); }

.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { min-height: 9rem; padding-block: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.footer-inner p { margin: 0; color: #d8d0c5; font-size: .84rem; text-align: center; }
.footer-inner a { color: #e4dccf; font-size: .85rem; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(20, 18, 15, .55); backdrop-filter: blur(3px); }
.sheet-dialog { width: 100%; max-width: 38rem; max-height: 88dvh; margin: auto 0 0; border: 0; border-radius: 1.5rem 1.5rem 0 0; padding: 0; background: var(--paper); }
.sheet-dialog form { padding: 1.3rem 1rem calc(1rem + env(safe-area-inset-bottom)); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 1.2rem; }
.dialog-header h2 { margin: 0; font-size: 2rem; }
.icon-button { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.filter-fields { display: grid; gap: 1rem; overflow-y: auto; max-height: 56dvh; padding: .15rem .1rem 1rem; }
.filter-fields label, .filter-fields fieldset { display: grid; gap: .35rem; margin: 0; color: var(--muted); font-size: .75rem; font-weight: 700; }
.filter-fields select, .filter-fields input { width: 100%; min-height: 3rem; border: 1px solid var(--line); border-radius: .8rem; background: white; color: var(--ink); padding: .7rem .8rem; }
.filter-fields fieldset { border: 0; padding: 0; }
.filter-fields legend { margin-bottom: .5rem; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* Conta opcional */
.auth-dialog { width: min(calc(100% - 1rem), 28rem); max-height: calc(100dvh - 1rem); overflow: auto; border: 0; border-radius: 1.25rem; padding: 0; background: var(--paper); box-shadow: var(--shadow); }
.auth-shell { position: relative; padding: 1.6rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom)); }
.auth-close { position: absolute; right: .9rem; top: .9rem; z-index: 2; }
.auth-shell section { padding-top: .25rem; }
.auth-shell h2 { max-width: 10ch; margin: .15rem 3rem .65rem 0; font-size: 2rem; line-height: 1; }
.auth-intro { margin: 0 0 1.15rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.google-button { width: 100%; min-height: 3.1rem; display: flex; justify-content: center; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-size: .78rem; font-weight: 800; cursor: pointer; }
.google-button:hover { border-color: #b9b0a3; background: #fffefa; }
.google-button:disabled, .auth-form button:disabled { cursor: wait; opacity: .65; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1rem 0; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-form { display: grid; gap: .8rem; }
.auth-form label { display: grid; gap: .32rem; color: var(--muted); font-size: .7rem; font-weight: 750; }
.auth-form input { width: 100%; min-height: 3rem; border: 1px solid var(--line); border-radius: .7rem; padding: .7rem .8rem; background: white; color: var(--ink); }
.auth-form input:focus { border-color: var(--gold); outline: 2px solid rgba(155, 123, 69, .18); }
.auth-form small { margin-top: -.52rem; color: var(--muted); font-size: .66rem; }
.auth-links { display: flex; justify-content: space-between; gap: .8rem; margin-top: .85rem; }
.auth-links button, .auth-back { min-height: 2.3rem; border: 0; padding: .35rem 0; background: transparent; color: var(--muted); font-size: .7rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22rem; cursor: pointer; }
.auth-back { margin-top: .7rem; }
.auth-message { margin: 1rem 0 0; padding: .75rem .85rem; border-radius: .7rem; background: var(--cream); color: var(--ink); font-size: .74rem; line-height: 1.45; }
.auth-message[data-state="success"] { background: #eff8f2; color: var(--success); }
.auth-message[data-state="error"] { background: #fff2f0; color: var(--danger); }
.auth-profile { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); align-items: center; gap: .9rem; margin: 1.25rem 0; }
.auth-profile-photo { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--cream); color: var(--gold); font: 600 1.3rem Georgia, serif; }
.auth-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.auth-profile > div { min-width: 0; display: grid; gap: .2rem; }
.auth-profile strong, .auth-profile span, .auth-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-profile strong { font: 500 1.1rem Georgia, serif; }
.auth-profile span { color: var(--muted); font-size: .75rem; }
.auth-profile small { color: var(--gold); font-size: .66rem; font-weight: 750; }
.auth-account-note { margin: 0 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.product-dialog { width: min(calc(100% - 1rem), 58rem); max-height: calc(100dvh - 1rem); border: 0; border-radius: 1.25rem; padding: 0; overflow: auto; background: var(--paper); box-shadow: var(--shadow); }
.product-dialog article { position: relative; display: grid; }
.product-close { position: fixed; right: max(1rem, calc((100vw - 58rem) / 2 + 1rem)); top: 1rem; z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.detail-image { position: relative; min-height: 18rem; aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; border-right: 1px solid rgba(222, 215, 203, .6); background: #fffdfa; }
.detail-image img { width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.detail-copy { padding: 1.5rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom)); }
.detail-copy h2 { margin: .35rem 0; font-size: 2rem; line-height: 1; }
.detail-meta, .detail-description { color: var(--muted); line-height: 1.55; }
.detail-description { margin: 1.25rem 0; }
.detail-price { display: block; font-size: 1.5rem; margin-top: 1.2rem; }
.detail-stock { margin: .3rem 0 1.2rem; color: var(--success); font-size: .78rem; font-weight: 750; }
.detail-whatsapp-link { display: inline-block; margin-top: .8rem; color: var(--muted); font-size: .8rem; text-align: center; text-underline-offset: .25rem; }

/* Carrinho e checkout */
.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 43rem); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; overflow: hidden; padding: 0; border: 0; background: var(--paper); box-shadow: -18px 0 60px rgba(25, 21, 17, .16); }
.cart-drawer { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem calc(2rem + env(safe-area-inset-bottom)); }
.cart-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: start; margin: 0 -1rem; padding: calc(1.15rem + env(safe-area-inset-top)) 1rem 1rem; border-bottom: 1px solid var(--line); background: rgba(252, 250, 246, .97); backdrop-filter: blur(12px); }
.cart-header h2, .section-heading h2 { margin: 0; font-size: 2rem; }
.cart-empty { min-height: 62dvh; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--muted); text-align: center; }
.cart-items { display: grid; gap: 0; }
.cart-line { position: relative; display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line-image { width: 4.7rem; height: 5.7rem; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(222, 215, 203, .65); border-radius: .75rem; background: #fffdfa; color: var(--gold); font: 600 1.2rem Georgia, serif; }
.cart-line-image img { width: calc(100% - .55rem); height: calc(100% - .55rem); object-fit: contain; }
.cart-line-copy { min-width: 0; padding-right: 5.1rem; }
.cart-line h3 { margin: 0; font: 500 1.05rem/1.12 Georgia, serif; overflow-wrap: anywhere; }
.cart-line p { margin: .3rem 0; color: var(--muted); font-size: .72rem; }
.cart-line-copy > strong { font-size: .8rem; }
.cart-line-total { position: absolute; right: 0; top: 1rem; font-size: .85rem; }
.cart-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: .65rem; }
.quantity-control { display: inline-grid; grid-template-columns: 2rem 2rem 2rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: white; text-align: center; }
.quantity-control button { width: 2rem; height: 2rem; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.quantity-control span { font-size: .78rem; font-weight: 800; }
.remove-item { border: 0; background: transparent; padding: .4rem 0; color: var(--muted); text-decoration: underline; text-underline-offset: .2rem; font-size: .7rem; cursor: pointer; }
.order-summary { display: grid; gap: .7rem; margin: 1.15rem 0; padding: 1rem; border-radius: .9rem; background: var(--cream); }
.order-summary > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; }
.summary-total { margin-top: .15rem; padding-top: .8rem; border-top: 1px solid #cfc5b5; align-items: baseline; text-transform: uppercase; }
.summary-total strong { font-size: 1.2rem; }
.full-button { width: 100%; }
.checkout-section, .payment-section { scroll-margin-top: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.section-heading > span { width: 2rem; height: 2rem; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: white; font-size: .75rem; font-weight: 800; }
.section-heading .eyebrow { margin-bottom: .25rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; margin-bottom: 1rem; }
.form-grid label { display: grid; gap: .35rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.form-grid small { font-weight: 500; }
.form-grid input { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .7rem; background: white; color: var(--ink); }
.form-grid input:focus { border-color: var(--gold); outline: 2px solid rgba(155, 123, 69, .18); }
.field-status { min-height: 1.2rem; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field-status[data-state="success"] { color: var(--success); }
.field-status[data-state="error"] { color: var(--danger); }
.cep-button { width: 100%; }
.order-reference { margin: 0; color: var(--muted); font-size: .8rem; }
.order-reference strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.payment-summary { margin-top: .8rem; }
.payment-actions { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.payment-actions.single-option { grid-template-columns: 1fr; }
.payment-choice { min-height: 6.2rem; display: grid; justify-items: start; align-content: center; gap: .18rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.payment-choice:hover { border-color: var(--gold); }
.payment-choice > span { color: var(--gold); font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.payment-choice strong { font-size: .92rem; }
.payment-choice small { color: var(--muted); font-size: .68rem; }
.payment-choice:disabled { cursor: wait; opacity: .65; }
.pix-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; text-align: center; }
.pix-qr { display: grid; place-items: center; min-height: 1rem; }
.pix-qr img { width: min(100%, 260px); height: auto; image-rendering: pixelated; }
.pix-amount { font-size: .86rem; }
.pix-amount strong { font-size: 1.15rem; }
.pix-panel textarea { width: 100%; min-height: 5rem; resize: vertical; margin-bottom: .7rem; padding: .65rem; border: 1px solid var(--line); border-radius: .6rem; font: .66rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; }
.pix-panel .button-whatsapp { margin-top: .7rem; }
.config-pending { margin: 0; padding: .9rem; border-radius: .7rem; background: #fff6da; color: #67531e; font-size: .78rem; line-height: 1.5; text-align: left; }
.discreet-whatsapp { display: block; margin-top: 1rem; color: var(--muted); font-size: .76rem; text-align: center; text-underline-offset: .25rem; }
.cart-toast { position: fixed; z-index: 80; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); gap: .15rem .75rem; align-items: center; max-width: 25rem; margin-inline: auto; padding: .72rem; border: 1px solid rgba(222, 215, 203, .92); border-radius: 1rem; background: rgba(255, 253, 250, .98); color: var(--ink); box-shadow: 0 16px 40px rgba(27, 25, 22, .16); pointer-events: auto; animation: cart-feedback-in .24s ease-out both; }
.cart-toast.is-leaving { animation: cart-feedback-out .22s ease-in both; }
.cart-toast-media { grid-row: 1 / span 2; width: 3.8rem; height: 4.6rem; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(222, 215, 203, .65); border-radius: .72rem; background: #fffdfa; }
.cart-toast-image { width: calc(100% - .4rem); height: calc(100% - .4rem); object-fit: contain; }
.cart-toast-fallback { color: var(--gold); font: 600 1rem Georgia, serif; }
.cart-toast-copy { min-width: 0; display: grid; gap: .12rem; align-self: end; }
.cart-toast-copy strong { color: var(--success); font-size: .73rem; }
.cart-toast-product { overflow: hidden; color: var(--ink); font: 500 .9rem/1.15 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast-summary { color: var(--muted); font-size: .68rem; font-weight: 700; }
.cart-toast-action { justify-self: start; min-height: 2rem; border: 0; border-bottom: 1px solid var(--line); padding: .25rem 0; background: transparent; color: var(--ink); font-size: .67rem; font-weight: 800; cursor: pointer; }
@keyframes cart-feedback-in { from { opacity: 0; transform: translateY(.45rem); } }
@keyframes cart-feedback-out { to { opacity: 0; transform: translateY(.3rem); } }

.floating-whatsapp { position: fixed; z-index: 9; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 3.35rem; height: 3.35rem; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; padding: 0; background: #245d42; color: white; box-shadow: 0 12px 30px rgba(36, 93, 66, .24); text-decoration: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.floating-whatsapp:hover { transform: translateY(-2px); }
.floating-whatsapp > span { display: none; }
body:has(dialog[open]) .floating-whatsapp, body:has(.cart-toast:not([hidden])) .floating-whatsapp { opacity: 0; visibility: hidden; pointer-events: none; }

@media (min-width: 600px) {
  .shell { width: min(100% - 3rem, 1180px); }
  .intro { padding-top: 3rem; }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) 25rem; align-items: center; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .sheet-dialog { margin: auto; border-radius: 1.5rem; }
  .sheet-dialog form { padding: 1.6rem; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .product-dialog article { grid-template-columns: 1.1fr 1fr; min-height: 34rem; }
  .detail-image { aspect-ratio: auto; }
  .detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
  .detail-copy h2 { font-size: 2.7rem; }
  .cart-button > span:nth-child(2) { display: inline; }
  .cart-drawer { padding: 0 1.5rem calc(2.5rem + env(safe-area-inset-bottom)); }
  .cart-header { margin: 0 -1.5rem; padding: calc(1.4rem + env(safe-area-inset-top)) 1.5rem 1rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .full-field, .field-status { grid-column: 1 / -1; }
  .cep-field { grid-column: 1; }
  .cep-button { grid-column: 2; align-self: end; }
  .payment-actions { grid-template-columns: 1fr 1fr; }
  .payment-actions.single-option { grid-template-columns: 1fr; }
  .cart-toast { left: auto; right: max(1.5rem, calc((100vw - 1180px) / 2)); top: 5.25rem; bottom: auto; width: min(23rem, calc(100% - 3rem)); margin: 0; }
  @keyframes cart-feedback-in { from { opacity: 0; transform: translateY(-.45rem); } }
  @keyframes cart-feedback-out { to { opacity: 0; transform: translateY(-.3rem); } }
}

@media (max-width: 599px) {
  .header-whatsapp { display: none; }
  .header-actions { gap: .25rem; }
  .account-button { max-width: 6.2rem; padding-inline: .45rem; }
  .auth-shell { padding-top: 1.45rem; }
}

@media (min-width: 940px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 1.25rem; }
  .intro { padding-top: 3.8rem; }
}

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

/* Catálogo facetado */
.catalog-layout { display: grid; min-width: 0; }
.catalog-results { min-width: 0; }
.filter-sidebar { display: none; }
.catalog-tools { grid-template-columns: 1fr; align-items: center; }
.catalog-tools .toolbar-row { min-width: 0; }
.results-line { border-bottom: 1px solid var(--line); padding: .5rem 0 .85rem; margin-bottom: .8rem; }
.results-line p { color: var(--ink); font-weight: 750; }
.sort-field { flex: none; min-width: 9.6rem; border: 0; background: transparent; padding: .2rem 0; border-radius: .35rem; text-align: right; }
.sort-field span { font-size: .67rem; }
.sort-field select { max-width: 11rem; text-align: right; cursor: pointer; }
.sort-field:focus-within { outline: 2px solid rgba(155, 123, 69, .35); outline-offset: 3px; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); padding: .45rem .7rem; font-size: .72rem; cursor: pointer; }
.filter-chip span { margin-left: .3rem; color: var(--gold); font-weight: 800; }
.clear-all-inline, .section-clear { border: 0; background: none; padding: .35rem; color: var(--muted); font-size: .7rem; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: .9rem; border-bottom: 1px solid var(--ink); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.filter-panel { color: var(--ink); }
.filter-section { border-bottom: 1px solid var(--line); }
.filter-section summary { min-height: 3.45rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; list-style: none; cursor: pointer; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.filter-section summary::-webkit-details-marker { display: none; }
.section-summary-actions { display: flex; align-items: center; gap: .4rem; }
.filter-section summary .section-clear { text-transform: none; letter-spacing: 0; font-weight: 500; }
.chevron { width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .18s ease; }
.filter-section[open] .chevron { transform: rotate(225deg); }
.filter-section-body { padding: 0 0 1.15rem; }
.facet-row { position: relative; display: flex; align-items: center; border-radius: .45rem; }
.facet-row:hover { background: rgba(155, 123, 69, .07); }
.check-label { min-height: 2rem; display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; flex: 1; padding: .28rem .25rem; color: var(--ink); cursor: pointer; font-size: .76rem; font-weight: 500; }
.check-label input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.custom-check { width: 1rem; height: 1rem; display: grid; place-items: center; border: 1px solid #a9a196; border-radius: .2rem; background: white; transition: .15s ease; }
.check-label input:checked + .custom-check { background: var(--ink); border-color: var(--ink); }
.check-label input:checked + .custom-check::after { content: ""; width: .45rem; height: .25rem; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.check-label input:indeterminate + .custom-check { background: var(--gold); border-color: var(--gold); }
.check-label input:indeterminate + .custom-check::after { content: ""; width: .5rem; height: 1.5px; background: white; }
.check-label input:focus-visible + .custom-check { outline: 3px solid #c9a96f; outline-offset: 2px; }
.facet-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-count { color: #91897f; font-variant-numeric: tabular-nums; font-size: .7rem; }
.only-button { opacity: 0; margin-right: .25rem; padding: .2rem; border: 0; background: transparent; color: var(--gold); font-size: .61rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.facet-row:hover .only-button, .only-button:focus-visible { opacity: 1; }
.select-all { font-weight: 750; }
.facet-divider { margin: .25rem .2rem .45rem 1.9rem; border-top: 1px solid var(--line); }
.show-more { margin: .5rem 0 0 1.9rem; border: 0; background: transparent; color: var(--ink); padding: .25rem 0; font-size: .72rem; font-weight: 750; text-decoration: underline; text-underline-offset: .25rem; cursor: pointer; }
.custom-price { margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.custom-price > p { margin: 0 0 .8rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.range-track { position: relative; height: 1.5rem; margin: 0 .25rem .8rem; }
.range-track::before { content: ""; position: absolute; left: 0; right: 0; top: .7rem; height: 2px; background: var(--line); }
.range-track input[type="range"] { position: absolute; inset: 0; width: 100%; height: 1.5rem; padding: 0; border: 0; background: transparent; pointer-events: none; appearance: none; }
.range-track input[type="range"]::-webkit-slider-thumb { width: 1rem; height: 1rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); pointer-events: auto; appearance: none; cursor: grab; }
.range-track input[type="range"]::-moz-range-thumb { width: 1rem; height: 1rem; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); pointer-events: auto; cursor: grab; }
.custom-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.custom-price-fields label { display: grid; gap: .3rem; color: var(--muted); font-size: .65rem; }
.custom-price-fields input { width: 100%; min-height: 2.5rem; border: 1px solid var(--line); border-radius: .55rem; background: white; color: var(--ink); padding: .55rem; }
.option-toggles { display: grid; gap: .15rem; }
.sheet-dialog .mobile-filter-panel { max-height: 62dvh; overflow-y: auto; padding-right: .2rem; }
.sheet-dialog .dialog-actions { position: sticky; bottom: 0; background: var(--paper); z-index: 2; }
.sheet-dialog .button-primary { text-transform: uppercase; letter-spacing: .04em; }

@media (min-width: 600px) and (max-width: 899px) {
  .catalog-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .sheet-dialog { max-width: 32rem; margin: auto 0 0 auto; border-radius: 1.5rem 0 0; }
}

@media (min-width: 900px) {
  .catalog-tools { grid-template-columns: 1fr; padding-bottom: 1.4rem; }
  .catalog-tools .toolbar-row { display: none; }
  .catalog-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
  .filter-sidebar { display: block; position: sticky; top: 5.25rem; max-height: calc(100vh - 6rem); overflow-y: auto; scrollbar-width: thin; padding-right: .65rem; }
  .catalog-results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-line { min-height: 3.25rem; padding-top: 0; }
}

@media (min-width: 1280px) {
  .catalog-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 2.5rem; }
  .catalog-results .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Lince Perfumes v10 */
:root {
  --ink: #1a1a1a;
  --muted: #6f6962;
  --cream: #e2d4bd;
  --paper: #f7f3ee;
  --gold: #a98452;
  --line: #d9cec0;
  --taupe: #b6ada0;
  --shadow: 0 22px 64px rgba(26, 26, 26, .11);
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

body { background: var(--paper); }
h1, h2, h3, .product-name, .detail-copy h2, .account-profile strong { font-family: "Playfair Display", Georgia, serif; }
body::before { height: 3px; background: #c9a46b; }
.shell { width: min(100% - 2rem, 1240px); }

.site-header { background: rgba(247, 243, 238, .96); border-bottom-color: rgba(182, 173, 160, .45); }
.header-inner { height: auto; min-height: 5.5rem; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search"; gap: .6rem 1rem; padding: .7rem 0; }
.brand { grid-area: brand; align-items: center; gap: .45rem; }
.brand > img { width: 1.8rem; height: 2.7rem; object-fit: cover; border-radius: .2rem; }
.brand > span { display: grid; gap: .12rem; line-height: 1; }
.brand strong { font: 600 1.08rem/1 "Playfair Display", Georgia, serif; letter-spacing: .18em; }
.brand small { color: var(--gold); font-size: .46rem; font-weight: 600; letter-spacing: .34em; }
.header-search { grid-area: search; }
.header-search input { min-height: 2.8rem; padding-block: .6rem; background: rgba(255,255,255,.78); }
.header-actions { grid-area: actions; justify-self: end; gap: .18rem; }
.header-icon-button { position: relative; min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: .32rem; border: 1px solid transparent; border-radius: 999px; padding: .4rem .55rem; background: transparent; color: var(--ink); cursor: pointer; }
.header-icon-button:hover { border-color: var(--line); background: white; }
.heart-outline { font: 400 1.65rem/1 Georgia, serif; }
.header-action-label { display: none; font-size: .68rem; font-weight: 700; }
.header-count { position: absolute; right: .05rem; top: .05rem; min-width: 1.15rem; height: 1.15rem; display: grid; place-items: center; padding: 0 .2rem; border-radius: 999px; background: #c9a46b; color: #1a1a1a; font-size: .58rem; }
.account-button { min-width: 2.75rem; justify-content: center; padding: .4rem; }
.account-button > span:last-child { display: none; }
.cart-button { min-width: 2.75rem; justify-content: center; padding: .5rem; background: transparent; border-color: transparent; }
.cart-button:hover { border-color: var(--line); background: white; }

.intro { max-width: 54rem; padding-top: 3.2rem; }
.intro h1 { max-width: 16ch; font-size: clamp(2.65rem, 8.2vw, 5.4rem); letter-spacing: -.045em; }
.catalog-tools { padding: .2rem 0 .6rem; }
.quick-filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: .3rem 0 1.2rem; }
.quick-filters::-webkit-scrollbar { display: none; }
.quick-filter { min-height: 2.45rem; flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .85rem; background: transparent; color: var(--ink); font-size: .69rem; font-weight: 700; cursor: pointer; transition: .18s ease; }
.quick-filter small { min-width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 999px; background: rgba(182,173,160,.18); color: var(--muted); font-size: .58rem; }
.quick-filter:hover, .quick-filter[aria-pressed="true"] { border-color: #c9a46b; background: #e2d4bd; }
.quick-filter[aria-pressed="true"] small { background: #c9a46b; color: #1a1a1a; }

.product-card { position: relative; }
.product-media { position: relative; }
.product-open { border-radius: .35rem; }
.product-media > .product-open { display: block; }
.product-copy-open { display: flex; }
.image-frame { aspect-ratio: 4/5.1; border: 0; border-radius: .25rem; background: #fff; box-shadow: none; }
.image-frame img { width: calc(100% - clamp(1.6rem, 12%, 3rem)); height: calc(100% - clamp(1.6rem, 12%, 3rem)); transition: transform .3s ease; }
.product-info { padding: .85rem .05rem 0; }
.product-brand { color: #8c6b3e; font-size: .58rem; }
.product-name { min-height: 2.5em; font-size: 1rem; line-height: 1.22; -webkit-line-clamp: 2; }
.product-meta { min-height: 1.25em; }
.product-price { font-size: 1rem; }
.product-favorite { position: absolute; z-index: 3; top: .55rem; right: .55rem; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid rgba(182,173,160,.48); border-radius: 50%; background: rgba(247,243,238,.94); color: var(--ink); cursor: pointer; box-shadow: 0 5px 18px rgba(26,26,26,.06); transition: .18s ease; }
.favorite-toggle [data-heart-icon] { font: 400 1.45rem/1 Georgia, serif; }
.favorite-toggle.is-favorite { color: #9a6a4f; border-color: rgba(154,106,79,.45); }
.product-hover-actions { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-top: .55rem; }
.product-hover-actions button { min-height: 2.45rem; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .7rem; background: transparent; color: var(--ink); font-size: .64rem; font-weight: 750; cursor: pointer; }
.product-hover-actions .add-to-cart { width: auto; margin: 0; border-color: var(--ink); background: var(--ink); color: white; }
.product-hover-actions .view-item { width: auto; min-width: 5.3rem; text-decoration: none; }
.detail-favorite { min-height: 2.8rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .72rem; font-weight: 700; cursor: pointer; }

.trust-strip { margin-top: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(226,212,189,.3); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 1rem; }
.trust-grid article { display: grid; grid-template-columns: 2rem minmax(0,1fr); column-gap: .55rem; align-items: center; }
.trust-grid article > span { grid-row: 1 / span 2; color: #a98452; font-size: 1.45rem; text-align: center; }
.trust-grid strong { font-size: .68rem; }
.trust-grid p { margin: .15rem 0 0; color: var(--muted); font-size: .61rem; line-height: 1.4; }
.site-footer { background: #1a1a1a; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 1.25rem; padding: 3rem 0 2.2rem; }
.footer-grid section { display: grid; align-content: start; justify-items: start; gap: .6rem; }
.footer-grid h2 { margin: 0 0 .35rem; color: #c9a46b; font: 700 .65rem/1 Montserrat, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a, .footer-grid button { border: 0; padding: 0; background: transparent; color: #e7ded3; font-size: .7rem; text-align: left; text-decoration: none; cursor: pointer; }
.footer-grid a:hover, .footer-grid button:hover { color: #c9a46b; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 7.8rem; height: auto; border-radius: .25rem; }
.footer-brand p { max-width: 26rem; margin: .2rem 0 0; color: #b6ada0; font-size: .72rem; line-height: 1.65; }
.footer-signature { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0 1.7rem; border-top: 1px solid rgba(226,212,189,.16); color: #b6ada0; font-size: .62rem; }

.account-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 42rem); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; overflow: hidden; padding: 0; border: 0; background: var(--paper); box-shadow: -18px 0 60px rgba(26,26,26,.16); }
.account-drawer { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem calc(2rem + env(safe-area-inset-bottom)); }
.account-drawer-header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: start; margin: 0 -1rem; padding: calc(1.2rem + env(safe-area-inset-top)) 1rem 1rem; border-bottom: 1px solid var(--line); background: rgba(247,243,238,.97); backdrop-filter: blur(12px); }
.account-drawer-header h2 { margin: 0; font-size: 2rem; }
.account-tabs { position: sticky; top: calc(5.45rem + env(safe-area-inset-top)); z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); margin: 0 -1rem 1rem; border-bottom: 1px solid var(--line); background: rgba(247,243,238,.98); }
.account-tabs button { min-height: 3.4rem; border: 0; border-bottom: 2px solid transparent; padding: .6rem .3rem; background: transparent; color: var(--muted); font-size: .64rem; font-weight: 700; cursor: pointer; }
.account-tabs button[aria-selected="true"] { border-color: #c9a46b; color: var(--ink); }
.account-tabs span { margin-left: .18rem; color: #a98452; font-size: .58rem; }
.account-data-status { margin: .8rem 0 1rem; padding: .75rem; border-radius: .6rem; background: rgba(226,212,189,.35); color: var(--muted); font-size: .68rem; line-height: 1.5; }
.account-data-status[data-state="warning"] { background: #fff4d9; color: #6d5624; }
.account-panel { min-height: 60dvh; padding: .8rem 0; }
.account-panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.2rem; }
.account-panel-heading h3 { margin: 0; font-size: 1.8rem; }
.account-panel-heading > p { max-width: 15rem; margin: 0; color: var(--muted); font-size: .63rem; line-height: 1.45; text-align: right; }
.account-panel-heading > p button { border: 0; padding: 0; background: transparent; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
.account-empty { min-height: 45dvh; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 2rem 1rem; text-align: center; }
.account-empty img { width: 3.6rem; height: auto; border-radius: .25rem; }
.account-empty h3 { max-width: 20rem; margin: 0; font-size: 1.5rem; }
.account-empty p { max-width: 25rem; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.empty-heart { color: #a98452; font: 400 3rem/1 Georgia, serif; }
.account-profile { display: grid; grid-template-columns: 4.75rem minmax(0,1fr); align-items: center; gap: 1rem; margin: 1rem 0 1.4rem; }
.account-profile-photo { width: 4.75rem; height: 4.75rem; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #e2d4bd; color: #8c6b3e; font: 600 1.25rem "Playfair Display",serif; }
.account-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.account-profile > div { min-width: 0; display: grid; gap: .2rem; }
.account-profile strong, .account-profile span, .account-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile strong { font-size: 1.2rem; }
.account-profile span { color: var(--muted); font-size: .72rem; }
.account-profile small { color: #a98452; font-size: .63rem; }
.account-profile-note { margin: 0 0 1.2rem; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.account-products { display: grid; gap: .8rem; }
.account-product { display: grid; grid-template-columns: 4.8rem minmax(0,1fr); gap: .65rem .8rem; padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.account-product-image { grid-row: 1 / span 2; height: 6rem; display: grid; place-items: center; background: #fff; }
.account-product-image img { width: 90%; height: 90%; object-fit: contain; }
.account-product-copy { min-width: 0; display: grid; align-content: center; gap: .25rem; }
.account-product-copy strong { overflow: hidden; font: 500 .96rem/1.2 "Playfair Display",Georgia,serif; text-overflow: ellipsis; white-space: nowrap; }
.account-product-copy span { font-size: .75rem; font-weight: 700; }
.account-product-actions { display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; }
.account-product-actions button { border: 0; padding: .2rem 0; background: transparent; color: var(--muted); font-size: .61rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.account-product-actions button:nth-child(2) { color: var(--ink); }
.account-orders { display: grid; gap: .75rem; }
.order-card { border: 1px solid var(--line); border-radius: .85rem; background: white; overflow: hidden; }
.order-card summary { min-height: 6rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: 1rem; list-style: none; cursor: pointer; }
.order-card summary::-webkit-details-marker { display: none; }
.order-card summary > span { display: grid; gap: .22rem; }
.order-card summary > span:last-child { justify-items: end; text-align: right; }
.order-card summary small { color: #a98452; font-size: .6rem; font-weight: 800; letter-spacing: .05em; }
.order-card summary strong { font-size: .8rem; }
.order-card summary span { color: var(--muted); font-size: .65rem; }
.order-card summary em { padding: .25rem .45rem; border-radius: 999px; background: #edf5ef; color: var(--success); font-size: .56rem; font-style: normal; font-weight: 700; }
.order-details { padding: 1rem; border-top: 1px solid var(--line); }
.order-details ul { display: grid; gap: .55rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.order-details li, .order-details dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .67rem; }
.order-details dl { display: grid; gap: .4rem; margin: 0; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-details dd { margin: 0; font-weight: 700; }
.order-details p, .order-details small { color: var(--muted); font-size: .62rem; line-height: 1.5; }
.account-loading { padding: 1rem; color: var(--muted); text-align: center; font-size: .72rem; }
.checkout-account-hint { margin: -.5rem 0 1rem; padding: .7rem .8rem; border-radius: .65rem; background: rgba(226,212,189,.32); color: var(--muted); font-size: .68rem; line-height: 1.5; }
.checkout-account-hint button { border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.favorite-feedback { position: fixed; z-index: 90; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #1a1a1a; color: white; box-shadow: var(--shadow); font-size: .67rem; }

@media (min-width: 720px) {
  .header-inner { min-height: 4.9rem; grid-template-columns: auto minmax(15rem,1fr) auto; grid-template-areas: "brand search actions"; }
  .header-search { max-width: 34rem; justify-self: center; width: 100%; }
  .account-button { max-width: 10rem; padding-inline: .65rem; }
  .account-button > span:last-child { display: inline; }
  .header-action-label { display: inline; }
  .header-icon-button { padding-inline: .7rem; }
  .brand > img { width: 2.1rem; height: 3.15rem; }
  .brand strong { font-size: 1.2rem; }
  .brand small { font-size: .5rem; }
  .trust-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: minmax(15rem,1.5fr) repeat(3,1fr); }
  .footer-brand { grid-column: auto; }
  .account-drawer { padding-inline: 1.5rem; }
  .account-drawer-header { margin-inline: -1.5rem; padding-inline: 1.5rem; }
  .account-tabs { margin-inline: -1.5rem; }
}

@media (min-width: 900px) {
  .intro { padding-top: 4.5rem; padding-bottom: 2rem; }
  .catalog-tools { display: none; }
  .quick-filters { padding-bottom: 1.5rem; }
  .product-favorite, .product-hover-actions { opacity: 0; transform: translateY(.35rem); pointer-events: none; }
  .product-favorite { transform: translateY(-.2rem); }
  .product-hover-actions { position: absolute; z-index: 2; left: .75rem; right: .75rem; bottom: .75rem; margin: 0; padding: .5rem; border-radius: .7rem; background: rgba(247,243,238,.94); box-shadow: 0 8px 24px rgba(26,26,26,.1); backdrop-filter: blur(7px); transition: opacity .18s ease, transform .18s ease; }
  .product-card:hover .product-favorite, .product-card:focus-within .product-favorite, .product-card:hover .product-hover-actions, .product-card:focus-within .product-hover-actions { opacity: 1; transform: none; pointer-events: auto; }
  .product-card:hover .image-frame img { transform: scale(1.025); }
  .product-media { overflow: hidden; }
}

@media (max-width: 430px) {
  .header-inner { grid-template-columns: minmax(5.5rem,1fr) auto; }
  .brand strong { font-size: .9rem; letter-spacing: .13em; }
  .brand small { font-size: .4rem; }
  .product-hover-actions .view-item { min-height: 2.2rem; }
  .account-tabs button { font-size: .57rem; }
  .account-panel-heading { align-items: start; flex-direction: column; }
  .account-panel-heading > p { text-align: left; }
  .footer-signature { flex-direction: column; }
}
