/* ================================================================
   WORLD-CLASS.CSS — Bhavani Stationery
   A design that doesn't exist anywhere else on earth.
   ================================================================ */

/* Restore default OS cursor — no custom cursor */
*, *::before, *::after { cursor: auto !important; }
a, button, [role="button"], .btn, label, select, input[type="submit"], input[type="button"] {
    cursor: pointer !important;
}
input, textarea { cursor: text !important; }

/* ----------------------------------------------------------------
   AMBIENT SPOTLIGHT (follows cursor over hero)
   ---------------------------------------------------------------- */
.full-width-hero {
    --mx: 50%;
    --my: 50%;
    position: relative;
}
.full-width-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mx) var(--my),
        rgba(255,255,255,0.12) 0%,
        transparent 70%
    );
    z-index: 3;
    pointer-events: none;
    transition: --mx .1s, --my .1s;
    border-radius: 1.5rem;
}

/* ----------------------------------------------------------------
   PARTICLE CANVAS (hero background)
   ---------------------------------------------------------------- */
#bs-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 1.5rem;
    pointer-events: none;
    opacity: 0.35;
}

/* ----------------------------------------------------------------
   3D TILT PRODUCT CARDS
   ---------------------------------------------------------------- */
.product,
.card-product,
.product-card {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg);
    transition: transform .08s linear, box-shadow .28s ease;
    will-change: transform;
}

.product:hover,
.card-product:hover,
.product-card:hover {
    box-shadow:
        0 24px 60px rgba(var(--bs-primary-rgb),0.2),
        0 4px 16px rgba(0,0,0,0.08) !important;
}

/* Shine layer for 3D tilt */
.product::before,
.card-product::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255,255,255,0.22) 0%,
        transparent 65%
    );
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.product:hover::before,
.card-product:hover::before {
    opacity: 1;
}

/* ----------------------------------------------------------------
   HOLOGRAPHIC BADGE
   ---------------------------------------------------------------- */
.holo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        hsl(325,100%,30%),
        hsl(20,80%,45%),
        hsl(325,100%,30%)
    );
    background-size: 200% 200%;
    animation: holo-shift 3s linear infinite;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.2) inset,
        0 4px 20px rgba(154,0,88,0.4);
}
.holo-badge::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(255,255,255,0.25) 30deg,
        transparent 60deg
    );
    animation: holo-rotate 2.5s linear infinite;
}
@keyframes holo-shift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}
@keyframes holo-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ----------------------------------------------------------------
   MAGNETIC BUTTONS
   ---------------------------------------------------------------- */
.btn-primary,
.btn-outline-primary {
    transition: transform .2s cubic-bezier(.34,1.56,.64,1),
                box-shadow .2s ease,
                background .2s ease,
                border-color .2s ease !important;
    will-change: transform;
}

/* ----------------------------------------------------------------
   KINETIC SECTION TITLES (split-character animation)
   ---------------------------------------------------------------- */
.bs-kinetic-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px) rotate(4deg);
    transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.bs-kinetic-title.is-visible .char {
    opacity: 1;
    transform: none;
}

/* ----------------------------------------------------------------
   PREMIUM CUSTOM SCROLLBAR
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(154,0,88,0.6),
        rgba(221,97,51,0.6)
    );
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(154,0,88,0.9),
        rgba(221,97,51,0.9)
    );
}

/* ----------------------------------------------------------------
   LIQUID BLOB DECORATORS (behind stats section)
   ---------------------------------------------------------------- */
.trust-stats-section {
    position: relative;
    overflow: hidden;
}
.trust-stats-section::before,
.trust-stats-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.18;
    pointer-events: none;
    animation: blob-drift 8s ease-in-out infinite alternate;
}
.trust-stats-section::before {
    width: 400px; height: 400px;
    background: var(--bs-primary);
    top: -150px; left: -100px;
}
.trust-stats-section::after {
    width: 350px; height: 350px;
    background: var(--bs-secondary);
    bottom: -120px; right: -80px;
    animation-delay: -4s;
}
@keyframes blob-drift {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.15); }
}

/* ----------------------------------------------------------------
   AURORA HEADER (animated gradient behind header on scroll)
   ---------------------------------------------------------------- */
.header-main.scrolled-active {
    background: rgba(255,255,255,0.75) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border-bottom: 1px solid rgba(154,0,88,0.12) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06) !important;
}
[theme="dark"] .header-main.scrolled-active {
    background: rgba(10,10,20,0.85) !important;
    border-bottom-color: rgba(154,0,88,0.2) !important;
}

/* ----------------------------------------------------------------
   GLOWING PRODUCT IMAGE ON HOVER
   ---------------------------------------------------------------- */
.product .product__top img,
.card-product .product__top img,
.product img.product-img,
.card-product img.product-img {
    transition: transform .45s cubic-bezier(.22,.61,.36,1),
                filter .35s ease !important;
}
.product:hover .product__top img,
.card-product:hover .product__top img,
.product:hover img.product-img,
.card-product:hover img.product-img {
    transform: scale(1.07) translateY(-2px) !important;
    filter: drop-shadow(0 16px 24px rgba(154,0,88,0.25)) brightness(1.04) !important;
}

/* ----------------------------------------------------------------
   NEON PRICE TAG
   ---------------------------------------------------------------- */
.product__new-price ins,
.product__price ins,
ins.product__new-price {
    color: var(--bs-primary) !important;
    font-weight: 800 !important;
    text-shadow:
        0 0 20px rgba(154,0,88,0.35),
        0 0 40px rgba(154,0,88,0.15);
    text-decoration: none !important;
}

/* ----------------------------------------------------------------
   STAGGERED CATEGORY CARDS
   ---------------------------------------------------------------- */
.category-section .card,
.home-category .item {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .3s ease;
}
.category-section .card:hover,
.home-category .item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(154,0,88,0.18) !important;
}

/* ----------------------------------------------------------------
   MARQUEE GRADIENT FADE EDGES
   ---------------------------------------------------------------- */
.brand-marquee-section {
    -webkit-mask: linear-gradient(
        90deg,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    mask: linear-gradient(
        90deg,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* ----------------------------------------------------------------
   FOOTER — premium dark glass
   ---------------------------------------------------------------- */
.footer {
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 50% 0%,
        rgba(154,0,88,0.08) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ----------------------------------------------------------------
   ADD TO CART BUTTON — pulse ring on hover
   ---------------------------------------------------------------- */
.product-add-to-cart-button,
.btn-cart,
button[data-action="addToCart"] {
    position: relative;
    overflow: hidden;
}
.product-add-to-cart-button::after,
.btn-cart::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0.25);
    opacity: 0;
    transform: scale(0);
    transition: opacity .4s ease, transform .4s ease;
}
.product-add-to-cart-button:active::after,
.btn-cart:active::after {
    opacity: 1;
    transform: scale(2.5);
    transition: 0s;
}

/* ----------------------------------------------------------------
   STATS CARD — glassmorphism 2.0 with noise
   ---------------------------------------------------------------- */
.trust-stat-card {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        rgba(255,255,255,0.72) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
    border: 1px solid rgba(255,255,255,0.7) !important;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.05),
        0 0 0 1px rgba(255,255,255,0.4) inset !important;
}
[theme="dark"] .trust-stat-card {
    background: rgba(20,25,40,0.7) !important;
    border-color: rgba(154,0,88,0.15) !important;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.3),
        0 0 0 1px rgba(154,0,88,0.1) inset !important;
}

/* ----------------------------------------------------------------
   HERO BANNER CONTAINER GLOW
   ---------------------------------------------------------------- */
.full-width-hero .swiper-container {
    box-shadow:
        0 40px 80px -20px rgba(154,0,88,0.25),
        0 0 0 1px rgba(255,255,255,0.1) !important;
}

/* ----------------------------------------------------------------
   SECTION REVEAL — slide from blur
   ---------------------------------------------------------------- */
.aster-reveal {
    filter: blur(2px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1),
                transform .6s cubic-bezier(.22,.61,.36,1),
                filter .6s ease !important;
}
.aster-reveal.is-visible {
    filter: blur(0) !important;
}

/* ----------------------------------------------------------------
   TOAST — morphed to pill with glass
   ---------------------------------------------------------------- */
#toast-container > div {
    border-radius: 1rem !important;
    backdrop-filter: blur(16px) !important;
    background: rgba(255,255,255,0.88) !important;
    color: #1e293b !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12),
                0 0 0 1px rgba(154,0,88,0.1) !important;
    border-left: 3px solid var(--bs-primary) !important;
}
[theme="dark"] #toast-container > div {
    background: rgba(15,23,42,0.88) !important;
    color: #f1f5f9 !important;
}

/* ----------------------------------------------------------------
   SEARCH BOX — morphs to full pill on focus
   ---------------------------------------------------------------- */
.search-box form {
    transition: box-shadow .3s ease;
}
.search-box form:focus-within {
    box-shadow: 0 0 0 3px rgba(154,0,88,0.2),
                0 8px 32px rgba(154,0,88,0.12) !important;
    border-radius: 3rem;
}
.search-box .select-wrap,
.search-box input[type="search"] {
    transition: border-radius .3s ease;
}
.search-box form:focus-within .select-wrap {
    border-radius: 3rem 0 0 3rem;
}
.search-box form:focus-within input[type="search"] {
    border-radius: 0;
}
.search-box form:focus-within .btn[type="submit"] {
    border-radius: 0 3rem 3rem 0 !important;
}

/* ----------------------------------------------------------------
   BACK TO TOP — morphed floating FAB
   ---------------------------------------------------------------- */
.back-to-top {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary)) !important;
    border: none !important;
    box-shadow:
        0 8px 24px rgba(154,0,88,0.4),
        0 0 0 4px rgba(154,0,88,0.12) !important;
    animation: fab-pulse 3s ease-in-out infinite !important;
}
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(154,0,88,0.4), 0 0 0 4px rgba(154,0,88,0.12); }
    50%       { box-shadow: 0 12px 32px rgba(154,0,88,0.5), 0 0 0 8px rgba(154,0,88,0.08); }
}

/* ----------------------------------------------------------------
   REDUCE MOTION SAFETY
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .holo-badge::before { animation: none !important; }
    .trust-stats-section::before,
    .trust-stats-section::after { animation: none !important; }
    .back-to-top { animation: none !important; }
}
