:root {
    --bg: #f9f7f3;
    /* warm background */
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    /* <-- WAS MISSING */
    --border: #e5e7eb;

    --primary: #f97316;
    /* orange from logo */
    --primary-hover: #ea580c;
    --accent: #2f9e44;
    /* green from cart */
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* layout */
.container {
    width: min(720px, 92vw);
    margin: 0 auto;
    padding: 18px 0 26px;
}

/* ---------- TOPBAR / BRAND ---------- */
.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    /* full width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);

    /* match page, not a white “bubble” */
    background: transparent;

    padding: 14px 20px;
    margin-top: 0;
    margin-bottom: 14px;

    /* clean divider like the sample */
    border-bottom: 1px solid var(--border);

}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    /* tighter */
    min-width: 0;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex: 0 0 auto;
}

@media (min-width:520px) {
    .logo {
        width: 52px;
        height: 52px;
    }
}

h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.4px;
}

.subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

/* ---------- NAV + MENU ---------- */
.nav {
    position: relative;
    /* IMPORTANT so menu positions under the button */
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

/* desktop links (optional if you use them) */
.navLinks {
    display: none;
}

/* hamburger button */

.menuBtn {
    height: 44px;
    width: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    display: grid;
    place-items: center;
}

.menuBtn:active {
    transform: scale(0.98);
}

.menuBtn[aria-expanded="true"] {
    box-shadow: 0 14px 30px rgba(17, 24, 39, .12);
}

/* dropdown */
.menu {
    position: absolute;
    top: calc(100% + 8px);
    /* small gap from the button */
    left: 50%;
    transform: translateX(-50%);
    /* centered under the button */
    width: 180px;
    /* smaller */
    padding: 6px;
    /* less empty space */
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .14);
    display: none;
    z-index: 9999;
}

.menu.open {
    display: grid;
}

.menuLink {
    padding: 10px 12px;
    /* tighter */
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 16px;
}

.menuLink:hover {
    background: #f3f4f6;
}

/* show desktop links on large screens if you want */
@media (min-width: 720px) {

    .menuBtn,
    .menu {
        display: none !important;
    }

    .navLinks {
        display: flex;
        gap: 10px;
    }
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;

    /* IMPORTANT: removed your margin-top:15px (it was breaking header layout) */
}

.btn:hover {
    background: var(--primary-hover);
}

.btn.ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
    margin: 0;
}

/* ---------- INPUTS ---------- */
input,
select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: #fff;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.15);
}

/* ---------- CARDS ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    margin-bottom: 14px;
}

@media (min-width: 900px) {
    .container {
        width: min(980px, 92vw);
    }
}

textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 158, 68, 0.15);
}

.footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}