/* =========================================================
   KERANJANG.CSS - ROYAL SHOP SUPREME
========================================================= */

body {
    background-color: #0b0b10;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
}

/* Typography & Utility */
.fs-7 {
    font-size: 12px;
}

.fw-800 {
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #6c7cf7 0%, #C850C0 46%, #FFb570 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.royal-logo-gradient {
    font-weight: 800;
    background: linear-gradient(135deg, #6c7cf7 0%, #C850C0 46%, #FFb570 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   ITEM KERANJANG (CART CARD)
========================================================= */
.cart-item {
    background: rgba(22, 22, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    background: rgba(22, 22, 30, 0.8);
    border-color: rgba(200, 80, 192, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cart-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-info {
    flex-grow: 1;
}

.cart-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.cart-varian {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
}

.cart-price {
    color: #FFCC70;
    font-weight: 800;
    font-size: 16px;
}

/* KONTROL JUMLAH (QTY) */
.qty-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 35px;
}

.qty-btn {
    width: 30px;
    height: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-weight: bold;
    transition: 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.qty-val {
    width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hapus {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-hapus:hover {
    background: #ff4d4d;
    color: #fff;
    transform: scale(1.05);
}

/* =========================================================
   RINGKASAN BELANJA (STICKY PANEL)
========================================================= */
.sticky-panel {
    position: sticky;
    top: 130px;
    /* Menempel di bawah header */
    z-index: 10;
}

.content-block {
    background: rgba(22, 22, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* Efek Glow pada kotak Checkout agar mata customer tertuju ke sini */
.summary-box {
    position: relative;
    border: 1px solid rgba(200, 80, 192, 0.3);
    box-shadow: 0 0 30px rgba(200, 80, 192, 0.05);
}

.block-header {
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.btn-gradient {
    background: linear-gradient(135deg, #4158D0, #C850C0, #FFCC70);
    border: none;
    transition: 0.3s;
    border-radius: 10px;
}

.btn-checkout {
    position: relative;
    overflow: hidden;
}

.btn-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.btn-checkout:hover::after {
    opacity: 1;
    left: 100%;
}

.btn-gradient:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(200, 80, 192, 0.5);
    transform: translateY(-2px);
}

.btn-gradient:disabled {
    background: #333;
    color: #888 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================================================
   EMPTY STATE & RELATED PRODUCTS (Sama dg Wishlist)
========================================================= */
.empty-state-glass {
    background: rgba(22, 22, 30, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-glass i {
    font-size: 60px;
    background: linear-gradient(135deg, #4158D0, #C850C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.wishlist-card {
    background: rgba(22, 22, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
}

.wishlist-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 80, 192, 0.4);
}

.wishlist-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.wishlist-info {
    padding: 12px;
}

.wishlist-nama {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   HEADER & FOOTER (Mencegah Raksasa)
========================================================= */
.header-paten {
    background: #121218;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1020;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 38px;
}

.nav-hover {
    transition: 0.3s;
}

.nav-hover:hover {
    color: #fff !important;
}

.footer-mega {
    background: #0b0b10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #FFb570;
    transform: translateX(5px);
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #6c7cf7, #FFb570);
    transform: translateY(-3px);
    border-color: transparent;
}

.payment-logo {
    height: 30px !important;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    object-fit: contain;
    transition: transform 0.3s;
}

.payment-logo:hover {
    transform: translateY(-3px);
}

.shipping-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.cod-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #FFb570 0%, #C850C0 100%);
    padding: 14px 20px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 80, 192, 0.2);
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cod-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 80, 192, 0.4);
}

.cod-badge .cod-icon {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.cod-badge .cod-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cod-badge .cod-text strong {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.cod-badge .cod-text small {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.2;
}

/* =========================================================
   NAVBAR MENU - FIX KONSISTEN DENGAN HALAMAN LAIN
========================================================= */

/* Nav link custom untuk menu desktop */
.nav-link-custom {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    position: relative;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
    background: transparent;
    border: none;
}

.nav-link-custom:hover {
    color: white !important;
}

.nav-link-custom.active {
    color: white;
}

.nav-link-custom.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Nav Icons - style sama dengan halaman lain */
.nav-icons {
    display: flex;
    gap: 8px;
}

.nav-icons .icon-link {
    color: white !important;
    font-size: 1.2rem;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.nav-icons .icon-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
}

/* Badge counter - konsisten dengan halaman lain */
.badge-dot,
.badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #C850C0 !important;
    color: white !important;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--dark-bg);
}

/* Search container */
.search-container {
    width: 100%;
    max-width: 350px;
}

.search-container .input-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    height: 38px;
}

.search-container .input-group:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #C850C0;
}

.search-container input {
    font-size: 13px;
    padding: 8px 16px;
    color: white;
    background: transparent;
    border: none;
}

.search-container input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.search-container .btn {
    color: var(--text-muted) !important;
    padding-right: 16px !important;
    background: transparent;
    border: none;
}

.search-container .btn:hover {
    color: white !important;
}

/* Navbar toggler untuk mobile */
.navbar-toggler {
    padding: 0 !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 1px solid var(--glass-border) !important;
}

.navbar-toggler i {
    font-size: 20px;
    color: white;
}

/* Mobile menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 16px;
        margin-top: 12px;
        border: 1px solid var(--glass-border);
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        color: white !important;
        padding: 12px !important;
        border-radius: 8px;
        text-align: left;
        font-size: 13px;
    }

    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-link.active {
        background: rgba(200, 80, 192, 0.2);
        color: white !important;
    }
}

/* =========================================================
   FIX HEADER LAMA - NONAKTIFKAN STYLE YANG BENTROK
========================================================= */

/* Nonaktifkan style header lama yang bentrok */
.header-paten .nav-hover,
.header-paten .navbar-nav .nav-link {
    /* Style lama akan di-override */
}

/* Pastikan navbar brand konsisten */
.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.navbar-brand.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-brand span.text-white {
    color: white !important;
}

/* =========================================================
   RESPONSIVE NAVBAR
========================================================= */
@media (max-width: 1200px) {
    .search-container {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .search-container {
        max-width: 100%;
    }

    .nav-icons .icon-link {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .badge-dot,
    .badge-count {
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }
}