* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;

    background:
        linear-gradient(
            135deg,
            #f7f1e8 0%,
            #fbf8f2 45%,
            #f2eadf 100%
        );

    color: #241c16;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}


/* =========================
   PAGE
========================= */

.home-page {
    min-height: 100vh;

    padding:
        22px
        clamp(16px, 4vw, 64px)
        120px;
}

.home-container {
    width: min(1380px, 100%);
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.home-header {
    height: 58px;

    display: flex;
    align-items: center;

    justify-content: space-between;

    padding: 0 4px;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;

    gap: 9px;
}

.brand-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #8b3f16;
    color: #fff8ed;

    font-size: 16px;
}

.brand-name {
    font-family: Georgia, serif;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: 0.5px;
}


/* NAVIGATION */

.main-navigation {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-left: auto;
    margin-right: 35px;
}

.main-nav-item {
    position: relative;

    padding: 8px 0;

    color: #66584d;

    font-size: 13px;
}

.main-nav-item:hover {
    color: #8b3f16;
}

.main-nav-item.active {
    color: #8b3f16;
    font-weight: 700;
}

.main-nav-item.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    border-radius: 2px;

    background: #8b3f16;
}

.scan-button{
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f5ecdf;
    color: black;
}


/* PROFILE */

.profile-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #f9e2c4;
    color: #9b4316;

    font-weight: 700;
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.sign-in-button {
    padding: 9px 15px;

    border-radius: 20px;

    background: #8b3f16;
    color: white;

    font-size: 12px;
    font-weight: 700;
}


/* =========================
   HERO
========================= */

.hero-section {
    margin-top: 12px;
}

.hero-placeholder {
    position: relative;

    min-height: 350px;

    overflow: hidden;

    display: flex;
    align-items: center;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(210, 157, 83, 0.45),
            transparent 23%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(68, 91, 57, 0.7),
            transparent 30%
        ),
        linear-gradient(
            120deg,
            #24170f,
            #5b341d 48%,
            #263524
        );

    box-shadow:
        0 15px 40px rgba(57, 39, 25, 0.18);
}


/*
   Placeholder atmosphere instead of a real
   cafe photograph for now.
*/

.hero-placeholder::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 90px,
            rgba(255, 255, 255, 0.025) 91px,
            transparent 92px
        );

    opacity: 0.8;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(18, 12, 8, 0.9) 0%,
            rgba(18, 12, 8, 0.68) 42%,
            rgba(18, 12, 8, 0.18) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 600px;

    padding: 50px;
}

.hero-eyebrow {
    color: #dfbb88;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.hero-content h1 {
    margin: 13px 0 12px;

    color: #fffaf2;

    font-family: Georgia, serif;

    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;

    font-weight: 500;
}

.hero-content p {
    margin: 0 0 25px;

    color: #eee0ce;

    font-size: 14px;
    line-height: 1.6;
}

.hero-button {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    padding: 12px 18px;

    border-radius: 9px;

    background: #f1d29f;
    color: #4b2814;

    font-size: 12px;
    font-weight: 700;
}

.hero-button:hover {
    background: #ffe0ad;
}

.hero-placeholder-label {
    position: absolute;

    right: 32px;
    bottom: 25px;

    z-index: 2;

    padding: 8px 12px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;

    background: rgba(0,0,0,0.22);

    color: rgba(255,255,255,0.55);

    font-size: 10px;
    letter-spacing: 1.5px;
}


/* =========================
   SEARCH
========================= */

.search-box {
    height: 52px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 18px;

    padding: 0 8px 0 17px;

    border: 1px solid #e5ddd3;
    border-radius: 14px;

    background: rgba(255,255,255,0.82);

    box-shadow:
        0 5px 20px rgba(82, 58, 37, 0.05);
}

.search-icon {
    color: #9c9084;

    font-size: 15px;
}

.search-box input {
    flex: 1;

    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;

    color: #45382f;

    font-size: 13px;
}

.search-box input::placeholder {
    color: #a59b92;
}

.search-submit {
    height: 36px;

    padding: 0 18px;

    border: none;
    border-radius: 9px;

    background: #8b3f16;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.search-submit:hover {
    background: #70300f;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    display: flex;

    gap: 8px;

    margin-top: 13px;

    overflow-x: auto;

    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category {
    flex-shrink: 0;

    padding: 9px 15px;

    border-radius: 20px;

    background: #eee8df;
    color: #62564d;

    font-size: 12px;
}

.category:hover {
    background: #e5dcd0;
}

.category.active {
    background: #6f3a15;
    color: #fff8ed;
}


/* =========================
   FILTER PANEL
========================= */

.filter-panel {
    margin-top: 14px;

    border: 1px solid #e5ddd3;
    border-radius: 13px;

    background: rgba(255,255,255,0.65);

    overflow: hidden;
}

.filter-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 15px;

    color: #685b50;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    list-style: none;
}

.filter-panel summary::-webkit-details-marker {
    display: none;
}

.filter-panel summary:hover {
    color: #8b3f16;
}

.filter-arrow {
    transition: transform 0.2s ease;
}

.filter-panel[open] .filter-arrow {
    transform: rotate(180deg);
}

.product-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;

    gap: 12px;

    padding: 0 15px 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.filter-group label {
    color: #81766c;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.filter-group select,
.filter-group input {
    height: 36px;

    padding: 0 10px;

    border: 1px solid #ddd4ca;
    border-radius: 8px;

    outline: none;

    background: #fff;

    color: #4e433a;

    font-size: 12px;
}

.filter-group select {
    min-width: 170px;
}

.filter-group input {
    width: 115px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #9a4b20;
}

.apply-filter-button {
    height: 36px;

    padding: 0 17px;

    border: none;
    border-radius: 8px;

    background: #8b3f16;
    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.clear-filter-button {
    height: 36px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    border: 1px solid #ded5cc;
    border-radius: 8px;

    color: #766a60;

    font-size: 12px;
}


/* =========================
   MENU HEADING
========================= */

.menu-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-top: 28px;
    margin-bottom: 14px;
}

.section-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #9a6a42;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.menu-heading h2 {
    margin: 0;

    color: #2a201a;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 500;
}

.menu-count {
    color: #8e8177;

    font-size: 11px;
}


/* =========================
   MESSAGES
========================= */

.messages {
    position: fixed;

    top: 18px;
    left: 50%;

    z-index: 2000;

    width: min(500px, calc(100% - 32px));

    transform: translateX(-50%);
}

.message {
    margin-bottom: 8px;

    padding: 11px 14px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.08);
}

.message.success {
    background: #e8f4e9;
    color: #246b37;
}

.message.error {
    background: #fceaea;
    color: #a52820;
}

.message.warning {
    background: #fff1d8;
    color: #91630b;
}

.message.info {
    background: #e9f1fb;
    color: #315d91;
}


/* =========================
   STICKY REVIEW ORDER
========================= */

.review-order-bar {
    position: fixed;

    left: 50%;
    bottom: 18px;

    z-index: 1500;

    width: min(560px, calc(100% - 32px));
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 12px;

    transform: translateX(-50%);

    padding: 8px 10px;

    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 16px;

    background: #304028;
    color: #fffdf7;

    box-shadow:
        0 10px 35px rgba(35, 27, 19, 0.28);
}

.review-order-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    font-size: 14px;
}

.review-order-text {
    font-size: 13px;
    font-weight: 700;
}

.review-order-summary {
    margin-left: auto;

    color: #ddd8cb;

    font-size: 12px;
}

.review-order-arrow {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f8ead0;
    color: #714016;

    font-size: 18px;
    font-weight: 700;
}

.review-order-bar:hover {
    background: #25351f;
}


/* =========================
   FOOTER
========================= */

.home-footer {
    padding:
        45px
        clamp(16px, 4vw, 64px)
        25px;

    background: #241b15;
    color: #f4ede3;
}

.footer-content {
    width: min(1380px, 100%);
    margin: 0 auto;

    display: flex;
    justify-content: space-between;

    gap: 50px;
}

.footer-brand p {
    margin: 10px 0 0;

    color: #a99c90;

    font-size: 12px;
}

.contact-section h2 {
    margin: 0 0 14px;

    font-family: Georgia, serif;

    font-size: 18px;
    font-weight: 500;
}

.contact-links {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.contact-links a {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #bcb0a4;

    font-size: 12px;
}

.contact-links a:hover {
    color: #e8bf8c;
}

.contact-links span {
    width: 18px;

    color: #d49a63;

    text-align: center;
}

.footer-bottom {
    width: min(1380px, 100%);
    margin: 30px auto 0;

    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    color: #81756b;

    font-size: 11px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 800px) {

    .main-navigation {
        gap: 17px;
        margin-right: 15px;
    }

    .hero-placeholder {
        min-height: 310px;
    }

    .hero-content {
        padding: 35px;
    }

}

@media (min-width: 800px) {
    .scan-button{
        display: none;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .home-page {
        padding:
            12px
            12px
            100px;
    }

    .home-header {
        height: 48px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-icon {
        width: 29px;
        height: 29px;
    }

    .main-navigation {
        gap: 12px;
        margin: 0 10px 0 auto;
    }

    .main-nav-item {
        font-size: 11px;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
    }

    .hero-placeholder {
        min-height: 285px;

        border-radius: 17px;
    }

    .hero-content {
        padding: 28px 24px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-placeholder-label {
        display: none;
    }

    .search-box {
        height: 48px;
    }

    .search-submit {
        padding: 0 13px;
    }

    .menu-heading {
        margin-top: 22px;
    }

    .menu-heading h2 {
        font-size: 23px;
    }

    .product-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select,
    .filter-group input,
    .apply-filter-button,
    .clear-filter-button {
        width: 100%;
    }

    .review-order-bar {
        bottom: 9px;

        width: calc(100% - 20px);

        min-height: 54px;
    }

    .review-order-summary {
        font-size: 11px;
    }

    .footer-content {
        flex-direction: column;
    }

}


/* =========================
   GUEST ORDER TRACKING
========================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-order-trigger {
    border: 1px solid #d9c5ad;
    border-radius: 20px;

    padding: 9px 15px;

    background: #fffaf3;
    color: #7b3b18;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;
}

.track-order-trigger:hover {
    background: #f3e5d4;
}

body.tracking-modal-open {
    overflow: hidden;
}


/* =========================
   TRACKING MODAL OVERLAY
========================= */

.tracking-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background: rgba(25, 18, 13, 0.58);

    backdrop-filter: blur(3px);
}

.tracking-modal-overlay.is-open {
    display: flex;
}


/* =========================
   TRACKING MODAL
========================= */

.tracking-modal {
    position: relative;

    width: min(430px, 100%);

    padding: 32px;

    border: 1px solid #eadccc;
    border-radius: 18px;

    background: #fffaf3;

    box-shadow:
        0 22px 65px rgba(22, 14, 8, 0.28);

    animation: trackingModalIn 0.18s ease-out;
}

@keyframes trackingModalIn {

    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.tracking-modal-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 32px;
    height: 32px;

    border: 0;
    border-radius: 50%;

    background: #f0e6da;
    color: #6d5543;

    font-size: 22px;

    cursor: pointer;
}

.tracking-modal-eyebrow {
    color: #a46a3c;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.tracking-modal h2 {
    margin: 9px 0 7px;

    color: #2b211a;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 500;
}

.tracking-modal > p {
    margin: 0 0 22px;

    color: #786b60;

    font-size: 12px;
    line-height: 1.6;
}

.tracking-modal form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.tracking-modal label {
    color: #5f4c3d;

    font-size: 11px;
    font-weight: 700;
}

.tracking-modal input {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #dfd1c2;
    border-radius: 9px;

    outline: none;

    background: #fff;
    color: #35291f;

    font-size: 13px;
}

.tracking-modal input:focus {
    border-color: #9a4b20;

    box-shadow:
        0 0 0 3px rgba(154, 75, 32, 0.1);
}

.tracking-modal-submit {
    min-height: 43px;

    margin-top: 5px;

    border: 0;
    border-radius: 9px;

    background: #8b3f16;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.tracking-modal-submit:hover {
    background: #70300f;
}

.tracking-modal-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.tracking-modal-error {
    min-height: 16px;

    margin: 0;

    color: #b52d24;

    font-size: 11px;
}


/* =========================
   TRACKING MODAL RESPONSIVE
========================= */

@media (max-width: 600px) {

    .header-actions {
        gap: 7px;
    }

    .track-order-trigger {
        padding: 8px 10px;

        font-size: 10px;
    }

    .tracking-modal {
        padding: 28px 22px;
    }

    .tracking-modal h2 {
        font-size: 24px;
    }

}

/* =========================
   RESPONSIVE NAVIGATION
========================= */

.mobile-nav-dropdown {
    display: none;
    position: relative;
}

.mobile-nav-dropdown summary {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5d8c9;
    border-radius: 10px;

    background: #fffaf3;
    color: #8b3f16;

    font-size: 17px;

    cursor: pointer;
    list-style: none;
}

.mobile-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-panel {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    z-index: 2500;

    width: 190px;

    display: flex;
    flex-direction: column;

    padding: 8px;

    border: 1px solid #eadccc;
    border-radius: 12px;

    background: #fffaf3;

    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
}

.mobile-nav-panel a,
.mobile-track-order {
    display: block;

    padding: 12px;

    border: none;
    border-radius: 7px;

    background: transparent;
    color: #554538;

    font-size: 13px;
    text-align: left;

    cursor: pointer;
}

.mobile-nav-panel a:hover,
.mobile-track-order:hover {
    background: #f3e8da;
    color: #8b3f16;
}

.mobile-track-order {
    color: #8b3f16;
    font-weight: 700;
}


/* TABLET AND MOBILE */

@media (max-width: 800px) {

    .main-navigation {
        display: none;
    }

    .mobile-nav-dropdown {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

}


/* SMALL MOBILE */

@media (max-width: 600px) {

    .home-header {
        height: 48px;
    }

    .header-actions {
        gap: 8px;
    }

    .mobile-nav-dropdown summary {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

}

/* =========================================
   QR SESSION SUCCESS NOTIFICATION
========================================= */

.qr-success-toast {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    width: min(100% - 30px, 480px);
    margin: 20px auto;
    padding: 17px 18px;

    background: #ffffff;
    border: 1px solid #dcefe1;
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

    z-index: 20;
}

.qr-toast-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    background: #e6f5ea;
    color: #32834b;

    border-radius: 50%;
    font-size: 17px;
}

.qr-toast-content {
    flex: 1;
}

.qr-toast-eyebrow {
    display: block;
    margin-bottom: 5px;

    color: #32834b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.qr-toast-content p {
    margin: 0;

    color: #514d48;
    font-size: 13px;
    line-height: 1.5;
}

.qr-toast-close {
    align-self: flex-start;

    border: none;
    background: transparent;

    color: #999;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.qr-toast-close:hover {
    color: #333;
}