:root {
    --formal: #242325;
    --ink: #161517;
    --elegance: #c2610d;
    --clarity: #c8c8c8;
    --velvet: #dc3816;
    --rich: #9154e9;
    --oasis: #4c8b54;
    --paper: #f4eee6;
    --muted: #a39c94;
    --line: rgba(200, 200, 200, 0.16);
    --pattern: url("../images/cow-pattern-tile.png");
}

html,
body {
    min-height: 100%;
    background: var(--ink);
}

body {
    margin: 0;
    color: var(--clarity);
    font-family: Lateef, "Raleway", sans-serif;
    font-size: 21px;
    font-weight: 400;
}

[dir="ltr"] body {
    font-family: "Raleway", Lateef, sans-serif;
    font-size: 15px;
}

h1, h2, h3, .brand-name, .section-title, .item-title, .offcanvas-title {
    font-weight: 700;
}

.app {
    max-width: 480px;
    min-height: 100dvh;
    background: var(--formal);
    overflow: visible;
    position: relative;
    padding-bottom: 84px;
}

/* Phone: full-bleed menu, no dark side gutters */
@media (max-width: 768px) {
    html,
    body {
        background: #1a191b;
    }

    .app,
    .app.foodics-like,
    .app.mx-auto {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .spect-sheet,
    .spect-sheet.offcanvas {
        max-width: none;
        width: 100%;
        margin: 0;
    }
}

.guide-bar {
    height: 42px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    color: var(--paper);
    font-size: 14px;
}

.guide-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--paper);
    border-radius: 3px;
    position: relative;
}

.guide-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--paper);
    border-radius: 2px 0 2px 2px;
}

.hero {
    height: 250px;
    background: var(--elegance);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.28) saturate(1.15) contrast(1.08);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(36, 35, 37, 0.15) 0%, rgba(194, 97, 13, 0.28) 42%, var(--formal) 100%),
        var(--pattern);
    background-size: auto, 220px;
    opacity: 1;
    mix-blend-mode: multiply;
}

.lang-btn {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--paper);
    background: rgba(36, 35, 37, 0.72);
    border: 1px solid rgba(200, 200, 200, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    backdrop-filter: blur(8px);
}

.brand-block {
    margin-top: -58px;
    padding: 0 18px 4px;
    position: relative;
    z-index: 2;
}

.logo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 26px;
    overflow: hidden;
    border: 3px solid var(--formal);
    background: var(--elegance);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    margin-top: 14px;
    color: var(--elegance);
    font-size: 36px;
    letter-spacing: 0.01em;
}

[dir="ltr"] .brand-name {
    font-size: 30px;
    font-family: "Raleway", sans-serif;
}

.brand-line {
    color: var(--clarity);
    font-size: 14px;
    letter-spacing: 0.04em;
    margin: 0;
}

.brand-promise {
    margin: 10px 0 0;
    color: var(--paper);
    font-size: 22px;
}

[dir="ltr"] .brand-promise {
    font-size: 15px;
    font-weight: 600;
}

.socials {
    margin-top: 14px;
}

.social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--elegance);
    border: 1px solid rgba(194, 97, 13, 0.4);
    text-decoration: none;
}

.manifesto {
    margin: 18px 16px 8px;
    padding: 16px 16px 18px;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.manifesto::before {
    content: "";
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    width: 86px;
    height: 100%;
    background: var(--pattern);
    background-size: 180px;
    opacity: 0.22;
}

.manifesto-kicker {
    display: inline-block;
    background: var(--formal);
    color: var(--paper);
    padding: 4px 10px;
    margin-bottom: 10px;
    font-size: 16px;
}

[dir="ltr"] .manifesto-kicker {
    font-size: 12px;
    font-weight: 700;
}

.manifesto p {
    margin: 0;
    position: relative;
    line-height: 1.55;
    color: var(--clarity);
}

.cow-mark {
    width: 72px;
    margin-top: 14px;
    position: relative;
}

.palette {
    display: flex;
    height: 8px;
    margin: 16px 16px 6px;
    overflow: hidden;
}

.palette span:nth-child(1) { flex: 60; background: var(--formal); }
.palette span:nth-child(2) { flex: 21; background: var(--elegance); }
.palette span:nth-child(3) { flex: 10; background: var(--clarity); }
.palette span:nth-child(4) { flex: 3; background: var(--velvet); }
.palette span:nth-child(5) { flex: 3; background: var(--rich); }
.palette span:nth-child(6) { flex: 3; background: var(--oasis); }

.pattern-band {
    height: 28px;
    margin: 8px 0 4px;
    background-color: var(--elegance);
    background-image: var(--pattern);
    background-size: 180px;
}

.cats {
    background: var(--formal);
    padding: 10px 0 12px;
    z-index: 5;
}

.cats-row {
    gap: 16px;
    overflow-x: auto;
    padding: 4px 16px 2px;
    scrollbar-width: none;
}

.cats-row::-webkit-scrollbar {
    display: none;
}

.cat {
    flex: 0 0 auto;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--clarity);
    text-decoration: none;
}

.cat-thumb {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--clarity);
}

.cat.active .cat-thumb,
.cat:hover .cat-thumb {
    border-color: var(--elegance);
    box-shadow: 0 0 0 3px var(--elegance);
}

.cat-name {
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
}

[dir="ltr"] .cat-name {
    font-size: 12px;
    font-weight: 600;
}

.section-title {
    margin: 18px 0 12px;
    color: var(--paper);
    font-size: 30px;
}

[dir="ltr"] .section-title {
    font-size: 22px;
}

.item-card {
    margin-bottom: 28px;
}

.item-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: #111;
    position: relative;
}

.item-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 18px;
    background-image: var(--pattern);
    background-size: 140px;
    opacity: 0.35;
    pointer-events: none;
}

.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-title {
    margin: 12px 0 6px;
    color: var(--paper);
    font-size: 26px;
}

[dir="ltr"] .item-title {
    font-size: 18px;
}

.item-desc {
    margin: 0;
    color: var(--clarity);
    line-height: 1.5;
}

.kcal {
    color: var(--muted);
}

.price {
    min-width: 88px;
    text-align: center;
    background: var(--elegance);
    color: var(--ink);
    font-weight: 700;
    border-radius: 6px;
    padding: 6px 10px;
}

.sheet-btn {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    color: var(--clarity);
    background: rgba(255, 255, 255, 0.03);
}

.credit {
    color: var(--muted);
    font-size: 13px;
}

.footer-pattern {
    height: 54px;
    margin-top: 18px;
    background-color: var(--elegance);
    background-image: var(--pattern);
    background-size: 200px;
    position: relative;
}

.footer-pattern .cow-mark {
    position: absolute;
    inset-inline-start: 14px;
    bottom: -6px;
    width: 58px;
    filter: brightness(0);
}

.spect-sheet {
    max-width: 480px;
    margin: 0 auto;
    background: var(--formal);
    color: var(--paper);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.spect-sheet .offcanvas-header {
    background-image: linear-gradient(90deg, var(--formal), rgba(194, 97, 13, 0.18));
}

.lang-option {
    text-align: start;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    padding: 12px 4px;
    text-decoration: none;
}

.lang-option.active {
    color: var(--elegance);
}

.add-btn {
    background: var(--elegance);
    color: var(--ink);
    border: 0;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 700;
}

.cart-fab {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(448px, calc(100% - 32px));
    background: var(--elegance);
    color: var(--ink);
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    z-index: 1045;
}

.cart-fab.is-open {
    display: none;
}

.cart-count {
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
    min-width: 28px;
    padding: 0 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    border-radius: 6px;
}

.offcanvas.cart-sheet {
    height: 88dvh;
    max-height: 88dvh;
    width: min(480px, 100vw);
    left: 0;
    right: 0;
    margin-inline: auto;
    z-index: 1055;
}

.cart-sheet .offcanvas-body {
    overflow-y: auto;
    padding-bottom: 28px;
}

.checkout-form .form-control {
    background: #2c2b2e;
    border-color: rgba(200, 200, 200, 0.28);
    color: var(--paper);
    caret-color: var(--paper);
}

.checkout-form .form-control::placeholder {
    color: #b7b0a8;
    opacity: 1;
}

.checkout-form .form-control::-webkit-input-placeholder {
    color: #b7b0a8;
    opacity: 1;
}

.checkout-form .form-control::-moz-placeholder {
    color: #b7b0a8;
    opacity: 1;
}

.checkout-form .form-control:focus {
    background: #343236;
    border-color: var(--elegance);
    color: var(--paper);
    box-shadow: 0 0 0 0.2rem rgba(194, 97, 13, 0.25);
}

.thanks-logo {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 22px;
}

.offcanvas.option-sheet {
    height: 86dvh;
    max-height: 86dvh;
    width: min(480px, 100vw);
    left: 0;
    right: 0;
    margin-inline: auto;
    z-index: 1056;
}

.option-label {
    font-weight: 700;
    margin-bottom: 8px;
}

.option-group {
    margin-bottom: 18px;
}

.option-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: var(--ink);
    cursor: pointer;
}

.option-chip.is-on {
    border-color: var(--elegance);
    background: rgba(194, 97, 13, 0.16);
}

.option-chip input {
    accent-color: var(--elegance);
    margin-inline-end: 8px;
}

.cart-meta {
    color: var(--muted);
    font-size: 0.82em;
    line-height: 1.4;
    margin-top: 2px;
}

/* Foodics-like ordering layout */
.foodics-like {
    background: #1a191b;
}

.store-head {
    background: var(--formal);
}

.store-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.store-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 21, 23, 0.15), rgba(22, 21, 23, 0.85));
}

.store-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 14px;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.store-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--formal);
    background: var(--elegance);
    flex: 0 0 auto;
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-name {
    color: var(--paper);
    font-size: 24px;
    line-height: 1.2;
}

[dir="ltr"] .store-name {
    font-size: 20px;
}

.store-tag {
    color: var(--muted);
    font-size: 13px;
}

.lang-btn-inline {
    position: static;
    flex: 0 0 auto;
}

.foodics-like .cats {
    background: #121113;
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.foodics-like .cats-row {
    gap: 8px;
    padding: 10px 12px;
}

.foodics-like .cat {
    width: auto;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--clarity);
    font-size: 15px;
    white-space: nowrap;
}

[dir="ltr"] .foodics-like .cat {
    font-size: 13px;
    font-weight: 600;
}

.foodics-like .cat.active {
    background: var(--elegance);
    border-color: var(--elegance);
    color: var(--ink);
}

.menu-main {
    padding: 8px 0 24px;
}

.foodics-like .section-title {
    margin: 18px 16px 8px;
    font-size: 20px;
    color: var(--paper);
}

[dir="ltr"] .foodics-like .section-title {
    font-size: 17px;
}

.product-list {
    background: var(--formal);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.product-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.foodics-like .item-title {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--paper);
}

[dir="ltr"] .foodics-like .item-title {
    font-size: 16px;
}

.foodics-like .item-desc {
    color: var(--muted);
    font-size: 0.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.foodics-like .price {
    min-width: 0;
    background: transparent;
    color: var(--elegance);
    padding: 0;
    text-align: start;
    font-size: 1em;
}

.product-media {
    position: relative;
    width: 112px;
    height: 112px;
}

.product-media img,
.product-media-empty {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
    background: #2a292b;
}

.add-fab {
    position: absolute;
    inset-inline-end: 6px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--elegance);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.menu-foot {
    padding-bottom: 12px;
}

.foodics-like .cart-fab {
    border-radius: 14px;
    align-items: center;
}

.cart-fab-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foodics-like .cart-count {
    background: var(--ink);
    color: var(--paper);
}

.cart-fab.is-empty {
    opacity: 0.72;
}

.foodics-like .add-btn {
    border-radius: 10px;
    padding: 10px 14px;
}
