/* =========================================================
   WISHLIST.CSS - ROYAL SHOP MARKETPLACE PROFESSIONAL
   Style konsisten dengan index.css, produk.css, detail-produk.css
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   1. VARIABLES & GLOBAL STYLES
========================================================= */
:root {
    --primary-gradient: linear-gradient(135deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    --dark-bg: #0f0f15;
    --card-bg: #1a1a20;
    --glass-border: rgba(255, 255, 255, 0.08);
    --gold: #FFCC70;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);
}

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
}

.fs-7 {
    font-size: 12px;
}

/* =========================================================
   2. BREADCRUMB
========================================================= */
.breadcrumb-nav {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px !important;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--gold);
}

.breadcrumb-nav .current {
    color: white;
    font-size: 12px;
}

/* =========================================================
   3. PAGE HEADER
========================================================= */
.container.my-4 .d-flex.justify-content-between {
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.container.my-4 h3.fw-bold {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: white;
    margin-bottom: 4px !important;
}

.container.my-4 .text-white-50.small {
    font-size: 13px !important;
    color: var(--text-muted) !important;
}

.container.my-4 .btn-outline-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 30px !important;
    transition: all 0.2s;
}

.container.my-4 .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #C850C0 !important;
}

/* =========================================================
   4. EMPTY STATE
========================================================= */
.empty-state-glass {
    background: var(--card-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
    text-align: center;
    padding: 60px 20px !important;
    transition: all 0.3s;
}

.empty-state-glass:hover {
    border-color: rgba(200, 80, 192, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.empty-icon-wrapper {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px !important;
    border: 1px solid var(--glass-border);
}

.empty-icon-wrapper i {
    font-size: 48px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.empty-state-glass h4 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.empty-state-glass p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-glass .btn-gradient {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 28px !important;
    border-radius: 40px !important;
    transition: all 0.3s;
}

.empty-state-glass .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 80, 192, 0.4);
}

/* =========================================================
   5. WISHLIST GRID - 5 KOLOM SEPERTI PRODUK
========================================================= */
#wishlistGrid {
    margin: 0 -4px !important;
}

#wishlistGrid>[class*="col-"] {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-bottom: 8px !important;
}

/* Desktop: 5 kolom */
@media (min-width: 992px) {
    #wishlistGrid>.col-lg-15 {
        width: 20%;
    }
}

/* Tablet: 3 kolom */
@media (min-width: 576px) and (max-width: 991px) {
    #wishlistGrid>.col-md-4 {
        width: 33.333%;
    }
}

/* Mobile: 2 kolom */
@media (max-width: 575px) {
    #wishlistGrid>.col-6 {
        width: 50%;
    }

    #wishlistGrid>[class*="col-"] {
        padding-left: 3px !important;
        padding-right: 3px !important;
        margin-bottom: 6px !important;
    }
}

/* =========================================================
   6. WISHLIST CARD
========================================================= */
.wishlist-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-card:hover {
    transform: translateY(-4px);
    border-color: #C850C0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Image container */
.wishlist-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #2a2a30;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .wishlist-image {
    transform: scale(1.03);
}

/* Remove button */
.btn-remove-wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    color: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    font-size: 14px;
}

.btn-remove-wish:hover {
    background: #ff4d4d;
    color: white;
    transform: scale(1.1);
}

/* Product info */
.wishlist-info {
    padding: 10px 8px 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wishlist-nama {
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    cursor: pointer;
}

.wishlist-nama:hover {
    color: var(--gold);
}

/* Category text (optional) */
.wishlist-kategori {
    font-size: 9px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

/* Price */
.wishlist-harga {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin: 4px 0 10px;
    line-height: 1.2;
}

/* Add to cart button */
.btn-keranjang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 100%;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: auto;
    cursor: pointer;
}

.btn-keranjang:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* =========================================================
   7. STICKY CHECKOUT BAR
========================================================= */
.sticky-checkout-bar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 60px !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    bottom: 20px;
    z-index: 100;
}

.sticky-checkout-bar .text-gradient {
    font-size: 1.3rem !important;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sticky-checkout-bar .btn-gradient {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 28px !important;
    font-weight: 600;
    transition: all 0.3s;
}

.sticky-checkout-bar .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 80, 192, 0.4);
}

/* =========================================================
   8. RELATED PRODUCTS
========================================================= */
.related-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: #C850C0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.related-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #2a2a30;
}

.related-info {
    padding: 10px 8px 12px;
}

.related-info h6 {
    color: white;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.related-info div {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

/* =========================================================
   9. LOADING SPINNER
========================================================= */
.loading-spinner {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    color: #C850C0 !important;
    width: 3rem;
    height: 3rem;
}

/* =========================================================
   10. RESPONSIVE ADJUSTMENTS
========================================================= */
@media (max-width: 768px) {
    .container.my-4 h3.fw-bold {
        font-size: 18px !important;
    }

    .empty-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .empty-icon-wrapper i {
        font-size: 36px;
    }

    .empty-state-glass h4 {
        font-size: 18px;
    }

    .wishlist-nama {
        font-size: 12px;
        min-height: 32px;
    }

    .wishlist-harga {
        font-size: 14px;
    }

    .btn-keranjang {
        font-size: 10px;
        padding: 6px 0;
    }

    .sticky-checkout-bar {
        border-radius: 30px !important;
        padding: 12px 16px !important;
    }

    .sticky-checkout-bar .text-gradient {
        font-size: 1.1rem !important;
    }

    .sticky-checkout-bar .btn-gradient {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .wishlist-nama {
        font-size: 11px;
        min-height: 28px;
    }

    .wishlist-harga {
        font-size: 12px;
    }

    .btn-keranjang {
        font-size: 9px;
        padding: 5px 0;
    }

    .btn-remove-wish {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .sticky-checkout-bar .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .sticky-checkout-bar .text-start {
        text-align: center !important;
        width: 100%;
    }

    .sticky-checkout-bar .btn-gradient {
        width: 100%;
    }
}

/* =========================================================
   11. UTILITY CLASSES (Konsisten dengan halaman lain)
========================================================= */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hover-white:hover {
    color: #fff !important;
}

/* =========================================================
   FOOTER - PROFESSIONAL MARKETPLACE (KONSISTEN UNTUK SEMUA HALAMAN)
========================================================= */
.footer-mega {
    background: #08080c;
    border-top: 1px solid var(--glass-border);
    margin-top: 40px !important;
    padding: 40px 0 0 !important;
}

/* Logo footer */
.royal-logo-gradient {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 16px !important;
    text-decoration: none;
}

/* Deskripsi */
.footer-mega p {
    color: var(--text-muted) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    max-width: 320px;
}

/* Kontak list */
.footer-mega ul.list-unstyled {
    margin-bottom: 24px !important;
}

.footer-mega ul.list-unstyled li {
    color: var(--text-muted) !important;
    font-size: 13px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
}

.footer-mega ul.list-unstyled li i {
    color: #FFb570 !important;
    font-size: 14px !important;
    margin-right: 12px !important;
    width: 18px !important;
    text-align: center;
}

/* Social Icons */
.social-icons {
    display: flex !important;
    gap: 12px !important;
}

.social-icons a {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted) !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    border: 1px solid var(--glass-border) !important;
}

.social-icons a:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    transform: translateY(-3px);
    border-color: transparent !important;
}

/* Footer Headings */
.footer-mega h6 {
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px !important;
}

/* Footer Links */
.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
}

.footer-links a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.footer-links a:hover {
    color: white !important;
    transform: translateX(5px);
}

/* Payment Logos */
.payment-logo {
    height: 24px !important;
    width: auto !important;
    background: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
    transition: transform 0.2s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.payment-logo:hover {
    transform: translateY(-2px);
}

/* Shipping Badges */
.shipping-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-muted) !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

.shipping-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* COD Badge - PREMIUM */
.cod-badge {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: linear-gradient(145deg, #1a1a25, #0f0f15) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-top: 16px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.cod-badge:hover {
    border-color: #C850C0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 80, 192, 0.2) !important;
}

/* Icon container */
.cod-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    background: var(--primary-gradient) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(200, 80, 192, 0.3) !important;
}

/* Text container */
.cod-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.cod-text strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
}

.cod-text small {
    display: block !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    line-height: 1.4 !important;
}

/* Copyright Bar */
.copyright-bar {
    background: rgba(0, 0, 0, 0.3) !important;
    margin-top: 40px !important;
    padding: 16px 0 !important;
    border-top: 1px solid var(--glass-border) !important;
}

.copyright-bar span {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

.copyright-bar i.bi-heart-fill {
    color: #ff4d4d !important;
}

/* =========================================================
   RESPONSIVE FOOTER
========================================================= */
@media (max-width: 768px) {
    .footer-mega {
        padding: 30px 0 0 !important;
        margin-top: 30px !important;
    }

    .footer-mega .row>div {
        margin-bottom: 24px !important;
    }

    .footer-mega p {
        max-width: 100%;
    }

    /* COD badge di mobile */
    .cod-badge {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .cod-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        font-size: 18px !important;
    }

    .cod-text strong {
        font-size: 14px !important;
    }

    .cod-text small {
        font-size: 11px !important;
    }

    .payment-logo {
        height: 20px !important;
        padding: 3px 6px !important;
    }

    .shipping-badge {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    .social-icons a {
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .footer-mega h6 {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .footer-links a {
        font-size: 12px !important;
    }

    .cod-badge {
        padding: 12px !important;
        gap: 10px !important;
    }

    .cod-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 16px !important;
    }

    .cod-text strong {
        font-size: 13px !important;
    }

    .cod-text small {
        font-size: 10px !important;
    }

    .copyright-bar span {
        font-size: 10px !important;
    }
}

/* =========================================================
   FIX WISHLIST HEADER MOBILE
========================================================= */
@media (max-width: 768px) {

    /* Stack header di mobile */
    .container.my-4 .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Teks full width */
    .container.my-4 .d-flex.justify-content-between>div:first-child {
        width: 100% !important;
    }

    /* Judul lebih kecil */
    .container.my-4 h3.fw-bold {
        font-size: 18px !important;
    }

    /* Deskripsi lebih kecil */
    .container.my-4 .text-white-50.small {
        font-size: 12px !important;
    }

    /* Tombol full width */
    .container.my-4 .btn-outline-light {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
    }
}

/* 1. Memperbaiki Link Genre (Yang Warna Biru) */
.genre-btn {
    color: rgba(255, 255, 255, 0.6) !important; /* Warna putih transparan */
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

/* Efek Hover saat kursor di atas menu */
.genre-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Warna saat menu AKTIF */
.genre-btn.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, #FF8C00, #FF4D4D) !important; /* Gradient Oranye-Merah */
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

/* 2. Memperbaiki Kotak Icon (Heart & Bag) */
.btn-icon-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-icon-nav:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* 3. Merapikan Badge Angka (0) */
.badge-count {
    background: #FF4D4D !important; /* Warna merah tegas */
    color: white !important;
    font-size: 10px !important;
    font-weight: 800;
    padding: 2px 6px !important;
    border-radius: 50px !important;
    border: 2px solid #121218; /* Garis tepi biar gak nempel icon */
}