body.singlepromo-popup-active , body.promo-popup-active{    overflow: hidden;}

.underline-circle {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out;
}

/* BULATAN ANIMASI */
.underline-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 2px solid red;
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    animation: circleDraw 1.5s ease-in-out forwards;
}

/* ANIMASI LUKIS BULATAN */
@keyframes circleDraw {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}



.single-product-widget {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.single-product-widget img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}


/* Container utama */

.buy-now-button-only {
    width: 100%;
    display: block; /* Supaya butang mengambil seluruh ruang */
}

.promo-listing.columns-1 {
    grid-template-columns: repeat(1, 1fr);
}

.promo-listing.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.promo-listing.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.promo-listing.columns-1 .product-item {
/*    grid-template-columns: repeat(2, 1fr);
  gap: 15px;*/
        display: flex;
        flex-direction: row;
  
    padding: 10px;
}
.promo-listing.columns-1 .product-item .product-img {
    width: 37%;
}
.promo-listing.columns-1 .product-item .product-right {
    width: 60%;
}
.promo-listing.columns-1 .product-item .product-img img { width:100%; height:auto; }
.promo-listing {
    display: grid;
    gap: 15px;
}

/* Ribbon Diskon */
.discount-ribbon {
    position: absolute;
    top: 14px;
    right: -29px;
    background: #f00;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    text-align: center;
    width: 120px;
    transform: rotate(45deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}




/* Item produk */
.single-product-widget-show-button_only .product-item { background:none; border:0; border-radius:0; box-shadow:none;  }
.single-product-widget-show-button_only .product-actions-noview {border-top: 0; padding:0}
.product-item {
        position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;

/*    justify-content: space-between;*/
}
.product-item.buynow-variation {
    background: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}
.product-item.buynow-variation:hover { box-shadow: none; transform:none }
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
button.buynowsingle-button {
    border: 1px solid #fff;
}
.product-right {
    display: flex;
    flex-direction: column; /* Susun kandungan menegak */
      height: 100%;
}

.product-right-top {
    flex: 1 0 auto;
    padding: 0 20px;
}

/* Gambar produk */
.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Informasi produk */
/* Container untuk informasi produk */
.product-info {
    text-align: center;
    margin-top: 10px;
    font-family: 'Arial', sans-serif;
}

/* Styling untuk harga produk */
.product-pricing {
/*    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;*/
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    margin-top: 5px;
    padding: 10px 0px;
}

/* Harga asli (dicoret) */
.regular-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}
.product-stock {
    padding: 10px 0;
    text-align: right;
    font-size: 15px;
}

.product-desc {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.5em;
}
/* Harga diskon */
.sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #ff5722; /* Warna mencolok untuk menarik perhatian */
}

/* Badge diskon */
.discount-badge {
    background-color: #ff5722;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 14px;
        transform: translateY(-2px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}


.product-item .product-title {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    font-weight: 600;
 /*   text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;*/
}

.product-item .price {
    font-size: 14px;
    color: #ff5722;
    font-weight: bold;
    margin-top: 5px;
}

.custom-description {
    text-align: left;
        padding: 15px 20px;
    border-top: 1px solid #ddd;
}
.custom-description p:last-of-type {
    margin-bottom: 0;
}

/* Tombol tindakan */

.product-actions {
  /*  display: flex;
    justify-content: space-around;*/
    display: grid;
     grid-template-columns: repeat(2, 1fr);
     column-gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid #ddd;
}
.quantity-outer {
    display: flex;
    align-items: center;
}
.quantity-outer .quantity-wrapper{ margin-left:20px }
.product-actions-view , .product-actions-noview, .product-actions-buynow{
    padding: 10px 20px;
    border-top: 1px solid #ddd;
}
.add-to-cart-btn, .view-details-btn, .buy-now-btn , .btn-pilih-var, .singlepromo-btn-pilih-var, .addtocartonly-btn-pilih-var{
    padding: 8px 6px;
    margin: 0 !important;
    font-size: 12px;
    border: 1px solid #ff5722;
    background: #fff;
    color: #ff5722;
    border-radius: 4px;
    border: 1px solid #d1cdcd;
    width: 100%;
    letter-spacing: 0.5px;
        margin-left: 3px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.add-to-cart-btn:hover,
.view-details-btn:hover {
    background: #ff5722;
    color: #fff;
}


.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    cursor: pointer;
    display: none; /* Tersembunyi secara lalai */
}

.cart-icon i {
    font-size: 24px;
    color: #333;
}

.cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
}

#cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-radius: 0; /* Buang border-radius untuk pop-up penuh */
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2); /* Bayangan sebelah kiri */
    z-index: 9999;
    display: none;
    width: 600px; /* Lebar tetap */
    height: 100%; /* Ketinggian penuh */
    overflow-y: auto; /* Scroll hanya di dalam pop-up */
}

/* Pastikan body tidak scroll apabila pop-up aktif */
body.cart-popup-active {
    overflow: hidden; /* Menyembunyikan scroll dari body */
}

#cart-popup .cart-popup-content {
    position: relative;
}

#cart-popup .cart-item {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

#cart-popup .cart-item img {
    max-width: 45px;
    margin-right: 13px;
}

.item-pricing input.cart-quantity {
    padding: 0;
    border: 0;
    width: 24px !important;
    text-align: center;
    font-weight: bold;
    background: #fcc;
    font-size: 13px;
    pointer-events: none;
}
.cart-item-details .item-pricing {
    margin-bottom: 10px;
    margin-top: 3px;
    font-size: 11px;
    text-align: right;
    background: #ffeaea;
}
.cart-item-details ul {
    margin-left: 0;
    padding-left: 18px;
}
#cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    width: 350px;
    height: 100%;
    box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
    padding: 15px;
    overflow-y: auto;
    z-index: 999999;
}
div#cart-items {
    overflow: auto;
    height: 63vh;
    padding: 10px 10px 10px 0;
    position: relative;
}
#cart-popup h3 {
    text-align: center;
    margin-bottom: 14px;
    font-size: 15px;
    background: none;
    border-bottom: 1px solid #e7e3e3;
    padding-bottom: 13px;
}
.popup-product-description {
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-item .remove-cart-item {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.1);
     border-radius: 50%;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><path d="M9 3v1H4v2h1v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6h1V4h-5V3H9zm-3 5h12v12H6V8zm3 2v8h2v-8H9zm4 0v8h2v-8h-2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    font-size: 0;
    margin-right: 5px;
}

/* Hover effect */
.cart-item .remove-cart-item:hover , .cart-item .remove-cart-item:focus{
    background-color: rgba(255, 0, 0, 0.1); /* Warna merah lembut bila hover */
    border-radius: 50%;
}

.cart-item img {
    width: 60px;
    height: auto;
    border: 1px solid #ddd;
    margin-right: 10px;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

body .cart-item-details h4 {
    font-size: 11px;
    margin: 0;
    margin-bottom: 5px !important;
    color: #333;
}
.cart-item-details .item-variations {
    font-size: 11px;
    line-height: 1.4em;
}
.cart-item-pricing {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-details .cart-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: end;
}

.cart-item-details .cart-quantity-wrapper input.cart-quantity {
    width: 31px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 25px;
    font-size: 11px;
    padding: 0 !important;
}
.cart-quantity-wrapper .increment, .cart-quantity-wrapper .decrement {
    width: 22px;
    padding: 0;
    height: 23px;
    margin: 0 0;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}
/* Gantikan teks dengan ikon SVG */
.cart-quantity-wrapper .decrement {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H5v-2h14v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.cart-quantity-wrapper .increment {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H13v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
}

.product-actions .quantity-wrapper .decrement, .product-actions .quantity-wrapper .increment {
    font-size: 0;
}
.cart-quantity-wrapper .decrement:hover, .cart-quantity-wrapper .decrement:focus,
.cart-quantity-wrapper .increment:hover, .cart-quantity-wrapper .increment:focus  {
    background-color: #bbb !important;
    color: #000 !important;
}

.promocart-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 20px;
}

.promocart-subtotal {
    text-align: right;
    font-size: 13px;
    margin-top: 5px;
}
.promocart-discount {
    text-align: right;
    font-size: 14px;
    margin-top: 0px;
    color: #f00;
}
#promo-discount-message {
    margin-bottom: 10px;
    display: none;
    font-size: 12px;
    text-align: center;
    line-height: 1.3em;
        background: #fff3cd;
    color: #856404;
    padding: 7px;
    margin-top: -13px;
    border: 1px solid #ffeeba;
    border-radius: 5px;
}
#promo-discount-message strong { color:#333 }
.checkout-button {
    display: block;
    width: 100%;
    background: #4CAF50;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

body .checkout-button:hover {
    background: #2c6a2f;
    color: #fff;
}





/* Untuk semua browser */
input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    -webkit-appearance: none; /* Chrome, Safari, Edge */
    appearance: none; /* Standard CSS */
    margin: 0; /* Hilangkan margin jika ada */
}

/* Untuk memastikan Safari tidak menambahkan padding */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-notification {
    position: absolute;
    background: #4CAF50; /* Hijau */
    color: #fff;
     font-size: 14px;
    animation: fadeIn 0.5s ease, fadeOut 0.5s ease 2.5s;
    background: rgb(76, 175, 80);
    color: rgb(255, 255, 255);
    position: fixed;
    top: 22px;
    right: 52px;
    padding: 10px 25px 10px 15px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 6px;
    z-index: 99999;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
body.view-pop-active {
    overflow: hidden;
}
.popup-product-inner {
    overflow: auto;
    height: 100%;
}
.popup-content h2.popup-title {
    background: 0;
    padding: 0px 0 8px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 11px;
    margin-top: 0;
}
#product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Latar belakang transparan */
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-popup .popup-content {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: hidden; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


#product-popup .popup-body {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}



.popup-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.popup-product-gallery img {
    width: 100%;
    height: auto;
    margin-right: 0;
    border: 0;
    margin-bottom: 20px;
}

.popup-product-description h2 {
/*    font-size: 24px;
    margin-bottom: 10px;*/
}

.popup-product-description p {
    font-size: 16px;
}
.popup-product-content {
        overflow: hidden;
    height: 71vh;
    position: relative;
    width: 100%;
    padding: 0;
}


.single-product-widget .quantity-wrapper button {margin: 0;    padding: 0;}
.product-actions .quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
        max-width: 107px;
    /* border: 1px solid #ddd; */
    border-radius: 5px;
    overflow: hidden;
    /* background-color: #f9f9f9; */
}
.product-actions-full {}
.product-actions .quantity-wrapper button {
    width: 28px;
    padding: 0;
    height: 27px;
    margin: 0 3px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gantikan teks dengan ikon SVG */
.product-actions .quantity-wrapper .decrement {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H5v-2h14v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px;
}

.product-actions .quantity-wrapper .increment {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M19 13H13v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px;
}

/* Sembunyikan teks asal butang */
.product-actions .quantity-wrapper .decrement, .product-actions .quantity-wrapper .increment {
    font-size: 0;
}

[type=button]:focus, [type=submit]:focus, button:focus {
    outline: 0px auto -webkit-focus-ring-color !important;
}

.quantity-wrapper button:hover, .quantity-wrapper button:focus {
    background-color: #bbb !important;
    color: #000 !important;
}
.quantity-wrapper input[type="number"] {
    width: 35px;
    height: 27px;
    padding: 3px 3px 0;
    text-align: center;
    /* line-height: 29px !important; */
    border: none;
    font-size: 13px;
    background-color: transparent;
    color: #333;
    outline: none;
    border: 1px solid #ccc;
    display: inline-block;
}
.quantity-wrapper input[type="number"]:focus {
    border: none;
    outline: none;
}


/* Container Styling */
.countdown-container {
   /* text-align: center;
    margin: 20px 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;*/
}

/* Countdown Timer Styling */

.countdown-container {
    text-align: center;
}

.countdown-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.time-box {
    background: #2d2d3a;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
/*        min-width: 80px;*/
}

.time-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #ff3d81;
    line-height: 1.2em;

}

.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 5px;
    color: #d9d9d9;
}

/* Tambah ini ke CSS */
.no-scroll {
/*    overflow: hidden; */
    /* Halang tatalan */
}
.expired-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center; /* Kandungan di tengah secara mendatar */
    align-items: center; /* Kandungan di tengah secara menegak */
    background-color: rgba(0, 0, 0, 0.6); /* Overlay gelap */
}

.popup-content {
    position: relative;
    background-color: #fff;
    width: 500px; /* Lebar pop-up */
    max-width: 90%; /* Responsif untuk skrin kecil */
    padding: 40px; /* Ruang dalam pop-up */
    border-radius: 15px; /* Sudut melengkung */
/*    text-align: center;*/
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 300px; /* Ketinggian minimum */
    display: flex; /* Flexbox untuk kandungan */
    flex-direction: column; /* Kandungan disusun menegak */
    justify-content: center; /* Kandungan sentiasa di tengah */
    align-items: center; /* Kandungan di tengah secara mendatar */
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.3em;
    color: #333;
}

.popup-button {
    display: inline-block;
    background-color: #ff4757;
    color: #fff;
    padding: 15px 30px; /* Ruang dalam butang */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
}

.popup-button:hover {
    background-color: #e84141;
}


.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay gelap */
}

.not-started-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
}

.not-started-popup .popup-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 50%;
    width: 90%;
        min-height: 64%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.not-started-popup .countdown-url { margin-top:30px }
.not-started-popup h2 {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 10px;
}

.not-started-popup p {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.not-started-popup .countdown-timer {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.countdown-text { margin-top:30px }

/*countdown urgency*/
#countdown-urgency-widget {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

/*.countdown-timer {
    display: flex;
    gap: 10px;
}

.time-box {
    background: #ff6f61;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.time-label {
    display: block;
    font-size: 14px;
    color: #ffe8e4;
}

*/



/*.promo-pop-variation  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    z-index: 11;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;

}

.promo-pop-variation  .promo-product-content {
    background: #fff;
    padding: 10px 15px 25px;
    border-radius: 8px;
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 72%;
    margin-bottom: 16px;
overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}*/

#cart-items-outer { position:relative; }

.promo-product-content-top {
    display: flex;
    padding: 0px 10px 14px 0;
    border-bottom: 1px solid #ddd;
}
.promo-product-content-top img { width:50px; height:auto; }
.promo-product-content-top {
    display: flex;
    padding: 0px 0px 10px;
}
.promo-pop-variation .product-actions{    padding: 13px 0 0;}
.promo-pop-variation, .buynow-pop-variation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 600px ;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

#popup-overlay.active {
    display: block;
}

.promo-var-pop, .buynow-var-pop {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10; /* Pastikan popup di atas overlay */
    display: none; /* Popup sembunyi secara lalai */
}

.promo-var-pop.active , .buynow-var-pop.active{
    display: block; /* Tunjukkan popup */
    animation: fadeIn 0.3s ease; /* Tambah animasi */
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.promo-pop-variation h3, .buynow-pop-variation h3  { font-size:16px; }

 .promo-pop-variation #close-promo-popup,   #close-addtocartonly-popup, #close-singlepromo-popup, #close-buynow-popup
{    top: -14px !important;    right: -15px !important;}
#product-popup .close-popup {    top: 7px !important;    right: 6px !important;}
button#close-cart-popup{        top: -14px !important;    right: -7px !important;}
button#close-cart-popup, .promo-pop-variation #close-promo-popup, #close-buynow-popup,  #close-singlepromo-popup, #close-addtocartonly-popup, #product-popup .close-popup{
    position: absolute !important;
    width: 35px;
    height: 35px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23000000"><line x1="4" y1="4" x2="20" y2="20" stroke="black" stroke-width="2" stroke-linecap="round"/><line x1="20" y1="4" x2="4" y2="20" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 17px;
    font-size: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Warna latar semasa hover */
    border-radius: 50%;
    z-index: 999;
}

.promo-pop-variation #close-promo-popup:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Warna latar semasa hover */

}



.promo-pop-variation  .popup-body, .buynow-pop-variation  .popup-body {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

.promo-pop-variation .add-to-cart-btn-variation, .buynow-button-variation {
    display: block;
    width: 100%;
    font-size: 14px;
    border: 1px solid #e91e63 ;
       background-color: #e91e63  !important; 
}
.promo-pop-variation .add-to-cart-btn-variation:hover, .buynow-button-variation {
       background-color: #bb0d48 !important; 
       color:#fff !important;

}
.promo-product-content h3 { padding:0 60px 0 10px }
.promo-content-inner, .buynow-content-inner {
    overflow: auto;
    max-height: 76vh;
    padding: 10px;
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}
.promo-var-list {}
.promo-var-list label, .buynow-var-list label { font-weight:bold; margin-bottom:10px; margin-top:10px }
.promo-var-list select, .buynow-var-list select  {
    margin-bottom: 10px;
    font-size: 14px;
    padding: 5px 10px;
}
.promo-product-content-inner { position:relative; }

.overlay-message {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.overlay-message-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 2px;
    background: #ff9800; /* Warna oren */
    color: #000;
    padding: 15px ;
    font-size: 13px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
  
}


.overlay-message-pop {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
}
.overlay-message-pop-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 2px;
    background: #ff9800; /* Warna oren */
    color: #000;
    padding: 15px ;
    font-size: 13px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 30%;
  
}


.single-buy-inner { width:100% }

#cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Warna hitam transparent */
    z-index: 999; /* Pastikan atas segalanya */
}


.cart-popup-content {
    position: relative;
}




.promo-item-overlay, .promo-remove-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    display: none; /* Hide by default */
}

.promo-item-overlay .overlay-message, .promo-remove-item-overlay .overlay-message {
    display: block;
    /* flex-direction: row; */
    /* align-items: center; */
    align-content: center;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    position: unset;
    background: none;
}

p.item-discount {
    background: #00b705;
    display: inline-block;
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.3em;
    margin-bottom: 6px !important;
    color: #fff;
}


/* Overlay gelap */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Gelap 60% */
    z-index: 9998;
}

/* Mesej loading */
.checkout-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    text-align: center;
    z-index: 9999;
    width: 80%;
    max-width: 600px;
}

.loading-text { text-align:center }

/* Responsif untuk skrin kecil */
@media screen and (max-width: 480px) {
  
}


@media (max-width: 768px) {
    #product-popup {
        align-items: end;
    }
    #product-popup .popup-content {
        background: #fff;
        padding: 15px;
        border-radius: 0;
        position: relative;
        max-width: 100%;
        width: 100%;
        max-height: 90%;
        box-shadow: none;
    }
    .popup-content h2.popup-title {
        font-size: 18px !important;
        line-height: 1.3em;
                padding-right: 30px;
    }
    .popup-product-description h2 {
        font-size: 17px !important;
    }
    .popup-product-description h3 {
        font-size: 16px !important;
    }
    .popup-content p {        font-size: 13px;    }
    .overlay-message-pop-inner {

        width: 80%;
      
    }
    .promo-product-content h3 {
        font-size: 14px !important;
        padding: 0 20px 0 10px;
        margin: 0;
    }
    .checkout-message {
        font-size: 14px;
        padding: 12px 16px;
    }

    #cart-popup {z-index: 9999999;}
    .promo-pop-variation, .buynow-pop-variation {
        min-width: 100%;
        z-index: 999999;
        top: auto;
        left: 0;
        bottom: 0;
        transform: unset;
        border-radius: 0;
    }
    .promo-content-inner, .buynow-content-inner {    overflow: auto;    max-height: 35vh;}
    .popup-product-content {    padding: 0; height: 85vh;}
    .promo-listing {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }

    .product-actions {
        display: grid   ;
        grid-template-columns: repeat(1, 1fr);
        column-gap: 20px;
        row-gap: 10px;

    }

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

    .price {
        font-size: 12px;
    }

    .add-to-cart-btn,
    .view-details-btn {
        font-size: 12px;
        padding: 5px 8px;
    }

    .not-started-popup .popup-content {
        max-width: 100%;
        width: 90%;
        min-height: 94%;
    }
    .time-value {
        font-size: 23px;
        line-height: 9px;
    }
    .time-label {
        font-size: 10px;
    }
    .time-box {
        padding: 22px 7px 10px;
                width: 64px;
    }

}
