
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brown: #542b18;
    --deep: #3b1e12;
    --cream: #fff5e9;
    --cream2: #f5e5d3;
    --caramel: #c58a55;
    --text: #3d281e;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

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

/* TOP BAR */
.topbar {
    background: var(--deep);
    color: #fff;
    text-align: center;
    padding: 9px 5%;
    font-size: 13px;
}

.topbar span {
    margin-left: 18px;
    color: #e9c8a8;
}

/* HEADER */
.site-header {
    min-height: 82px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffaf4;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 15px #3b1e1210;
}

.brand,
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--brown);
}

/* LOGO IMAGE */
.site-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.brand-name {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--caramel);
}

.nav-button {
    background: var(--brown);
    color: #fff !important;
    padding: 11px 20px;
    border-radius: 30px;
}

.welcome {
    color: var(--caramel);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    color: var(--brown);
    cursor: pointer;
}

/* HERO */
.hero {
    min-height: 500px;
    background:
        linear-gradient(90deg, #351b12e8 0%, #351b1299 48%, #351b1220 100%),
        url("https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=1800&q=90")
        center/cover;
    display: flex;
    align-items: center;
    padding: 70px 9%;
    color: #fff;
}

.hero-content {
    max-width: 540px;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.4px;
    font-weight: 700;
    color: var(--caramel);
    margin-bottom: 12px;
}

.hero .eyebrow {
    color: #f4d5b5;
}

h1,
h2 {
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(44px, 6vw, 76px);
    margin-bottom: 18px;
}

.hero h1 em,
.about-section h2 em {
    color: #e9bd91;
}

.hero-copy {
    max-width: 390px;
    color: #f7e9dc;
    margin-bottom: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 30px;
    padding: 13px 24px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}

.button-light {
    background: var(--cream);
    color: var(--brown);
}

.button-dark {
    background: var(--brown);
    color: white;
}

.button:hover {
    filter: brightness(1.1);
}

/* MENU SECTION */
.section {
    padding: 75px 8%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 27px;
}

.section-heading h2 {
    font-size: 38px;
}

.section-heading > p {
    color: #8a6b57;
}

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

.product-card {
    background: #fffaf4;
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 8px 25px #542b180d;
}

.product-card img {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.product-info h3 {
    font-size: 16px;
}

.product-info p {
    font-size: 13px;
    color: #8a7465;
    margin-top: 4px;
}

.product-info strong {
    color: var(--brown);
    white-space: nowrap;
}

.menu-note {
    font-size: 12px;
    color: #8a7465;
    margin-top: 18px;
}

/* ABOUT SECTION */
.about-section {
    background: var(--brown);
    color: white;
    padding: 65px 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-section h2 {
    font-size: 48px;
}

.about-section > p {
    max-width: 470px;
    color: #ead8c9;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 35px 15px;
    background: #f1dfcd;
}

.footer-brand {
    justify-content: center;
    font-size: 23px;
}

.footer .site-logo {
    width: 42px;
    height: 42px;
}

.footer p {
    font-size: 13px;
    margin: 5px 0 12px;
}

.footer small {
    font-size: 11px;
    color: #8a7465;
}

/* AUTHENTICATION PAGES */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8eadb, #fffaf4);
    padding: 35px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-brand {
    margin-bottom: 25px;
}

.auth-card {
    width: min(100%, 440px);
    background: #fffdf9;
    border: 1px solid #ead9c8;
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 15px 45px #542b1810;
}

.auth-card h1 {
    font-size: 34px;
    color: var(--brown);
}

.auth-subtitle {
    font-size: 13px;
    color: #8a7465;
    margin: 9px 0 24px;
}

.auth-card form {
    display: flex;
    flex-direction: column;
}

.auth-card label {
    font-size: 13px;
    font-weight: 700;
    margin: 12px 0 6px;
}

.auth-card input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dfcbbb;
    border-radius: 9px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.auth-card input:focus {
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px #c58a5520;
}

.full-width {
    width: 100%;
    margin-top: 23px;
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    margin-top: 22px;
}

.auth-switch a {
    color: var(--caramel);
    font-weight: 700;
}

.back-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #8a7465;
    margin-top: 20px;
}

.alert {
    padding: 11px 13px;
    background: #fff0ed;
    color: #9b3828;
    border-radius: 8px;
    font-size: 13px;
    margin: 14px 0;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 760px) {

    .site-header {
        min-height: 70px;
        padding: 0 5%;
    }

    .brand {
        font-size: 20px;
        gap: 8px;
    }

    .site-logo {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fffaf4;
        padding: 20px 5%;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        box-shadow: 0 10px 15px #0001;
    }

    .nav-links.open {
        display: flex;
    }

    .hero {
        min-height: 440px;
        padding: 55px 7%;
        background-position: 60% center;
    }

    .section {
        padding: 55px 6%;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 8px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .product-card img {
        height: 230px;
    }

    .about-section {
        padding: 50px 7%;
        display: block;
    }

    .about-section > p {
        margin-top: 22px;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .topbar span {
        display: none;
    }
}


/* =========================
   MODERN HERO SECTION
========================= */

.hero {
    min-height: 570px;
    padding: 75px 9%;
    background: #f5e5d3;
    color: var(--brown);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.hero-content {
    max-width: 560px;
}

.hero .eyebrow {
    color: var(--caramel);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.18;
    margin-bottom: 22px;
    color: var(--deep);
}

.hero h1 em {
    color: var(--caramel);
    font-style: normal;
}

.hero-copy {
    max-width: 450px;
    color: #806858;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.button-light {
    background: var(--brown);
    color: white;
}

.hero-secondary-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brown);
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 38px;
    color: #806858;
    font-size: 11px;
    font-weight: 500;
}

.hero-note span::before {
    content: "✓";
    color: var(--caramel);
    margin-right: 6px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    height: 390px;
    border-radius: 22px;
}

.hero-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.hero-image-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 17px 20px;
    background: #fffaf4ed;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-image-label span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--caramel);
    font-weight: 700;
}

.hero-image-label strong {
    font-size: 15px;
    color: var(--brown);
}


/* =========================
   FEATURED PRODUCTS
========================= */

.menu-section {
    padding: 85px 8%;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 36px;
    color: var(--deep);
}

.section-description {
    color: #8a7465;
    font-size: 13px;
    margin-top: 8px;
}

.menu-tag {
    background: var(--cream2);
    color: var(--brown);
    border-radius: 30px;
    padding: 9px 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.product-card {
    background: #fff;
    border: 1px solid #eee2d6;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px #542b1815;
}

.product-preview {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.product-image {
    position: relative;
    height: 245px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--brown);
    color: white;
    padding: 7px 11px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.view-product {
    position: absolute;
    right: 13px;
    bottom: 13px;
    background: #fffaf4ed;
    color: var(--brown);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.25s ease;
}

.product-card:hover .view-product,
.product-preview:focus-visible .view-product {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.product-info h3 {
    font-size: 15px;
    color: var(--deep);
}

.product-info p {
    font-size: 11px;
    color: #8a7465;
    margin-top: 6px;
}

.product-info strong {
    font-size: 15px;
    color: var(--brown);
}

.menu-note {
    text-align: center;
    margin-top: 28px;
}


/* =========================
   PRODUCT PREVIEW MODAL
========================= */

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.show {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: #1c100bd9;
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    background: #fffaf4;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: modalAppear 0.25s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: var(--brown);
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px #0001;
}

.modal-product-image {
    min-height: 360px;
}

.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-product-details {
    padding: 45px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-product-details h2 {
    color: var(--deep);
    font-size: 27px;
    margin-bottom: 15px;
}

.modal-product-details > p:not(.eyebrow) {
    color: #806858;
    font-size: 13px;
    line-height: 1.9;
}

.modal-product-bottom {
    border-top: 1px solid #ead9c8;
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-product-bottom strong {
    font-size: 25px;
    color: var(--brown);
}

.modal-product-bottom span {
    font-size: 11px;
    color: #8a7465;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {
    .hero {
        padding: 60px 6%;
        gap: 30px;
    }

    .hero-visual {
        height: 330px;
    }

    .product-grid {
        gap: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-info {
        padding: 15px;
    }
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 55px 7%;
        gap: 35px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-note {
        gap: 10px;
    }

    .menu-section {
        padding: 60px 6%;
    }

    .section-heading {
        display: block;
    }

    .menu-tag {
        display: inline-block;
        margin-top: 15px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 250px;
    }

    .view-product {
        opacity: 1;
        transform: none;
    }

    .product-modal-content {
        grid-template-columns: 1fr;
        max-width: 440px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-product-image {
        height: 230px;
        min-height: 230px;
    }

    .modal-product-details {
        padding: 25px;
    }

    .modal-product-details h2 {
        font-size: 23px;
    }
}
