/* Motion and warmth within Glow Shop's approved palette. */
:root { --ease-glow: cubic-bezier(.22,1,.36,1); }
.header { transition: box-shadow 260ms ease, background-color 260ms ease; }
.header.is-scrolled { background: #f7efeaf2; backdrop-filter: blur(14px); box-shadow: 0 5px 24px #6b4e3d0b; }
.header nav { font-size: 12px; }
.header nav a { transition: color 180ms ease; }
.header nav a:hover { color: var(--taupe); }
.icon-button { border-radius: 50%; transition: background-color 180ms ease, transform 240ms var(--ease-glow); }
.icon-button:hover { background: #d9b7b13b; transform: translateY(-2px); }
.icon-button:active { transform: scale(.92); }
.count { background: var(--rose); color: var(--mocha); font-weight: 700; }
.hero-copy { background: radial-gradient(ellipse at 10% 85%, #d9b7b132, transparent 65%); }
.hero .eyebrow { padding: 9px 13px; border: 1px solid #a8927f50; border-radius: 50px; letter-spacing: 2px; }
.hero h1 em { color: var(--mocha); position: relative; isolation: isolate; }
.hero h1 em::after { content: ''; position: absolute; z-index: -1; left: 0; right: -4px; bottom: 7%; height: 17%; border-radius: 50%; background: #d9b7b18c; transform: rotate(-2deg); }
.hero-description { font-size: 13px; }
.button { border-radius: 30px; padding: 16px 26px; min-height: 52px; font-size: 11px; transition: transform 240ms var(--ease-glow), box-shadow 240ms ease, background-color 200ms ease; }
.button:hover { background: var(--mocha); transform: translateY(-3px); box-shadow: 0 8px 22px #6b4e3d25; }
.button:active { transform: translateY(0) scale(.97); box-shadow: 0 2px 8px #6b4e3d18; }
.button > span { transition: transform 260ms var(--ease-glow); }
.button:hover > span { transform: translate(3px,-2px); }
.hero-stamp { box-shadow: 0 0 0 8px #f7efea70, 0 12px 30px #6b4e3d12; }
.hero-stamp img { animation: glow-spark 4.8s ease-in-out 3; }
.hero-copy > :not(.hero-foot) { animation: glow-arrive 700ms var(--ease-glow) backwards; }
.hero-copy h1 { animation-delay: 60ms; }
.hero-copy .hero-description { animation-delay: 120ms; }
.hero-copy .button { animation-delay: 180ms; }
.hero-photo > img { animation: glow-photo 1100ms var(--ease-glow) both; }
.section-head > p { font-size: 12px; }
.world { border-radius: 20px; isolation: isolate; transition: box-shadow 320ms ease, transform 420ms var(--ease-glow); }
.world > img { transition: transform 750ms var(--ease-glow); }
.world > div { color: var(--mocha); background: linear-gradient(transparent, #f7efeaf5 70%); padding-top: 90px; }
.world b { width: 36px; height: 36px; border-radius: 50%; background: #f7efea99; display: grid; place-items: center; transition: transform 300ms var(--ease-glow), background-color 200ms ease; }
.world:hover { transform: translateY(-5px); box-shadow: 0 14px 30px #6b4e3d14; }
.world:hover > img { transform: scale(1.055); }
.world:hover b { transform: rotate(45deg); background: var(--rose); }
.swipe-hint { display: none; }
.catalog-toolbar { padding-bottom: 12px; }
.filters { gap: 7px; background: #a8927f14; border-radius: 28px; padding: 5px; }
.filters button { border: 0; border-radius: 25px; padding: 12px 19px; min-width: 64px; transition: color 180ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 180ms ease; }
.filters button[aria-pressed=true] { background: var(--mocha); color: var(--cream); box-shadow: 0 3px 9px #6b4e3d1a; font-weight: 500; }
.filters button:not([aria-pressed=true]):hover { background: #d9b7b142; }
.filters button:active { transform: scale(.95); }
.product-image { border-radius: 16px; }
.product-card { border-radius: 16px; transition: transform 300ms var(--ease-glow); }
.product-image img { transition: transform 650ms var(--ease-glow); }
.product-image:hover img { transform: scale(1.055); }
.product-tag { border-radius: 20px; padding: 8px 10px; background: #f7efeaf0; }
.favorite { transition: background-color 200ms ease, transform 220ms var(--ease-glow), box-shadow 220ms ease; }
.favorite:hover { transform: scale(1.1); box-shadow: 0 3px 12px #6b4e3d20; }
.favorite[aria-pressed=true] { background: var(--rose); }
.favorite:active { transform: scale(.9); }
.favorite svg { transition: fill 160ms ease; }
.product-card h3 { font-size: 13px; }
.product-card h3 button { transition: color 180ms ease; }
.product-card h3 button:hover { color: var(--taupe); }
.quick-add { width: 36px; height: 36px; background: #d9b7b13b; border-color: transparent; transition: transform 240ms var(--ease-glow), background-color 180ms ease, color 180ms ease; }
.quick-add:hover { transform: rotate(90deg); }
.quick-add:active { transform: rotate(90deg) scale(.9); }
.product-card .category { margin-top: 16px; }
.sort-label select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 24px; }
.essence-mark { border-radius: 22px 0 0 22px; background: linear-gradient(145deg, var(--mocha), #a8927f); }
.essence-copy { border-radius: 0 22px 22px 0; background: #d9b7b126; }
.essence-copy > p:not(.eyebrow) { font-size: 12px; }
.underlined { transition: gap 240ms var(--ease-glow); }
.underlined:hover { gap: 50px; }
dialog { border-radius: 22px; box-shadow: 0 20px 100px #6b4e3d24; }
dialog::backdrop { background: #6b4e3d38; backdrop-filter: blur(7px); animation: glow-backdrop 220ms ease both; }
.cart-dialog { border-radius: 24px 0 0 24px; }
.close-button { display: grid; place-items: center; background: #f7efeadb; border-radius: 50%; transition: transform 220ms var(--ease-glow), background-color 180ms ease; }
.close-button:hover { transform: rotate(90deg); background: var(--rose); }
.close-button:active { transform: rotate(90deg) scale(.9); }
.size-group span { border-radius: 12px; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.size-group label:hover span { background: #d9b7b142; transform: translateY(-2px); }
.size-group input:checked + span { background: var(--mocha); }
.size-group input:focus-visible + span { border-radius: 12px; }
.cart-row img { border-radius: 12px; }
.quantity { border-radius: 20px; padding: 2px; }
.quantity button { border-radius: 50%; transition: background-color 160ms ease; }
.quantity button:hover:not(:disabled) { background: #d9b7b150; }
.cart-summary { background: #d9b7b11f; }
.info-dialog > img { animation: glow-spark 800ms ease-in-out; }
.toast { border-radius: 25px; background: var(--cream); color: var(--mocha); border: 1px solid #d9b7b180; box-shadow: 0 8px 32px #6b4e3d1c; padding: 16px 25px; transition: opacity 200ms ease, transform 320ms var(--ease-glow); }
.search-bar { background: #d9b7b11a; }
@keyframes glow-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow-photo { from { opacity: .6; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes glow-spark { 0%,100% { transform: rotate(0) scale(1); } 50% { transform: rotate(20deg) scale(1.14); } }
@keyframes glow-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) { .world:hover { transform: none; box-shadow: none; } .world:hover > img, .product-image:hover img { transform: none; } }
@media (max-width: 700px) {
 .header nav { font-size: 10px; }
 .header nav a { min-height: 35px; }
 .hero .eyebrow { font-size: 7px; padding: 9px 11px; }
 .hero-description { font-size: 12px; }
 .hero h1 { font-size: 60px; }
 .hero-stamp { top: auto; bottom: 340px; }
 .swipe-hint { display: flex; justify-content: space-between; font-size: 10px; margin: -4px 0 17px; }
 .swipe-hint span { font-size: 17px; line-height: 1; }
 .world-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; gap: 14px; margin: 0 -20px; padding: 4px 20px 15px; scrollbar-width: thin; scrollbar-color: var(--rose) transparent; }
 .world { scroll-snap-align: start; scroll-margin-inline: 20px; border-radius: 18px; min-height: 330px; }
 .world > img { height: 360px; }
 .world > div { padding: 80px 20px 20px; }
 .world h3 { font-size: 28px; }
 .world b { width: 32px; height: 32px; }
 .catalog-toolbar { padding-bottom: 0; }
 .filters { width: 100%; gap: 3px; justify-content: space-between; }
 .filters button { flex: 1; min-width: 0; font-size: 10px; padding: 11px 10px; }
 .sort-label { padding: 12px 0; }
 .product-card h3 { font-size: 11px; }
 .product-tag { font-size: 6px; padding: 6px 7px; max-width: calc(100% - 40px); }
 .quick-add { width: 34px; height: 34px; }
 .favorite { width: 32px; height: 32px; }
 .essence-mark { border-radius: 20px 20px 0 0; }
 .essence-copy { border-radius: 0 0 20px 20px; }
 .essence-copy > p:not(.eyebrow) { font-size: 11px; }
 .cart-dialog { border-radius: 20px 0 0 20px; }
 .detail-image { height: 265px; }
 .toast { width: calc(100vw - 36px); max-width: 390px; padding: 15px 18px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 .world:hover, .world:hover > img, .product-image:hover img, .button:hover, .icon-button:hover, .quick-add:hover, .close-button:hover { transform: none; }
}

/* Contain both panels while category results slide past one another. */
.catalog-stage { position: relative; overflow: hidden; overflow: clip; padding: 6px; margin: -6px; }
.catalog-panel { width: 100%; }
.catalog-outgoing { position: absolute; top: 6px; left: 6px; width: calc(100% - 12px); pointer-events: none; }
