/* ============================================================
   SHEEEL ANIMATIONS — Full Modern Suite
   Scroll-reveal variants, parallax, 3D cards, particles,
   counters, shimmer, and section transitions.
   ============================================================ */

/* ---------- Scroll-Reveal Variants ---------- */
.sheel-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@supports not (opacity: 0) {
    .sheel-reveal {
        opacity: 1;
        transform: none;
    }
}

.sheel-reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

/* Fade Up (default) */
.sheel-reveal-fade-up {
    transform: translateY(50px);
}

/* Fade Down */
.sheel-reveal-fade-down {
    transform: translateY(-40px);
}

/* Fade Left */
.sheel-reveal-fade-left {
    transform: translateX(-50px);
}

/* Fade Right */
.sheel-reveal-fade-right {
    transform: translateX(50px);
}

/* Scale In */
.sheel-reveal-scale {
    transform: scale(0.85);
}

/* Zoom In */
.sheel-reveal-zoom {
    transform: scale(0.7) translateY(30px);
}

/* Flip Up */
.sheel-reveal-flip {
    transform: perspective(600px) rotateX(15deg) translateY(30px);
    transform-origin: top center;
}

.sheel-reveal-flip.is-visible {
    transform: perspective(600px) rotateX(0) translateY(0);
}

/* Stagger Children — apply to container */
.sheel-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sheel-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.sheel-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.sheel-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.sheel-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.sheel-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.sheel-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }
.sheel-stagger.is-visible > *:nth-child(7) { transition-delay: 0.35s; }
.sheel-stagger.is-visible > *:nth-child(8) { transition-delay: 0.40s; }
.sheel-stagger.is-visible > *:nth-child(9) { transition-delay: 0.45s; }
.sheel-stagger.is-visible > *:nth-child(10) { transition-delay: 0.50s; }

.sheel-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Parallax Section ---------- */
.sheel-parallax-section {
    position: relative;
    overflow: hidden;
}

.sheel-parallax-bg {
    position: absolute;
    inset: -20% 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

.sheel-parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0.06;
    filter: blur(40px);
    transform: scale(1.2);
}

.sheel-parallax-content {
    position: relative;
    z-index: 1;
}

/* ---------- Parallax Floating Orbs ---------- */
.sheel-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
    will-change: transform, filter;
    opacity: 0.5;
}

.sheel-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--ds-primary, #4D3F76);
    top: -10%;
    right: -5%;
    opacity: 0.12;
}

.sheel-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--ds-accent, #AC9C8D);
    bottom: -8%;
    left: -5%;
    opacity: 0.10;
}

.sheel-orb-3 {
    width: 200px;
    height: 200px;
    background: var(--ds-primary-light, #7B6FA0);
    top: 40%;
    left: 50%;
    opacity: 0.08;
}

/* ---------- 3D Card Tilt ---------- */
.sheel-card-3d {
    transition: transform 0.15s ease-out !important;
    transform-style: preserve-3d;
    will-change: transform;
}

.sheel-card-3d .product-image-container {
    transform-style: preserve-3d;
}

.sheel-card-3d .product-badges {
    transform: translateZ(20px);
}

.sheel-card-3d .buy-button {
    transform: translateZ(15px);
}

/* ---------- Hero Entrance Animations ---------- */
.main-deal-section .main-deal-header-strip {
    animation: sheelSlideDown 0.6s ease both;
}

.main-deal-section .main-deal-info-column {
    animation: sheelFadeInLeft 0.8s ease both 0.2s;
}

.main-deal-section .main-deal-gallery-column {
    animation: sheelFadeInRight 0.8s ease both 0.35s;
}

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

@keyframes sheelFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sheelFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Counter Animation ---------- */
.sheel-counter {
    display: inline-block;
}

/* ---------- Keyframe Animations ---------- */
@keyframes sheelFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(-5px) rotate(-0.3deg); }
}

@keyframes sheelFloatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes sheelGoldPulse {
    /* Transform-only pulse — GPU composited, no paint/layout thrash (C19) */
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes sheelShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes sheelBreathing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes sheelRipple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes sheelGlow {
    0%, 100% { filter: brightness(1) blur(0px); }
    50% { filter: brightness(1.3) blur(1px); }
}

/* ---------- Existing Animations (Kept) ---------- */
.discount-badge,
.discount-badge-top,
.woocommerce span.onsale {
    animation: sheelGoldPulse 2.4s infinite;
    /* Static glow base — animation only scales, no box-shadow repaint */
    box-shadow: 0 0 0 4px rgba(172, 156, 141, 0.2);
}

.floating-cta,
.discount-inbox {
    animation: sheelFloat 3.2s ease-in-out infinite;
}

/* ---------- Section Transition Overlays ---------- */
.sheel-section-divider {
    position: relative;
}

.sheel-section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--ds-bg, #ffffff));
    z-index: 1;
    pointer-events: none;
}

.sheel-section-divider::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, transparent, var(--ds-bg, #ffffff));
    z-index: 1;
    pointer-events: none;
}

/* ---------- Product Card Image Zoom on Hover ---------- */
.product-card .product-image-container img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.product-card:hover .product-image-container img {
    transform: scale(1.08);
}

/* ---------- Price Glow ---------- */
.sheel-price-glow {
    transition: text-shadow 0.3s ease;
}

.product-card:hover .sheel-price-glow {
    text-shadow: 0 0 20px rgba(77, 63, 118, 0.15);
}

/* ---------- Badge Entrance ---------- */
.sheel-badge-pop {
    animation: sheelBadgePop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) both;
}

@keyframes sheelBadgePop {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- Button Ripple Effect ---------- */
.sheel-btn-ripple {
    position: relative;
    overflow: hidden;
}

.sheel-btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
}

.sheel-btn-ripple:active::after {
    animation: sheelRipple 0.4s ease-out;
}

/* ---------- Section Background Gradient Transitions ---------- */
.featured-carousel-section {
    position: relative;
}

.featured-carousel-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(77, 63, 118, 0.03) 50%,
        transparent 100%);
    pointer-events: none;
}

/* ---------- Floating Particles Container ---------- */
.sheel-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sheel-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--ds-primary, #4D3F76);
    border-radius: 50%;
    opacity: 0.15;
    animation: sheelFloatSlow 6s ease-in-out infinite;
}

.sheel-particle:nth-child(2n) {
    width: 4px;
    height: 4px;
    animation-duration: 8s;
    animation-delay: -2s;
    opacity: 0.1;
}

.sheel-particle:nth-child(3n) {
    width: 8px;
    height: 8px;
    animation-duration: 10s;
    animation-delay: -4s;
    opacity: 0.08;
}

/* ---------- Shimmer Text Effect ---------- */
.sheel-shimmer-text {
    background: linear-gradient(90deg,
        var(--ds-text, #1a1a1a) 0%,
        var(--ds-primary, #4D3F76) 50%,
        var(--ds-text, #1a1a1a) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sheelShimmer 3s ease infinite;
}

/* ---------- Gradient Border Cards ---------- */
.sheel-gradient-border {
    position: relative;
    background: var(--ds-bg-card, #fff);
    border-radius: var(--radius-md, 12px);
}

.sheel-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        var(--ds-primary, #4D3F76),
        var(--ds-accent, #AC9C8D),
        var(--ds-primary, #4D3F76));
    background-size: 200% 200%;
    z-index: -1;
    animation: sheelShimmer 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sheel-gradient-border:hover::before {
    opacity: 1;
}

/* ---------- Loading Skeleton Glow ---------- */
@keyframes sheelSkeletonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.sheel-skeleton-glow {
    animation: sheelSkeletonPulse 1.5s ease-in-out infinite;
}

/* ---------- Scroll Progress Indicator ---------- */
.sheel-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ds-primary, #4D3F76), var(--ds-accent, #AC9C8D));
    z-index: 99999;
    transition: width 0.1s linear;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .sheel-reveal,
    .sheel-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
    }

    .sheel-parallax-bg {
        transform: none !important;
    }

    .sheel-card-3d {
        transform: none !important;
    }
}
