/* ============================================================
   LuxeShop — Motion & Modern UI Layer
   ============================================================ */

/* ---- Global ambient background ---- */
body {
    background:
        radial-gradient(
            ellipse 80% 50% at 20% -10%,
            rgba(99, 102, 241, 0.12),
            transparent 50%
        ),
        radial-gradient(
            ellipse 60% 40% at 90% 10%,
            rgba(236, 72, 153, 0.08),
            transparent 45%
        ),
        radial-gradient(
            ellipse 50% 30% at 50% 100%,
            rgba(16, 185, 129, 0.06),
            transparent 40%
        ),
        var(--white);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(
        rgba(99, 102, 241, 0.04) 1px,
        transparent 1px
    );
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

/* ---- Enhanced scroll reveals ---- */
[data-aos] {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}
[data-aos="fade-left"] {
    transform: translateX(-40px);
}
[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}
[data-aos="fade-right"] {
    transform: translateX(40px);
}
[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}
[data-aos="zoom-in"] {
    transform: scale(0.85);
}
[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
[data-aos="flip-up"] {
    transform: perspective(800px) rotateX(12deg) translateY(30px);
}
[data-aos="flip-up"].aos-animate {
    transform: perspective(800px) rotateX(0) translateY(0);
}

/* ---- Section headers ---- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.section-header-center {
    text-align: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    gap: 8px;
}
.section-header-center .section-eyebrow {
    margin-bottom: 0;
}
.section-header-center .section-subtitle {
    margin-bottom: 0;
}
.section-header-center + .slider-outer {
    margin-top: -4px;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.12),
        rgba(236, 72, 153, 0.12)
    );
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.section-eyebrow i {
    animation: pulseGlow 2s ease-in-out infinite;
}
.section-title {
    position: relative;
    background: linear-gradient(
        135deg,
        var(--gray-900) 30%,
        var(--primary) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: expandLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: left;
}
.section-header-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Stats strip ---- */
.stats-strip {
    position: relative;
    z-index: 2;
    margin-top: -40px;
    margin-bottom: 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.stat-item {
    background: rgba(255, 255, 255, 0.92);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-item:hover {
    background: var(--white);
    transform: scale(1.02);
    z-index: 1;
    box-shadow: var(--shadow-lg);
}
.stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.stat-item span {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* ---- Marquee ---- */
.marquee-section {
    overflow: hidden;
    padding: 20px 0;
    background: var(--dark);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 48px;
    animation: marqueeScroll var(--marquee-duration, 25s) linear infinite;
}
.marquee-track--pause-hover:hover {
    animation-play-state: paused;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-right: 48px;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.marquee-item i {
    color: var(--accent);
}

/* ---- Hero upgrades ---- */
.hero-slider {
    border-radius: 0;
}
.hero-slider .swiper-slide {
    height: var(--hero-banner-height, 620px) !important;
}
.hero-slider .swiper-slide-active {
    animation: heroKenBurns 14s ease-in-out infinite alternate;
}
.hero-slider .swiper-slide::before {
    background: linear-gradient(
        115deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(99, 102, 241, 0.35) 45%,
        rgba(236, 72, 153, 0.15) 100%
    );
}
.hero-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatOrb 8s ease-in-out infinite;
}
.hero-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}
.hero-orb-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 20%;
    left: 10%;
    animation-delay: -3s;
}
.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content .hero-badge {
    animation-delay: 0.1s;
}
.hero-content h1 {
    animation-delay: 0.25s;
}
.hero-content p {
    animation-delay: 0.4s;
}
.hero-content .btn {
    animation-delay: 0.55s;
}
.hero-content h1 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}
.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}
.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
    font-size: 1.125rem;
    font-weight: 900;
}

/* ---- Top bar animated gradient ---- */
.top-bar {
    background: linear-gradient(90deg, #0f172a, #1e1b4b, #312e81, #0f172a);
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
}
.top-bar-notice {
    animation: noticeSlide 20s linear infinite;
    display: inline-block;
}

/* ---- Header glass upgrade ---- */
.site-header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}
.logo {
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.header-icon-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-icon-btn:hover {
    transform: translateY(-3px) scale(1.08);
    background: rgba(99, 102, 241, 0.1);
}
.header-icon-btn .count {
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Buttons shimmer ---- */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn:hover::before {
    transform: translateX(100%);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-size: 200% 200%;
    animation: gradientBtn 4s ease infinite;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.3);
}

/* ---- Icon boxes glass ---- */
.icon-boxes {
    gap: 20px;
}
.icon-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}
.icon-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.icon-box:hover::before {
    transform: scaleX(1);
}
.icon-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12);
}
.icon-box i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-box:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* ---- Category feature cards ---- */
.category-feature-card {
    border: 1px solid rgba(99, 102, 241, 0.08);
}
.category-feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 56px rgba(99, 102, 241, 0.2);
}
.category-feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-feature-card:hover .category-feature-icon {
    transform: scale(1.1) rotate(-4deg);
}

/* ---- Product cards premium ---- */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.06);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.product-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.3),
        rgba(236, 72, 153, 0.3)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 3;
}
.product-card:hover::before {
    opacity: 1;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(99, 102, 241, 0.18);
}
.product-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.4) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.product-card:hover .product-card-image::after {
    opacity: 1;
}
.product-card-image .shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    transform: translateX(-150%) skewX(-15deg);
    transition: transform 0.7s ease;
}
.product-card:hover .shine {
    transform: translateX(150%) skewX(-15deg);
}
.badge-tag {
    animation:
        badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards,
        badgeFloat 3s ease-in-out 0.6s infinite;
}
.badge-tag:nth-child(2) {
    animation-delay: 0.1s, 0.7s;
}
.badge-tag:nth-child(3) {
    animation-delay: 0.2s, 0.8s;
}
@keyframes badgeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
.product-quick-actions .btn-icon {
    transform: translateY(10px) scale(0.8);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .product-quick-actions .btn-icon {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.product-quick-actions .btn-icon:nth-child(1) {
    transition-delay: 0.05s;
}
.product-quick-actions .btn-icon:nth-child(2) {
    transition-delay: 0.1s;
}
.product-quick-actions .btn-icon:nth-child(3) {
    transition-delay: 0.15s;
}
.btn-icon.active {
    background: var(--accent) !important;
    color: white !important;
}

/* ---- Bento featured grid ---- */
.products-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.products-bento .product-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.products-bento .product-card:first-child .product-card-image {
    aspect-ratio: 1 / 1;
    min-height: 0;
}
.products-bento .product-card:first-child h3 {
    font-size: 1.25rem;
}
.products-bento .product-card:first-child .current {
    font-size: 1.5rem;
}

/* ---- Promo split ---- */
.promo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
    position: relative;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
}
.promo-split-visual {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 320px;
}
.promo-split-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.3));
}
.promo-split-content {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.promo-split-content::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: floatOrb 6s ease-in-out infinite;
}
.promo-split-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    white-space: pre-line;
    position: relative;
}
.promo-split-content p {
    opacity: 0.9;
    margin-bottom: 28px;
    font-size: 1.0625rem;
    position: relative;
}

/* ---- Page hero animated ---- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        #7c3aed 50%,
        var(--accent) 100%
    );
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 {
    position: relative;
    animation: heroTextIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.page-hero .section-eyebrow {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
.page-hero--has-bg {
    animation: none;
}
.page-hero__bg {
    position: absolute;
    inset: -15% 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.page-hero--has-bg > .container,
.page-hero--has-bg > .admin-edit-tag {
    position: relative;
    z-index: 2;
}
.page-hero--has-bg::before {
    z-index: 1;
}

/* ---- Section alternating backgrounds ---- */
.section-alt {
    background: linear-gradient(
        180deg,
        rgba(248, 250, 252, 0.8) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    position: relative;
}
.section-alt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.2),
        transparent
    );
}

/* ---- Brands ---- */
.brand-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.06);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-item:hover {
    transform: translateY(-6px) scale(1.05);
    filter: none;
    opacity: 1;
}

/* ---- WhatsApp pulse ---- */
.whatsapp-fab {
    animation: fabPulse 2.5s ease-in-out infinite;
}
.whatsapp-fab::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: ringPulse 2s ease-out infinite;
}

/* ---- Footer glow ---- */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        var(--accent),
        transparent
    );
}
.social-icons a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ---- Popup bounce ---- */
.popup-overlay.active .popup-box {
    animation: popupBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---- Shipping bar animated ---- */
.shipping-bar-fill {
    position: relative;
    overflow: hidden;
    animation: progressGlow 2s ease-in-out infinite;
}
.shipping-bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmerBar 2s ease-in-out infinite;
}

/* ---- Keyframes ---- */
@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
@keyframes heroKenBurns {
    from {
        background-size: 100% 100%;
    }
    to {
        background-size: 110% 110%;
    }
}
@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes floatOrb {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}
@keyframes badgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}
@keyframes expandLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 24px));
    }
}
@keyframes pulseGlow {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
@keyframes noticeSlide {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-4px);
    }
}
@keyframes gradientBtn {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
@keyframes badgePop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes fabPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
@keyframes popupBounce {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@keyframes shimmerBar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes progressGlow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
    }
}
@keyframes popIn {
    0% {
        transform: scale(0.85);
        opacity: 0.7;
    }
    80% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ---- Shop sidebar glass ---- */
.shop-sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}
.filter-group h4::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 6px;
    border-radius: 2px;
}

/* ---- Cart summary glass ---- */
.cart-summary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}
/* Products panel shares the same glass card as Order Summary. */
.cart-items {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

/* ---- Gallery items ---- */
.gallery-item {
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s;
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* ---- Product detail gallery ---- */
.product-gallery-main {
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
    transition: box-shadow 0.4s;
}
.product-gallery-main:hover {
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.18);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .products-bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-bento .product-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .products-bento .product-card:first-child .product-card-image {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
    .promo-split {
        grid-template-columns: 1fr;
    }
    .promo-split-content {
        text-align: center;
        align-items: center;
    }
    .promo-split-content .hero-badge,
    .promo-split-content .btn {
        align-self: center !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============================================================
   Modern Motion Layer v2 — scroll, spotlight, micro-interactions
   ============================================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10020;
    pointer-events: none;
}
.scroll-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent), #fbbf24);
    background-size: 200% 100%;
    animation: scrollProgressShimmer 3s linear infinite;
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.55);
    transition: width 0.12s ease-out;
    border-radius: 0 2px 2px 0;
}
@keyframes scrollProgressShimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

#site-main.motion-enter {
    animation: pageContentEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pageContentEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="blur-up"] {
    transform: translateY(36px);
    filter: blur(10px);
}
[data-aos="blur-up"].aos-animate {
    transform: translateY(0);
    filter: blur(0);
}
[data-aos="spring-up"] {
    transform: translateY(50px) scale(0.92);
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}
[data-aos="spring-up"].aos-animate {
    transform: translateY(0) scale(1);
}
[data-aos="fade-scale"] {
    transform: scale(0.9);
}
[data-aos="fade-scale"].aos-animate {
    transform: scale(1);
}

.product-card-image {
    overflow: hidden;
}
.product-card-image img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.main-nav > ul > li > a {
    position: relative;
}
.main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after {
    transform: scaleX(1);
}

.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.page-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    animation: floatOrb 10s ease-in-out infinite;
}
.page-hero-orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.22);
    top: -20%;
    left: 10%;
}
.page-hero-orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(236, 72, 153, 0.32);
    bottom: -30%;
    right: 15%;
    animation-delay: -4s;
}
.page-hero-orb-3 {
    width: 160px;
    height: 160px;
    background: rgba(16, 185, 129, 0.28);
    top: 40%;
    right: 40%;
    animation-delay: -7s;
}
.page-hero > .container {
    position: relative;
    z-index: 2;
}

.hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        600px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(255, 255, 255, 0.14),
        transparent 45%
    );
}
.hero-slider {
    position: relative;
}
.hero-slider .hero-spotlight {
    z-index: 2;
}

.btn-magnetic {
    --mag-x: 0px;
    --mag-y: 0px;
}
.btn-primary.btn-magnetic:hover,
.btn-accent.btn-magnetic:hover {
    transform: translate(var(--mag-x), calc(var(--mag-y) - 3px)) scale(1.03);
}
.btn-white.btn-magnetic:hover {
    transform: translate(var(--mag-x), calc(var(--mag-y) - 3px));
}

.site-header.header-glow {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.14);
}
.site-header.header-sticky.header-glow {
    backdrop-filter: blur(16px);
}

.shop-toolbar {
    animation: toolbarSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}
@keyframes toolbarSlide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card,
.cart-summary,
.address-card {
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
}
.auth-card:hover,
.cart-summary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(99, 102, 241, 0.12);
}
.address-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.1);
}

.cart-table tbody tr {
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}
/* The row highlight on hover was removed by request. Deliberately no :hover
   rule at all rather than background:transparent — in the stacked card layout
   the row carries its own white background, which transparent would wipe out. */

.faq-item {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.22);
    transform: translateX(4px);
}
.faq-item.open .faq-question {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.07), transparent);
}

.testimonial-card {
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 56px rgba(99, 102, 241, 0.15);
}

.toast {
    animation: toastSlideIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes toastSlideIn {
    from {
        transform: translateX(calc(100% + 24px)) scale(0.92);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.sticky-cart-toggle {
    animation: fabPulse 3s ease-in-out infinite;
}
.sticky-cart[data-open="true"] .sticky-cart-toggle {
    animation: none;
}

.pagination a {
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.2s ease;
}
.pagination a:hover {
    transform: translateY(-2px) scale(1.05);
}

.product-card .current,
.price-current {
    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--accent) 50%,
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: priceShimmer 4s linear infinite;
}
@keyframes priceShimmer {
    to {
        background-position: 200% center;
    }
}

.icon-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(99, 102, 241, 0.16),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.icon-box:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 32px;
    }
    .section-header > div {
        width: 100%;
    }
    .section-header .section-eyebrow {
        margin-bottom: 8px;
    }
    .section-header .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }
    .section-header .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .stats-strip {
        margin-top: 0;
        padding-top: 32px;
        margin-bottom: 24px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 770px) {
    .product-card:hover,
    .product-card:hover::before,
    .category-card:hover,
    .featured-category-card:hover,
    .category-feature-card:hover,
    body.theme-shamu .product-card:hover,
    body.theme-shamu .category-card:hover,
    body.theme-shamu .featured-category-card:hover,
    body.theme-shamu .category-feature-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    .category-feature-card:hover .category-feature-media img,
    .category-feature-card:hover .category-feature-icon,
    .category-feature-card:hover .category-feature-link {
        transform: none !important;
        gap: 6px !important;
    }
    .products-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .products-bento .product-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    .products-bento .product-card:first-child h3 {
        font-size: inherit;
    }
    .products-bento .product-card:first-child .current {
        font-size: inherit;
    }
}
@media (max-width: 640px) {
    .products-bento {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile hover disabled 770px and below */
@media screen and (max-width: 770px) {
    .product-card:hover,
    .category-card:hover,
    .featured-category-card:hover,
    .category-feature-card:hover {
        transform: translateY(0) !important;
    }
}
