/* CSS HEADER */
.header-area .navbar .action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
    color: #2d3748 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin: 0 8px !important;
    position: relative !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
}

.header-area .navbar .action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.header-area .navbar .action-btn:hover::before {
    opacity: 1;
}

.header-area .navbar .action-btn:hover {
    color: #ffffff !important;
    border-color: #667eea !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 3px 10px rgba(0, 0, 0, 0.1) !important;
}

.header-area .navbar .action-btn:active {
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
}

.header-area .navbar .action-btn i {
    font-size: 20px !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    transition: transform 0.3s ease !important;
}

.header-area .navbar .action-btn:hover i {
    transform: scale(1.1) !important;
}

/* Modern Badge Styles with Gradient */
.header-area .navbar .cart-badge,
.header-area .navbar .wishlist-badge {
    position: absolute !important;
    /* Mengatur posisi badge */
    top: -6px !important;
    /* Geser badge sedikit ke atas */
    right: -6px !important;
    /* Geser badge sedikit ke kanan */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5px !important;
    border-radius: 10px !important;
    line-height: 20px !important;
    text-align: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.4) !important;
    animation: modern-badge-pulse 2s infinite !important;
    z-index: 10 !important;
    backdrop-filter: blur(5px) !important;
}

@keyframes modern-badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 12px rgba(255, 107, 107, 0.4);
    }
}

/* Modern Profile Avatar */
.header-area .navbar .profile-avatar {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.header-area .navbar .action-btn:hover .profile-avatar {
    border-color: #667eea !important;
    transform: scale(1.05) !important;
}

/* Modern Navigation Links */
.header-area .navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    color: #4a5568 !important;
    position: relative !important;
    overflow: hidden !important;
}

.header-area .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.header-area .navbar-nav .nav-link:hover::before {
    opacity: 0.1;
}

.header-area .navbar-nav .nav-link:hover {
    color: #667eea !important;
    transform: translateY(-1px) !important;
}

.header-area .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.header-area .navbar-nav .nav-link i {
    font-size: 18px !important;
    transition: transform 0.3s ease !important;
}

.header-area .navbar-nav .nav-link:hover i {
    transform: scale(1.1) !important;
}

/* Modern Dropdown Menu */
.header-area .dropdown-menu {
    border: none !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    min-width: 240px !important;
    backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.header-area .dropdown-item {
    padding: 12px 20px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
}

.header-area .dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

.header-area .dropdown-item i {
    margin-right: 12px !important;
    width: 18px !important;
    text-align: center !important;
    font-size: 16px !important;
}

.profile-dropdown::after {
    display: none !important;
}

/* Modern User Info */
.header-area .dropdown-header .user-info {
    padding: 16px 20px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    margin: -8px -8px 8px -8px !important;
    border-radius: 16px 16px 0 0 !important;
}

.header-area .dropdown-header .user-name {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    margin-bottom: 4px !important;
}

.header-area .dropdown-header .user-email {
    font-size: 12px !important;
    color: #718096 !important;
    margin-bottom: 4px !important;
}

.header-area .dropdown-header .user-saldo {
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #667eea !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Modern Logo Enhancement */
.header-area .navbar-brand {
    transition: all 0.3s ease !important;
    /* Removed margin-right: auto to control spacing better */
}

.header-area .navbar-brand:hover {
    transform: scale(1.05) !important;
}

.header-area .navbar-brand img {
    height: 44px !important;
    width: auto !important;
    transition: all 0.3s ease !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .header-area .mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        /* Increased gap for better spacing */
    }

    .header-area .navbar .action-btn {
        width: 38px !important;
        /* Slightly smaller for mobile */
        height: 38px !important;
        /* Slightly smaller for mobile */
        font-size: 17px !important;
        /* Adjusted icon size */
        margin: 0 4px !important;
        border-radius: 10px !important;
    }

    .header-area .navbar .action-btn i {
        font-size: 17px !important;
        /* Adjusted icon size */
    }

    .header-area .navbar .cart-badge,
    .header-area .navbar .wishlist-badge {
        font-size: 9px !important;
        min-width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
        top: -4px !important;
        right: -4px !important;
    }

    .header-area .navbar-collapse {
        margin-top: 16px !important;
        padding: 16px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #e2e8f0 !important;
        backdrop-filter: blur(20px) !important;
    }

    .header-area .navbar-brand {
        margin-right: 0 !important;
        /* Remove auto margin on mobile */
    }
}

@media (max-width: 575.98px) {
    .header-area .navbar .action-btn {
        width: 34px !important;
        /* Even smaller for extra small screens */
        height: 34px !important;
        /* Even smaller for extra small screens */
        font-size: 15px !important;
    }

    .header-area .navbar .action-btn i {
        font-size: 15px !important;
    }

    .header-area .navbar .cart-badge,
    .header-area .navbar .wishlist-badge {
        font-size: 8px !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 16px !important;
        top: -3px !important;
        right: -3px !important;
    }
}

/* Desktop Enhancements */
@media (min-width: 992px) {
    .header-area .desktop-actions {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        /* Increased gap for desktop icons */
    }

    .header-area .navbar .action-btn {
        margin: 0 !important;
        /* Remove horizontal margin from action buttons on desktop */
    }

    .header-area .navbar-brand {
        margin-right: 20px !important;
        /* Added margin to the right of the logo for desktop */
    }
}

/* Modern Loading State */
.header-area .navbar .action-btn.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.header-area .navbar .action-btn.loading i {
    animation: modern-spin 1s linear infinite !important;
}

@keyframes modern-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Focus States for Accessibility */
.header-area .navbar .action-btn:focus {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Hover effects for touch devices */
@media (hover: none) and (pointer: coarse) {
    .header-area .navbar .action-btn:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
}

/* Header background enhancement */
.header-area {
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Smooth scrolling effect */
.header-area.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* =================================================== */


/* <!-- Payment Method class --> */
.payment-selection-container {
    max-width: 100%;
}

.payment-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .payment-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.payment-card {
    position: relative;
    padding: 1rem;
    border: 2px solid #ced4da;
    border-radius: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-card:hover {
    border-color: #0d6efd;
    background-color: #f1f5ff;
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-card.selected {
    border-color: #0d6efd !important;
    background-color: #e9f3ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

.payment-card:hover:not(.disabled) {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.payment-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-card.insufficient-balance {
    border-color: #dc3545;
}

.payment-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 1rem;
}

.payment-content {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-fee {
    font-size: 0.875rem;
    color: #6c757d;
}

.balance-amount {
    font-weight: 700;
}

.fee-amount {
    font-weight: 600;
    color: #fd7e14;
}

.order-summary {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* == PERUBAHAN CSS UNTUK RINGKASAN PESANAN == */
.order-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    /* Jarak aman jika teks terpaksa wrap */
}

.order-summary .summary-item span:last-child {
    text-align: right;
    white-space: nowrap;
    /* Mencegah harga pindah baris */
}

/* ========================================= */

.order-summary.empty-state {
    opacity: 0.7;
}

.empty-state-content i {
    opacity: 0.5;
}

.insufficient-overlay,
.disabled-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #dc3545;
    font-size: 1.2rem;
}

.disabled-overlay {
    color: #6c757d;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .payment-card {
        background-color: #1e1e1e;
        border-color: #444;
    }

    .payment-card:hover {
        background-color: #2a2a2a;
        border-color: #3a8bff;
    }

    .payment-card.selected {
        background-color: #2a2a2a;
        border-color: #3a8bff !important;
        box-shadow: 0 0 0 3px rgba(58, 139, 255, 0.5);
    }

    .payment-name,
    .payment-fee {
        color: #e0e0e0;
    }
}

.opacity-50 {
    opacity: 0.5;
    pointer-events: none;
}

/* ================================================================
        == MEDIA QUERY BARU UNTUK MOBILE (350px - 560px) ==
        ================================================================
        */
@media (max-width: 560px) {

    /* Perkecil ukuran font pada body modal agar tidak terlalu besar */
    .modal-body,
    .modal-footer {
        font-size: 14px;
        /* Ukuran font dasar yang lebih nyaman di mobile */
    }

    /* Sesuaikan ukuran judul modal */
    .modal-title {
        font-size: 1.1rem;
    }

    /* Perkecil ukuran font pada nama produk dan metode pembayaran */
    h6,
    .payment-name {
        font-size: 0.9rem;
    }

    /* Perkecil padding di dalam kartu pembayaran untuk menghemat ruang */
    .payment-card {
        padding: 0.75rem;
        gap: 0.5rem;
        /* Kurangi jarak antara gambar dan teks */
    }

    /* Perkecil sedikit gambar metode pembayaran */
    .payment-img {
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }

    /* Atur ulang layout tombol di footer modal agar tidak berantakan */
    .modal-footer .d-flex {
        flex-direction: column;
        /* Susun tombol secara vertikal */
        width: 100%;
        gap: 0.5rem;
        /* Beri sedikit jarak antar tombol */
    }

    .modal-footer .d-flex .flex-fill {
        width: 100%;
        /* Pastikan pembungkus tombol memenuhi lebar */
    }

    .modal-footer .btn {
        width: 100%;
        /* Buat semua tombol di footer menjadi full-width */
        font-size: 0.9rem;
        /* Perkecil font di tombol */
    }

    /* Sesuaikan ukuran tombol kuantitas agar tidak terlalu besar */
    .d-flex.align-items-center.gap-2 .btn {
        width: 28px !important;
        height: 28px !important;
    }

    /* == PERUBAHAN CSS UNTUK RINGKASAN PESANAN DI MOBILE == */
    .order-summary .fs-5 {
        font-size: 1.1rem !important;
        /* Perkecil font total pembayaran di mobile */
    }

    /* =================================================== */
}

@media (min-width: 320px) and (max-width: 580px) {

    /* 1. Two-column grid for products */
    .discover-nft-wrapper .row>.col-12.col-sm-6,
    .live-bidding-wrapper .row>.col-12.col-sm-6,
    .process-wrapper .row>.col-12.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* 2. Responsive product image */
    .nft-card .img-wrap img,
    .process-wrapper .img-wrap img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;
    }

    /* 3. Bid Ends Countdown */
    .nft-card .img-wrap .bid-ends {
        position: absolute;
        bottom: 0.5rem;
        background-color: rgba(13, 110, 253, 0.9);
        border-radius: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        padding: 0.25rem 0.5rem;
        align-items: center;
        justify-content: center;
    }

    .nft-card .img-wrap .bid-ends div {
        min-width: 1.5rem;
        text-align: center;
        margin-right: 0.3rem;
    }

    .nft-card .img-wrap .bid-ends div:last-child {
        margin-right: 0;
    }

    .nft-card .img-wrap .bid-ends div span {
        font-size: 0.5rem;
        /* Increased from 0.50rem for readability */
        color: #ffffff;
        font-weight: 500;
        display: block;
        line-height: 1.1;
    }

    .nft-card .img-wrap .bid-ends div span:nth-child(1) {
        font-size: 0.7rem;
        /* Increased from 0.65rem for hierarchy */
        font-weight: 600;
    }

    /* 4. Product name (merging h6 and .name) */
    .nft-card h6,
    .nft-card .name {
        font-size: 0.75rem;
        /* Unified from 0.78rem and 0.75rem */
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        max-height: 2.4rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 5. Pricing */
    .nft-card .text-primary {
        font-size: 0.75rem;
        font-weight: 600;
    }
    .nft-card .text-success {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .nft-card .text-decoration-line-through {
        font-size: 0.7rem;
        font-weight: 400;
        opacity: 0.7;
    }

    .nft-card .text-danger {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .nft-card .img-wrap {
        position: relative;
    }

    /* 6. Badges */
    .nft-card .price-discount-row .badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
        margin-left: auto;
        margin-right: 0.3rem;
    }

    .nft-card .img-wrap .badge {
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        border-radius: 0.5rem;
        padding: 0.25rem 0.5rem;
        position: absolute;
        top: 0.3rem;
        left: 0.2rem;
        z-index: 6;
    }

    .nft-card .img-wrap .badge>img {
        width: 0.6rem;
        margin-right: 0.3rem;
    }

    /* 7. Wishlist button */
    .nft-card .img-wrap .dropdown {
        position: absolute;
        /* Tambahkan ini */
        top: 0.2rem;
        right: 0.2rem;
        /* Ubah dari left ke right */
        z-index: 7;
        background: none;
        border: none;
        padding: 0;
    }

    .nft-card .dropdown .wishlist-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
        line-height: 1;
        border: none;
        background-color: transparent;
        color: #1f0757;
        padding: 0;
        /* Remove padding to keep size exact */
    }

    /* 7. Promo stock */
    .nft-card .stok-promo,
    .nft-card .stok-promo span {
        font-size: 0.6rem !important;
        font-weight: 400;
        opacity: 0.8;
    }

    .nft-card .stok-promo .bi {
        font-size: 0.65rem;
        margin-right: 0.25rem;
    }

    /* 8. Wishlist button */
    .nft-card .wishlist-btn {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    /* 9. Buttons */
    .nft-card .btn-sm,
    .nft-card .btn.btn-sm {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        border-radius: 0.5rem;
    }

    .nft-card .btn-primary.w-100 {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
        border-radius: 1rem;
    }

    .nft-card .btn-sm .bi,
    .nft-card .btn-sm .fa {
        font-size: 0.75rem;
    }

    /* 10. Card body pading */
    .nft-card .card-body {
        padding: 0.6rem;
    }

    /* 11. Layout for price and buttons */
    .nft-card .card-body .d-flex.justify-content-between,
    .nft-card .price-discount-row,
    .nft-card .price-cart-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.25rem;
        margin-top: 0.4rem;
        width: 100%;
    }

    /* 12. Tighter margins */
    .nft-card .row.mt-3,
    .nft-card .row.mt-2 {
        margin-top: 0.4rem !important;
    }

    /* 13. Section heading */
    .section-heading {
        margin-bottom: 1rem;
    }

    .section-heading h2 {
        font-size: 1.1rem;
        /* Compromise between 1rem and 1.2rem */
        font-weight: 600;
    }

    /* 14. Filter buttons */
    .filters-button-group .btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
        border-width: 1px;
    }

    /* 15. Process wrapper text */
    .process-wrapper h5 {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .process-wrapper p {
        font-size: 0.6rem;
        line-height: 1.3;
    }

    /* 16. General card adjustments */
    .nft-card {
        border-radius: 0.5rem;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    /* 17. Container padding */
    .live-bidding-wrapper .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


.nft-card .card-body .d-flex.justify-content-between,
.nft-card .price-discount-row,
.nft-card .price-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.4rem;
    width: 100%;
}

/* <!-- toast class --> */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

/* =================================================== */

/* <!-- wishlist class --> */
.wishlist-modal-body {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
}

.wishlist-item {
    border: none;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.wishlist-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wishlist-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.wishlist-price {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.wishlist-category {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.btn-remove {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c82333, #d32f2f);
    transform: scale(1.15);
}

.btn-add-to-cart {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    width: 100%;
    max-width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.empty-wishlist {
    background: linear-gradient(135deg, #ffffff, #f1f3f5);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.wishlist-stats {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wishlist-stats .fs-5 {
    font-size: 1.2rem;
    font-weight: 700;
}

.wishlist-stats .text-sm {
    font-size: 0.8rem;
    color: #6c757d;
}

@media (min-width: 320px) and (max-width: 580px) {
    .cart-modal .modal-dialog {
        max-width: 95vw;
        margin: 0.5rem auto;
    }

    .cart-modal .modal-content {
        border-radius: 10px;
    }

    .cart-modal .modal-header {
        padding: 0.75rem 1rem;
    }

    .cart-modal .modal-title {
        font-size: 1.1rem;
    }

    .cart-modal .btn-close {
        font-size: 0.9rem;
    }

    .wishlist-stats .row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .wishlist-stats .col-4 {
        width: 100%;
    }

    .wishlist-stats .fs-5 {
        font-size: 1rem;
    }

    .wishlist-stats .text-sm {
        font-size: 0.75rem;
    }

    .wishlist-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

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

    .wishlist-title {
        font-size: 0.95rem;
    }

    .wishlist-price {
        font-size: 0.9rem;
    }

    .wishlist-category {
        font-size: 0.75rem;
    }

    .btn-remove {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .empty-wishlist {
        padding: 1.5rem;
    }

    .empty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .empty-wishlist h5 {
        font-size: 1rem;
    }

    .empty-wishlist p {
        font-size: 0.85rem;
    }

    .empty-wishlist .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .wishlist-modal-body.wishlist-scroll {
        max-height: 70vh;
        padding: 0.75rem;
    }

    .btn-add-to-cart {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        width: 100%;
        max-width: 100%;
    }
}

/* =================================================== */


@media (min-width: 320px) and (max-width: 580px) {

    /*=======================================
      CSS ITEM DETAIL
    =======================================*/
    .item-details-wrap .row {
        --bs-gutter-x: 1.5rem;
    }

    .item-details-content {
        margin-top: 0.9rem !important;
    }

    .border-top.w-75 {
        /* Mengurangi margin pada garis pemisah */
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .funto-tab-area .card-body {
        padding: 1.25rem;
    }

    /*===== 2. Penyesuaian Font=======*/
    .breadcrumb-title {
        font-size: 1.10rem;
    }

    .breadcrumb-item {
        font-size: 0.9rem;
    }

    .item-details-content h2 {
        /* Mengecilkan judul produk */
        font-size: 1.1rem;
    }

    .item-details-content p {
        font-size: 0.9rem;
    }

    .item-details-content .badge.fz-14 {
        /* Mengecilkan font pada badge */
        font-size: 0.75rem !important;
    }

    .item-details-content h5 {
        /* Mengecilkan font harga */
        font-size: 1rem;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /*================================
            3. Penyesuaian Tombol & Ikon
            ================================*/
    .item-details-dd .dropdown-toggle {
        /* Mengecilkan ikon menu titik tiga */
        font-size: 1rem;
    }

    .wishlist-btn,
    .badge.border {
        /* Menyesuaikan padding pada tombol wishlist dan badge */
        padding: 0.3rem 0.6rem !important;
    }

    .wishlist-btn span {
        font-size: 0.8rem;
    }

    .btn {
        /* Menyesuaikan ukuran tombol secara umum */
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .btn .bi {
        /* Menyesuaikan ukuran ikon di dalam tombol */
        font-size: 0.9rem;
    }

    .action-btn {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

/* =================================================== */

/* ===== Start modal vatiant ===== */
.variant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .variant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.variant-card {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
}

.variant-card:hover {
    border-color: #0ae8c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.variant-card.active {
    border-color: #0ae8c7;
    background-color: #f0fdfa;
}

.variant-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.variant-button span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

@media (min-width: 576px) {
    .actions-container {
        flex-direction: row;
        align-items: center;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 2rem;
    flex-shrink: 0;
}

.quantity-selector .btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    border: none;
}

.quantity-selector .quantity-display {
    font-size: 1.125rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.confirm-button-wrapper {
    width: 100%;
}

.confirm-button-wrapper .btn {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 320px) and (max-width: 580px) {
    .actions-container {
        flex-direction: row;
        align-items: stretch;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .quantity-selector {
        flex: 0 0 auto;
        width: fit-content;
    }

    .confirm-button-wrapper {
        flex: 1 1 auto;
    }

    .confirm-button-wrapper .btn {
        width: 100%;
    }
}

/* ===== End modal vatiant ===== */
