.dcfm-root {
    --dcfm-bg: #0f0f0f;
    --dcfm-surface: #181716;
    --dcfm-surface-2: #211f1c;
    --dcfm-surface-3: #292622;
    --dcfm-text: #f6f2eb;
    --dcfm-muted: #aaa39a;
    --dcfm-line: rgba(255, 255, 255, 0.09);
    --dcfm-accent: #c9a267;
    --dcfm-accent-strong: #e0bd7d;
    --dcfm-danger: #a1463c;
    --dcfm-paper: #efe4ca;
    --dcfm-paper-ink: #272019;
    --dcfm-paper-muted: #796d5e;
    --dcfm-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --dcfm-radius-sm: 12px;
    --dcfm-radius-md: 18px;
    --dcfm-radius-lg: 26px;
    --dcfm-speed: 220ms;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    color: var(--dcfm-text);
    font-family: var(--dcfm-font-family, inherit);
    line-height: 1.65;
    text-align: start;
    -webkit-tap-highlight-color: transparent;
}


.dcfm-root button {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
    text-transform: none;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
}

.dcfm-root button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

.dcfm-root--dark .dcfm-shell {
    background: var(--dcfm-bg);
}

.dcfm-root--inherit {
    --dcfm-bg: transparent;
}

.dcfm-root .dcfm-shell {
    min-height: 280px;
    padding: 20px 14px 110px;
    border: 1px solid var(--dcfm-line);
    border-radius: var(--dcfm-radius-lg);
    background: var(--dcfm-bg);
    box-shadow: var(--dcfm-shadow);
    overflow: clip;
}

.dcfm-root .dcfm-header {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 2px 0 24px;
}

.dcfm-root .dcfm-header__title {
    max-width: 100%;
    margin: 0;
    color: var(--dcfm-text);
    font: inherit;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-align: center;
    overflow-wrap: anywhere;
}

.dcfm-root .dcfm-header__rule {
    width: 46px;
    height: 2px;
    border-radius: 999px;
    background: var(--dcfm-accent);
    opacity: 0.9;
}

.dcfm-root .dcfm-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dcfm-root .dcfm-category-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--dcfm-line);
    border-radius: var(--dcfm-radius-md);
    background: var(--dcfm-surface);
    color: var(--dcfm-text);
    font: inherit;
    text-align: inherit;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--dcfm-speed) ease, border-color var(--dcfm-speed) ease, background var(--dcfm-speed) ease;
}

.dcfm-root .dcfm-category-card:hover,
.dcfm-root .dcfm-category-card:focus-visible {
    border-color: rgba(201, 162, 103, 0.62);
    background: var(--dcfm-surface-2);
    outline: none;
}

.dcfm-root .dcfm-category-card:active {
    transform: scale(0.985);
}

.dcfm-root .dcfm-category-card__media {
    position: relative;
    display: block;
    aspect-ratio: var(--dcfm-category-ratio);
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: calc(var(--dcfm-radius-md) - 5px);
    background: var(--dcfm-surface-3);
}

.dcfm-root .dcfm-category-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

.dcfm-root .dcfm-category-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.dcfm-root .dcfm-category-card:hover .dcfm-category-card__media img {
    transform: scale(1.035);
}

.dcfm-root .dcfm-category-card__body {
    display: grid;
    gap: 3px;
    align-content: center;
    min-height: 64px;
    padding: 11px 12px 14px;
}

.dcfm-root .dcfm-category-card__name {
    display: -webkit-box;
    color: var(--dcfm-text);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.45;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dcfm-root .dcfm-category-card__meta {
    color: var(--dcfm-muted);
    font-size: 0.72rem;
}

.dcfm-root .dcfm-product-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dcfm-root .dcfm-product-toolbar__title {
    min-width: 0;
    color: var(--dcfm-text);
    font-size: 1.08rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dcfm-root .dcfm-icon-button,
.dcfm-root .dcfm-receipt__close {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--dcfm-line);
    border-radius: 50%;
    background: var(--dcfm-surface-2);
    color: var(--dcfm-text);
    cursor: pointer;
}

.dcfm-root .dcfm-icon-button svg,
.dcfm-root .dcfm-receipt__close svg {
    width: 20px;
    height: 20px;
}

.dcfm-root[dir="ltr"] .dcfm-back svg {
    transform: rotate(180deg);
}

.dcfm-root .dcfm-category-rail {
    position: sticky;
    z-index: 8;
    top: max(8px, env(safe-area-inset-top));
    margin: 0 -14px 18px;
    padding: 8px 14px 10px;
    background: linear-gradient(180deg, var(--dcfm-bg) 0%, var(--dcfm-bg) 82%, rgba(15, 15, 15, 0) 100%);
    overflow: hidden;
}

.dcfm-root .dcfm-category-rail__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.dcfm-root .dcfm-category-rail__track::-webkit-scrollbar {
    display: none;
}

.dcfm-root .dcfm-category-tab {
    display: grid;
    grid-template-columns: 42px minmax(0, auto);
    align-items: center;
    gap: 8px;
    min-height: 52px;
    max-width: 180px;
    flex: 0 0 auto;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--dcfm-line);
    border-radius: 999px;
    background: var(--dcfm-surface);
    color: var(--dcfm-muted);
    font: inherit;
    scroll-snap-align: start;
    cursor: pointer;
    transition: background var(--dcfm-speed) ease, border-color var(--dcfm-speed) ease, color var(--dcfm-speed) ease;
}

.dcfm-root[dir="rtl"] .dcfm-category-tab {
    padding: 5px 6px 5px 10px;
}

.dcfm-root .dcfm-category-tab[aria-selected="true"] {
    border-color: var(--dcfm-accent);
    background: rgba(201, 162, 103, 0.12);
    color: var(--dcfm-text);
}

.dcfm-root .dcfm-category-tab:focus-visible {
    outline: 2px solid var(--dcfm-accent);
    outline-offset: 2px;
}

.dcfm-root .dcfm-category-tab__media {
    display: block;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--dcfm-surface-3);
}

.dcfm-root .dcfm-category-tab__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dcfm-root .dcfm-category-tab__name {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dcfm-root .dcfm-product-list {
    display: grid;
    gap: 12px;
}

.dcfm-root .dcfm-product {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--dcfm-line);
    border-radius: var(--dcfm-radius-md);
    background: var(--dcfm-surface);
}

.dcfm-root .dcfm-product__media {
    aspect-ratio: var(--dcfm-product-ratio);
    min-height: 108px;
    overflow: hidden;
    border-radius: var(--dcfm-radius-sm);
    background: var(--dcfm-surface-3);
}

.dcfm-root .dcfm-product__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dcfm-root .dcfm-product__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.dcfm-root .dcfm-product__copy {
    min-width: 0;
}

.dcfm-root .dcfm-product__name {
    margin: 0;
    color: var(--dcfm-text);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dcfm-root .dcfm-product__description {
    display: -webkit-box;
    margin-top: 5px;
    color: var(--dcfm-muted);
    font-size: 0.77rem;
    line-height: 1.75;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.dcfm-root .dcfm-product__description p {
    margin: 0;
}

.dcfm-root .dcfm-product__footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.dcfm-root .dcfm-product__price {
    color: var(--dcfm-accent-strong);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.dcfm-root .dcfm-product__price .amount {
    color: inherit;
}

.dcfm-root .dcfm-product__unavailable {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--dcfm-muted);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.dcfm-root .dcfm-add-button {
    min-width: 78px;
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--dcfm-text);
    color: #111;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--dcfm-speed) ease, background var(--dcfm-speed) ease;
}

.dcfm-root .dcfm-add-button:hover,
.dcfm-root .dcfm-add-button:focus-visible {
    background: var(--dcfm-accent-strong);
    outline: none;
}

.dcfm-root .dcfm-add-button:active {
    transform: scale(0.97);
}

.dcfm-root .dcfm-stepper {
    display: grid;
    grid-template-columns: 44px minmax(28px, auto) 44px;
    align-items: center;
    min-height: 44px;
    border: 1px solid rgba(201, 162, 103, 0.42);
    border-radius: 999px;
    background: rgba(201, 162, 103, 0.08);
    overflow: hidden;
}

.dcfm-root .dcfm-stepper__button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dcfm-text);
    cursor: pointer;
}

.dcfm-root .dcfm-stepper__button:hover,
.dcfm-root .dcfm-stepper__button:focus-visible {
    background: rgba(201, 162, 103, 0.16);
    outline: none;
}

.dcfm-root .dcfm-stepper__button svg {
    width: 18px;
    height: 18px;
}

.dcfm-root .dcfm-stepper__quantity {
    min-width: 30px;
    color: var(--dcfm-text);
    font-size: 0.88rem;
    font-weight: 800;
    text-align: center;
}

.dcfm-root .dcfm-order-bar {
    position: fixed;
    z-index: 99920;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    left: max(14px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: min(520px, calc(100vw - 28px));
    min-height: 60px;
    margin-inline: auto;
    padding: 9px 12px 9px 16px;
    border: 1px solid rgba(224, 189, 125, 0.5);
    border-radius: 18px;
    background: #f1e7d1;
    color: #201a15;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    font: inherit;
    cursor: pointer;
}

.dcfm-root .dcfm-order-bar__label {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dcfm-root .dcfm-order-bar__count {
    display: grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: #272019;
    color: #f1e7d1;
    font-size: 0.78rem;
    font-weight: 800;
}

.dcfm-root .dcfm-order-bar__total {
    font-size: 0.79rem;
    font-weight: 800;
    white-space: nowrap;
}

.dcfm-root .dcfm-modal {
    position: fixed;
    z-index: 99980;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 42px 12px max(10px, env(safe-area-inset-bottom));
}

.dcfm-root .dcfm-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);
    cursor: default;
}

.dcfm-root .dcfm-receipt {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    max-height: min(760px, calc(100dvh - 56px));
    outline: none;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.dcfm-root .dcfm-receipt__paper {
    position: relative;
    margin: 10px 0;
    padding: 28px 20px 30px;
    background-color: var(--dcfm-paper);
    background-image:
        radial-gradient(circle at 20% 10%, rgba(72, 51, 29, 0.055) 0 0.7px, transparent 0.8px),
        radial-gradient(circle at 74% 38%, rgba(72, 51, 29, 0.045) 0 0.8px, transparent 0.9px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.17), transparent 22%, rgba(89, 66, 39, 0.035) 68%, transparent);
    background-size: 12px 12px, 17px 17px, 100% 100%;
    color: var(--dcfm-paper-ink);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
}

.dcfm-root .dcfm-receipt__paper::before,
.dcfm-root .dcfm-receipt__paper::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 13px;
    background:
        linear-gradient(135deg, transparent 7px, var(--dcfm-paper) 0) 0 0 / 14px 14px repeat-x,
        linear-gradient(225deg, transparent 7px, var(--dcfm-paper) 0) 7px 0 / 14px 14px repeat-x;
}

.dcfm-root .dcfm-receipt__paper::before {
    top: -12px;
    transform: rotate(180deg);
}

.dcfm-root .dcfm-receipt__paper::after {
    bottom: -12px;
}

.dcfm-root .dcfm-receipt__header {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
}

.dcfm-root .dcfm-receipt__close {
    position: absolute;
    top: -8px;
    inset-inline-end: -4px;
    width: 40px;
    height: 40px;
    border-color: rgba(39, 32, 25, 0.22);
    background: rgba(255, 255, 255, 0.24);
    color: var(--dcfm-paper-ink);
}

.dcfm-root .dcfm-receipt__mark {
    margin: 0 0 3px;
    font-size: 1.25rem;
}

.dcfm-root .dcfm-receipt__title {
    margin: 0;
    color: var(--dcfm-paper-ink);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.35;
}

.dcfm-root .dcfm-receipt__subtitle,
.dcfm-root .dcfm-receipt__date,
.dcfm-root .dcfm-receipt__footer p {
    color: var(--dcfm-paper-muted);
    font-size: 0.72rem;
}

.dcfm-root .dcfm-receipt__subtitle {
    margin: 5px 0 0;
}

.dcfm-root .dcfm-receipt__date {
    margin-top: 7px;
}

.dcfm-root .dcfm-receipt__divider {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 18px 0;
}

.dcfm-root .dcfm-receipt__divider::before,
.dcfm-root .dcfm-receipt__divider::after,
.dcfm-root .dcfm-receipt__divider span {
    content: "";
    height: 1px;
    flex: 1;
    background: repeating-linear-gradient(90deg, rgba(39, 32, 25, 0.55) 0 5px, transparent 5px 9px);
}

.dcfm-root .dcfm-receipt__divider span {
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--dcfm-paper-ink);
}

.dcfm-root .dcfm-receipt__divider--double {
    margin-top: 16px;
    margin-bottom: 13px;
}

.dcfm-root .dcfm-receipt__lines {
    display: grid;
    gap: 13px;
}

.dcfm-root .dcfm-receipt-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    align-items: baseline;
}

.dcfm-root .dcfm-receipt-line__name {
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dcfm-root .dcfm-receipt-line__total {
    font-size: 0.79rem;
    font-weight: 800;
    white-space: nowrap;
}

.dcfm-root .dcfm-receipt-line__meta {
    grid-column: 1 / -1;
    color: var(--dcfm-paper-muted);
    font-size: 0.68rem;
}

.dcfm-root .dcfm-receipt__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
}

.dcfm-root .dcfm-receipt__footer {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 24px;
    text-align: center;
}

.dcfm-root .dcfm-receipt__footer p {
    margin: 0;
}

.dcfm-root .dcfm-receipt__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid rgba(161, 70, 60, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #7f342c;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.dcfm-root .dcfm-receipt__clear svg {
    width: 17px;
    height: 17px;
}

.dcfm-root .dcfm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dcfm-root [hidden] {
    display: none !important;
}

.dcfm-root .dcfm-category-card:focus-visible,
.dcfm-root .dcfm-icon-button:focus-visible,
.dcfm-root .dcfm-add-button:focus-visible,
.dcfm-root .dcfm-stepper__button:focus-visible,
.dcfm-root .dcfm-order-bar:focus-visible,
.dcfm-root .dcfm-receipt__close:focus-visible,
.dcfm-root .dcfm-receipt__clear:focus-visible {
    outline: 2px solid var(--dcfm-accent-strong);
    outline-offset: 3px;
}

@media (min-width: 560px) {
    .dcfm-root .dcfm-shell {
        padding: 26px 22px 118px;
    }

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

    .dcfm-root .dcfm-category-rail {
        margin-inline: -22px;
        padding-inline: 22px;
    }

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

@media (min-width: 900px) {
    .dcfm-root .dcfm-shell {
        padding: 34px 32px 120px;
    }

    .dcfm-root .dcfm-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .dcfm-root .dcfm-category-rail {
        margin-inline: -32px;
        padding-inline: 32px;
    }

    .dcfm-root .dcfm-product {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .dcfm-root .dcfm-product__media {
        min-height: 132px;
    }

    .dcfm-root .dcfm-modal {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcfm-root .dcfm-category-card,
    .dcfm-root .dcfm-category-card__media img,
    .dcfm-root .dcfm-category-tab,
    .dcfm-root .dcfm-add-button {
        transition: none;
    }
}
