:root {
    --primary-orange: #f57224;
    --primary-blue: #0f156d;
    --bg-gray: #f5f5f5;
}

html, body {
    height: 100%;
}

body {
    background-color: var(--bg-gray);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar-lazada {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.brand-logo {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.5rem;
}
.search-box {
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
}

/* Responsif Header (Mobile Fix) */
.navbar-lazada .container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
}
.search-form-responsif {
    width: 100%;
    margin-top: 10px;
    order: 3; 
}
.cart-wrapper {
    order: 2; 
}

/* Responsif Header (Laptop) */
@media (min-width: 992px) {
    .navbar-lazada .container {
        flex-wrap: nowrap;
    }
    .search-form-responsif {
        width: 50%;
        margin-top: 0;
        order: 0;
        margin-left: auto;
        margin-right: auto;
    }
    .cart-wrapper {
        order: 0;
    }
}

/* Konten Utama */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Produk */
.product-card {
    background: #fff;
    transition: all 0.2s;
    border: none;
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.price-tag {
    color: var(--primary-orange);
    font-size: 1.2rem;
    font-weight: bold;
}
.btn-primary-lazada {
    background-color: var(--primary-blue);
    color: white;
    border: none;
}
.btn-primary-lazada:hover {
    background-color: #0c1155;
    color: white;
}
.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: none;
}
.btn-orange:hover {
    background-color: #d15b18;
    color: white;
}

footer {
    flex-shrink: 0;
}

/* Mode Cetak (Print PDF) */
@media print {
    .navbar-lazada, footer, .btn, .no-print, .alert {
        display: none !important;
    }
    body {
        background-color: white;
        font-family: 'Courier New', Courier, monospace;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    * {
        color: black !important;
        -webkit-print-color-adjust: exact;
    }
}