* {
    margin: 0px;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Membuat font terlihat lebih tajam di Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
    background-color: #F8F9FA;
}

header {
    background-color: #1B263B;
    width: 100%;
    /* Memastikan header memenuhi lebar layar */
    padding: 20px 0;
    position: fixed;
    /* Opsional: agar header tetap di atas saat scroll */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.35);
    color: #E0E1DD;
}

a {
    text-decoration: none;
    color: inherit;
}


nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
    margin-right: 20px;
}

nav ul li a {
    color: #E0E1DD;
    font-size: 14px;
    text-decoration: none;
}

nav ul li a:hover {
    color: #FFD700;
    transition: color 0.3s;
}

.logo {
    font-size: 25px;
    width: 280px;
    color: #FFF;
    font-weight: 500;
    text-decoration: none;
}

.headerContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-container {
    width: 80%;
    max-width: 800px;
    margin: 2px auto;
    padding: 0 20px;
}

.search-container form {
    display: flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex-grow: 1;
    /* Ini yang membuat input mengambil sisa ruang (panjang) */
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

#container {
    display: flex;
    max-width: 1200px;
    /* Lebar maksimal konten */
    margin: 120px auto 25px;
    /* Ketengah secara horizontal */
    padding: 0 20px;
    gap: 30px;
    /* Jarak antara Aside dan Main */
    min-height: 480px;
}

/* Sidebar */
.sidebar {
    width: 220px;
    /* Lebar tetap untuk sidebar */
    flex-shrink: 0;
    /* Mencegah sidebar menyusut saat layar mengecil */
    background: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    /* Panjang mengikuti isi konten */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar ul {
    list-style: none;
    margin-left: -10px;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

.sidebar ul li a:hover {
    color: #007bff;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    /* Mengambil sisa ruang yang tersedia */
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.main-footer {
    background-color: #1B263B;
    /* Warna gelap agar kontras */
    color: #FFF;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* Agar bisa turun ke bawah saat layar sempit */
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    /* Lebar minimal tiap kolom */
}

/* Judul & Teks di Footer */
.footer-column h4 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}


.footer-column h5 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFF;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #E0E1DD;
}

.social-links {
    font-size: 14px;
    line-height: 1.6;
    color: #E0E1DD;
}

/* Menu Navigasi */
.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #E0E1DD;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #FFD700;
}

/* Bagian Bawah (Copyright) */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #bbbbbb;
}

.footer-bottom p {
    font-size: 13px;
    color: #E0E1DD;
}

.product-grid {
    display: grid;
    /* Membuat kolom otomatis: minimal 200px, maksimal mengisi ruang sisa */
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
}

/* Kartu Produk */
.product-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Bagian Gambar */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Membuat gambar selalu kotak */
    background-color: #f8f9fa;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Agar gambar tidak gepeng */
}

/* Badge Baru/Diskon */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FFD700;
    /* Warna kuning emas sesuai header/footer Anda */
    color: #1a1a1a;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

/* Informasi Produk */
.product-info {
    padding: 15px 7px;
    text-align: left;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    /* Batasi teks agar hanya 1 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Jumlah maksimal baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Menambahkan titik-titik (...) */
}

.product-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #e67e22;
    /* Warna orange agar harga menonjol */
    margin-bottom: 15px;
}

/* Tombol */
.btn-add {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    /* Hitam agar kontras dengan header emas */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-add:hover {
    background-color: #333;
}

/* Container Modal (Latar Belakang) */
.modal {
    display: none;
    /* Tersembunyi secara default */
    position: fixed;
    z-index: 2000;
    /* Pastikan di atas header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Overlay gelap */
    backdrop-filter: blur(5px);
    /* Efek blur pada background */
}

/* Kotak Konten Modal */
.modal-content {
    background-color: #fff;
    margin: 30px auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

/* Animasi Muncul */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tombol Tutup (X) */
.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.close-btnAlamat {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close-btnAlamat:hover {
    color: #333;
}

/* Layout di dalam Modal */
.modal-body {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.modal-img-container {
    flex: 1;
}

.modal-img-container img {
    width: 100%;
    border-radius: 10px;
}

.modal-details {
    flex: 1.2;
    text-align: left;
}

.modal-details h2 {
    margin-bottom: 10px;
    color: #1a1a1a;
}

.modal-details .description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Container utama list warna */
.color-list-container {
    display: flex;
    flex-direction: column;
    /* Urutkan ke bawah */
    gap: 12px;
    margin: 15px 0;
    max-height: 250px;
    /* Jika warna terlalu banyak, bisa di-scroll */
    overflow-y: auto;
    padding-right: 5px;
}

/* Styling per baris */
.color-input-row {
    display: flex;
    justify-content: space-between;
    /* Nama di kiri, Input di kanan */
    align-items: center;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* Nama Warna */
.color-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* Input Angka */
.qty-input {
    width: 70px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.qty-input:focus {
    border-color: #FFD700;
    /* Warna kuning emas Anda */
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Hilangkan panah spinner di input number (opsional agar lebih bersih) */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    opacity: 1;
    /* Biarkan saja jika ingin memudahkan user menambah qty lewat klik */
}

.auth-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    margin: 10px auto;
}

.auth-form h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #1a1a1a;
}

.auth-form p {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #FFD700;
    /* Warna aksen toko Anda */
    outline: none;
}

.btn-register {
    width: 100%;
    padding: 14px;
    background-color: #1B263B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-register:hover {
    background-color: #333;
}

.footer-text {
    margin-top: 20px;
    text-align: center;
}

.footer-text a {
    color: #e67e22;
    text-decoration: none;
    font-weight: 600;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    width: 100%;
    padding-right: 45px;
    /* Beri ruang untuk ikon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    /* Warna abu-abu profesional */
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #1a1a1a;
    /* Warna menggelap saat hover */
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 10px auto;
    max-width: 480px;
    min-height: 260px;
}

.login-card h2 {
    margin-bottom: 10px;
    text-align: center;
}

.login-card p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* .form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
} */

/* Container untuk label password + link lupa password */
.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.forgot-link {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #1B263B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #333;
}

.footer-login {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.footer-login a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.auth {
    width: auto;
    /* Hapus width: 300px lama yang bikin ngaco */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Navigasi Sudah Login (Keranjang + Dropdown) */
.nav-auth-container {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Jarak antara ikon keranjang dan tombol user */
    margin-left: 0;
    /* Hapus margin-left kaku lama */
}

/* Keranjang */
.cart-icon {
    position: relative;
    font-size: 1.2rem;
    color: inherit;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Dropdown User */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Tombol utama Dropdown */
.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    color: #E0E1DD;
    /* Mengikuti warna teks header */
    border-radius: 6px;
    transition: background 0.2s;
}

.dropbtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Efek feedback saat dihover */
}

/* Konten Dropdown menu yang muncul */
.dropdown-content {
    position: absolute;
    right: 0;
    /* Menempel rata kanan tombol agar tidak memotong layar */
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1050;
    margin-top: 5px;
    padding: 5px 0;

    /* Animasi transisi halus */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    pointer-events: none;
    display: block;
}

/* Trigger Hover */
.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Jarak ikon di dalam menu */
    font-size: 14px;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

/* Tampilkan Dropdown saat Hover/Click */
.dropdown:hover .dropdown-content {
    display: block;
}

.logout {
    color: #d9534f !important;
}

.profile-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Avatar dengan Badge */
.profile-avatar-container {
    position: relative;
    display: inline-flex;
}

.profile-avatar-container i.fa-user-circle {
    font-size: 72px;
    color: #475569;
}

.avatar-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #10b981;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #ffffff;
}

/* Metadata Profil & Bintang */
.profile-meta h2 {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: #0f172a;
    font-weight: 700;
}

.loyalty-tier {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tier-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.5px;
}

.loyalty-stars {
    display: flex;
    gap: 3px;
}

.loyalty-stars i {
    font-size: 14px;
    color: #cbd5e1;
}

.loyalty-stars i.filled {
    color: #f59e0b;
}

/* Grid Informasi Akun (Senada dengan Address Grid) */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.info-card,
.info-card-action {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.info-card:hover,
.info-card-action:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.info-card-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-card-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.info-card-content strong {
    font-size: 15px;
    color: #1e293b;
    word-break: break-all;
}

.btn-text-action {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #f0f9ff;
}

.btn-text-action:hover {
    background: #e0f2fe;
}

/* Pembatas Seksi Baru */
.section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 32px 0;
}

.profile-container {
    max-width: 1200px;
    margin: 120px auto 25px;
    padding: 15px;
}

.profile-dashboard {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.address-header {
    display: flex;
    justify-content: space-between;
    /* Menendang judul ke kiri, tombol ke kanan */
    align-items: center;
    /* Membuat tinggi keduanya sejajar di tengah secara vertikal */
    width: 100%;
    margin-bottom: 20px;
    gap: 15px;
}

.address-header h3 {
    margin: 0;
    font-size: 1.25rem;
    /* Sesuaikan ukuran font jika diperlukan */
}



.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-avatar-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar i {
    font-size: 60px;
    color: #4a5568;
}

.profile-title {
    width: 250px;
    float: left;
}

.profile-action {
    width: 200px;
    float: right;
}

.profile-title h2 {
    margin: 0;
    color: #333;
}

.status-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-block;
    margin-top: 5px;
}

.divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin: 20px 0;
}

/* Detail Row Flexbox */
.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px id="divider" dashed #edf2f7;
}

.info-label {
    width: 180px;
    font-weight: 600;
    color: #4a5568;
    flex-shrink: 0;
}

.info-value {
    color: #2d3748;
    word-break: break-word;
}

.btn-outline-edit {
    text-decoration: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 8px;
    color: #555;
    font-size: 0.9em;
    transition: 0.3s;
}

.btn-outline-edit:hover {
    background: #f8f8f8;
    border-color: #333;
}

.loyalty-stars {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.loyalty-stars i {
    font-size: 1.1em;
    /* Memberi sedikit efek glow pada bintang yang menyala */
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.2);
}

.star-text {
    font-size: 0.85em;
    color: #888;
    margin-left: 10px;
    font-weight: normal;
}

/* Address Grid System */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.address-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    position: relative;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.address-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    margin-bottom: 8px;
}

.address-tag.utama {
    background: #e0f2fe;
    color: #0369a1;
}

.maps-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    border: 1px solid #cbd5e1;
}

.address-info {
    flex: 1;
    /* Mengambil sisa ruang yang ada di kiri */
    padding-right: 15px;
    cursor: default;
}

.link-maps-text {
    font-size: 11px;
    font-style: italic;
    cursor: pointer;
}


/* Styling Ikon Aksi */
.address-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-icon {
    background: white;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-icon.edit {
    color: #0284c7;
}

.btn-icon.delete {
    color: #dc2626;
}

.btn-icon:hover {
    background: #f1f5f9;
}

.btn-icon.delete:hover {
    color: #dc3545;
    background: #ffeef0;
}

/* Modal Form Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-wilayah {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.address-phone {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}


.btn-edit-link,
.btn-add-address {
    width: 200px;
    padding: 10px;
    background-color: #1B263B;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-add-address:hover {
    background-color: #333;
}



.modal-header {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.modal-bodyForm {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Scroll jika form panjang */

/* Layout Form */
.form-groupAlamat {
    margin-bottom: 12px;
}

.form-groupAlamat label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-groupAlamat input,
.form-groupAlamat textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-rowAlamat {
    display: flex;
    gap: 15px;
}

.form-rowAlamat .form-groupAlamat {
    flex: 1;
}

.form-gridAlamat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.modal-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    text-align: right;
    border-top: 1px solid #eee;
}

.btn-save {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
}

.is_utama {
    text-align: right;
}

/* Menyesuaikan tinggi dan border agar mirip input lainnya */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;
}


.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.thumb-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: #2f54eb;
    /* Warna border biru utama saat aktif/di-hover */
    transform: scale(1.05);
}

.nav-link {
    color: #6c757d;
    font-size: 0.85rem;
}

.nav-link.active {
    font-weight: bold;
    color: #0d6efd !important;
    background: none !important;
    border-bottom: 2px solid #0d6efd;
    border-radius: 0;
}

.tr-link {
    cursor: pointer;
    transition: background 0.1s;
}

.tr-link:hover {
    background-color: #f8f9fa;
}

.badge-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    font-weight: 600;
}

.marketplace-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
    background-color: #fff5f2;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
}

.help-box {
    background-color: #f8fafc;
    border-left: 4px solid #4f46e5;
}

.whatsapp-floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    /* Jarak dari kanan browser */
    background-color: #25d366;
    /* Warna khas WhatsApp */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Memastikan tombol selalu berada di lapisan paling atas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Efek saat kursor diarahkan ke tombol (Hover) */
.whatsapp-floating-btn:hover {
    background-color: #128c7e;
    /* Warna WhatsApp lebih gelap */
    transform: scale(1.1);
    /* Efek membesar sedikit */
    color: #fff;
}

/* ========================================================================
   MEDIA QUERIES (RESPONSIVE ENGINE)
   ======================================================================== */

/* Layar Tablet & Smartphone (< 992px) */
@media screen and (max-width: 992px) {
    #container {
        flex-direction: column;
        /* Sidebar pindah ke atas main content */
        margin-top: 130px;
    }

    .sidebar {
        width: 100%;
        /* Sidebar jadi full width */
    }
}

/* Layar Khusus Smartphone (< 768px) */
@media screen and (max-width: 768px) {

    /* Header Responsive Layout */
    .headerContainer {
        flex-wrap: wrap;
        padding: 5px 0;
    }

    .logo {
        order: 1;
        font-size: 22px;
    }

    .auth {
        order: 2;
    }

    /* Navigasi Belum Login */
    .nav-unauth ul {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-unauth ul li {
        margin: 0 5px;
        font-size: 13px;
    }

    /* Sembunyikan garis pembatas di HP agar lebih ringkas */
    .nav-unauth ul li.separator {
        display: none;
    }


    .search-container {
        order: 3;
        flex-basis: 100%;
        /* Memaksa search bar mengambil 1 baris penuh di bawah logo & auth */
        max-width: 100%;
        padding: 0;
        margin-top: 8px;
        /* Memberi jarak halus dengan baris atas */
    }

    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Atur jarak container utama di mobile karena header bertambah tinggi */
    #container {
        margin-top: 170px;
        padding: 0 15px;
        gap: 20px;
    }

    /* Hilangkan teks "Cari" di tombol, sisakan icon lup saja */
    .search-button span {
        display: none;
    }

    .search-button {
        padding: 0 20px;
    }

    /* Dropdown Header Mobile */
    .dropbtn span {
        display: none;
        /* Sembunyikan nama user di HP, sisakan icon user */
    }

    /* Product Grid Mobile: Menampilkan 2 kolom kartu produk per baris */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-info .price {
        font-size: 15px;
    }

    /* Modal Responsive */
    .modal-content {
        margin: 20px auto;
        padding: 20px 15px;
    }

    .modal-body {
        flex-direction: column;
        /* Gambar produk dan form order disusun vertikal */
        gap: 15px;
    }

    .modal-img-container {
        min-width: 100%;
    }

    /* Footer & Address */
    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-gridAlamat {
        grid-template-columns: 1fr;
        /* Form isian alamat menjadi 1 baris ke bawah */
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-action,
    .profile-action a {
        width: 100%;
    }

    .btn-outline-edit {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }

    .info-label {
        width: 100%;
        font-size: 13px;
    }

    .address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Memastikan teks judul tidak memiliki margin bawaan yang merusak keselarasan vertikal */
    .address-header h3 {
        font-size: 1.1rem;
        /* Sedikit mengecilkan judul di HP layar kecil agar space tombol aman */
    }

    /* Grid Alamat berubah jadi satu baris penuh per kartu di HP */
    .address-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .address-card {
        flex-direction: column;
        /* Tombol aksi pindah ke bawah info alamat */
        gap: 15px;
    }

    .address-actions {
        flex-direction: row;
        /* Tombol edit & hapus berjejer ke samping */
        justify-content: flex-end;
        border-top: 1px solid #e2e8f0;
        padding-top: 12px;
    }

    .btn-icon {
        width: 45%;
        /* Perlebar tombol aksi di HP agar mudah ditekan jempol */
        height: 38px;
    }

    /* Form Modal di HP berubah jadi 1 kolom lurus ke bawah */
    .form-grid-2,
    .form-grid-wilayah {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    .profile-header-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .profile-header-main {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .loyalty-tier {
        justify-content: center;
    }

    .profile-action .btn-outline-edit {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card-action {
        flex-wrap: wrap;
    }

    .btn-text-action {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }

    .btn-add-address {
        padding: 8px 12px;
        /* Menyesuaikan padding tombol di HP agar pas */
        font-size: 13px;
    }
}