/*
 * ESCENTINO homepage sections (linked from index.php).
 * Shared primitives (reveal, cards, rails, buttons) live in css/motion.css.
 */

/* ------------------------------------------------------------------ */
/* Section typography                                                   */
/* ------------------------------------------------------------------ */
.sec-kicker {
    margin: 0 0 0.6rem;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark, #8a6a3c);
}
.sec-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.005em;
    color: #14110d;
    font-size: 1.75rem;
}
.sec-sub { margin: 0.6rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--color-muted, #6b6358); max-width: 38rem; }
@media (min-width: 768px) {
    .sec-title { font-size: 2.15rem; }
    .sec-title.sec-title--lg { font-size: 2.4rem; }
    .sec-sub { font-size: 0.95rem; }
}
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .sec-head { margin-bottom: 2.5rem; } }

/* ------------------------------------------------------------------ */
/* Hero                                                                  */
/* ------------------------------------------------------------------ */
.home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 58%, var(--bone-100) 100%);
}
@media (min-width: 768px) {
    .home-hero { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
}
.home-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; will-change: transform; }
.hero-orb--a {
    width: 62vmax; height: 62vmax; left: -22vmax; top: -30vmax;
    background: radial-gradient(circle at 50% 50%, rgba(201, 166, 107, 0.2), rgba(201, 166, 107, 0) 66%);
    animation: heroDriftA 30s ease-in-out infinite alternate;
}
.hero-orb--b {
    width: 48vmax; height: 48vmax; right: -18vmax; bottom: -26vmax;
    background: radial-gradient(circle at 50% 50%, rgba(138, 106, 60, 0.13), rgba(138, 106, 60, 0) 68%);
    animation: heroDriftB 42s ease-in-out infinite alternate;
}
@keyframes heroDriftA { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.08); } }
@keyframes heroDriftB { to { transform: translate3d(-7vmax, -5vmax, 0) scale(1.1); } }
@media (max-width: 767px) { .hero-orb--b { animation: none; } }

.hero-rule {
    display: block;
    width: 2.25rem;
    height: 1px;
    margin: 0 auto 1.5rem;
    background: var(--color-accent, #c9a66b);
}
.hero-title-mask { display: block; overflow: hidden; padding: 0.04em 0 0.1em; }
.hero-title-mask > span { display: block; }
.home-hero-kicker { letter-spacing: 0.28em; color: rgba(138, 106, 60, 0.9); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
    .home-hero [data-hero] {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        animation: heroIn 1s var(--ease-out) forwards;
        animation-delay: calc(80ms + var(--h, 0) * 120ms);
    }
    .home-hero .hero-rule[data-hero] { transform: scaleX(0); animation-name: heroRule; animation-duration: 1.2s; }
    .home-hero .hero-title-mask > span {
        transform: translate3d(0, 105%, 0);
        animation: heroMask 1.15s var(--ease-out) 180ms forwards;
    }
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroRule { to { opacity: 1; transform: scaleX(1); } }
@keyframes heroMask { to { transform: none; } }

.home-hero-cta-primary,
.home-hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.home-hero-cta-primary {
    min-width: 12.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--color-accent, #c9a66b);
    color: var(--color-foreground, #14110d);
    border: 1px solid var(--color-accent, #c9a66b);
    transition: background-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-lux), translate var(--dur-3) var(--ease-lux);
}
.home-hero-cta-primary:hover { background: #d4b57a; box-shadow: 0 14px 30px -14px rgba(138, 106, 60, 0.55); translate: 0 -1px; }
.home-hero-cta-secondary {
    min-width: 11rem;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--color-foreground, #14110d);
    border: 1px solid var(--color-accent, #c9a66b);
    transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-lux);
}
.home-hero-cta-secondary:hover { background: rgba(201, 166, 107, 0.14); border-color: var(--color-accent-dark, #8a6a3c); }
.home-hero-link { transition: color var(--dur-2) ease; }

/* Trust strip */
.home-trust-bar { border-top: 1px solid var(--color-accent-muted); border-bottom: 1px solid var(--color-accent-muted); background: var(--color-surface); }
.home-trust-bar .home-trust-item { color: var(--color-muted); font-size: 0.8125rem; }
.home-trust-bar svg { color: var(--color-accent-dark); }
@media (min-width: 768px) and (max-width: 1023px) {
    .home-trust-bar .home-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1rem; }
}
@media (min-width: 1024px) {
    .home-trust-bar .home-trust-grid { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 56rem; margin-left: auto; margin-right: auto; }
    .home-trust-bar .home-trust-item { flex: 0 1 auto; padding: 0 1.15rem; white-space: nowrap; }
    .home-trust-bar .home-trust-item + .home-trust-item { border-left: 1px solid var(--color-accent-muted); }
}

/* ------------------------------------------------------------------ */
/* Live search                                                           */
/* ------------------------------------------------------------------ */
.homepage-search-shell {
    background: linear-gradient(135deg, #fffdf9 0%, var(--bone-100) 100%);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-rest);
}
.homepage-search-kicker { color: var(--color-accent-dark, #8a6a3c); }
.homepage-search-input-wrap { position: relative; }
.homepage-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: var(--color-muted, #6b6358); pointer-events: none;
    transition: color var(--dur-2) ease;
}
.homepage-search-input-wrap:focus-within .homepage-search-icon { color: var(--color-accent-dark, #8a6a3c); }
.homepage-search-input {
    width: 100%; height: 50px; padding: 0 44px 0 42px;
    border: 1px solid #d9cfbd; border-radius: var(--radius-pill); background: #fff; font-size: 15px;
}
.homepage-search-input:focus { outline: none; border-color: var(--color-accent-dark, #8a6a3c); box-shadow: 0 0 0 4px rgba(201, 166, 107, 0.2); }
.homepage-search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 9999px; color: var(--color-muted, #6b6358);
    display: flex; align-items: center; justify-content: center;
    transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}
.homepage-search-clear svg { width: 16px; height: 16px; }
.homepage-search-clear:hover { background: var(--bone-200); color: #14110d; }
.homepage-search-shell #homepage-search-results:empty { margin-top: 0; }
.homepage-search-status { min-height: 22px; margin-top: 0.75rem; font-size: 13px; color: var(--color-muted, #6b6358); }
.homepage-search-result-card {
    display: block; overflow: hidden; background: #fff;
    border: 1px solid var(--hairline); border-radius: 12px;
    animation: searchIn var(--dur-4) var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 60ms);
    transition: transform var(--dur-3) var(--ease-lux), box-shadow var(--dur-3) var(--ease-lux), border-color var(--dur-3) ease;
}
@media (hover: hover) {
    .homepage-search-result-card:hover { transform: translateY(-3px); border-color: var(--hairline-strong); box-shadow: var(--shadow-lift); }
}
@keyframes searchIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.homepage-search-result-image { aspect-ratio: 1 / 1; background: var(--bone-100); }
.homepage-search-result-image img { width: 100%; height: 100%; object-fit: cover; }
.homepage-search-result-text { padding: 0.85rem 0.95rem 1rem; }
.homepage-search-result-empty {
    border: 1px dashed var(--hairline-strong); color: var(--color-muted, #6b6358);
    border-radius: 12px; background: #fff; padding: 0.95rem; text-align: center; font-size: 14px;
}
.homepage-search-skel { border: 1px solid var(--hairline); border-radius: 12px; background: #fff; overflow: hidden; }
.homepage-search-skel .skeleton { border-radius: 0; aspect-ratio: 1 / 1; }
@media (min-width: 768px) { .homepage-search-shell { padding: 1.6rem; } }

/* ------------------------------------------------------------------ */
/* Scent Finder                                                          */
/* ------------------------------------------------------------------ */
.home-scent-finder {
    background:
        radial-gradient(ellipse 70% 80% at 8% 20%, rgba(201, 166, 107, 0.16), transparent 55%),
        radial-gradient(ellipse 50% 70% at 92% 80%, rgba(138, 106, 60, 0.08), transparent 50%),
        linear-gradient(180deg, #fff8ee 0%, #fffdf9 55%, #ffffff 100%);
}
.home-scent-finder-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-width: 14rem; min-height: 3rem; padding: 0.95rem 1.85rem;
    border-radius: var(--radius-pill); background: #14110d; color: #fff; border: 1px solid #14110d;
    font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
    transition: background-color var(--dur-2) ease, color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-lux), translate var(--dur-3) var(--ease-lux);
}
.home-scent-finder-cta:hover { background: #fff; color: #14110d; box-shadow: 0 16px 30px -16px rgba(20, 17, 13, 0.5); translate: 0 -1px; }

.sf-steps { position: relative; display: grid; gap: 1.75rem; max-width: 64rem; margin: 0 auto; padding: 0; list-style: none; }
.sf-steps::before,
.sf-steps::after { content: ""; position: absolute; pointer-events: none; }
/* mobile: vertical connector */
.sf-steps::before { left: 1.625rem; top: 1.7rem; bottom: 1.7rem; width: 1px; background: var(--color-accent-muted, #eadfcf); }
.sf-steps::after {
    left: 1.625rem; top: 1.7rem; bottom: 1.7rem; width: 1px;
    background: linear-gradient(180deg, #c9a66b, #8a6a3c);
    transform-origin: top center;
}
html.motion-ok .sf-steps::after { transform: scaleY(0); transition: transform 2.2s var(--ease-lux) 0.35s; }
html.motion-ok .sf-steps.is-in::after { transform: scaleY(1); }

.sf-step {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: 3.25rem 1fr; column-gap: 1rem; align-items: start; text-align: left;
}
.sf-num {
    grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center;
    width: 3.25rem; height: 3.25rem; border-radius: 9999px;
    background: #fff; border: 1px solid #e2d2b4; color: var(--color-accent-dark, #8a6a3c);
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
    box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.45);
    transition: background-color var(--dur-3) ease, border-color var(--dur-3) ease, color var(--dur-3) ease, box-shadow var(--dur-3) var(--ease-lux), scale var(--dur-3) var(--ease-lux);
}
.sf-step h3 { margin: 0.5rem 0 0.25rem; font-weight: 600; color: #14110d; transition: color var(--dur-2) ease; }
.sf-step p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--color-muted, #6b6358); }
.sf-steps.is-in .sf-num { animation: sfActivate 0.7s var(--ease-lux) both; animation-delay: calc(0.55s + var(--i, 0) * 0.7s); }
@keyframes sfActivate {
    0% { background: #fff; }
    100% { background: #f6ead2; border-color: #c9a66b; color: #6f5228; }
}
@media (hover: hover) {
    .sf-step:hover .sf-num { scale: 1.07; background: #c9a66b; border-color: #c9a66b; color: #14110d; box-shadow: 0 16px 28px -16px rgba(138, 106, 60, 0.7); animation: none; }
    .sf-step:hover h3 { color: var(--color-accent-dark, #8a6a3c); }
}
@media (min-width: 768px) {
    .sf-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .sf-steps::before,
    .sf-steps::after { top: 1.625rem; bottom: auto; left: calc(16.66% + 2.25rem); right: calc(16.66% + 2.25rem); width: auto; height: 1px; }
    .sf-steps::before { background: linear-gradient(90deg, transparent, #e2d2b4 8%, #e2d2b4 92%, transparent); }
    .sf-steps::after { background: linear-gradient(90deg, #c9a66b, #8a6a3c); transform-origin: left center; }
    html.motion-ok .sf-steps::after { transform: scaleX(0); }
    html.motion-ok .sf-steps.is-in::after { transform: scaleX(1); }
    .sf-step { display: block; text-align: center; }
    .sf-num { margin: 0 auto 1rem; }
    .sf-step h3 { margin-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Product rails / grids                                                 */
/* ------------------------------------------------------------------ */
.rail--reviews { --rail-cols: 1.15; }
@media (min-width: 768px) { .rail--reviews { --rail-cols: 2; } }
@media (min-width: 1024px) { .rail--reviews { --rail-cols: 3; } }
.rail--reviews .rail-track { padding-top: 1rem; }

.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (min-width: 640px) { .home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
@media (min-width: 1024px) { .home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.home-grid > * { min-width: 0; }

.home-featured { background: linear-gradient(180deg, var(--bone-50) 0%, #ffffff 100%); }

/* ------------------------------------------------------------------ */
/* TikTok / social proof                                                 */
/* ------------------------------------------------------------------ */
.home-ugc { background: linear-gradient(180deg, var(--bone-100) 0%, var(--bone-50) 100%); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.ugc-tile { display: flex; flex-direction: column; gap: 0.8rem; height: 100%; }
.ugc-media {
    position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
    border-radius: var(--radius-card); background: #2a241c; box-shadow: var(--shadow-rest);
    transition: transform var(--dur-3) var(--ease-lux), box-shadow var(--dur-3) var(--ease-lux);
}
.ugc-media img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92;
    transition: transform var(--dur-4) var(--ease-lux), opacity var(--dur-3) ease;
}
.ugc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 17, 13, 0) 45%, rgba(20, 17, 13, 0.5) 100%); pointer-events: none; }
.ugc-play {
    position: absolute; inset: 0; z-index: 2; margin: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 3.25rem; height: 3.25rem; border-radius: 9999px;
    background: rgba(20, 17, 13, 0.5); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
    transition: background-color var(--dur-3) ease, scale var(--dur-3) var(--ease-lux), border-color var(--dur-3) ease;
}
.ugc-play svg { width: 1.5rem; height: 1.5rem; margin-left: 0.12rem; }
.ugc-badge {
    position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 1.9rem; height: 1.9rem; border-radius: 9999px; background: rgba(255, 253, 249, 0.94); color: #14110d;
    transition: transform var(--dur-3) var(--ease-lux);
}
.ugc-badge svg { width: 0.95rem; height: 0.95rem; }
.ugc-foot { display: flex; flex-direction: column; gap: 0.25rem; padding: 0 0.15rem; min-height: 2.6rem; }
.ugc-caption { margin: 0; font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: #14110d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ugc-shop { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--color-accent-dark, #8a6a3c); text-decoration: none; }
.ugc-shop:hover { color: #14110d; }
@media (hover: hover) and (pointer: fine) {
    .ugc-tile:hover .ugc-media { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-lift); }
    .ugc-tile:hover .ugc-media img { transform: scale(1.04); opacity: 1; }
    .ugc-tile:hover .ugc-play { scale: 1.08; background: rgba(201, 166, 107, 0.9); border-color: transparent; color: #14110d; }
    .ugc-tile:hover .ugc-badge { transform: translateY(-2px) rotate(-8deg); }
}
.ugc-follow { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; color: #14110d; text-decoration: none; }
.ugc-follow-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px; background: #14110d; color: #fff; transition: transform var(--dur-3) var(--ease-lux), background-color var(--dur-2) ease; }
.ugc-follow-icon svg { width: 0.95rem; height: 0.95rem; }
.ugc-follow--head { display: none; }
@media (min-width: 768px) { .ugc-follow--head { display: inline-flex; } }
.ugc-follow:hover .ugc-follow-icon { transform: translateY(-2px) rotate(-8deg); background: var(--color-accent-dark, #8a6a3c); }
.ugc-follow-handle { color: var(--color-muted, #6b6358); font-weight: 500; }

/* ------------------------------------------------------------------ */
/* Atelier — editorial                                                   */
/* ------------------------------------------------------------------ */
.atelier { position: relative; background: linear-gradient(180deg, #faf6ee 0%, #f3ecdf 100%); border-top: 1px solid #e0d8cc; border-bottom: 1px solid #e0d8cc; }
.atelier-head { display: grid; gap: 1rem; margin-bottom: 2.25rem; }
@media (min-width: 900px) {
    .atelier-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 3rem; margin-bottom: 3rem; }
}
.atelier-head .sec-title { font-size: 2rem; }
@media (min-width: 900px) { .atelier-head .sec-title { font-size: 2.6rem; } }
.atelier-head .sec-sub { margin: 0; }
.atelier-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .atelier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .atelier-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
    .atelier-cell { grid-column: span 3; }
    .atelier-cell--lead { grid-column: span 6; grid-row: span 2; }
}
.atelier-cell { display: flex; min-width: 0; }
.atelier-cell > a { flex: 1; }
.atelier-lead,
.atelier-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: #1a1612;
    border: 1px solid #e0d8cc; border-radius: var(--radius-lg); background: #fbf8f2;
    transition: translate var(--dur-3) var(--ease-lux), box-shadow var(--dur-3) var(--ease-lux), border-color var(--dur-3) ease, background-color var(--dur-3) ease;
}
.atelier-card { padding: 1.4rem 1.4rem 1.25rem; min-height: 11.5rem; }
.atelier-card .atelier-tag,
.atelier-lead .atelier-tag { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-dark, #8a6a3c); margin: 0 0 0.75rem; }
.atelier-card h3 { margin: 0 0 0.5rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.atelier-card p.atelier-blurb { margin: 0 0 1rem; font-size: 0.85rem; line-height: 1.55; color: #7a6f62; }
.atelier-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: #1a1612; }
.atelier-lead { min-height: 22rem; padding: 0; background: #efe6d4; }
.atelier-lead-art { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 12%, rgba(201, 166, 107, 0.42), rgba(201, 166, 107, 0) 60%), linear-gradient(160deg, #f4ead6 0%, #e6d8bd 100%); }
.atelier-lead-art svg { position: absolute; right: -8%; top: -6%; width: 78%; height: auto; color: #8a6a3c; opacity: 0.5; transition: rotate 1.2s var(--ease-lux), scale 1.2s var(--ease-lux), opacity var(--dur-4) ease; }
.atelier-lead-body { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; justify-content: flex-end; padding: 1.75rem; }
.atelier-lead h3 { margin: 0 0 0.6rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.9rem; font-weight: 600; line-height: 1.12; }
@media (min-width: 768px) { .atelier-lead h3 { font-size: 2.4rem; } .atelier-lead-body { padding: 2.25rem; } }
.atelier-lead .atelier-more { margin-top: 0; }
html.motion-ok .atelier-lead-art[data-reveal] > svg { transition: transform 1.4s var(--ease-out), rotate 1.2s var(--ease-lux), scale 1.2s var(--ease-lux), opacity var(--dur-4) ease; }
.atelier-lead p.atelier-blurb { margin: 0 0 1.25rem; max-width: 26rem; font-size: 0.95rem; line-height: 1.6; color: #5b5145; }
@media (hover: hover) and (pointer: fine) {
    .atelier-card:hover { translate: 0 -3px; background: #f6f0e4; border-color: #d4c5af; box-shadow: var(--shadow-lift); }
    .atelier-lead:hover { translate: 0 -3px; border-color: #d4c5af; box-shadow: var(--shadow-lift); }
    .atelier-lead:hover .atelier-lead-art svg { rotate: 6deg; scale: 1.04; opacity: 0.62; }
}
.atelier-index { display: grid; gap: 1.25rem; margin-top: 3.25rem; padding-top: 2.25rem; border-top: 1px solid #ddd2bf; }
@media (min-width: 900px) { .atelier-index { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; } }
.atelier-index-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ddd2bf; }
.atelier-row {
    position: relative; display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: 0.5rem 1rem;
    padding: 1.05rem 0.25rem; border-bottom: 1px solid #ddd2bf; text-decoration: none; color: #1a1612;
    transition: padding var(--dur-3) var(--ease-lux), background-color var(--dur-3) ease;
}
.atelier-row-num { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 0.95rem; color: #9a7a3a; }
.atelier-row-tag { display: block; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8b7f70; margin-bottom: 0.15rem; }
.atelier-row-title { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.1rem; font-weight: 600; line-height: 1.3; transition: color var(--dur-2) ease; }
.atelier-row-desc { display: none; margin-top: 0.15rem; font-size: 0.82rem; line-height: 1.5; color: #7a6f62; }
@media (min-width: 768px) { .atelier-row-title { font-size: 1.25rem; } .atelier-row-desc { display: block; } }
.atelier-row .btn-arrow { width: 1.1rem; height: 1.1rem; color: #9a7a3a; }
@media (hover: hover) {
    .atelier-row:hover { padding-left: 0.9rem; padding-right: 0.65rem; background: rgba(255, 253, 249, 0.6); }
    .atelier-row:hover .atelier-row-title { color: #8a6a3c; }
}

/* Star row shared with product-card-rating.php */
.shop-card-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.35rem; min-width: 0; }
.shop-card-rating-half { opacity: 0.55; }

/* ------------------------------------------------------------------ */
/* Fragrance families                                                    */
/* ------------------------------------------------------------------ */
.home-families { background: linear-gradient(180deg, #ffffff 0%, var(--bone-50) 100%); }
.families-panel {
    max-width: 68rem; margin: 0 auto; padding: 2.25rem 1.25rem 2.5rem; text-align: center;
    background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-rest);
}
@media (min-width: 768px) { .families-panel { padding: 3rem 3rem 3.25rem; } }
.family-cloud {
    --chip-bg: #fffdf9;
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 0.6rem;
    margin: 0 -1.25rem; padding: 0.4rem 1.25rem 0.9rem; list-style: none; text-align: left;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.family-cloud::-webkit-scrollbar { display: none; }
.family-cloud > li { scroll-snap-align: start; }
@media (min-width: 768px) {
    .family-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 0; padding: 0; overflow: visible; text-align: center; }
}
.family-chip {
    --tone: #fffdf9;
    position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0.55rem 1.15rem 0.55rem 0.95rem;
    border: 1px solid var(--hairline); border-radius: var(--radius-pill); background: var(--tone);
    color: #3b342b; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
    transition: background-color var(--dur-3) ease, border-color var(--dur-3) ease, color var(--dur-2) ease, transform var(--dur-3) var(--ease-lux), box-shadow var(--dur-3) var(--ease-lux);
}
.family-chip::before {
    content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--color-accent, #c9a66b); opacity: 0.55;
    transition: transform var(--dur-3) var(--ease-lux), opacity var(--dur-2) ease, background-color var(--dur-2) ease;
}
.family-chip[data-tone="1"] { --tone: #faf3e6; }
.family-chip[data-tone="2"] { --tone: #f6efe7; }
.family-chip[data-tone="3"] { --tone: #f2f0ea; }
@media (hover: hover) {
    .family-chip:hover { background: #f1e5cf; border-color: var(--color-accent, #c9a66b); color: #14110d; transform: translate3d(0, -2px, 0); box-shadow: 0 14px 22px -16px rgba(138, 106, 60, 0.6); }
    .family-chip:hover::before { transform: scale(1.5); opacity: 1; background: var(--color-accent-dark, #8a6a3c); }
}
.family-chip:active { scale: 0.97; }

.btn-dark {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.8rem 2rem;
    border-radius: var(--radius-pill); border: 1px solid #14110d; background: #14110d; color: #fff; font-size: 0.95rem; font-weight: 600; text-decoration: none;
    transition: background-color var(--dur-2) ease, color var(--dur-2) ease, box-shadow var(--dur-3) var(--ease-lux), translate var(--dur-3) var(--ease-lux);
}
.btn-dark:hover { background: #2a241c; box-shadow: 0 16px 30px -16px rgba(20, 17, 13, 0.55); translate: 0 -1px; }

/* ------------------------------------------------------------------ */
/* Reviews                                                               */
/* ------------------------------------------------------------------ */
.rev-summary { display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.85rem; font-size: 0.85rem; color: var(--color-muted, #6b6358); }
.rev-score { font-family: "Playfair Display", Georgia, serif; font-size: 1.6rem; font-weight: 700; line-height: 1; color: #14110d; }
.rev-stars { display: inline-flex; gap: 2px; color: #c9a66b; }
.rev-stars svg { width: 0.95rem; height: 0.95rem; }
.rev-stars .is-empty { color: #e3d8c2; }
.rev-card {
    position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.6rem 1.4rem 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bone-50) 100%); border: 1px solid var(--hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-rest);
    transition: transform var(--dur-3) var(--ease-lux), box-shadow var(--dur-3) var(--ease-lux), border-color var(--dur-3) ease;
}
.rev-card::before {
    content: "\201C"; position: absolute; top: 0.45rem; right: 1.1rem; font-family: "Playfair Display", Georgia, serif; font-style: italic;
    font-size: 4.5rem; line-height: 1; color: var(--color-accent, #c9a66b); opacity: 0.3; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .rev-card:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--shadow-lift); border-color: var(--hairline-strong); }
}
.rev-title { margin: 0.6rem 0 0.5rem; font-size: 0.95rem; font-weight: 600; color: #14110d; }
.rev-body { flex: 1; font-size: 0.95rem; line-height: 1.65; color: #3b342b; }
.rev-meta { box-sizing: border-box; min-height: 3.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--hairline); font-size: 0.75rem; color: var(--color-muted, #6b6358); }
.rev-name { font-weight: 600; color: #14110d; }
.rev-verified { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.15rem 0.55rem 0.15rem 0.4rem; border-radius: var(--radius-pill); background: #eef4ec; border: 1px solid #cfdfca; color: #3f6b3a; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em; }
.rev-verified svg { width: 0.7rem; height: 0.7rem; }
