.container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

p.subtitle {
    color: #777;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 boxes per row */
    gap: 30px;
    padding: 0 20px; /* space from left and right screen edges */
    margin: 0 auto;
    max-width: 1200px;
}

.product {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 360px; 
    width: 100%;   
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: -10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.name {
    font-weight: 600;
    margin-bottom: 5px;
    text-align: left;
}

.detail {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
}

.product-wrapper {
    position: relative;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {    
    .product img{
        height: 220px;
        width: 70%;
        object-fit: contain;
    }      
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}
      
/* Lightbox with Same Product Style */
.lightbox-overlay {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow: auto;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    font-family: 'Outfit', sans-serif;
}
      
.lightbox-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
      
.lightbox-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    max-width: 600px;
    text-align: left;
    color: #222;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
        
.lightbox-img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    margin-bottom: 15px;
}
        
.lightbox-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.25rem;
}
      
.lightbox-details {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;  
}
      
.lightbox-close:hover {
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
