/* ============================================================
   CHERRY PASTELERÍA — Catálogo 2026
   ============================================================ */

:root {
    --cream:      #FAF8F5;
    --cream-dark: #F2EDE7;
    --sand:       #EDE6DD;
    --red: #983564;
    --red-dark: #7d2550;
    --text: #340000;
    --text-mid: #5c3846;
    --text-lt: #947a85;
    --border: rgba(52,0,0,0.12);
    --text-dark: #340000;
    --text-light: #947a85;
    --red-hover: #7d2550;
    --white: #FFFFFF;
    --white:      #FFFFFF;

    --serif:  'Playfair Display', Georgia, serif;
    --sans:   'Plus Jakarta Sans', system-ui, sans-serif;
    --script: 'Playfair Display', Georgia, serif;

    --hdr:  72px;
    --wrap: 1240px;
    --r:    16px;
    --pill: 999px;
    --t:    0.3s cubic-bezier(0.16,1,0.3,1);
}

.cat-hero-title em, .section-title em {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: var(--red) !important;
    display: inline !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
body   { font-family: var(--sans); background: var(--cream); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; transition: color var(--t); }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.wrap, .container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Header ─────────────────────────────────────────────── */
.hdr, .site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--hdr);
    background: rgba(250, 248, 245, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(229, 222, 213, 0.35);
    z-index: 800;
    transition: background 0.35s var(--t), box-shadow 0.35s var(--t), border-color 0.35s var(--t);
}
.hdr.scrolled, .site-header.scrolled {
    background: rgba(250, 248, 245, 0.90);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(229, 222, 213, 0.65);
}

.hdr-inner {
    max-width: var(--wrap);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.logo { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; text-decoration: none; }
.logo-icon { height: 56px; width: auto; object-fit: contain; transition: transform var(--t); }
.logo:hover .logo-icon { transform: scale(1.08); }
@media (max-width: 680px) { .logo-icon { height: 46px; } }

/* Tipografía de Marca para 'Cherry' con SVG Normalizado */
.cherry-inline-svg {
    display: inline-block;
    height: 1.85em;
    width: auto;
    vertical-align: -0.48em;
    object-fit: contain;
    margin: 0 0.1em;
}

/* En párrafos y texto corrido */
p .cherry-inline-svg, li .cherry-inline-svg, span .cherry-inline-svg {
    height: 1.85em;
    vertical-align: -0.48em;
}

/* En títulos y encabezados grandes */
h1 .cherry-inline-svg, h2 .cherry-inline-svg, h3 .cherry-inline-svg,
.hero-title .cherry-inline-svg, .section-title .cherry-inline-svg {
    height: 1.4em;
    vertical-align: -0.28em;
}

/* En subtítulos y cejas de sección */
.hero-eyebrow-text .cherry-inline-svg, .hero-eyebrow .cherry-inline-svg,
.eyebrow .cherry-inline-svg, .form-eyebrow .cherry-inline-svg {
    height: 2.1em;
    vertical-align: -0.52em;
}

/* En badges y etiquetas pequeñas */
.p-card-tag .cherry-inline-svg,
.p-card-tag--exclusive .cherry-inline-svg,
.chip .cherry-inline-svg {
    height: 1.85em;
    vertical-align: -0.42em;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
    display: inline-block;
}

/* En cita de historia (caja oscura) */
.historia-quote-box .cherry-inline-svg {
    height: 1.85em;
    vertical-align: -0.45em;
    filter: brightness(0) invert(1);
}

.historia-quote-author .cherry-inline-svg {
    height: 1.6em;
    vertical-align: -0.38em;
    filter: brightness(0) invert(1);
}

/* Footer logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-logo .logo-icon {
    height: 60px;
    width: auto;
}

/* Tipografía de Marca para 'Cherry' */
.brand-cherry, .cherry-word {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1em;
    color: var(--red);
}

.hdr-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; }
.nav-link { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.nav-link:hover { color: var(--red); }
.nav-link--active { color: var(--red) !important; font-weight: 700; }

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1.2rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--pill);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    transition: all var(--t);
}
.btn-wa:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(152, 53, 100,.2); color: #fff; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    cursor: pointer;
    transition: all var(--t);
    flex-shrink: 0;
    margin-left: auto;
}
.hamburger:hover {
    background: var(--sand);
    border-color: var(--red);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t);
}
.hamburger:hover span {
    background: var(--red);
}

/* Drawer */

/* ── Mobile Drawer Universal & Robusto ── */
.drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: min(340px, 85vw) !important;
    height: 100% !important;
    min-height: 100vh !important;
    background: #FAF8F5 !important;
    z-index: 999999 !important;
    box-shadow: -16px 0 40px rgba(52, 0, 0, 0.18) !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.drawer.open {
    right: 0 !important;
}

.drawer-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
}

.drawer-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid rgba(52, 0, 0, 0.1) !important;
}

.drawer-close {
    font-size: 2.2rem !important;
    color: #340000 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: .2rem .5rem !important;
}

.drawer-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.drawer-link {
    font-family: var(--serif, 'Playfair Display', Georgia, serif) !important;
    font-size: 1.25rem !important;
    color: #340000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: block !important;
}

.drawer-link:hover {
    color: #983564 !important;
}

.btn-wa-block {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: .85rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--pill);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* ── Cat Hero ────────────────────────────────────────────── */
.cat-hero {
    position: relative;
    padding-top: calc(var(--hdr) + 5rem);
    padding-bottom: 5rem;
    text-align: center;
    overflow: hidden;
    background-color: #F8F4EF;
    border-bottom: 1px solid var(--border);
}

.cat-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    transform: scale(1.02);
}

.cat-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(253, 251, 248, 0.78) 0%, rgba(250, 246, 240, 0.88) 70%, rgba(245, 239, 230, 0.95) 100%);
}

.cat-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pill-tag {
    display: inline-block;
    padding: .4rem 1.1rem;
    border: 1px solid rgba(152, 53, 100, 0.2);
    border-radius: var(--pill);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.cat-hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}
.cat-hero-title em {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: var(--red) !important;
    display: inline !important;
}

.cat-hero-sub {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Search */
.search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}
.search-wrap svg {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lt);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    background: var(--white);
    font-family: var(--sans);
    font-size: .9rem;
    color: var(--text);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t);
}
.search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(152, 53, 100,.08);
}
.search-input::placeholder { color: var(--text-lt); }

/* ── Filters Bar (Completo y No Fijo) ── */
.filters-bar {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    background: var(--cream) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1.25rem 0 !important;
}
.filters-inner {
    max-width: var(--wrap) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    display: flex !important;
    gap: .65rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}
.filter-btn {
    padding: .45rem 1.1rem !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--pill) !important;
    font-size: .76rem !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    color: var(--text-mid) !important;
    background: var(--white) !important;
    transition: all var(--t) !important;
    cursor: pointer !important;
    white-space: normal !important;
}
.filter-btn:hover { border-color: var(--red) !important; color: var(--red) !important; }
.filter-btn.active { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; }

/* ── Catalog Sections ────────────────────────────────────── */
.catalog-section { padding: 5rem 0; }
.catalog-section--alt { background: var(--cream-dark); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head-line { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: .75rem; }
.section-eyebrow { font-size: .67rem; font-weight: 700; letter-spacing: .22em; color: var(--text-lt); text-transform: uppercase; }
.section-rule { width: 40px; height: 1px; background: var(--border); }
.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.section-sub { font-size: .92rem; color: var(--text-mid); max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* Product Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Product Card */
.p-card {
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform var(--t), box-shadow var(--t);
    cursor: pointer;
}
.p-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.09);
}
.p-card.hidden { display: none; }

.p-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--sand);
}
.p-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--t);
}
.p-card:hover .p-card-img { transform: scale(1.06); }

.p-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #F7F3EE 0%, #EDE5DC 100%);
    gap: .65rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.p-card-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/cherry sin fondo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 110px;
    opacity: .07;
    filter: grayscale(100%);
}
.p-card-placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    box-shadow: 0 4px 12px rgba(152, 53, 100, 0.08);
    position: relative;
    z-index: 1;
}
.p-card-placeholder-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
.p-card-placeholder-text {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: .12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.p-card-tag {
    position: absolute;
    top: .85rem;
    left: .85rem;
    padding: .28rem .8rem;
    background: rgba(43,35,32,.85);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: var(--pill);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    z-index: 2;
}

.p-card-tag--exclusive {
    background: linear-gradient(135deg, var(--red) 0%, #A31B38 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 4px 14px rgba(152, 53, 100, 0.35);
    letter-spacing: .06em;
}

.p-card-body {
    padding: 1.25rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-card-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .45rem;
    line-height: 1.25;
}

.p-card-desc {
    font-size: .83rem;
    color: var(--text-mid);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

/* Price Table */
.p-prices {
    border-top: 1px dashed var(--border);
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}
.p-prices-title {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--text-lt);
    text-transform: uppercase;
    margin-bottom: .65rem;
}
.p-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    border-bottom: 1px solid rgba(229,222,213,.5);
}
.p-price-row:last-child { border-bottom: none; }
.p-size { font-size: .8rem; color: var(--text-mid); font-weight: 500; }
.p-price { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--red); }

/* WA Button */
.p-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--r);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: all var(--t);
    cursor: pointer;
    border: none;
    font-family: var(--sans);
    text-decoration: none;
}
.p-wa-btn:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(152, 53, 100,.2); color: #fff; }

/* No results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    color: var(--text-mid);
}
.no-results h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .5rem; color: var(--text); }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}
.cta-banner-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,10,6,.85) 0%, rgba(20,10,6,.5) 60%, transparent 100%);
}
.cta-banner-body { position: relative; z-index: 2; padding: 5rem 2rem; }
.cta-banner-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.cta-banner-sub { font-size: .95rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; line-height: 1.65; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    background: #fff;
    color: var(--text);
    border-radius: var(--pill);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all var(--t);
}
.btn-cta:hover { background: var(--red); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(152, 53, 100,.25); }

/* ── Price Note ──────────────────────────────────────────── */
.price-note-wrap { background: var(--sand); padding: 1.5rem 0; }
.price-note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 0 2rem;
}
.price-note svg { color: var(--text-mid); margin-top: .15rem; flex-shrink: 0; }
.price-note p { font-size: .8rem; color: var(--text-mid); line-height: 1.6; }
.price-note strong { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.35fr;
    gap: 2.25rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo .logo-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(152,53,100,.25);
}

.footer-head {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 1.15rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-list li, .footer-list a {
    font-size: .84rem;
    color: var(--text-mid);
    transition: color var(--t);
}

.footer-list a:hover {
    color: var(--red);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-mid);
    font-size: .84rem;
}

.footer-contact li a {
    color: var(--text-mid);
    transition: color var(--t);
}

.footer-contact li a:hover {
    color: var(--red);
}

.footer-contact li svg {
    color: var(--red);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .78rem;
    color: var(--text-light);
    padding-right: 4.5rem; /* Evita que el botón flotante tape el link */
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border-radius: var(--pill);
    background: rgba(152, 53, 100, 0.08);
    border: 1px solid rgba(152, 53, 100, 0.2);
    color: var(--red);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: all var(--t);
}

.footer-admin-link:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(152, 53, 100, 0.25);
}

.footer-credit {
    display: inline-block;
    margin-left: .25rem;
}
.credit-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--t), text-decoration var(--t);
}
.credit-link:hover {
    color: var(--red-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ── Botón Volver Arriba Flotante con Logo Animado ───────── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 850;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    box-shadow: 0 10px 28px rgba(152, 53, 100, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.back-to-top.show,
.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.back-to-top:hover {
    background: var(--cream);
    border-color: var(--red);
    box-shadow: 0 14px 36px rgba(152, 53, 100, 0.28);
    transform: translateY(-4px) scale(1.08);
}

.back-to-top-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top-arrow {
    position: absolute;
    top: -5px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(152, 53, 100, 0.35);
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-logo {
    transform: rotate(-10deg) scale(1.15);
    animation: cherryWiggle 0.8s ease infinite alternate;
}

.back-to-top:hover .back-to-top-arrow {
    transform: translateY(-2px);
}

@keyframes cherryWiggle {
    0% { transform: rotate(-8deg) scale(1.12); }
    100% { transform: rotate(10deg) scale(1.18); }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.25rem;
        width: 44px;
        height: 44px;
    }
    .back-to-top-logo {
        width: 24px;
        height: 24px;
    }
}

/* ── Mobile Navigation (Catalog) ───────────────────────────── */
@media (max-width: 768px) {
    .hdr-nav { display: none !important; }
    .hamburger { display: flex !important; }
}

/* ── Responsive Footer (Catalog) ────────────────────────────── */
@media (max-width: 1060px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}



    .filters-inner {
        padding: 0 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .5rem;
    }
    .filters-inner::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: .4rem .95rem;
        font-size: .72rem;
    }
}

.cat-hero-sub .cherry-inline-svg { height: 3.6em !important; vertical-align: -0.75em !important; display: inline-block; margin: 0 0.25em; }
