/* Products Page Styling */
body {
    background-image: url('../img/background-3.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    padding: 20px 0;
}   

.products-container-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.products-header {
    text-align: center;
    position: relative;
}

.products-header h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    color: #535353;
    font-weight: 700;
    margin-bottom: 15px;
}

.products-header-line {
    width: 80px;
    height: 4px;
    background-color: #e63946;
    margin: 0 auto;
    position: relative;
}

.products-header-line:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #e63946;
    border-radius: 50%;
    top: -5px;
    left: -15px;
}

.products-header-line:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #e63946;
    border-radius: 50%;
    top: -5px;
    right: -15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Fullscreen Image Modal (Mobile Only) */
.fullscreen-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-image-container {
    max-width: 100%;
    max-height: 90%;
    overflow: hidden;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

@media screen and (min-width: 577px) {
    .product-image img {
        pointer-events: none; /* Disable click events on desktop */
    }
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .products-header h1 {
        font-size: 42px;
    }
}

/* Adding new media query for laptop screens */
@media screen and (max-width: 1366px) and (min-width: 993px) {
    .products-header h1 {
        font-size: 40px;
    }
    
    .products-header-line {
        width: 70px;
    }
    
    .products-grid {
        gap: 25px;
        margin-top: 50px;
    }
    
    .product-card {
        border-radius: 8px;
    }

    .products-container {
        max-width: 1200px;
    }
}

@media screen and (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .products-header h1 {
        font-size: 38px;
    }
}

@media screen and (max-width: 768px) {
    .products-container {
        margin: 30px auto 80px;
        padding: 0 15px;
    }
    
    .products-header {
        margin-bottom: 40px;
    }
    
    .products-header h1 {
        font-size: 32px;
    }
    
    .products-grid {
        gap: 25px;
        margin-top: 40px;
    }
}

@media screen and (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-header h1 {
        font-size: 28px;
    }
    
    .products-header-line {
        width: 60px;
    }
}
