/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)),
                url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.5);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Real-time Updates */
.real-time-updates {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 3;
}

.update-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    margin: 0.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.update-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.update-item i {
    margin-right: 0.5rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* About Section */
.feature-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Products Section */
.filters {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.image-loading {
    transition: opacity 0.3s ease;
}

.product-image img.loaded + .image-loading,
.product-image img.error + .image-loading {
    opacity: 0;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: #f8f9fa;
    opacity: 0;
    animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

.product-image img.error {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
}

.product-image img.error::after {
    content: '🖼️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #6c757d;
}

.product-image img[src*="unsplash"] {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image img:not([src]) {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
}

.product-image img:not([src])::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.product-overlay .btn {
    background: var(--white);
    color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.product-overlay .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Collections Section */
.collection-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.collection-card:hover .collection-overlay {
    transform: translateY(0);
}

/* Promotions Section */
.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.countdown-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.promotion-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Testimonials Section */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card img {
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    transition: var(--transition);
    cursor: pointer;
}

.testimonial-card img.hover-effect {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-card img[src*="unsplash"] {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.testimonial-card img:not([src]) {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
}

.testimonial-card img:not([src])::after {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card:hover img {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.testimonial-card .d-flex {
    position: relative;
}

.testimonial-card .d-flex::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: 'Playfair Display', serif;
}

.stars {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: var(--white);
    border: none;
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--secondary-color);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

/* Footer */
footer {
    background: var(--dark-gray) !important;
}

.contact-info-footer {
    font-size: 0.9rem;
}

.contact-item-footer {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-item-footer i {
    margin-top: 0.2rem;
    min-width: 16px;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8f9fa;
}

.product-gallery .thumbnail-images img {
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-gallery .thumbnail-images img:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.product-gallery .thumbnail-images img.active {
    border-color: var(--secondary-color);
}

/* Image error handling */
.product-gallery img[src*="unsplash"] {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-gallery img:not([src]) {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    position: relative;
}

.product-gallery img:not([src])::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filters .row > div {
        margin-bottom: 1rem;
    }
    
    .real-time-updates {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
    
    .update-item {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .collection-card {
        margin-bottom: 1.5rem;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 