 /* List of products */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.container {
    position: relative;
    text-align: center;
    background-color: #F2F2F0;
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    overflow: hidden;
}

.image {
    opacity: 1;
    display: block;
    width: 100%;
    height: 75vh;
    transition: opacity 1.5s ease;
    backface-visibility: hidden;
}

.middle {
    transition: opacity 1.5s ease, transform 1.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.container:hover .image,
.container:hover .product-info {
    opacity: 0.3;
}

.container:hover .middle {
    opacity: 1;
    transform: translate(0, 0);
}

.product-info {
    position: absolute;
    bottom: 0;
    top: 60%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    z-index: 2;
    transition: opacity 1.5s ease;
}

.product-info h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info p {
    font-size: 12px;
    font-weight: 500;
}

.read-more-button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    margin-top: -45px;
}

.add-to-cart-button,
.wishlist-button {
    display: block;
    margin-bottom: 0;
    margin-top: -3rem;
}

.read-more-button:hover {
    background: #fff;
    color: #333;
    border: solid 2px #333;
}

/* Update the wishlist-button styles inside .middle */
.middle .wishlist-button {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease-in-out;
    margin-top: 1rem;
    background-color: transparent;
    color: #ED2D56!important;
    font-size: 16px;
    border: 2px solid #ED2D56!important;
    width: 75%;
    text-align: center;
}

.middle .wishlist-button:hover {
    background: #333;
    color: #fff;
}

.middle .add-to-cart-button {
    background-color: transparent;
    color: #ED2D56;
    font-size: 16px;
    padding: 10px 10px;
    border: 2px solid #ED2D56;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
    width: 75%;
}

.middle .add-to-cart-button:hover {
    background-color: #ED2D56;
    color: #fff;
}

.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more {
    background-color: #ED2D56;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more:hover {
    background-color: #c11b45;
}

/* Media Queries untuk Responsif */
@media (max-width: 1024px) {
    .container {
        width: calc(50% - 20px); /* Menjadi 2 kolom per baris */
    }
}

@media (max-width: 767px) {
    .container {
        width: calc(100% - 20px); /* Menjadi 1 kolom per baris */
    }
}
/* End list of products */

.header-wishlist {
    display: inline-block;
    position: relative;
    margin-left: 15px; /* Adjust the spacing as needed */
}

.header-wishlist a {
    text-decoration: none;
    color: #000; /* Adjust the color as needed */
    font-size: 20px; /* Adjust the font size as needed */
    position: relative;
}

.header-wishlist .wishlist-count {
    background-color: #ED2D56;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

.woocommerce-thankyou-order-received {
    font-size: 1.5em;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

#proof-of-payment-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#proof-of-payment-form input[type="file"] {
    margin-bottom: 20px;
}

#proof-of-payment-form button {
    background-color: #039ddf;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#proof-of-payment-form button:hover {
    background-color: #51c3f4;
}


.single-product-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mengatur elemen berada di kiri */
    width: 100%;
}

.marketplace-section {
    width: 100%;
}

.marketplace-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px; /* Ukuran default */
    padding: 1rem; /* Tambah padding untuk area klik yang lebih besar */
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.marketplace-icon {
    width: 60%; /* Ukuran ikon yang responsif */
    height: auto;
}


@media (max-width: 1024px) {
    .marketplace-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .marketplace-buttons {
        flex-direction: column;
        align-items: center; /* Atur agar tombol terpusat */
    }

    .marketplace-buttons a {
        width: 30%; /* Ukuran tombol untuk perangkat kecil */
        padding: 0.75rem; /* Kurangi padding untuk perangkat kecil */
    }
    
    .marketplace-icon {
        width: 70%; /* Ukuran ikon di perangkat kecil */
    }
}

@media (max-width: 480px) {
    .marketplace-buttons a {
        width: 90%; /* Ukuran tombol untuk perangkat sangat kecil */
        padding: 1rem; /* Tambahkan padding untuk tampilan lebih baik */
        margin-bottom: 1rem; /* Tambahkan jarak bawah antar tombol */
    }

    .marketplace-icon {
        width: 20%; /* Ukuran ikon di perangkat sangat kecil */
    }
}



.load-more-container {
    position: relative;
}

.loading-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loading-indicator.show {
    display: inline-block;
}


.loading-spinner {
    text-align: center;
    font-size: 16px;
    margin-top: 20px;
    color: #333;
}

#social-media-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.social-media-link {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%; /* Lebar penuh pada perangkat kecil */
    max-width: 150px; /* Lebar maksimum pada perangkat kecil */
}

.social-media-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s;
}

.social-media-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-media-link:hover img {
    opacity: 0.8;
}

/* Media Queries untuk perangkat mobile */
@media (max-width: 480px) {
    #social-media-links {
        gap: 5px; /* Mengurangi jarak antar item pada perangkat kecil */
    }

    .social-media-link {
        max-width: 80px; /* Lebar maksimum yang lebih kecil pada perangkat kecil */
    }
}

/* Media Queries untuk perangkat tablet */
@media (max-width: 768px) {
    .social-media-link {
        max-width: 100px; /* Lebar maksimum yang lebih kecil pada perangkat tablet */
    }
}
