/**
 * PepperLabz Holiday Theme (2026-11-12) — see includes/pepperlabz-holiday.php.
 * Everything here is scoped to body.plz-holiday, so removing that class (or
 * the file) restores the normal site exactly. Palette stays on-brand:
 * graphite #1C1F23, silver #C4CAD1, white, one restrained cranberry accent.
 */

/* ---------- Snow canvas + toggle ---------- */
.plz-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9990;
}

.plz-snow-toggle {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9991;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 8px 12px;
    border: 1px solid rgba(196, 202, 209, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #1C1F23;
    font: 600 12px/1 'Inter', sans-serif;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(28, 31, 35, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.plz-snow-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(28, 31, 35, 0.18);
}

.plz-snow-toggle:active {
    transform: scale(0.95);
}

.plz-snow-toggle:focus-visible {
    outline: 2px solid #1C1F23;
    outline-offset: 2px;
}

.plz-snow-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.plz-snow-toggle[aria-pressed="false"] {
    background: rgba(241, 243, 245, 0.92);
    color: #79818A;
}

@media (max-width: 767px) {
    .plz-snow-toggle {
        left: 12px;
        bottom: 84px; /* clears the mobile sticky add-to-cart bar */
        padding: 7px 12px 7px 10px;
        font-size: 11px;
    }
}

/* ---------- Chrome ornament garland ---------- */
.plz-garland {
    position: relative;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

.plz-garland-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;            /* tallest ornament reaches y=52 of the 60px tile */
    overflow: hidden;
    background-repeat: repeat-x;
    background-position: center top;
    background-size: 240px 60px;
}

@media (prefers-reduced-motion: no-preference) {
    .plz-garland-inner {
        animation: plzGarlandIn 0.7s ease-out both;
    }
}

@keyframes plzGarlandIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .plz-garland-inner {
        height: 45px;
        background-size: 180px 45px;
    }
}

/* ---------- Livelier buttons ----------
   Uses the individual `translate` / `scale` properties on purpose: they
   compose with each button's existing `transform` (and its chrome-sheen
   ::after) instead of overriding them. */
body.plz-holiday .plz-add-cart-btn,
body.plz-holiday a.pepper-hero-btn,
body.plz-holiday .elementor-button,
body.plz-holiday .single_add_to_cart_button,
body.plz-holiday a.button,
body.plz-holiday button.button,
body.plz-holiday .plz-builder-add-btn,
body.plz-holiday .plz-cart-link {
    transition-property: translate, scale, box-shadow, background-color, color, opacity, filter;
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.plz-holiday .plz-add-cart-btn:hover,
body.plz-holiday a.pepper-hero-btn:hover,
body.plz-holiday .elementor-button:hover,
body.plz-holiday .single_add_to_cart_button:hover,
body.plz-holiday a.button:hover,
body.plz-holiday button.button:hover,
body.plz-holiday .plz-builder-add-btn:hover:not(:disabled) {
    translate: 0 -2px;
    box-shadow: 0 10px 22px rgba(28, 31, 35, 0.18);
}

body.plz-holiday .plz-add-cart-btn:active,
body.plz-holiday a.pepper-hero-btn:active,
body.plz-holiday .elementor-button:active,
body.plz-holiday .single_add_to_cart_button:active,
body.plz-holiday a.button:active,
body.plz-holiday button.button:active,
body.plz-holiday .plz-builder-add-btn:active:not(:disabled) {
    translate: 0 0;
    scale: 0.96;
    box-shadow: 0 3px 8px rgba(28, 31, 35, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    body.plz-holiday .plz-add-cart-btn,
    body.plz-holiday a.pepper-hero-btn,
    body.plz-holiday .elementor-button,
    body.plz-holiday .single_add_to_cart_button,
    body.plz-holiday a.button,
    body.plz-holiday button.button,
    body.plz-holiday .plz-builder-add-btn {
        translate: none !important;
        scale: none !important;
    }
}

/* Click burst particles (created by pepperlabz-holiday.js) */
.plz-burst-flake {
    position: fixed;
    z-index: 9992;
    pointer-events: none;
    font-size: 12px;
    line-height: 1;
    color: #C4CAD1;
    text-shadow: 0 0 2px rgba(28, 31, 35, 0.35);
    will-change: transform, opacity;
}

/* ---------- Small festive accents ---------- */
body.plz-holiday .plz-promo-bar {
    background:
        radial-gradient(circle at 12% 120%, rgba(178, 34, 52, 0.22), transparent 40%),
        radial-gradient(circle at 88% -20%, rgba(196, 202, 209, 0.18), transparent 45%),
        #1C1F23;
}

body.plz-holiday a.plz-promo-bar:hover {
    background:
        radial-gradient(circle at 12% 120%, rgba(178, 34, 52, 0.3), transparent 40%),
        radial-gradient(circle at 88% -20%, rgba(196, 202, 209, 0.22), transparent 45%),
        #24282D;
}

/* Tap / click: no grey square flash (iOS tap highlight) on the sale bar and
   buttons, and no square focus box after a mouse click — keyboard users
   still get a rounded focus ring. (2026-11-12) */
a.plz-promo-bar,
body.plz-holiday .plz-add-cart-btn,
body.plz-holiday a.pepper-hero-btn,
body.plz-holiday .elementor-button,
body.plz-holiday .single_add_to_cart_button,
body.plz-holiday a.button,
body.plz-holiday button.button,
body.plz-holiday .plz-builder-add-btn,
body.plz-holiday .plz-snow-toggle {
    -webkit-tap-highlight-color: transparent;
}
body.plz-holiday .elementor-button:focus:not(:focus-visible),
body.plz-holiday a.pepper-hero-btn:focus:not(:focus-visible),
body.plz-holiday a.button:focus:not(:focus-visible),
body.plz-holiday button.button:focus:not(:focus-visible),
a.plz-promo-bar:focus:not(:focus-visible) {
    outline: none;
}

/* 2026-11-12 fix: in Elementor, .pepper-hero-btn is the whole widget box
   (a wide DIV), not the button. Never lift/shadow that box — only the
   real button inside it (.elementor-button) animates. */
body.plz-holiday div.pepper-hero-btn,
body.plz-holiday div.pepper-hero-btn:hover,
body.plz-holiday div.pepper-hero-btn:active {
    translate: none !important;
    scale: none !important;
    box-shadow: none !important;
}
