/* ================================================================
   آتی شاپ — DESIGN REVOLUTION LAYER
   3D Cards · Liquid Buttons · Neon Borders · Cinematic Sections
   ================================================================ */

/* ──────────────────────────────────────────────────────────
   DESIGN TOKENS EXTENSION
────────────────────────────────────────────────────────── */

:root {
    --neon-pink-glow:   0 0 20px rgba(255,45,120,.8),  0 0 60px rgba(255,45,120,.4), 0 0 120px rgba(255,45,120,.2);
    --neon-cyan-glow:   0 0 20px rgba(0,245,255,.8),   0 0 60px rgba(0,245,255,.4),  0 0 120px rgba(0,245,255,.2);
    --neon-purple-glow: 0 0 20px rgba(189,0,255,.8),   0 0 60px rgba(189,0,255,.4),  0 0 120px rgba(189,0,255,.2);
    --neon-gold-glow:   0 0 20px rgba(255,215,0,.8),   0 0 60px rgba(255,215,0,.4),  0 0 120px rgba(255,215,0,.2);

    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-expo:   cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──────────────────────────────────────────────────────────
   SCROLL PROGRESS — glow upgrade
────────────────────────────────────────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--gradient-aurora);
    z-index: 99997;
    box-shadow: var(--neon-pink-glow);
    transform-origin: left center;
    pointer-events: none;
    will-change: width;
}

/* ──────────────────────────────────────────────────────────
   NAVBAR REVOLUTION
────────────────────────────────────────────────────────── */

.navbar {
    transition: transform .35s var(--transition-expo),
                background .35s ease,
                box-shadow .35s ease !important;
    will-change: transform;
}

.navbar.scrolled {
    background: rgba(5,5,16,.88) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    box-shadow: 0 4px 40px rgba(0,0,0,.5),
                0 1px 0 rgba(255,45,120,.15),
                inset 0 -1px 0 rgba(255,45,120,.08) !important;
}

/* ──────────────────────────────────────────────────────────
   HERO REVOLUTION
────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    isolation: isolate;
}

/* Scanline overlay — cinematic vibe */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,.03) 2px,
        rgba(0,0,0,.03) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.hero-heading-glow {
    position: relative;
    filter: drop-shadow(0 0 32px rgba(255,45,120,.75));
    animation: headingPulse 4s ease-in-out infinite;
}
@keyframes headingPulse {
    0%,100% { filter: drop-shadow(0 0 32px rgba(255,45,120,.75)); }
    50%      { filter: drop-shadow(0 0 60px rgba(255,45,120,1)) drop-shadow(0 0 100px rgba(189,0,255,.5)); }
}

/* Pill glassmorphism upgrade */
.hero-pill {
    background: rgba(255,255,255,.06) !important;
    backdrop-filter: blur(24px) saturate(160%) !important;
    border: 1px solid rgba(255,45,120,.2) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.4),
                inset 0 1px 0 rgba(255,255,255,.1),
                0 0 20px rgba(255,45,120,.08) !important;
    transition: transform .4s var(--transition-spring),
                box-shadow .3s ease !important;
}
.hero-pill:hover {
    transform: translateY(-4px) scale(1.04) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.5),
                inset 0 1px 0 rgba(255,255,255,.15),
                0 0 30px rgba(255,45,120,.2) !important;
}

/* ──────────────────────────────────────────────────────────
   SECTION HEADINGS — underline glow
────────────────────────────────────────────────────────── */

.section-title,
.section-heading {
    position: relative;
    display: inline-block;
}

.section-title::after,
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60%;
    height: 3px;
    background: var(--gradient-glamour);
    border-radius: 99px;
    box-shadow: var(--neon-pink-glow);
    transform-origin: right;
    animation: underlineGrow .8s var(--transition-expo) both;
}
@keyframes underlineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ──────────────────────────────────────────────────────────
   PRODUCT CARD REVOLUTION
────────────────────────────────────────────────────────── */

.product-card {
    transform-style: preserve-3d;
    transition: transform .4s var(--transition-expo),
                box-shadow .4s ease !important;
    will-change: transform;
    cursor: pointer;
    position: relative;
    overflow: visible !important;
}

/* Specular highlight (driven by JS --highlight-x) */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--highlight-x, 50%) 25%,
        rgba(255,255,255,.1) 0%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity .35s ease;
}
.product-card:hover::before { opacity: 1; }

/* Neon border on hover */
.product-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-neon-border);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0;
    transition: opacity .4s ease;
    animation: neonBorderRotate 3s linear infinite;
}
.product-card:hover::after { opacity: .6; }

@keyframes neonBorderRotate {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* Image zoom */
.product-card .product-image,
.product-card img {
    transition: transform .6s var(--transition-expo) !important;
    will-change: transform;
}
.product-card:hover .product-image,
.product-card:hover img {
    transform: scale(1.07) !important;
}

/* ──────────────────────────────────────────────────────────
   FEATURE CARDS
────────────────────────────────────────────────────────── */

.feature-card {
    position: relative;
    transition: transform .4s var(--transition-spring),
                box-shadow .4s ease !important;
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.5),
                0 0 40px rgba(255,45,120,.2),
                inset 0 1px 0 rgba(255,255,255,.1) !important;
}

/* Animated icon ring */
.feature-icon,
.feature-card .icon {
    transition: transform .4s var(--transition-spring),
                filter .4s ease !important;
}
.feature-card:hover .feature-icon,
.feature-card:hover .icon {
    transform: scale(1.2) rotate(10deg) !important;
    filter: drop-shadow(0 0 16px rgba(255,45,120,.8)) !important;
}

/* ──────────────────────────────────────────────────────────
   BUTTON REVOLUTION — liquid + magnetic
────────────────────────────────────────────────────────── */

.btn {
    position: relative !important;
    overflow: hidden !important;
    transition: transform .3s var(--transition-spring),
                box-shadow .3s ease !important;
}

/* Liquid shimmer */
.btn::after {
    content: '' !important;
    position: absolute !important;
    top: 0; left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent) !important;
    skewX(-20deg) !important;
    transition: left .5s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
.btn:hover::after { left: 160% !important; }

/* Mouse-position ripple circle */
.btn::before {
    content: '' !important;
    position: absolute !important;
    width: 200px; height: 200px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.12) !important;
    top:  calc(var(--ripple-y, 50%) - 100px) !important;
    left: calc(var(--ripple-x, 50%) - 100px) !important;
    transform: scale(0) !important;
    transition: transform .5s ease, opacity .5s ease !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
.btn:active::before {
    transform: scale(2.5) !important;
    opacity: 1 !important;
    transition: none !important;
}

/* Primary button neon upgrade */
.btn-primary:hover {
    box-shadow: var(--neon-pink-glow) !important;
    transform: translateY(-4px) scale(1.04) !important;
}

/* Glass button upgrade */
.btn-glass {
    background: rgba(255,255,255,.05) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
.btn-glass:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: rgba(0,245,255,.4) !important;
    box-shadow: 0 0 30px rgba(0,245,255,.2),
                inset 0 1px 0 rgba(255,255,255,.15) !important;
    transform: translateY(-4px) scale(1.02) !important;
}

/* ──────────────────────────────────────────────────────────
   STATS COUNTER
────────────────────────────────────────────────────────── */

.stat-number {
    background: var(--gradient-glamour);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(255,45,120,.6));
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

/* ──────────────────────────────────────────────────────────
   FLASH SALES COUNTDOWN
────────────────────────────────────────────────────────── */

.countdown-digit,
.timer-digit {
    background: rgba(255,45,120,.12);
    border: 1px solid rgba(255,45,120,.25);
    border-radius: var(--radius-md);
    color: var(--primary-pink) !important;
    box-shadow: 0 0 20px rgba(255,45,120,.15),
                inset 0 1px 0 rgba(255,255,255,.08);
    font-variant-numeric: tabular-nums;
    animation: digitPulse 1s ease-in-out infinite;
}
@keyframes digitPulse {
    0%,100% { box-shadow: 0 0 20px rgba(255,45,120,.15), inset 0 1px 0 rgba(255,255,255,.08); }
    50%      { box-shadow: 0 0 35px rgba(255,45,120,.35), inset 0 1px 0 rgba(255,255,255,.1); }
}

/* ──────────────────────────────────────────────────────────
   ADD TO CART / WISHLIST BUTTONS
────────────────────────────────────────────────────────── */

.add-to-cart,
.btn-cart {
    transition: transform .35s var(--transition-spring),
                box-shadow .3s ease,
                background .25s ease !important;
}
.add-to-cart:hover,
.btn-cart:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: var(--neon-pink-glow) !important;
}

.wishlist-btn,
.btn-wishlist {
    transition: transform .4s var(--transition-spring),
                color .25s ease !important;
}
.wishlist-btn:hover,
.btn-wishlist:hover {
    transform: scale(1.3) !important;
    animation: heartbeat 1s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────
   GLASS CARDS
────────────────────────────────────────────────────────── */

.glass-card,
.card-glass {
    background: rgba(255,255,255,.04) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.4),
                inset 0 1px 0 rgba(255,255,255,.1),
                0 0 0 1px rgba(255,45,120,.06) !important;
    transition: transform .4s var(--transition-spring),
                box-shadow .4s ease,
                border-color .3s ease !important;
}
.glass-card:hover,
.card-glass:hover {
    border-color: rgba(255,45,120,.2) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.5),
                inset 0 1px 0 rgba(255,255,255,.12),
                0 0 40px rgba(255,45,120,.1) !important;
    transform: translateY(-6px) !important;
}

/* ──────────────────────────────────────────────────────────
   FORM INPUTS
────────────────────────────────────────────────────────── */

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"],
textarea, select {
    transition: border-color .3s ease, box-shadow .3s ease !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus,
textarea:focus, select:focus {
    border-color: var(--primary-pink) !important;
    box-shadow: 0 0 0 3px rgba(255,45,120,.15),
                0 0 20px rgba(255,45,120,.1) !important;
    outline: none !important;
}

/* ──────────────────────────────────────────────────────────
   IMAGES — lazy load fade-in
────────────────────────────────────────────────────────── */

img[loading="lazy"] {
    transition: opacity .6s ease, filter .6s ease;
    filter: blur(8px);
    opacity: 0;
}
img[loading="lazy"].loaded {
    filter: blur(0);
    opacity: 1;
}

/* ──────────────────────────────────────────────────────────
   SECTION DIVIDERS — aurora wave
────────────────────────────────────────────────────────── */

.section-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}
.section-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ff2d78, #bd00ff, #7b2fff, #00f5ff, #ff2d78);
    background-size: 400% 100%;
    height: 2px;
    top: 50%;
    animation: aurora-shift 6s ease infinite;
    box-shadow: 0 0 20px rgba(255,45,120,.4);
}

/* ──────────────────────────────────────────────────────────
   TOOLTIP GLOW
────────────────────────────────────────────────────────── */

[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15,15,46,.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,45,120,.2);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: .8rem;
    color: rgba(220,200,255,.9);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    z-index: 100;
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────────────────
   STAR RATING ANIMATION
────────────────────────────────────────────────────────── */

.star-filled,
.star.active {
    animation: starGlow 2s ease-in-out infinite;
}
@keyframes starGlow {
    0%,100% { filter: drop-shadow(0 0 4px rgba(255,215,0,.5)); }
    50%      { filter: drop-shadow(0 0 10px rgba(255,215,0,.9)); }
}

/* ──────────────────────────────────────────────────────────
   NEW ARRIVAL / SALE BADGES
────────────────────────────────────────────────────────── */

.badge-new,
.badge-hot,
.product-badge {
    animation: pulse-badge 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}
.badge-new::after,
.badge-hot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    animation: shine-effect 3s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────
   FOOTER — aurora border top
────────────────────────────────────────────────────────── */

footer {
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff2d78, #bd00ff, #00f5ff, #ffd700, transparent);
    background-size: 300% 100%;
    animation: aurora-shift 5s ease infinite;
    box-shadow: 0 0 20px rgba(255,45,120,.3);
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE POLISH
────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .product-card:hover {
        transform: none !important;
    }
    .feature-card:hover {
        transform: translateY(-6px) !important;
    }
    .cursor-dot, .cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
