/* Theme and base styles */
:root {
    --red: #b94122;
    --ink: #281b17;
    --cream: #f8e9da;
    --paper: #fffaf4;
    --line: #eadbd1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Kanit, sans-serif;
}

/* Announcement and navigation */
.top {
    padding: 9px;
    text-align: center;
    color: #fff;
    background: var(--ink);
    font-size: 13px;
}

.top b {
    color: #ffd375;
}

.nav {
    height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 3;
}

.brand {
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
}

.brand small {
    display: block;
    color: var(--red);
    font-size: 9px;
    letter-spacing: 2px;
    margin-top: 5px;
}

.links {
    display: flex;
    gap: 28px;
}

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

.cart,
.order {
    border: 0;
    background: var(--red);
    color: #fff;
    padding: 11px 18px;
    border-radius: 99px;
    font: inherit;
    cursor: pointer;
}

.count {
    background: #fff;
    color: var(--red);
    border-radius: 50%;
    padding: 0 6px;
    margin-left: 5px;
}

/* Hero banner */
.hero {
    min-height: 480px;
    padding: 60px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
    background: linear-gradient(105deg, #f8e9da 0 54%, #f1d6bd 54%);
}

.eyebrow {
    color: var(--red);
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 13px;
}

.hero h1,
.menu h2,
.promo h2 {
    font-family: 'Playfair Display', Kanit, serif;
}

.hero h1 {
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.05;
    margin: 10px 0;
}

.hero h1 span {
    color: var(--red);
}

.hero p {
    max-width: 450px;
    color: #755e55;
    font-size: 17px;
    line-height: 1.7;
}

.deal {
    display: inline-block;
    padding: 12px 18px;
    background: #fff8ec;
    border-radius: 12px;
}

.deal b {
    color: var(--red);
    font-size: 24px;
}

.visual {
    height: 365px;
    position: relative;
    background: var(--cream);
}

.visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 200px 200px 20px 20px;
    box-shadow: 18px 18px #d9805b;
}

.round {
    position: absolute;
    right: -5px;
    bottom: 25px;
    background: var(--red);
    border: 5px solid var(--paper);
    color: #fff;
    border-radius: 50%;
    width: 115px;
    height: 115px;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 12px;
}

.round b {
    display: block;
    font-size: 22px;
}

/* Menu and product cards */
.menu {
    padding: 75px 6%;
    max-width: 1440px;
    margin: auto;
}

.title {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.menu h2 {
    font-size: 40px;
    margin: 3px 0 25px;
}

.title p {
    color: #826d65;
}

.filters {
    display: flex;
    gap: 9px;
    overflow: auto;
    padding-bottom: 20px;
}

.filter {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 9px 17px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.filter.active {
    background: var(--ink);
    color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
}

.card {
    background: #fff;
    border: 1px solid #f0e5dd;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: .2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 13px 25px #44211316;
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--red);
    border-radius: 99px;
    padding: 4px 9px;
    font-size: 11px;
}

.info {
    padding: 14px;
}

.info h3 {
    margin: 0;
    font-size: 17px;
}

.info p {
    margin: 2px 0 10px;
    color: #826d65;
    font-size: 12px;
}

.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--red);
    font-weight: 600;
}

.add {
    border: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--red);
    font-size: 22px;
    cursor: pointer;
}

/* Promotion */
.promo {
    margin: 0 6% 65px;
    padding: 34px 5%;
    background: var(--ink);
    color: #fff;
    border-radius: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo h2 {
    margin: 0;
    font-size: 30px;
}

.promo b {
    color: #ffd16f;
}

.promo p {
    color: #ddc8bc;
    margin: 4px 0;
}

/* Cart drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.drawer.open {
    pointer-events: auto;
}

.shade {
    position: absolute;
    inset: 0;
    background: #1d110a99;
    opacity: 0;
}

.open .shade {
    opacity: 1;
}

.panel {
    position: absolute;
    right: 0;
    top: 0;
    width: min(400px, 100%);
    height: 100%;
    background: #fffdf9;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: .25s;
}

.open .panel {
    transform: none;
}

.head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.head button {
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

.items {
    flex: 1;
    overflow: auto;
}

.item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.item div {
    flex: 1;
}

.item b,
.item small {
    display: block;
}

.item small {
    color: var(--red);
}

.qty button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.summary {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.summary p {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
    color: #826d65;
}

.summary .total {
    font-size: 20px;
    color: var(--ink);
    font-weight: 600;
}

.order {
    width: 100%;
    border-radius: 8px;
}

.empty {
    text-align: center;
    color: #826d65;
    padding: 45px;
}

/* Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 80px);
    background: var(--ink);
    color: #fff;
    padding: 11px 18px;
    border-radius: 99px;
    transition: .25s;
}

.toast.show {
    transform: translate(-50%, 0);
}

/* Footer */
footer {
    background: var(--ink);
    color: #d7c3b8;
    padding: 25px 6%;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* Responsive layouts */
@media (max-width: 850px) {
    .links {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 48px 8%;
    }

    .visual {
        height: 280px;
    }

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

@media (max-width: 500px) {
    .nav {
        height: 65px;
    }

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

    .visual {
        order: -1;
        height: 170px;
    }

    .grid {
        gap: 11px;
    }

    .card img {
        height: 135px;
    }

    .menu {
        padding: 55px 5%;
    }

    .menu h2 {
        font-size: 31px;
    }

    .title p {
        display: none;
    }

    .promo {
        margin: 0 5% 45px;
        display: block;
    }

    .promo h2 {
        font-size: 25px;
    }

    .promo .order {
        margin-top: 15px;
    }

    footer {
        display: block;
        line-height: 2;
    }
}

/* ใช้ไฟล์งานอาร์ตเวิร์กเป็นแบนเนอร์เต็มภาพ: ไม่ครอป ไม่เว้นขอบ */
.hero {
    display: block;
    min-height: 0;
    padding: 0;
    background: #090807;
    max-width: 1200px;
    margin: 0 auto;
}

.visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 940;
    background: #090807;
}

.visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

.round {
    display: none;
}

@media (max-width: 1200px) {
    .hero {
        max-width: none;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font: 600 23px Kanit,sans-serif;
    box-shadow: 0 8px 20px #281b1740;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    background: #91311b;
}

@media (max-width: 500px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* Category navigation */
.filter-navigation {
    position: relative;
}

.filters {
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 46px 22px;
}

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

.filter-arrow {
    position: absolute;
    top: 0;
    bottom: 22px;
    z-index: 1;
    width: 38px;
    border: 0;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 0 15px #fff;
    font: 26px/1 Arial;
    cursor: pointer;
}

.filter-arrow:hover {
    color: var(--red);
}

.filter-arrow.left {
    left: 0;
}

.filter-arrow.right {
    right: 0;
}

.filter-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.filter-arrow.is-hidden {
    display: none;
}

@media (max-width: 500px) {
    .filter-arrow {
        width: 32px;
    }

    .filters {
        padding-left: 38px;
        padding-right: 38px;
    }
}

/* Banner image */
.hero-image {
    display: block;
    width: 100%;
    height: auto;
}
