.opening-word {
    margin-left: 30px;
    color: #A8FFE3;
    margin-bottom: -1px;
}


.products-opening {
    position: relative;
    max-width: 95vw; 
    margin: 40px auto;
    padding: 24px;
    background-color: #1b1b1b; 
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    color: #f1f1f1; 
}


/* carousel structure */
.products-slide {
    display: none;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.products-slide.active {
    display: flex;
    opacity: 1;
    transform: translateX(0);
}


.products-visual {
    display: flex;
    gap: 16px;
    height: 320px;
}

.products-left {
    flex: 2;
    overflow: hidden;
    border-radius: 12px;
}

.products-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


.products-left img,
.products-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.products-right img {
    height: calc(50% - 8px);
}


.products-info {
    text-align: left;
    padding: 0 4px;
}

.products-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.products-info p {
    font-size: 20px;
    color: #cccccc;
    margin: 0;
}


.products-nav {
    position: absolute;
    top: calc(50% - 22px);
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.25;
    transition: opacity 0.3s ease;
}

.products-nav:hover {
    opacity: 1;
}


.products-nav.prev {
    left: 20px;
}

.products-nav.next {
    right: 20px;
}


.products-dots {
    text-align: center;
    margin-top: 18px;
}

.products-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease; 
}

.products-dots .dot.active {
    background-color: #92e2c5;
    transform: scale(1.3);
}

/* products dengan filter */

.products-section {
    padding: 40px 20px;
    background-color: #1b1b1b;
    color: #fff;
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #ffffff;
    color: #1b1b1b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

.product-card {
    background-color: #292929;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 16px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 300px;
    margin: 0 auto;
}

.product-card:hover {
    transform: scale(1.015);
}

.product-img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-radius: 10px;
}

.product-info h3 {
    font-size: 1rem;
    margin: 2px 0;
    text-align: center;
    font-weight: 600;
    color: #ffffff;
}

.product-subcategory {
    font-size: 0.9rem;
    color: #aaa;
    margin: -4px 0 2px 0;
    text-align: center;
}

.product-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #aaa;
}

.star {
    font-size: 14px;
    color: #ffffff;
}

.rating-score {
    font-size: 13px;
    color: #ccc;
}

.product-price {
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
    margin-top: 2px;
    text-align: center;
}

.products-closing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #2a2a2a;
    padding: 60px 20px;
    margin-top: 50px;
    border-radius: 16px;
    color: #fff;
    max-width: 800px;
    margin-inline: auto;
}

.products-closing h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.products-closing p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 24px;
    }

.products-closing .join-button {
    background-color: #fcfcfc;
    color: #1b1b1b;
    padding: 12px 28px;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.products-closing .join-button:hover {
    background-color: #A8FFE3;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 20px;
    }

    .product-card {
        width: 100%;
        margin: 0;
    }
}


@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; /* less gap for smaller screen */
        padding: 5px 10px;
    }

    .product-card {
        width: 100%;
        margin: 0;
    }
}