:root {
    --aqua: #c7e8ec;
    --teal: #0e8c86;
    --teal-dark: #08706b;
    --cream: #f7f8f2;
    --white: #ffffff;
    --yellow: #ffc94d;
    --pink: #f7c6cf;
    --pink-dark: #e65f7a;
    --chocolate: #5a3a2e;
    --dark: #222222;
    --muted: #6c6c68;
    --line: #dedfd7;
    --radius-lg: 24px;
    --radius-md: 15px;
    --radius-sm: 9px;
    --shadow: 0 8px 24px rgba(53, 45, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--teal);
    color: var(--dark);
    font-family: "Nunito", Arial, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.site-shell {
    width: min(1280px, calc(100% - 28px));
    margin: 18px auto;
    overflow: hidden;
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.page-header {
    padding: 34px 28px 26px;
    text-align: center;
    background:
        linear-gradient(
            90deg,
            var(--aqua) 0 24%,
            var(--pink) 24% 43%,
            var(--yellow) 43% 60%,
            var(--aqua) 60% 100%
        );
}

.brand-line {
    margin-bottom: 6px;
    color: var(--chocolate);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    color: var(--chocolate);
    font-family: "Patrick Hand", cursive;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
}

.header-copy {
    max-width: 650px;
    margin: 13px auto 0;
    color: #3f3a36;
    font-size: 0.98rem;
    line-height: 1.5;
}

.deadline-pill {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(90, 58, 46, 0.16);
    border-radius: 999px;
    color: var(--chocolate);
    font-size: 0.84rem;
}

.category-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    background: rgba(247, 248, 242, 0.96);
    border-bottom: 3px solid var(--teal);
    backdrop-filter: blur(10px);
}

.category-nav a {
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--chocolate);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.category-nav a:hover {
    background: var(--aqua);
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 28px 28px 38px;
}

.products-column,
.order-column {
    min-width: 0;
}

.product-section {
    margin-bottom: 38px;
    scroll-margin-top: 76px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.section-label {
    display: block;
    margin-bottom: 2px;
    color: var(--teal);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.order-heading h2,
.pickup-info h2,
.review-modal h2,
.closed-card h2 {
    margin: 0;
    color: var(--chocolate);
    font-size: 1.65rem;
    line-height: 1.08;
}

.deal-note {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    color: #625c57;
    font-size: 0.76rem;
    line-height: 1.35;
}

.deal-note strong {
    color: var(--pink-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.deal-note b {
    color: var(--chocolate);
    font-weight: 900;
}

.deal-note-small {
    max-width: 240px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #dedfd8;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(40, 35, 30, 0.055);
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 126px;
    background: linear-gradient(135deg, #f3eee4, #fbfaf6);
    border-bottom: 1px solid var(--line);
}

.product-icon {
    font-size: 3.1rem;
    line-height: 1;
}

.placeholder-label {
    margin-top: 6px;
    color: #8c877f;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px;
}

.product-body h3 {
    margin: 0 0 5px;
    color: var(--chocolate);
    font-size: 1rem;
    line-height: 1.22;
}

.product-description {
    flex: 1;
    margin: 0 0 11px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.single-price {
    margin-bottom: 9px;
    color: var(--chocolate);
    font-size: 1rem;
    font-weight: 900;
}

.option-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 8px;
    margin-bottom: 9px;
}

.option-grid.single-option {
    grid-template-columns: 68px;
}

.option-grid label,
.customer-fields label,
.notes-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.option-grid label > span,
.customer-fields label > span,
.notes-field > span {
    color: #625d58;
    font-size: 0.67rem;
    font-weight: 900;
}

select,
input,
textarea {
    width: 100%;
    padding: 8px 9px;
    background: #fff;
    border: 1px solid #cfcfc7;
    border-radius: 7px;
    color: var(--dark);
    outline: none;
}

select:focus,
input:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(14, 140, 134, 0.12);
}

textarea {
    resize: vertical;
}

.add-button {
    width: 100%;
    padding: 9px 10px;
    background: var(--pink-dark);
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.79rem;
    font-weight: 900;
}

.add-button:hover {
    background: #d84e69;
}

.add-button.added {
    background: var(--teal);
}

.order-card {
    position: sticky;
    top: 68px;
    padding: 17px;
    background: #fff;
    border: 1px solid #d9dad2;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.order-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.order-heading h2 {
    font-size: 1.28rem;
}

.item-count {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.empty-cart {
    padding: 15px 4px;
    color: #85817b;
    font-size: 0.79rem;
    text-align: center;
}

.cart-items {
    display: flex;
    flex-direction: column;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #ecece6;
}

.cart-name {
    color: var(--chocolate);
    font-size: 0.79rem;
    font-weight: 900;
}

.cart-detail {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.68rem;
}

.cart-right {
    text-align: right;
}

.cart-price {
    display: block;
    color: var(--dark);
    font-size: 0.76rem;
    font-weight: 900;
}

.remove-button {
    margin-top: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--pink-dark);
    font-size: 0.65rem;
    font-weight: 800;
}

.savings-row,
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.savings-row {
    padding: 10px 0 4px;
    color: var(--teal);
    font-size: 0.76rem;
}

.total-row {
    margin-top: 7px;
    padding-top: 12px;
    border-top: 2px solid var(--line);
    color: var(--chocolate);
    font-size: 1rem;
    font-weight: 900;
}

.total-row strong {
    font-size: 1.18rem;
}

.checkout-section {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.checkout-section h3 {
    margin: 0 0 9px;
    color: var(--chocolate);
    font-size: 0.9rem;
}

.pickup-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pickup-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    background: #fafaf6;
    border: 1px solid #ddddd6;
    border-radius: 8px;
    cursor: pointer;
}

.pickup-option:hover {
    border-color: var(--teal);
}

.pickup-option input {
    width: auto;
    margin: 0;
    accent-color: var(--teal);
}

.pickup-option span {
    display: flex;
    flex-direction: column;
}

.pickup-option strong {
    color: var(--chocolate);
    font-size: 0.74rem;
}

.pickup-option small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.66rem;
}

.customer-fields {
    display: grid;
    gap: 7px;
}

.customer-fields input,
.notes-field textarea {
    font-size: 0.78rem;
}

.notes-field {
    margin-top: 8px;
}

.allergy-box {
    margin-top: 11px;
    padding: 10px;
    background: #fff7df;
    border: 1px solid #efd89c;
    border-radius: 8px;
    color: #5e5339;
    font-size: 0.7rem;
    line-height: 1.4;
}

.allergy-box strong {
    display: block;
    margin-bottom: 3px;
    color: var(--chocolate);
}

.allergy-box p {
    margin: 0 0 4px;
}

.allergy-box a {
    color: var(--teal-dark);
    font-weight: 900;
}

.review-button {
    width: 100%;
    margin-top: 16px;
    padding: 11px;
    background: var(--teal);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 900;
}

.review-button:hover {
    background: var(--teal-dark);
}

.payment-note {
    margin: 6px 0 0;
    color: #89847f;
    font-size: 0.63rem;
    text-align: center;
}

.validation-message {
    margin-top: 11px;
    padding: 9px;
    background: #fde8e8;
    border: 1px solid #ecc1c1;
    border-radius: 7px;
    color: #843e3e;
    font-size: 0.72rem;
    line-height: 1.35;
}

.pickup-info {
    margin: 0 28px 28px;
    padding: 18px 20px;
    background: var(--aqua);
    border-radius: var(--radius-md);
}

.pickup-info h2 {
    font-size: 1.25rem;
}

.pickup-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 9px;
}

.pickup-info-grid p {
    margin: 0;
    color: #48433f;
    font-size: 0.76rem;
    line-height: 1.45;
}

.review-overlay,
.closed-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(28, 25, 22, 0.72);
}

.review-modal,
.closed-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 23px;
    background: var(--cream);
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.review-modal {
    position: relative;
}

.close-review {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--chocolate);
    font-size: 1.7rem;
    line-height: 1;
}

.review-items {
    margin-top: 14px;
    border-top: 1px solid var(--line);
}

.review-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.77rem;
}

.review-item strong {
    color: var(--chocolate);
}

.review-summary-row {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 2px solid var(--chocolate);
    color: var(--chocolate);
    font-size: 1rem;
    font-weight: 900;
}

.review-detail {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 10px;
    margin-top: 10px;
    color: #555;
    font-size: 0.75rem;
}

.review-detail strong {
    color: var(--chocolate);
}

.payment-placeholder-button {
    width: 100%;
    margin-top: 19px;
    padding: 12px;
    background: var(--pink-dark);
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-weight: 900;
}

.payment-placeholder-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.68rem;
    text-align: center;
}

.closed-card {
    text-align: center;
}

.closed-icon {
    margin-bottom: 10px;
    font-size: 3.8rem;
}

.closed-card p {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.closed-card a {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 15px;
    background: var(--pink-dark);
    border-radius: 8px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .page-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pickup-info {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 780px) {
    .site-shell {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .page-header {
        padding: 26px 18px 21px;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .header-copy {
        font-size: 0.88rem;
    }

    .category-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 8px 10px;
    }

    .category-nav a {
        flex: 0 0 auto;
        font-size: 0.75rem;
    }

    .page-layout {
        display: block;
        padding: 20px 14px 28px;
    }

    .product-section {
        margin-bottom: 31px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .deal-note {
        align-items: flex-start;
    }

    .product-grid,
    .product-grid-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image-placeholder {
        height: 104px;
    }

    .product-icon {
        font-size: 2.7rem;
    }

    .product-body {
        padding: 11px;
    }

    .product-description {
        font-size: 0.73rem;
    }

    .option-grid {
        grid-template-columns: minmax(0, 1fr) 60px;
    }

    .order-column {
        margin-top: 10px;
        scroll-margin-top: 75px;
    }

    .order-card {
        position: static;
    }

    .pickup-info {
        margin: 0 14px 18px;
    }

    .pickup-info-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}

@media (max-width: 520px) {
    .product-grid,
    .product-grid-two {
        grid-template-columns: 1fr;
    }

    .product-card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .product-image-placeholder {
        height: 100%;
        min-height: 172px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .product-icon {
        font-size: 2.5rem;
    }

    .placeholder-label {
        font-size: 0.55rem;
    }

    .product-description {
        min-height: 0;
    }

    .option-grid {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .page-header h1 {
        font-size: 2.45rem;
    }
}
