/* Container */
.nulabs-products-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Tab Navigation Buttons */
.nulabs-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.nulabs-tab-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nulabs-tab-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.nulabs-tab-btn.active {
    background: #000;
    color: #fff;
}

/* Tab Content Area */
.nulabs-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.nulabs-tab-pane.active {
    display: block;
}

/* Products Grid */
.nulabs-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Card */
.nulabs-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f5f5f5;
    display: flex;
    flex-direction: column;
}

.nulabs-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.product-image-wrapper {
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    position: relative;
    background: #f9f9f9;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.product-info h3 a:hover {
    color: #000;
}

.product-info .price {
    color: #e53935;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.product-info .price del {
    color: #999;
    font-size: 14px;
    font-weight: normal;
    margin-right: 5px;
}

.product-info .price ins {
    text-decoration: none;
}

.product-info .buy-btn {
    background: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.product-info .buy-btn:hover {
    background: #000;
    color: #fff;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nulabs-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .nulabs-tab-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nulabs-products-grid {
        grid-template-columns: 1fr;
    }
}