/* ═══════════════════════════════════════════════════════════════
   VanCr.com – Flashy & Eye-Catching Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --vc-purple: #6c3483;
    --vc-pink: #e91e8c;
    --vc-orange: #ff6f00;
    --vc-blue: #2196f3;
    --vc-teal: #00bfa5;
    --vc-gradient: linear-gradient(135deg, #6c3483, #e91e8c, #ff6f00);
    --vc-gradient-cool: linear-gradient(135deg, #667eea, #764ba2);
    --vc-gradient-warm: linear-gradient(135deg, #f093fb, #f5576c);
    --vc-gradient-sunset: linear-gradient(135deg, #fa709a, #fee140);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Fredoka', sans-serif;
}

/* ── Animated gradient background for navbar ── */
.navbar-gradient {
    background: linear-gradient(-45deg, #6c3483, #e91e8c, #2196f3, #00bfa5);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Glowing brand logo ── */
.brand-glow {
    text-shadow: 0 0 10px rgba(255,255,255,0.5), 0 0 20px rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

/* ── Hero section ── */
.hero-section {
    background: linear-gradient(135deg, #1a0533 0%, #6c3483 30%, #e91e8c 60%, #ff6f00 100%);
    min-height: 500px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: sparkleMove 20s linear infinite;
}
@keyframes sparkleMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #ffd700, #ff6ec7, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 3s linear infinite;
}
@keyframes shimmerText {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.hero-img {
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

/* ── Glowing CTA buttons ── */
.btn-glow {
    background: linear-gradient(135deg, #ffd700, #ff6f00);
    color: #1a0533;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(255,111,0,0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255,111,0,0.6);
    color: #1a0533;
}
.btn-glow-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-glow-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* ── Scroll-reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Section titles with gradient underline ── */
.section-title {
    display: inline-block;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    border-radius: 2px;
    background: var(--vc-gradient);
}

/* ── Product cards – glassmorphism + bounce ── */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.17,.67,.35,1.5), box-shadow 0.35s ease;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}
.product-card:hover {
    transform: translateY(-10px) rotate(0.5deg);
    box-shadow: 0 20px 50px rgba(108,52,131,0.2) !important;
}
.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.product-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrap img {
    transform: scale(1.12);
}
.product-card .discount-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(255,65,108,0.4);
    animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}
.product-card .add-btn {
    background: var(--vc-gradient-cool);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.product-card .add-btn:hover {
    background: var(--vc-gradient-warm);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(118,75,162,0.4);
}

/* ── Age / Season category cards ── */
.age-card, .season-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.17,.67,.35,1.5), box-shadow 0.3s ease;
}
.age-card:hover, .season-card:hover {
    transform: scale(1.06) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.age-card img, .season-card img {
    transition: transform 0.5s ease;
}
.age-card:hover img, .season-card:hover img {
    transform: scale(1.1);
}

/* ── Animated scrolling marquee ── */
.marquee-bar {
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, #e91e8c, #ff6f00, #ffd700, #e91e8c);
    background-size: 200% 100%;
    animation: marqueeGradient 4s linear infinite;
}
.marquee-bar .marquee-content {
    display: inline-block;
    animation: marqueeScroll 15s linear infinite;
    font-weight: 700;
    color: #fff;
    padding: 10px 0;
    font-size: 1.1rem;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marqueeGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ── Value prop icons with bounce ── */
.value-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 2rem;
    color: #fff;
    transition: transform 0.4s cubic-bezier(.17,.67,.35,1.5);
}
.value-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

/* ── Testimonial cards ── */
.testimonial-card {
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f8f0ff);
    border: 1px solid rgba(108,52,131,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(108,52,131,0.15);
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700;
    background: var(--vc-gradient-cool);
    box-shadow: 0 3px 10px rgba(118,75,162,0.3);
}

/* ── Footer with gradient ── */
.footer-gradient {
    background: linear-gradient(135deg, #1a0533, #2c3e50);
    color: #ecf0f1;
}

/* ── Misc ── */
.navbar-toggler-icon { filter: invert(1); }
.badge { transition: all 0.2s; }

/* ── Pulse animation for cart icon ── */
.cart-pulse {
    animation: cartPop 0.4s ease;
}
@keyframes cartPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ── Price styling ── */
.price-tag {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
}
.price-sale {
    color: #e91e8c;
    font-size: 1.1rem;
}
.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
}

/* ── Loading shimmer ── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Confetti-like particles (CSS only) ── */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particles-bg span {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    opacity: 0.3;
    animation: floatUp 6s ease-in-out infinite;
}
.particles-bg span:nth-child(1)  { left:10%; background:#ffd700; animation-delay:0s; animation-duration:5s; }
.particles-bg span:nth-child(2)  { left:25%; background:#ff6ec7; animation-delay:1s; animation-duration:7s; }
.particles-bg span:nth-child(3)  { left:40%; background:#00bfa5; animation-delay:2s; animation-duration:6s; }
.particles-bg span:nth-child(4)  { left:55%; background:#2196f3; animation-delay:0.5s; animation-duration:8s; }
.particles-bg span:nth-child(5)  { left:70%; background:#ff6f00; animation-delay:1.5s; animation-duration:5.5s; }
.particles-bg span:nth-child(6)  { left:85%; background:#e91e8c; animation-delay:2.5s; animation-duration:7.5s; }
.particles-bg span:nth-child(7)  { left:15%; background:#fff; animation-delay:3s; animation-duration:6.5s; }
.particles-bg span:nth-child(8)  { left:60%; background:#ffd700; animation-delay:0.8s; animation-duration:5.8s; }
@keyframes floatUp {
    0%   { bottom: -10%; opacity: 0; transform: scale(0); }
    20%  { opacity: 0.4; transform: scale(1); }
    80%  { opacity: 0.2; }
    100% { bottom: 110%; opacity: 0; transform: scale(0.5); }
}
