@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Peyda";
    src: url("../fonts/Peyda-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


:root {
    --pcafe-burnt: #180905;
    --pcafe-dark: #080403;
    --pcafe-brown: #4b210e;
    --pcafe-coffee: #7b3f1c;
    --pcafe-caramel: #c9823a;
    --pcafe-cream: #fff0cf;
    --pcafe-soft: #fff9ee;
    --pcafe-muted: #a88973;
}

html.pcafe-page-active,
body.pcafe-page-active {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
    background: radial-gradient(circle at top, rgba(201, 130, 58, .18), transparent 36%), linear-gradient(135deg, #0b0402 0%, #20100a 45%, #090403 100%) !important;
}

body.pcafe-page-active {
    position: fixed !important;
    inset: 0 !important;
}

.pcafe-root,
.pcafe-root * {
    box-sizing: border-box;
    font-family: "Peyda", Tahoma, Arial, sans-serif !important;
}

.pcafe-root {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 2147483647;
    background: radial-gradient(circle at top, rgba(201, 130, 58, .18), transparent 36%), linear-gradient(135deg, #0b0402 0%, #20100a 45%, #090403 100%);
    color: var(--pcafe-cream);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.pcafe-phone-shell {
    position: relative;
    width: min(430px, 100vw);
    height: 100dvh;
    min-height: 100vh;
    background: linear-gradient(180deg, #1b0b05 0%, #35190d 48%, #120805 100%);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 18px 92px;
    box-shadow: 0 0 0 1px rgba(255, 240, 207, .08), 0 28px 80px rgba(0, 0, 0, .45);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 240, 207, .35) transparent;
}

.pcafe-phone-shell::-webkit-scrollbar {
    width: 6px;
}

.pcafe-phone-shell::-webkit-scrollbar-thumb {
    background: rgba(255, 240, 207, .35);
    border-radius: 99px;
}

.pcafe-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.pcafe-bg-orb-one {
    width: 220px;
    height: 220px;
    background: rgba(201, 130, 58, .20);
    top: -90px;
    right: -80px;
}

.pcafe-bg-orb-two {
    width: 160px;
    height: 160px;
    background: rgba(255, 240, 207, .08);
    bottom: 40px;
    left: -70px;
}

.pcafe-logo-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px auto 8px;
    position: relative;
    z-index: 1;
}

.pcafe-logo-wrap img {
    width: min(310px, 86%);
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .36));
}

.pcafe-home-title {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: var(--pcafe-home-title-size, 31px);
    line-height: 1.2;
    margin: 4px 0 18px;
    color: var(--pcafe-home-title-color, #fff5df);
    font-weight: 900;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}

.pcafe-message {
    position: relative;
    z-index: 1;
    background: rgba(255, 249, 238, .08);
    border: 1px solid rgba(255, 240, 207, .16);
    color: #fbe5c0;
    border-radius: 18px;
    padding: 13px 15px;
    margin-bottom: 16px;
    line-height: 1.9;
    font-size: 14px;
}

.pcafe-message p {
    margin: 0 0 8px;
}

.pcafe-category-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 8px;
}

.pcafe-category-card {
    min-height: 68px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 249, 238, .98), rgba(255, 226, 177, .94));
    color: var(--pcafe-category-color, #2a1208);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 11px;
    font-size: var(--pcafe-category-font-size, 15.5px);
    font-weight: 900;
    border: 1px solid rgba(255, 240, 207, .42);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .22), inset 0 -4px 0 rgba(91, 42, 18, .10);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.pcafe-category-card:hover,
.pcafe-category-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .30), inset 0 -4px 0 rgba(91, 42, 18, .12);
    color: var(--pcafe-category-color, #2a1208);
    outline: none;
}

.pcafe-category-card.is-disabled {
    pointer-events: none;
    opacity: .58;
}

.pcafe-category-icon {
    display: none !important;
}

.pcafe-items-header {
    position: sticky;
    top: 0;
    z-index: 4;
    margin: -24px -18px 30px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, rgba(24, 9, 5, .99), rgba(38, 15, 8, .95));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 240, 207, .22);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .30), inset 0 -1px 0 rgba(255, 240, 207, .08);
    overflow: hidden;
}

.pcafe-items-header::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 207, .55), transparent);
}

.pcafe-mini-logo {
    width: 86px;
    min-width: 86px;
    display: block;
}

.pcafe-mini-logo img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .32));
}

.pcafe-items-header span {
    color: #caa786;
    font-size: 12px;
    font-weight: 800;
}

.pcafe-items-header h1 {
    margin: 2px 0 0;
    color: #fff4d9;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}

.pcafe-items-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 8px;
    padding-bottom: 18px;
}

.pcafe-menu-item-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 249, 238, .98), rgba(255, 233, 194, .96));
    border-radius: 24px;
    color: #2a1208;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 240, 207, .34);
    overflow: hidden;
}

.pcafe-menu-item-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(91, 42, 18, .08);
}

.pcafe-menu-item-image {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #4b210e, #b66a2c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff4d9;
    font-size: 32px;
    font-weight: 900;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12);
}

.pcafe-menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pcafe-menu-item-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pcafe-menu-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pcafe-menu-item-top h2 {
    margin: 0;
    font-size: var(--pcafe-item-name-font-size, 18px);
    line-height: 1.45;
    font-weight: 900;
    color: #2a1208;
}

.pcafe-menu-item-content p {
    margin: 6px 0 10px;
    font-size: var(--pcafe-item-ingredients-font-size, 12.5px);
    line-height: 1.75;
    color: #72513d;
}

.pcafe-discount-badge {
    background: #401907;
    color: #fff0cf;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.pcafe-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pcafe-price-row strong {
    color: #4b210e;
    font-size: var(--pcafe-item-price-font-size, 16px);
    font-weight: 900;
}

.pcafe-old-price {
    color: #a88973;
    font-size: var(--pcafe-item-old-price-font-size, 12px);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.pcafe-empty-public {
    background: rgba(255, 249, 238, .08);
    border: 1px solid rgba(255, 240, 207, .16);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    color: #f3d7ab;
    line-height: 1.8;
}

.pcafe-back-btn {
    position: sticky;
    bottom: 18px;
    z-index: 6;
    width: calc(100% - 18px);
    margin: 10px auto 0;
    min-height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff4d9, #d79b55);
    color: var(--pcafe-category-color, #2a1208);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .34);
    border: 1px solid rgba(255, 240, 207, .50);
}

.pcafe-back-btn:hover,
.pcafe-back-btn:focus {
    color: var(--pcafe-category-color, #2a1208);
    outline: none;
}

.pcafe-anim-up {
    opacity: 0;
    transform: translateY(30px);
    animation: pcafeFadeUp 1s cubic-bezier(.22, .9, .28, 1) forwards;
    animation-delay: var(--pcafe-delay, 0s);
}

@keyframes pcafeFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 700px) {
    .pcafe-phone-shell {
        margin: 0 auto;
        border-left: 1px solid rgba(255, 240, 207, .08);
        border-right: 1px solid rgba(255, 240, 207, .08);
    }
}

@media (max-width: 420px) {
    .pcafe-phone-shell {
        width: 100vw;
        padding-left: 15px;
        padding-right: 15px;
    }

    .pcafe-category-card {
        min-height: 64px;
        font-size: var(--pcafe-category-font-size, 15px);
        border-radius: 17px;
    }

    .pcafe-logo-wrap img {
        width: min(300px, 92%);
    }

    .pcafe-items-header {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* === v1.2.0 menu refinements === */
.pcafe-items-screen .pcafe-back-btn {
    width: min(74%, 270px);
    margin: 6px auto 2px;
    min-height: 44px;
    padding: 0 18px;
    bottom: 8px;
    font-size: 13px;
}

/* === v1.2.5 menu back button alignment === */
.pcafe-items-screen .pcafe-back-btn {
    width: calc(100% - 116px);
    max-width: 320px;
    min-width: 210px;
    margin: 8px 0 6px 18px;
    margin-right: auto;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    right: 0;
}
