/* ===== Gift Shop - Premium Pink Theme ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 25%, #FFF5F8 50%, #FFE8F0 75%, #FFF0F5 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 182, 217, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: linear-gradient(180deg, #FFF0F5, #FFE4EC); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #FF6B9D, #D63384); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #D63384, #B02A6B); }

/* Custom Cursor */
#custom-cursor { 
    mix-blend-mode: difference; 
    transition: all 0.15s ease-out;
}
#custom-cursor.hover { 
    width: 50px !important; 
    height: 50px !important; 
    background: rgba(255,107,157,0.3) !important;
    border-color: #FF6B9D !important;
}

/* Glassmorphism Navbar */
#navbar { 
    background: transparent; 
    transition: all 0.5s ease;
}
#navbar.scrolled { 
    background: rgba(255, 240, 245, 0.85); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    box-shadow: 0 8px 32px rgba(255,107,157,0.15); 
    border-bottom: 1px solid rgba(255,107,157,0.15);
}

/* Hero 3D */
#hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }

/* Product Cards */
.product-card { 
    perspective: 1000px; 
    transform-style: preserve-3d; 
}
.product-card-inner { 
    transition: all 0.6s cubic-bezier(0.4,0,0.2,1); 
    transform-style: preserve-3d;
    background: rgba(255, 255, 255, 0.7) !important;
}
.product-card:hover .product-card-inner { 
    transform: translateY(-12px) rotateX(2deg); 
    box-shadow: 0 25px 50px rgba(255,107,157,0.2);
}
.product-card .product-image-wrapper { 
    overflow: hidden; 
    border-radius: 24px 24px 0 0; 
    position: relative;
}
.product-card .product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,107,157,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.product-card:hover .product-image-wrapper::after {
    opacity: 1;
}
.product-card .product-image { 
    transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); 
}
.product-card:hover .product-image { 
    transform: scale(1.1); 
}
.product-card .card-actions { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1); 
    z-index: 2;
}
.product-card:hover .card-actions { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Category Cards */
.category-card { 
    position: relative; 
    overflow: hidden; 
    border-radius: 24px; 
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 10px 30px rgba(255,107,157,0.1);
}
.category-card::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(176, 42, 107, 0.9) 0%, rgba(214, 51, 132, 0.4) 50%, transparent 100%); 
    opacity: 0.6; 
    transition: opacity 0.5s ease; 
    z-index: 1; 
}
.category-card:hover::before { 
    opacity: 0.9; 
}
.category-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 30px 60px rgba(255,107,157,0.3); 
}
.category-card .category-content { 
    position: relative; 
    z-index: 2; 
}

/* Skeleton Loading */
.skeleton { 
    background: linear-gradient(90deg, #ffe4ec 25%, #ffd4e5 50%, #ffe4ec 75%); 
    background-size: 200% 100%; 
    animation: skeleton-loading 1.5s infinite; 
    border-radius: 12px; 
}
@keyframes skeleton-loading { 
    0% { background-position: 200% 0; } 
    100% { background-position: -200% 0; } 
}

/* Color Options */
.color-option { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    border: 3px solid transparent; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.color-option:hover { 
    transform: scale(1.2); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.color-option.selected { 
    border-color: #FF6B9D; 
    box-shadow: 0 0 0 3px white, 0 0 0 5px #FF6B9D, 0 0 20px rgba(255,107,157,0.4);
    transform: scale(1.1);
}

/* Size Options */
.size-option { 
    min-width: 48px; 
    height: 48px; 
    border-radius: 14px; 
    border: 2px solid #FFB6D9; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease;
    background: white;
}
.size-option:hover { 
    border-color: #FF6B9D; 
    background: rgba(255,107,157,0.05);
    transform: translateY(-2px);
}
.size-option.selected { 
    background: linear-gradient(135deg, #FF6B9D, #D63384); 
    color: white; 
    border-color: #FF6B9D;
    box-shadow: 0 4px 15px rgba(255,107,157,0.4);
    transform: translateY(-2px);
}

/* Thumbnails */
.thumbnail { 
    cursor: pointer; 
    border: 2px solid transparent; 
    border-radius: 14px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    flex-shrink: 0; 
    width: 90px; 
    height: 90px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.thumbnail:hover { 
    border-color: #FFB6D9; 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,107,157,0.2);
}
.thumbnail.active { 
    border-color: #FF6B9D; 
    box-shadow: 0 0 0 3px rgba(255,107,157,0.2), 0 8px 20px rgba(255,107,157,0.2);
}
.thumbnail img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.thumbnail:hover img {
    transform: scale(1.1);
}

/* Cart Item */
.cart-item { 
    animation: cart-item-slide 0.4s cubic-bezier(0.4,0,0.2,1); 
}
@keyframes cart-item-slide { 
    from { opacity: 0; transform: translateX(30px) scale(0.95); } 
    to { opacity: 1; transform: translateX(0) scale(1); } 
}

/* Toast */
#toast { 
    animation: toast-slide-up 0.5s cubic-bezier(0.4,0,0.2,1);
    backdrop-filter: blur(20px);
    background: rgba(176, 42, 107, 0.95) !important;
}
@keyframes toast-slide-up { 
    from { transform: translate(-50%, 100%) scale(0.9); opacity: 0; } 
    to { transform: translate(-50%, 0) scale(1); opacity: 1; } 
}

/* Loading Screen */
#loading-screen { 
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4EC 50%, #FFF5F8 100%) !important;
}
#loading-screen.hidden { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

/* Floating Animation */
@keyframes float { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-15px) rotate(0deg); } 
    75% { transform: translateY(-8px) rotate(-1deg); }
}
.float-animation { 
    animation: float 4s ease-in-out infinite; 
}

/* Pulse Glow */
@keyframes pulse-glow { 
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,157,0.5); } 
    50% { box-shadow: 0 0 0 15px rgba(255,107,157,0); } 
}
.pulse-glow { 
    animation: pulse-glow 2.5s infinite; 
}

/* Selection */
::selection { 
    background: rgba(255,107,157,0.4); 
    color: #1A1A1A; 
}

/* Focus */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { 
    outline: 3px solid #FF6B9D; 
    outline-offset: 3px;
    border-radius: 8px;
}

/* Page Transitions */
.page-section { 
    opacity: 1; 
    transition: opacity 0.5s ease; 
}
.page-section.hidden { 
    display: none !important; 
    opacity: 0; 
}

/* Step Circles */
.step-item.active .step-circle { 
    background: linear-gradient(135deg, #FF6B9D, #D63384) !important; 
    color: white !important;
    box-shadow: 0 4px 15px rgba(255,107,157,0.4);
}
.step-item.completed .step-circle { 
    background: linear-gradient(135deg, #D4AF37, #B8960C) !important; 
    color: white !important;
    box-shadow: 0 4px 15px rgba(212,175,55,0.4);
}

/* Shadow Glow */
.shadow-glow {
    box-shadow: 0 10px 40px rgba(255,107,157,0.2);
}
.shadow-glow:hover {
    box-shadow: 0 20px 60px rgba(255,107,157,0.3);
}

/* Cart Bounce */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}
.cart-bounce {
    animation: cartBounce 0.5s ease;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6B9D, #D63384, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}
.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Neon Glow Border */
.neon-border {
    position: relative;
}
.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, #FF6B9D, #D63384, #D4AF37, #FF6B9D);
    background-size: 400% 400%;
    z-index: -1;
    animation: neonGlow 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.neon-border:hover::before {
    opacity: 1;
}
@keyframes neonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3D Tilt Card */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}
.tilt-card .tilt-content {
    transform: translateZ(30px);
}

/* Responsive */
@media (max-width: 768px) {
    #custom-cursor, #cursor-follower { display: none !important; }
    .product-card .card-actions { opacity: 1; transform: translateY(0); }
    .category-card { height: 240px !important; }
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Hero Text Animation */
@keyframes textReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}
.text-reveal {
    animation: textReveal 1s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Button Shine */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(255,107,157,0.1);
}

/* Animated Border */
.animated-border {
    position: relative;
    background: white;
    border-radius: 24px;
}
.animated-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, #FF6B9D, #D63384, #D4AF37, #FF6B9D);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
    opacity: 0.5;
}
@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}