.products-tabs-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.products-tabs-nav {
    display: inline-flex;
    height: 61px;
    padding: 0px 23px;
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 41px;
    border-radius: 64px;
    border: 1px solid rgba(58, 116, 152, 0.00);
    background: #FFF;
    box-shadow: 0px 3px 10px 0px rgba(58, 116, 152, 0.38);
    width: auto;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: transparent;
    white-space: nowrap;
    font-family: Queering;
    font-size: 33px;
    color: #3777BC;
}

.tab-button.active {
    color: #fff;
}
@media (max-width: 768px) {
    .tab-button.active {
        color: #fff;
        background-color: #3777BC;
    }
    .pill-indicator {
        display: none;
    }

}
.pill-indicator {
    position: absolute;
    top: 7px;
    left: 0;
    height: 76%;
    background: #3777BC;
    border-radius: 74px;
    z-index: 0;
    transform-origin: center;
    transition: transform 0.15s ease;
}

.products-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.products-grid:has(.product-card:only-child),
.products-grid:has(.product-card:first-child:nth-last-child(2)),
.products-grid:has(.product-card:first-child:nth-last-child(2) ~ .product-card) {
    justify-content: center;
}

.products-grid:has(.product-card:only-child) .product-card,
.products-grid:has(.product-card:first-child:nth-last-child(2)) .product-card,
.products-grid:has(.product-card:first-child:nth-last-child(2) ~ .product-card) .product-card {
    width: 310px;
}

.product-card {
    display: flex;
    border: 2.5px solid rgba(55, 119, 188, 0.33);
    padding: 20px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    width: calc(33.333% - 16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-link {
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.product-image {
    width: 220px;
    height: 220px;
    overflow: hidden;
    margin: 0 auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0 15px;
}

.tab-pane {
    display: none;
    width: 100%;
}

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

/* Large Tablet styles */
@media (max-width: 1200px) {
    .products-tabs-container {
        padding: 15px;
        gap: 20px;
    }

    .product-card {
        width: calc(50% - 12px);
    }

    .product-image {
        width: 200px;
        height: 200px;
    }
}

/* Tablet styles */
@media (max-width: 768px) {
    .products-tabs-container {
        padding: 10px;
        gap: 15px;
    }

    .products-tabs-nav {
        height: 50px;
        padding: 0 15px;
        gap: 20px;
    }

    .tab-button {
        font-size: 24px;
        padding: 8px 16px;
    }

    .pill-indicator {
        top: 5px;
        height: 80%;
        transform: translateY(0);
    }

    .product-card {
        width: calc(50% - 10px);
    }

    .product-image {
        width: 180px;
        height: 180px;
    }

    .product-title {
        font-size: 16px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .products-tabs-container {
        padding: 10px;
        gap: 15px;
    }

    .products-tabs-nav {
        height: auto;
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        border-radius: 20px;
    }

    .tab-button {
        width: 100%;
        font-size: 20px;
        padding: 8px;
        text-align: center;
        border-radius: 10px;
    }

    .pill-indicator {
        top: 5px;
        height: 53px;
        transform: translateY(0);
    }

    .products-grid {
        gap: 15px;
    }

    .product-card {
        width: 100%;
        padding: 15px 0;
    }

    .product-image {
        width: 160px;
        height: 160px;
    }

    .product-title {
        font-size: 15px;
    }
} 