html {
    font-size: calc(100vw / 20);
}
/* Aturan body untuk lebar penuh */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    margin: 0 -0.25rem;
    padding: 0;
    width: calc(100% + 0.5rem);
    overflow-x: hidden;
}

/* Header full layar */
.header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    margin: 0;
}

.header .container-fluid {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.75rem;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 1000;
    white-space: nowrap;
    margin-bottom: 0.7rem;
}

.header h1 i {
    font-size: 2.2rem;
}

#app-title .app-main-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    margin-left: -0.6rem;
}

#app-title .app-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    margin-top: 0;
    margin-left: -0.6rem;
    line-height: 1.1;
}

.filters {
    display: flex;
    gap: 0.2rem; /* jarak antar ikon */
    margin: 0 0.5rem;
}

.header-top .category-filter,
.header-top .sort-filter {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.5rem;
    background-color: transparent;
    border: none;
    color: white;
    text-indent: -9999px; /* sembunyikan teks */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.85rem;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0.5rem;
}

.category-filter {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M2 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4zm0 6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2zm8-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V4zm0 6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2z"/%3E%3C/svg%3E') no-repeat 15px center;
}

.sort-filter {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23fff" viewBox="0 0 16 16"%3E%3Cpath d="M3.5 2.5a.5.5 0 0 0-1 0v8.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L3.5 11.293V2.5zm3.5 1a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zM7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1z"/%3E%3C/svg%3E') 
    no-repeat 15px center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: -1rem;
}

.header-controls .search-box {
    flex-grow: 1;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 1rem;
    padding: 0 0 0 1.8rem;
    background-size: 1rem;
}

/* Category buttons full layar */
.category-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    border: 1px solid #dee2e6;
    padding: 0.35rem 0.5rem;
    margin: 0;
    margin-bottom: 1.25rem;
    white-space: nowrap;
    position: sticky;
    top: 6.4rem;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Tambahan untuk melebar 20px kanan & kiri */
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
    box-sizing: border-box;
}


.category-buttons::-webkit-scrollbar {
    height: 2px;
}

.category-buttons::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.category-buttons::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 1px;
}

.category-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.category-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.category-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Product detail container full layar */
.product-detail-container {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    padding: 0;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Aturan lain */
button {
    touch-action: manipulation;
}

h2 {
    font-weight: 700;
    color: #2c3e50;
}

.search-box {
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666" viewBox="0 0 16 16"%3E%3Cpath d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/%3E%3C/svg%3E') no-repeat 0.5rem center;
}

.search-container {
    position: relative;
    flex-grow: 1;
}

#searchInput {
    padding-right: 0.25rem;
}

.clear-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ddd;
    border: none;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    line-height: 20px;
    text-align: center;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.swal2-popup {
    font-size: 0.75rem !important;
}

.swal2-confirm, .swal2-cancel {
    font-size: 1rem !important;
    padding: 0.25rem 0.5rem !important;
}

.carousel {
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 1;
}

.carousel-indicators {
    margin-bottom: -0.25rem;
}

.carousel-indicators [data-bs-target] {
    width: 1rem;
    height: 0.1rem;
    background-color: #6c757d;
    border-radius: 0.5rem;
}

.carousel-indicators .active {
    background-color: #3498db;
    width: 1rem;
    height: 0.1rem;
    border-radius: 0.5rem;
}

/* Flash Sale Styles */
.flash-sale-section {
    background: #ff6b6b;
    margin: -1rem 0 0.5rem;
    padding: 0.25rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.flash-sale-section .section-title {
    color: #fff;
    margin: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.4rem;
}

.flash-sale-section .section-title i {
    font-size: 1.4rem;
}

.countdown-timer {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-right: 0.25rem;
}

.countdown-timer span {
    background-color: #c0392b;
    padding: 0.25rem 0.25rem;
    border-radius: 0.5rem;
    width: 2rem;
    text-align: center;
}

#flash-sale-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1px;
    margin: -2rem -0.25rem 0.25rem;
    padding: 0 5px 5px 5px;
}

#flash-sale-list::-webkit-scrollbar {
    height: 2px;
}

#flash-sale-list::-webkit-scrollbar-track {
    background: #ff6b6b;
}

#flash-sale-list::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 1px;
}

#flash-sale-list .col-4 {
    flex: 0 0 auto;
}

#flash-sale-list .card-body {
    padding: 0.25rem;
}

#flash-sale-list .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
    font-size: 0.7rem;
}

#flash-sale-list .price-wrapper {
    width: 100%;
    text-align: center;
}

#flash-sale-list .price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
    margin-bottom: 0.25rem;
}

#flash-sale-list .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.7rem;
    text-align: left;
}

#flash-sale-list .discount-label {
    background: #e74c3c;
    color: white;
    padding: 0.05rem 0.2rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

#flash-sale-list .highlighted-price {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#flash-sale-list .add-to-cart-btn {
    width: 100%;
    height: 1.65rem;
    font-size: 0.85rem;
    display: none;
    transition: all 0.3s ease;
    line-height: 1.5rem;
    text-align: center;
    padding: 0;
    margin-left: 0;
}

#flash-sale-list .add-to-cart-btn .btn-checkmark {
    display: none;
}

#flash-sale-list .add-to-cart-btn i {
    font-size: 0.75rem;
}

#flash-sale-list .product-card.active .highlighted-price {
    display: none;
}

#flash-sale-list .product-card.active .add-to-cart-btn {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#adCarousel .carousel-item img {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}

.user-box {
    background-color: #ff6b6b;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin: -2.5rem 0 0;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.user-box i {
    color: #fff;
    font-size: 1rem;
}

.user-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 85%;
    height: 100%;
    background-color: #f8f9fa;
    overflow-y: auto;
    padding: 0.75rem 0.5rem 0.75rem 0.75rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1060;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex; 
    flex-direction: column;
}

.user-panel.active {
    transform: translateX(0);
}

.user-panel .close-user {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    transition: all 0.2s;
}

.user-panel .user-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: -1rem;
    padding: 0.5rem 0 1rem;
}

.user-panel .user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: -0.25rem;
    font-size: 1.75rem;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(52, 152, 219, 0.3);
}

.user-avatar {
    flex-shrink: 0;
}


.user-panel .user-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 0.25rem;
    margin-bottom: 0px;
    padding-right: 1rem;
    color: #2c3e50;


    /* ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* wajib untuk flexbox */
    min-width: 0;  
    max-width: 12rem;
}

.user-panel .user-status {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-left: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-panel .user-status .status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #2ecc71;
}

.user-panel .user-info-section {
    margin-bottom: 0;
}

.user-panel .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0.25rem 0.25rem 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-panel .section-title i {
    color: #3498db;
    font-size: 1rem;
}

.user-panel .info-card {
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin:0.5rem 0.25rem 1rem 0.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.user-panel .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.user-panel .info-row:last-child {
    margin-bottom: 0;
}

.user-panel .info-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
}

.user-panel .info-label i {
    width: 1rem;
    text-align: center;
    color: #3498db;
    font-size: 0.9rem;
}

.user-panel .info-value {
    font-weight: 600;
    color: #2c3e50;
    text-align: right;
    font-size: 0.9rem;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel .saldo-value {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-panel .hemat-value {
    color: #e67e22;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-panel .voucher-badge {
    background-color: #f39c12;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(0.2rem);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1055;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.blur-bg.active {
    display: block;
    opacity: 1;
}

.login-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-swal-content h3 {
    margin: 00.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    text-align: left;
}

.swal2-html-container {
    text-align: left;
    font-size: 00.9rem;
}

.swal2-input {
    width: 100% !important;
    height: 3rem !important;
    text-align: center;
    font-size: 1.1rem;
    box-sizing: border-box;
    margin: 0 !important;
    margin-bottom: 1rem !important;
    border: 2px solid #3498db !important;
    border-radius: 8px;
}

.swal2-input:focus {
    border-color: #2980b9 !important; /* Biru yang sedikit lebih matang/gelap */
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5) !important; /* Efek neon/glowing biru tebal */
    outline: none;
    background-color: #f7faff; /* Sedikit sentuhan background kebiruan tipis saat diketik */
}

#swal-input-affiliate {
    letter-spacing: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 900; /* Nilainya sama dengan 'bold' */
}

#swal-input-affiliate::placeholder {
    letter-spacing: normal;
    font-family: Poppins; /* Ikut font bawaan SweetAlert/sistem */
    font-size: 1rem;      /* Ukuran normal standar input */
    font-weight: normal;     /* Nilainya sama dengan 'normal' */
}

/* Product Image */
.product-image-container {
    position: relative;
    margin: -0.5rem -1rem 0.5rem -1rem;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product Info */
.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0 -0.5rem 0.25rem;
    line-height: 1.3;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 -0.5rem 0.25rem;
}

.stock-info i {
    color: #636e72;
    font-size: 0.9rem;
}

.stock-info p {
    font-size: 0.9rem;
    color: #636e72;
    margin: 0;
}

/* Price Styles */
.price-container {
    margin: 0 -0.5rem 0.25rem;
}

.original-price-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0px;
}

.original-price-container i {
    color: #e74c3c;
    font-size: 0.9rem;
}

.original-price {
    font-size: 0.8rem;
    color: #636e72;
    text-decoration: line-through;
    margin: 0 0 0 0.1rem;
}

.discounted-price-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-box {
    display: flex;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin: 0 -0.25rem;
    background-color: #d1f2e4;
    justify-content: center;
}

.discounted-price {
    font-size: 1.3rem;
    font-weight: 1000;
    color: #2d3436;
    margin: 0 0.1rem;
    white-space: nowrap;
}

.normal-price {
    font-size: 1.5rem;
    font-weight: 1000;
    color: #2d3436;
    margin: 0 0.1rem;
}

.original-price-with-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: -0.25rem 0.1rem 0;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 0 0.25rem;
    margin: 0 0.1rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-separator {
    display: inline-block;
    width: 0.1rem;
    height: 2.75rem;
    margin: -0.25rem;
    background-color: #ccc;
    vertical-align: middle;
}

/* Quantity Controls */
.quantity-container {
    margin: 0 -0.5rem 1rem;
}

.quantity-label {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 0.25rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 -0.25rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.qty-btn {
    background: #d1f2e4;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #636e72;
    font-size: 0.9rem;
}

#detail-quantity {
    width: 3rem;
    height: 1.6rem;
    text-align: center;
    border: 2px solid #fff;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
    margin: 0.15rem 0.25rem;
    transition: all 0.2s ease;
}

#detail-quantity:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.total-price {
    font-size: 1rem;
    color: #636e72;
    margin: 0.25rem 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    margin: -0.25rem -0.75rem;
}

.cancel-btn {
    background: #f5f6fa;
    color: #636e72;
    flex: 1;
    padding: 0.25rem;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.add-to-cart-btn-popup {
    background: #3498db;
    color: #fff;
    flex: 2;
    padding: 0.25rem;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.delivery-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.order-history-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
}

.order-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    transition: background-color 0.2s;
}

.order-toggle:hover {
    background-color: #f5f5f5;
}

.order-toggle i {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.order-toggle[aria-expanded="true"] i {
    transform: rotate(360deg);
}

.order-date-time {
    padding: 0.25rem 0.25rem;
    margin: -0.25rem -0.75rem 0.5rem -0.75rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #495057;
    font-weight: 500;
    text-align: right;
    line-height: 0.8rem;
}

.order-details {
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.order-details ul {
    margin-bottom: 0.5rem;
}

.order-details li {
    margin-bottom: 0.5rem;
}

.order-details .text-muted {
    font-size: 0.85rem;
}

.tagihan-box {
    background-color: #d1f2e4;
    padding: 0.35rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem -1rem 0.25rem -1rem;
    gap: 0.5rem;
}

.summary-container {
    display: flex;
    gap: 0.25rem; /* Adjust spacing between boxes */
}

.summary-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 0.15rem 0.5rem;
    margin: 0.25rem 0rem; /* Remove negative margin to prevent overlap */
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.box-label {
    font-weight: 500;
    color: #666;
}

.summary-order-item {
    display: flex;
    align-items: flex-start; /* Agar teks panjang wrap tanpa menggeser kuantitas */
    gap: 0.4rem; /* Jarak antara kuantitas dan nama item */
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.summary-quantity {
    flex-shrink: 0; /* Kuantitas tidak menyusut */
    white-space: nowrap; /* Pastikan "3 x" tidak terpisah baris */
}

.summary-item-name {
    flex: 1; /* Mengambil sisa ruang */
    word-break: break-word; /* Atau break-all jika ingin memotong kata panjang */
    /* white-space: normal; sudah default */
}

/* Samakan ukuran font semua tombol SweetAlert2 */
.swal2-popup .swal2-styled {
    font-size: 1rem !important;     /* atau 16px / 1rem sesuai keinginan */
    padding: 0.25rem 0.5rem !important;
}

/* Khusus untuk deny button supaya sama persis */
.swal2-deny {
    font-size: 1rem !important;
}

/* Opsional: buat semua tombol punya tinggi yang sama */
.swal2-confirm, .swal2-cancel, .swal2-deny {
    min-height: 1.75rem !important;
    font-weight: 500 !important;
}

/* Gabungan Selector */
.announcement-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1055; /* Cukup untuk berada di depan konten, tapi di bawah modal/dropdown jika perlu */
    
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    overflow: hidden;
    background: linear-gradient(to right, #3498db, #2c3e50);
    border-top: 1px dashed white;
    color: #d9e2ff;
}

.announcement-text {
    white-space: nowrap;
    display: inline-block;
    padding: 0 3rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    animation: marquee linear infinite; 
    will-change: transform;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

@keyframes marquee {
    /* Menggunakan 100% agar pas dengan lebar bar */
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.wa-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.wa-send-button:hover {
    background: #20ba5c;
    transform: translateY(-1px);
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-subscribe {
    width: 90%;
    display: block;
    margin: -0.5rem auto;

    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px;
}

/* Kurangi gutter horizontal untuk product list */
#flash-sale-list.row,
#product-list.row {
    --bs-gutter-x: 0.5rem;  /* Ubah nilai ini: 0.5rem = 8px, sesuaikan kebutuhan */
}

/* Atau manual: kurangi padding pada col dan hilangkan negative margin pada row */
.row {
    margin-left: -0.25rem;  /* Negative margin lebih kecil */
    margin-right: -0.25rem;
}
.col-4 {
    padding: 0.15rem !important;
}

.col-6 {
    padding: 0.25rem !important;
    margin: 0 !important;
}