:root { --ease: cubic-bezier(.22, 1, .36, 1); }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
html.dialog-open { overflow: hidden; }
body { font-family: "Montserrat", "Segoe UI", sans-serif; }
.product-name { font-weight: 700; }
select { appearance: none; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid rgb(200 16 63 / .45); outline-offset: 2px; }

/* Cross-page transitions (Chromium) — product image morphs between pages */
@view-transition { navigation: auto; }
::view-transition-group(product-hero) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* Scroll progress + header */
#scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #f2a5bb, #c8103f, #f2a5bb); background-size: 200% 100%; animation: sheen 3s linear infinite; pointer-events: none; }
@keyframes sheen { to { background-position: -200% 0; } }
#site-header { transition: transform .35s var(--ease), box-shadow .3s; }
#site-header.is-hidden { transform: translateY(-100%); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.blob { position: absolute; border-radius: 9999px; filter: blur(42px); opacity: .55; z-index: -1; animation: float 14s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(30px, -22px, 0) scale(1.12); } 66% { transform: translate3d(-24px, 20px, 0) scale(.94); } }
.sparkle { position: absolute; width: 14px; height: 14px; color: #e58aa5; opacity: .2; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.shimmer-text { background: linear-gradient(100deg, #38232c 20%, #c8103f 45%, #e58aa5 55%, #38232c 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen2 7s ease-in-out infinite; }
@keyframes sheen2 { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.discount-marquee { display: flex; min-height: 2.5rem; align-items: center; overflow: hidden; white-space: nowrap; }
.discount-marquee-track { display: flex; width: max-content; animation: discount-marquee var(--discount-marquee-duration, 42s) linear infinite; }
.discount-marquee-group { display: flex; flex: 0 0 auto; align-items: center; gap: 3rem; padding-right: 3rem; }
.discount-marquee-static { display: none; padding-inline: 1.25rem; }
@media (min-width: 640px) { .discount-marquee { min-height: 2.75rem; } }
@keyframes discount-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.floaty { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pulse-dot { position: relative; display: inline-block; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

/* Reveal + entrance */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal-up .65s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes reveal-up { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.js .rise { opacity: 0; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Cards */
.product-card { --mx: 50%; --my: 50%; translate: 0 0; transition: box-shadow .3s, border-color .3s, translate .35s var(--ease); }
.product-card:hover { translate: 0 -5px; }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx) var(--my), rgb(248 200 215 / .32), transparent 62%); }
.product-card:hover::after { opacity: 1; }
.product-card .js-image { transition: opacity .5s ease, transform .5s var(--ease); }
.product-card:hover .js-image { transform: scale(1.1) translate(var(--tx, 0px), var(--ty, 0px)); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .product-grid[data-density="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-grid[data-density="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .product-grid[data-density="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.density-btn { border: 1px solid #ead6de; background: #fff; color: #765b66; border-radius: .6rem; height: 2.25rem; width: 2.25rem; font-size: .8rem; font-weight: 700; transition: all .2s var(--ease); }
.density-btn:hover { border-color: #d987a0; background: #fff5f8; }
.density-btn[aria-pressed="true"] { background: #c8103f; border-color: #c8103f; color: #fff; }
.chip:hover { translate: 0 -2px; }
.badge { position: absolute; left: .625rem; top: .625rem; z-index: 10; display: inline-flex; align-items: center; gap: .4rem; border-radius: 9999px; padding: .28rem .65rem; font-size: .65rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); }
.badge-low { background: rgb(255 244 224 / .95); color: #98620d; }
.badge-out { background: rgb(48 35 42 / .82); color: #fff; }

/* Images: skeleton shimmer + fade-in */
.js .img-fade { opacity: 0; transition: opacity .55s ease, transform .5s var(--ease); }
.js .img-fade.loaded { opacity: 1; }
.product-visual:not(.is-loaded)::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .65) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.zoom-wrap .js-image { transition: opacity .55s ease, transform .25s ease; }
@media (hover: hover) and (pointer: fine) {
    .zoom-wrap { cursor: zoom-in; }
    .zoom-wrap:hover .js-image { transform: scale(1.9); }
}

/* Buttons */
.js-add, .js-add-proxy, .ripple { position: relative; overflow: hidden; }
.js-add.is-added, .js-add-proxy.is-added { background: #287348; }
.ripple-dot { position: absolute; border-radius: 9999px; background: rgb(255 255 255 / .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.bump { animation: bump 340ms ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
.wiggle { animation: wiggle .6s ease; }
@keyframes wiggle { 20% { transform: rotate(-9deg) scale(1.08); } 40% { transform: rotate(8deg) scale(1.08); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.toggle-like[aria-pressed="true"] .heart-icon { animation: bump 340ms ease; }
.fly[popover] { inset: auto; margin: 0; padding: 0; border: 0; overflow: hidden; background: #fbe6ed; }
.fly { position: fixed; z-index: 9999; display: flex; align-items: center; justify-content: center; border-radius: 9999px; pointer-events: none; box-shadow: 0 12px 28px -8px rgb(200 16 63 / .55); font-weight: 800; color: #c8103f; }
.fly img { width: 100%; height: 100%; object-fit: cover; }
.burst { position: fixed; z-index: 9999; pointer-events: none; color: #c8103f; font-size: 14px; line-height: 1; }
.burst[popover] { inset: auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: #c8103f; }

/* Variant pills + thumbnails */
.variant-pill { border: 1px solid #ead6de; background: #fff; color: #59434c; border-radius: 9999px; padding: .55rem 1rem; font-size: .8rem; font-weight: 600; transition: all .25s var(--ease); }
.variant-pill:hover { border-color: #d987a0; background: #fff5f8; translate: 0 -1px; }
.variant-pill[aria-checked="true"] { background: #c8103f; border-color: #c8103f; color: #fff; box-shadow: 0 8px 16px -8px rgb(200 16 63 / .7); }
.variant-pill.is-out { text-decoration: line-through; opacity: .55; }
.thumb { width: 4rem; height: 4rem; overflow: hidden; border-radius: .9rem; border: 2px solid transparent; background: #fbe6ed; transition: all .25s var(--ease); flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { translate: 0 -2px; }
.thumb[aria-pressed="true"] { border-color: #c8103f; box-shadow: 0 8px 16px -8px rgb(200 16 63 / .6); }
.stock-bar { height: 6px; border-radius: 9999px; background: #f3e4ea; overflow: hidden; }
.stock-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: currentColor; transition: width .9s var(--ease); }
.clamp { position: relative; max-height: 8.5rem; overflow: hidden; transition: max-height .5s var(--ease); -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.clamp.is-open { -webkit-mask-image: none; mask-image: none; }

/* Search panel */
#search-panel:not(.hidden) { animation: panel-in .22s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.sp-item { display: flex; align-items: center; gap: .75rem; border-radius: .75rem; padding: .5rem .6rem; transition: background .15s; }
.sp-item:hover, .sp-item[aria-selected="true"] { background: #fff0f4; }
.sp-skel { height: 2.5rem; margin: .35rem .5rem; border-radius: .75rem; background: linear-gradient(100deg, #f8eaef 30%, #fff 50%, #f8eaef 70%); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; }
.sp-item mark { background: transparent; color: #c8103f; font-weight: 800; }

/* Toast (popover => always above open dialogs) */
#store-feedback { position: fixed; inset: auto auto 5rem 50%; margin: 0; width: calc(100% - 2rem); max-width: 28rem; transform: translateX(-50%); overflow: hidden; border: 1px solid #f1dce4; border-left: 4px solid #c8103f; border-radius: .75rem; background: #fff; padding: .85rem 1rem; font-size: .875rem; font-weight: 500; color: #553541; box-shadow: 0 20px 40px -12px rgb(56 35 44 / .28); }
#store-feedback:popover-open, #store-feedback.is-open { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
@media (min-width: 1024px) { #store-feedback { bottom: 1rem; } }
#store-feedback.show { animation: toast-in .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 18px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #c8103f; transform-origin: left; animation: toast-bar linear forwards; }
@keyframes toast-bar { to { transform: scaleX(0); } }

/* Dialogs */
dialog::backdrop { background: rgb(48 35 42 / 42%); backdrop-filter: blur(3px); }
dialog.store-drawer { height: 100dvh; max-height: 100dvh; }
dialog.store-drawer[open] { animation: drawer-enter .3s var(--ease); }
dialog.store-modal[open] { animation: modal-enter .3s var(--ease); }
dialog[open]::backdrop { animation: fade-in .25s ease; }
dialog.store-drawer.closing { animation: drawer-leave .19s ease-in forwards; }
dialog.store-modal.closing { animation: modal-leave .17s ease-in forwards; }
dialog.closing::backdrop { animation: fade-out .19s ease forwards; }
@keyframes drawer-enter { from { transform: translateX(2.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-leave { to { transform: translateX(2.5rem); opacity: 0; } }
@keyframes modal-enter { from { transform: translateY(1rem) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes modal-leave { to { transform: translateY(.75rem) scale(.97); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.qv-swap { animation: qv-in .4s var(--ease); }
@keyframes qv-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Drawer rows */
.row-enter { animation: row-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes row-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.row-leave { animation: row-out .24s ease-in forwards; }
@keyframes row-out { to { opacity: 0; transform: translateX(46px) scale(.95); } }
.row-flash { animation: row-flash 1.2s ease; }
@keyframes row-flash { from { background: #fff0f4; box-shadow: 0 0 0 3px #f9c9d6; } }

/* Chat assistant */
.chat-ping { position: absolute; inset: 0; border-radius: 9999px; background: #c8103f; animation: ping 2.2s ease-out infinite; z-index: -1; }
#chat-toggle.seen .chat-ping { display: none; }
#chat-toggle .chat-ico-close { display: none; }
#chat-toggle[aria-expanded="true"] .chat-ico-open { display: none; }
#chat-toggle[aria-expanded="true"] .chat-ico-close { display: block; animation: bump .35s ease; }
#chat-panel { position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: 9rem; display: flex; flex-direction: column; overflow: hidden; max-height: min(34rem, calc(100dvh - 11rem)); border: 1px solid #f1dce4; border-radius: 1.5rem; background: #fff; box-shadow: 0 30px 60px -20px rgb(56 35 44 / .4); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.96); transform-origin: bottom right; transition: opacity .25s ease, transform .4s var(--ease), visibility 0s linear .4s; }
#chat-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
@media (min-width: 1024px) { #chat-panel { left: auto; right: 1.5rem; bottom: 5.75rem; width: 24rem; max-height: min(36rem, calc(100dvh - 8rem)); } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: #fff; background: linear-gradient(120deg, #c8103f, #e2547a, #c8103f); background-size: 200% 100%; animation: sheen 6s linear infinite; }
.chat-avatar { display: flex; height: 2.4rem; width: 2.4rem; align-items: center; justify-content: center; border-radius: 9999px; background: rgb(255 255 255 / .22); font-weight: 800; }
#chat-log { flex: 1; min-height: 9rem; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: #fffafd; scroll-behavior: smooth; }
.chat-msg { max-width: 88%; animation: msg-in .4s var(--ease); }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-bubble { border-radius: 1.1rem; padding: .65rem .9rem; font-size: .85rem; line-height: 1.5; white-space: pre-line; }
.chat-msg.bot .chat-bubble { background: #fff0f4; color: #553541; border-bottom-left-radius: .3rem; }
.chat-msg.user .chat-bubble { background: #c8103f; color: #fff; border-bottom-right-radius: .3rem; }
.chat-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chat-link { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #edcbd6; border-radius: .8rem; background: #fff; padding: .4rem .7rem; font-size: .75rem; font-weight: 700; color: #a90c34; transition: all .2s var(--ease); text-align: left; }
.chat-link:hover { background: #fff5f8; border-color: #d987a0; translate: 0 -1px; }
.chat-link small { font-weight: 600; color: #927780; }
.chat-typing { display: inline-flex; gap: 4px; align-items: center; padding: .85rem 1rem !important; }
.chat-typing i { height: 6px; width: 6px; border-radius: 9999px; background: #d9a3b4; animation: dot 1s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
#chat-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 1rem; border-top: 1px solid #f6e6ec; background: #fff; }
.chat-chip { flex-shrink: 0; border: 1px solid #edcbd6; border-radius: 9999px; background: #fff; padding: .4rem .8rem; font-size: .75rem; font-weight: 600; color: #765b66; transition: all .2s var(--ease); animation: msg-in .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.chat-chip:hover { border-color: #d987a0; background: #fff5f8; color: #a90c34; translate: 0 -2px; }
#chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #f6e6ec; background: #fff; }
#chat-input { flex: 1; min-width: 0; border: 1px solid #ead6de; border-radius: .85rem; background: #fffafd; padding: .6rem .85rem; font-size: .85rem; color: #59434c; outline: none; transition: border-color .2s, box-shadow .2s; }
#chat-input:focus { border-color: #d987a0; box-shadow: 0 0 0 4px #fce6ed; }
#chat-form button { display: flex; height: 2.5rem; width: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .85rem; background: #c8103f; color: #fff; transition: background .2s, transform .2s; }
#chat-form button:hover { background: #a90c34; transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal, .js .rise, .js .img-fade { opacity: 1; }
    .marquee-track { animation: none; }
    .discount-marquee-track { display: none; animation: none; }
    .discount-marquee-static { display: block; white-space: normal; }
}