/* =========================================================================
   Glass & depth — iOS-style frosted surfaces, soft light and a little 3D.
   Loaded after public-global.css.
   ========================================================================= */
:root {
    --glass-light: rgba(255, 255, 255, .62);
    --glass-light-strong: rgba(255, 255, 255, .84);
    --glass-edge: rgba(255, 255, 255, .78);
    --glass-blur: blur(22px) saturate(170%);
    --shadow-soft: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -18px rgba(42, 10, 20, .28), 0 2px 6px rgba(42, 10, 20, .05);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 60px -22px rgba(42, 10, 20, .4), 0 6px 16px rgba(42, 10, 20, .08);
}
body {
    background:
        radial-gradient(1100px 620px at -5% -10%, rgba(238, 177, 136, .22), transparent 60%),
        radial-gradient(900px 560px at 105% 8%, rgba(130, 8, 44, .09), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(238, 177, 136, .14), transparent 60%),
        #fffdfc;
    background-attachment: fixed;
}

/* ---- Custom scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(130, 8, 44, .55) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background: linear-gradient(180deg, #a8193f, #6c0620) padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #82082c, #4a0416) padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* ---- Announcement ---- */
.sp-announce { background: linear-gradient(90deg, #6c0620, #82082c 45%, #9a1238); position: relative; overflow: hidden; }
.sp-announce::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%); transform: translateX(-100%); animation: sp-shine 7s ease-in-out infinite; }
@keyframes sp-shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---- Header: dark frosted glass ---- */
.sp-header__bar {
    background: linear-gradient(135deg, rgba(58, 12, 28, .78), rgba(110, 8, 38, .7));
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 18px 40px -14px rgba(42, 10, 20, .45);
}
.sp-header__bar::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 45%); }
.sp-nav__link:hover, .sp-icon-btn:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.sp-icon-btn--dark:hover { background: rgba(130, 8, 44, .08); }
.sp-cart-count { background: linear-gradient(180deg, #f6c7a5, #e89f70); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }

/* ---- Light glass surfaces ---- */
.sp-mega__inner, .sp-search, .sp-drawer__panel, .sp-checkout__summary, .sp-cartpage__summary, .sp-filters.is-open {
    background: var(--glass-light-strong);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--shadow-lift);
}
.sp-drawer__panel { border-width: 0 0 0 1px; }
.sp-drawer--left .sp-drawer__panel { border-width: 0 1px 0 0; }
.sp-cart__foot { background: rgba(255, 255, 255, .7); box-shadow: 0 -10px 30px -20px rgba(42, 10, 20, .3); }
.sp-drawer__backdrop { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sp-box, .sp-guide__card, .auth-card, .sp-empty, .sp-cta, .sp-measure, .sp-summary, .sp-trust li, .sp-mode__btn, .sp-pay__body, .sp-olist__row {
    background: var(--glass-light); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border-color: var(--glass-edge); box-shadow: var(--shadow-soft);
}
.sp-mode__btn.is-active, .sp-pay input:checked + .sp-pay__body { background: linear-gradient(180deg, #fff, #fbeff2); border-color: var(--sp-maroon); }
.sp-toast { background: rgba(42, 10, 20, .84); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid rgba(255, 255, 255, .12); }
.sp-pills, .sp-account__tabs { background: rgba(255, 255, 255, .55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); }

/* ---- Glossy buttons ---- */
.sp-btn { isolation: isolate; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.sp-btn--primary { background: linear-gradient(180deg, #a01540 0%, #82082c 55%, #6a0623 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .15), 0 10px 22px -10px rgba(130, 8, 44, .65); }
.sp-btn--primary:hover:not(:disabled) { background: linear-gradient(180deg, #b01a4a 0%, #8e0a31 55%, #6a0623 100%); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 28px -12px rgba(130, 8, 44, .7); }
.sp-btn--accent { background: linear-gradient(180deg, #f8cfb1 0%, #eeb188 60%, #e39c6e 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(130, 8, 44, .12), 0 10px 22px -12px rgba(200, 110, 60, .7); }
.sp-btn--accent:hover:not(:disabled) { background: linear-gradient(180deg, #fbd9c0 0%, #f0b892 60%, #e39c6e 100%); transform: translateY(-1px); }
.sp-btn--light { background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(130, 8, 44, .12); box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(42, 10, 20, .3); }
.sp-btn--light:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.sp-btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.sp-btn__arrow { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.sp-size, .sp-choice, .sp-chip span { background: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 2px 6px -3px rgba(42, 10, 20, .2); }
.sp-size.is-active, .sp-choice.is-active, .sp-chip input:checked + span { background: linear-gradient(180deg, #a01540, #82082c 60%, #6a0623); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -6px rgba(130, 8, 44, .6); }
.sp-swatch { box-shadow: 0 0 0 1px var(--sp-line), inset 0 2px 4px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .18), 0 4px 10px -4px rgba(42, 10, 20, .4); }
.sp-swatch.is-active { box-shadow: 0 0 0 2px var(--sp-ink), inset 0 2px 4px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .18); }

/* ---- Fields ---- */
.sp-field input, .sp-field textarea, .sp-mfield input, .sp-textopt input, .sp-filter__price input {
    background: rgba(255, 255, 255, .88); box-shadow: inset 0 1px 2px rgba(42, 10, 20, .06);
}

/* ---- Product cards: soft 3D tilt ---- */
.sp-card {
    background: linear-gradient(180deg, #fff, #f6f1ef);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-soft);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.sp-card:hover { --lift: -4px; box-shadow: var(--shadow-lift); }
.sp-card.is-tilting { transition: transform .08s linear, box-shadow .35s ease; }
.sp-card::after, .sp-tile::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .32), transparent 45%);
}
.sp-card:hover::after, .sp-tile:hover::before { opacity: 1; }
.sp-badge { box-shadow: 0 4px 10px -4px rgba(42, 10, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.sp-card__go { background: linear-gradient(180deg, #4a1424, #2a0a14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 6px 14px -6px rgba(42, 10, 20, .6); }

/* ---- Tiles & hero: 3D ---- */
.sp-tile { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; box-shadow: var(--shadow-soft); }
.sp-tile:hover { box-shadow: var(--shadow-lift); }
.sp-tile.is-tilting { transition: transform .08s linear, box-shadow .4s; }
.sp-tile__tag { background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); }
.sp-hero__frame { box-shadow: 0 40px 80px -40px rgba(42, 10, 20, .55), 0 1px 0 rgba(255, 255, 255, .6) inset; }
.sp-hero__controls { background: rgba(42, 10, 20, .42); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px -10px rgba(0, 0, 0, .5); }
.sp-benefit__icon { background: radial-gradient(circle at 35% 30%, #fff 0%, #fbe3d3 35%, #eeb188 100%); box-shadow: inset 0 -6px 12px rgba(130, 8, 44, .15), inset 0 2px 4px #fff, 0 14px 24px -12px rgba(130, 8, 44, .45); }
.sp-need { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.sp-need__icon { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(238, 177, 136, .2) 60%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.sp-gallery__main { box-shadow: var(--shadow-soft); }
.sp-gallery__nav, .sp-gallery__zoom { background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .8); }

/* ---- Footer ---- */
.sp-footer { background: radial-gradient(900px 400px at 85% -20%, rgba(238, 177, 136, .18), transparent 60%), linear-gradient(180deg, #3a0c1c, #22070f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.sp-footer__social a { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.sp-wa-float { background: linear-gradient(180deg, #3be37a, #1fb457); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 14px 30px -8px rgba(31, 180, 87, .6); }

@media (prefers-reduced-motion: reduce) {
    .sp-card, .sp-tile { transform: none !important; }
    .sp-announce::after { display: none; }
}
@media (hover: none) {
    .sp-card, .sp-tile { transform: none; }
}
