/* --- 1. VARIABEL & RESET --- */
:root {
    --zasha-main: #002d72;      /* Midnight Blue */
    --zasha-accent: #004494;
    --zasha-light: #f8f9fa;
    --zasha-danger: #ff4757;    /* Merah Badge */
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--zasha-light);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

/* --- 2. LAYERING (NAVBAR & SEARCH) --- */
.navbar-zasha {
    background: var(--zasha-main) !important;
    padding: 12px 0;
    z-index: 1050 !important; /* Kasta Tertinggi */
}

.brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Floating Search Bar */
.search-sticky {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    position: sticky;
    top: 55px; /* Nempel tepat di bawah navbar */
    z-index: 1020 !important; 
}

.dropdown-menu {
    z-index: 1060 !important; /* Biar melayang di atas segalanya */
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Badge Keranjang */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--zasha-danger);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    border: 2px solid var(--zasha-main);
}

/* --- 3. DASHBOARD & PROFILE STYLES --- */
.dashboard-header {
    background: var(--zasha-main);
    padding: 50px 0 100px;
    color: white;
    border-radius: 0 0 40px 40px;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-top: -70px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.menu-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--zasha-main);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box {
    width: 55px;
    height: 55px;
    background: #f0f4f8;
    color: var(--zasha-main);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

/* --- 4. PRODUCT CARD (MARKETPLACE GRID) --- */
.product-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.p-details {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--zasha-main);
    margin: 10px 0;
}

/* --- 5. QTY SELECTOR & BUTTONS --- */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f3f5;
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
}

.btn-qty {
    background: var(--zasha-main);
    color: white !important;
    border: none;
    padding: 7px 15px;
    font-weight: bold;
    text-decoration: none;
}

.btn-add-cart {
    background: var(--zasha-main);
    color: #fff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: 0.3s;
}

.btn-add-cart:hover { background: var(--zasha-accent); }

/* --- 6. AUTH & FOOTER --- */
.auth-card { border: none; border-radius: 25px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.auth-header { background: var(--zasha-main); padding: 40px; color: #fff; text-align: center; }
.form-control-zasha { border-radius: 12px; padding: 12px; border: 1px solid #eee; background: #f9f9f9; }

.footer-zasha { background: var(--zasha-main); color: #fff; padding: 60px 0 30px; margin-top: 60px; }
.footer-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px; transition: 0.3s; }
.footer-link:hover { color: #fff; padding-left: 5px; }

/* --- UTILS --- */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }