* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #fff3e6;
    color: #26352a;
    min-height: 100vh;
}

.app {
    width: 90%;
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 0 30px;
}

/* HERO */

.app-header {
    text-align: center;
    margin-bottom: 32px;
    color: #2f6637;
}

.eyebrow {
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.app-header .eyebrow {
    color: #c65318;
}

.app-header h1 {
    font-size: 2.7rem;
    margin-bottom: 14px;
}

.intro {
    max-width: 620px;
    margin: auto;
    line-height: 1.6;
    color: #667067;
}

/* GROCERY HERO IMAGE */

.grocery-hero {
    width: 100%;
    height: 240px;
    margin-bottom: 28px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(70, 60, 40, 0.12);
}

.grocery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    display: block;
}

/* MAIN FORM */

.planner {
    background: #ffffff;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(80, 30, 5, 0.22);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #314d38;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e7ddd2;
    border-radius: 10px;
    background: #fffdf9;
    color: #26352a;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3f7d44;
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* BUTTONS */

button {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 15px;
    background: #34733c;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #285d30;
    transform: translateY(-1px);
}

.secondary-button {
    margin-top: 28px;
    background: #c65318;
}

.secondary-button:hover {
    background: #a94314;
}

/* RESULTS */

.results {
    margin-top: 35px;
    background: #fffaf2;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(80, 30, 5, 0.18);
}

.results-heading {
    margin-bottom: 22px;
}

.results-heading .eyebrow {
    color: #c65318;
}

.results-heading h2 {
    color: #2f6637;
}

.estimate-card {
    background: #eaf4df;
    border-left: 6px solid #4b8b4f;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 32px;
}

.estimate-label {
    font-weight: bold;
    color: #526356;
}

#budgetEstimate {
    color: #c65318;
    font-size: 2.2rem;
    margin: 8px 0;
}

#dailyEstimate {
    font-weight: bold;
    color: #34733c;
}

.estimate-note {
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #687169;
}

/* BASKET + SHOPPING */

.basket-section,
.shopping-section {
    margin-top: 30px;
}

.basket-section h2,
.shopping-section h2 {
    color: #34733c;
    margin-bottom: 8px;
}

.basket-section > p,
.shopping-section > p {
    line-height: 1.5;
    margin-bottom: 18px;
    color: #657067;
}

.basket-grid,
.shopping-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* FOOTER */

.app-footer {
    text-align: center;
    padding-top: 30px;
    color: #ffe9d7;
    font-size: 0.85rem;
}

/* UTILITY */

.hidden {
    display: none;
}

/* SUGGESTED BASKET CARDS */

.basket-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #e5ddd3;
}

.basket-icon {
    font-size: 2rem;
}

.basket-item strong {
    display: block;
    color: #34733c;
    margin-bottom: 4px;
}

.basket-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6b726c;
}


/* SHOPPING CARDS */

.shop-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5ddd3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.shop-card strong {
    display: block;
    color: #34733c;
    margin-bottom: 4px;
}

.shop-card p {
    font-size: 0.85rem;
    color: #777;
}

.shop-card a {
    text-decoration: none;
    background: #c65318;
    color: white;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.shop-card a:hover {
    background: #a94314;
}

/* MOBILE */

@media (max-width: 600px) {

    .app {
        width: 92%;
        padding-top: 30px;
    }

    .app-header h1 {
        font-size: 2.1rem;
    }

    .planner,
    .results {
        padding: 22px;
    }

    .date-row,
    .basket-grid,
    .shopping-grid {
        grid-template-columns: 1fr;
    }

    .grocery-hero {
    height: 180px;
}

}