/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Color Variables */
:root {
    --primary-color: #d4a373;
    --secondary-color: #f7d7e2;
    --text-color: #2d2d2d;
    --bg-color: #ffffff;
    --light-bg: #f8f9fa;
    --white: #fff;
}

/* General Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: white;
    padding: 0.8rem 2rem;
  
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s, padding 0.3s;
    

}

header.scrolled {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.1);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-bottom: 3rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.filter-container {
    margin-bottom: 2.5rem;
    text-align: center;
}

.filter-container label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 1rem;
    color: var(--primary-color);
}

.filter-container select {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-container select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.8rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.product-price {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
}

.add-to-cart {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: rotate(360deg);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}

.footer-column h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.95rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .logo {
        height: 60px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .product-image {
        height: 280px;
    }

    .btn {
        padding: 0.8rem 2rem;
    }
}
