/* CSS Variables for Theme Colors */
:root {
    --primary-color: #e6af61;
    --secondary-color: #3f4244;
    --accent-color: #956a2d;
    --light-gray: #f8f9fa;
    --dark-gray: #2c2c2c;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Products Section */
.products-section {
    padding: 2rem;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.section-title {
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

#products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    /* Ensure it's above the image */
}

/* NEW: Wishlist button position and style */
.product-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly transparent white */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    /* Make it circular */
    width: 40px;
    /* Fixed width */
    height: 40px;
    /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* Ensure it's above the image */
    color: var(--secondary-color);
    /* Default icon color */
}

.product-wishlist-btn:hover {
    background: var(--primary-color);
    /* Change background on hover */
    color: var(--white);
    /* Change icon color on hover */
    transform: scale(1.1);
    /* Slightly enlarge on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-wishlist-btn i {
    font-size: 1.2rem;
}

.product-content {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.3;
}

.product p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
}

.product button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
}

.btn-add-cart:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.view-btn{
    width: 120px;
    margin: 0 auto;
}

/* REMOVED .btn-wishlist from here as it's now a separate element */

/* Error/Loading States */
.error-message {
    text-align: center;
    padding: 3rem;
    background: var(--white);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #666;
}

/* Notification Container */
#notification-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        padding-top: 30px;
    }

    .hero-graphics {
        order: -1;
        margin-bottom: 2rem;
    }

    .main-graphic {
        width: 200px;
        height: 200px;
    }

    .floating-element {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    #products {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}