/* Custom styles for Alpine Jewels */

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Typography */
body {
    font-family: 'Georgia', serif;
}

/* Catalogue specific styles */
.catalogue-hero {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.95) 100%);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.catalogue-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    animation: shimmer 3s infinite;
}

.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
    transition: all 0.4s;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
}

.filter-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    color: #374151;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.filter-button.active {
    background: rgba(55, 65, 81, 0.8);
    color: white;
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Dynamic hover effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Product card hover effects */
.product-card {
    transition: all 0.3s ease;
}

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    transform: translateY(-2px);
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1f2937;
    transition: width 0.3s ease;
}

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

/* Hero section overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
}

/* Mobile menu animation */
.mobile-menu {
    transition: all 0.3s ease;
}

/* Cart modal animation */
.modal-content {
    animation: slideUp 0.3s ease;
}

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

/* Value cards */
.value-card {
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: scale(1.05);
}

.value-card .icon-wrapper {
    transition: all 0.3s ease;
}

.value-card:hover .icon-wrapper {
    background: #1f2937;
    color: white;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1f2937;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom form styles */
.form-input {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #1f2937;
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

/* Newsletter section */
.newsletter-bg {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Product image overlay */
.product-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(31, 41, 55, 0.8) 100%);
}

/* Testimonial cards */
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-left: 4px solid #1f2937;
}

/* Category badges */
.category-badge {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #374151;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

/* Price display */
.price {
    font-variant-numeric: tabular-nums;
}

/* Social media icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: #1f2937;
}

/* Footer links */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* Animations for Dynamic Catalogue */
@keyframes zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.category-card {
    animation: slideInFromTop 0.6s ease-out;
}

.stat-item {
    animation: slideInFromTop 0.8s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.counter {
    font-variant-numeric: tabular-nums;
}

/* Enhanced Product Cards */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #e5e7eb;
}

.product-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Filter Tags */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #374151;
    animation: slideInFromTop 0.3s ease-out;
}

.filter-tag button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-tag button:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Unified Header Styles */
.site-header {
    font-family: 'Georgia', serif;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Georgia', serif;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    font-family: 'Georgia', serif;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1f2937;
}

.nav-icon {
    font-size: 1rem;
    color: #374151;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: #1f2937;
}

.user-menu-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.user-menu-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}
