/* Custom CSS for Glitz & Treats */

/* Font Families */
.playfair-font {
    font-family: 'Playfair Display', serif;
}

.poppins-font {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #FF1493 0%, #FFC1CC 50%, #E6E6FA 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

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

/* Floating Sparkles Animation */
.floating-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-sparkle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite alternate;
}

.sparkle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 50%;
    right: 15%;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 80%;
    left: 20%;
    animation-delay: 2s;
}

.sparkle-4 {
    top: 30%;
    right: 30%;
    animation-delay: 3s;
}

.sparkle-5 {
    top: 70%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Hero Title Animation */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

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

/* CTA Button Enhanced Styling */
.cta-button {
    position: relative;
    overflow: hidden;
    transform: perspective(1px) translateZ(0);
}

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

.cta-button:hover::before {
    left: 100%;
}

/* Product Cards Enhanced Styling */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 20, 147, 0.1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(255, 20, 147, 0.25);
}

/* Social Media Placeholders */
.social-placeholder {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.social-placeholder:hover {
    transform: scale(1.05);
    border-color: rgba(255, 20, 147, 0.3);
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .floating-sparkle {
        width: 6px;
        height: 6px;
    }
    
    .floating-sparkle::before {
        width: 10px;
        height: 10px;
        top: -2px;
        left: -2px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Selection Colors */
::selection {
    background-color: rgba(255, 20, 147, 0.3);
    color: #fff;
}

/* Focus States */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #FF1493;
    outline-offset: 2px;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Enhanced Gradient Effects */
.bg-gradient-to-r {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

/* Glassmorphism Effect for Navigation */
nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF1493, #FFC1CC);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #E6127A, #FFB3BA);
}

/* Product Page Specific Styles */
.product-carousel-main {
    aspect-ratio: 1 / 1;
}

.product-carousel-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    aspect-ratio: 1 / 1;
}

.product-carousel-thumbnail.active {
    border-color: #FF1493; /* Hot Pink */
}

/* Variant Selectors */
.variant-swatch {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.variant-swatch.selected {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #FF1493;
}

.variant-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.variant-btn.selected {
    background-color: #FF1493;
    color: white;
    border-color: #FF1493;
}

/* Quantity Input */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    -moz-appearance: textfield;
}

/* Tabs */
.tab-btn {
    position: relative;
    padding-bottom: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF1493;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Review Stars */
.star-rating {
    color: #FFD700; /* Gold */
}
