/* =========================================
   ClearMindShift - Custom Styles
   ========================================= */

/* Background halaman dengan gradien yang JELAS */
body {
    font-size: 16px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* Kontainer utama - memberikan latar putih transparan agar teks terbaca */
main.container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px 25px;
    margin-top: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #222;
}

/* Navbar */
.navbar-dark.bg-dark {
    background-color: #1f1e2e !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand img {
    max-height: 42px;
    width: auto;
    background: transparent;
}
.navbar-brand span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a5d6ff;
}
@media (max-width: 576px) {
    .navbar-brand img { max-height: 34px; }
    .navbar-brand span { font-size: 1rem; }
}

/* Kartu produk */
.card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #333;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.card-img-top {
    object-fit: contain;
    max-height: 190px;
    padding: 12px;
    background: #fff;
    border-radius: 12px 12px 0 0;
}
.card-title {
    font-weight: 700;
}

/* ======== LAYOUT KATALOG SIDEBAR (DIPAKSA DENGAN !important) ======== */
.catalog-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    align-items: flex-start;
}
.sidebar-filter {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    background: #ffffff;
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    position: sticky;
    top: 20px;
    flex-shrink: 0;
    color: #333;
}
.products-area {
    flex: 1;
    min-width: 0;
}

/* Mobile: sidebar naik ke atas */
@media (max-width: 768px) {
    .catalog-container {
        flex-direction: column !important;
    }
    .sidebar-filter {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: static;
        margin-bottom: 24px;
    }
    main.container {
        padding: 15px;
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .card-title { font-size: 0.9rem; }
    .card-text { font-size: 0.8rem; }
    .btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
    h2 { font-size: 1.5rem; }
}

/* Tabel responsif */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Footer */
footer {
    background: #1f1e2e;
    color: #ccc;
    padding: 18px 0;
    margin-top: auto;
}

/* Form */
input.form-control, textarea.form-control, select.form-select {
    font-size: 16px;
}
.btn { white-space: nowrap; }

/* Elemen checkout */
#ongkir-display, #total-display { font-weight: bold; }
.dropdown-menu { min-width: 200px; }
.remove-variant-btn { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

/* Link */
a { color: #5b8def; }
a:hover { color: #3b6dd4; }