/* Custom CSS for Shringarika Luxury Beauty */

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF2E93, #D4AF37);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FF69B4, #F4D03F);
}

/* ===== Typography Effects ===== */
.hero-title-shadow {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.glow-text {
    text-shadow: 
        0 0 10px rgba(255, 46, 147, 0.5),
        0 0 20px rgba(255, 46, 147, 0.4),
        0 0 30px rgba(255, 46, 147, 0.3),
        0 0 40px rgba(255, 46, 147, 0.2);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 46, 147, 0.5),
            0 0 20px rgba(255, 46, 147, 0.4),
            0 0 30px rgba(255, 46, 147, 0.3),
            0 0 40px rgba(255, 46, 147, 0.2);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(255, 46, 147, 0.7),
            0 0 25px rgba(255, 46, 147, 0.6),
            0 0 35px rgba(255, 46, 147, 0.5),
            0 0 45px rgba(255, 46, 147, 0.3);
    }
}

.watermark-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.1em;
}

/* ===== Powder Explosion Effects ===== */
.powder-explosion {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: powder-float 15s ease-in-out infinite;
}

.powder-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 46, 147, 0.4) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.powder-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -5%;
    animation-delay: -5s;
}

.powder-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.35) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes powder-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ===== Floating Animation ===== */
.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 8s ease-in-out infinite;
    animation-delay: -3s;
}

.animate-float-slow {
    animation: float 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ===== Fade In Animations ===== */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-up-delayed {
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navigation Styles ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF2E93, #D4AF37);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Product Card Effects ===== */
.product-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 46, 147, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.product-card:hover::before {
    opacity: 1;
}

/* ===== Button Effects ===== */
.add-to-cart {
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.add-to-cart:hover::before {
    left: 100%;
}

/* ===== Gold Shimmer Effect ===== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shimmer-gold {
    background: linear-gradient(
        90deg,
        #D4AF37 0%,
        #F4D03F 25%,
        #D4AF37 50%,
        #F4D03F 75%,
        #D4AF37 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ===== Card Hover Glow ===== */
.glow-card {
    position: relative;
}

.glow-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FF2E93, #D4AF37, #FF2E93, #D4AF37);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s ease infinite;
}

.glow-card:hover::after {
    opacity: 1;
}

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

/* ===== Custom Selection ===== */
::selection {
    background: rgba(255, 46, 147, 0.3);
    color: white;
}

/* ===== Focus States ===== */
input:focus,
button:focus {
    outline: none;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(255, 46, 147, 0.3);
}

/* ===== Loading Animation ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Cart Item Slide In ===== */
.animate-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Product Image Overlay ===== */
.product-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #FF2E93 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Border Glow ===== */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #FF2E93, #D4AF37, #FF2E93);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-glow:hover::before {
    opacity: 1;
}

/* ===== Custom Checkbox ===== */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background: #FF2E93;
    border-color: #FF2E93;
}

/* ===== Tooltip ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* ===== Mobile Menu Animation ===== */
#mobileMenu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

#mobileMenu.active {
    transform: translateY(0);
}

/* ===== Cart Sidebar Animation ===== */
#cartSidebar {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cartSidebar.active {
    transform: translateX(0);
}

/* ===== Image Placeholder Styles ===== */
.image-placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: image-shine 2s ease-in-out infinite;
}

@keyframes image-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===== Print Styles ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
