:root {
    --choco: #5a3e2b;
    --cream: #fdf6ec;
    --gold: #d4a017;
    --light-blue: #e8f1f8;
}

body {
    background: var(--cream);
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #333;
}

.navbar-brand { color: var(--choco) !important; letter-spacing: 1px; }

.btn-warning {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-weight: 600;
}
.btn-warning:hover { background: #b88a0f; border-color: #b88a0f; color:#fff; }

.hero {
    background: linear-gradient(135deg, var(--choco), #8a6247);
    color: #fff;
    padding: 3rem 0;
    border-radius: 0 0 24px 24px;
}
.hero h1 { font-weight: 800; letter-spacing: 2px; }

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(90,62,43,.12);
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light-blue);
}
.product-card .price {
    color: var(--choco);
    font-weight: 700;
    font-size: 1.1rem;
}

.section-title {
    color: var(--choco);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.how-step {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid #f0e6d6;
}
.how-step .num {
    width: 44px; height: 44px; line-height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    margin: 0 auto 1rem;
}

@media (max-width: 576px) {
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: 1.8rem; }
    .product-card img { height: 160px; }
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .brand-logo {
        height: 32px;
    }
}
.brand-logo {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;   /* kama unataka duara */
}
/* ---------- PAGE HEADER ---------- */
.page-header {
    background: var(--primary);
    background-image:
        radial-gradient(circle at 85% 20%, rgba(196, 154, 108, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #1e3c5c 0%, #152e45 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    border-bottom: 3px solid var(--accent);
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(196, 154, 108, 0.05);
    pointer-events: none;
}
.breadcrumb-nav {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
}
.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb-nav a:hover {
    color: var(--accent);
}
.breadcrumb-nav .sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}
.breadcrumb-nav .current {
    color: #fff;
    font-weight: 500;
}
.page-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    margin: 0 0 0.5rem;
}
.page-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

/* ---------- SEARCH BAR ---------- */
.search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-btn);
    padding: 0 1rem 0 3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(196, 154, 108, 0.15);
}
.search-icon {
    position: absolute;
    left: 1.15rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.search-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.85rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-main);
}
.search-input::placeholder {
    color: #a3b0bd;
}
.search-clear {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem;
    font-size: 0.85rem;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.search-clear:hover {
    color: var(--primary);
    background: var(--bg-light);
}
.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 0 1.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn-search:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
.btn-search i {
    font-size: 0.85rem;
}

/* ---------- RESULT NOTE ---------- */
.results-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.results-note strong {
    color: var(--primary);
}
.results-note em {
    font-style: normal;
    color: var(--primary);
    font-weight: 500;
}

/* ---------- PRODUCT CARD TWEAKS ---------- */
.product-img-wrap {
    overflow: hidden;
    background: #f1f5f9;
}
.product-img-wrap img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.04);
}
.product-name {
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: -0.005em;
}
.product-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--bg-light);
    border: 1px dashed var(--border-light);
    border-radius: 20px;
    max-width: 560px;
    margin: 0 auto;
}
.empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--primary);
    font-size: 1.6rem;
}
.empty-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
}
.empty-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -6px rgba(30, 60, 92, 0.25);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px) {
    .page-header { padding: 2.5rem 0 2.25rem; }
    .page-title { font-size: 1.8rem; }
    .page-subtitle { font-size: 0.9rem; }
    .search-bar { flex-direction: column; }
    .btn-search {
        justify-content: center;
        padding: 0.85rem 1.5rem;
    }
    .product-img-wrap img { height: 150px; }
    .empty-state { padding: 3rem 1.25rem; }
}