/*
Theme Name: Tepsi Et QR Menü
Author: Ece Uzel
Version: 3.1.0
*/
* { box-sizing:border-box; }
body { margin:0; background:#171412; color:#fff7ed; font-family:Arial,Helvetica,sans-serif; }
.photo,.shade,.menu-background-logo {
    position:fixed; top:0; bottom:0; left:50%;
    width:min(100%,430px); transform:translateX(-50%); pointer-events:none;
}
.photo {
    z-index:0;
    background:radial-gradient(ellipse at 50% 0%,#b84d4330,transparent 65%),
        repeating-linear-gradient(45deg,transparent 0 26px,#ffebd704 26px 27px),
        repeating-linear-gradient(-45deg,transparent 0 26px,#ffebd704 26px 27px),#471a22;
}
/* Logo yalnızca ortadaki menü alanında görünür. */
.menu-background-logo {
    display:flex !important; align-items:center; justify-content:center;
    z-index:1; overflow:hidden;
}
.menu-background-logo img {
    display:block; width:140%; max-width:none; height:auto; flex-shrink:0;
    opacity:.13; filter:blur(13px); transform:rotate(-10deg);
}
.shade { z-index:2; background:linear-gradient(#230c132e,#14050a80); }
.menu {
    position:relative; z-index:3; width:100%; max-width:430px;
    min-height:100svh; margin:auto; padding:16px 16px 24px;
    display:flex; flex-direction:column; box-shadow:0 0 45px #0005;
}
.heading {
    flex:1; min-height:170px; display:flex; flex-direction:column;
    align-items:center; justify-content:center; padding:10px 0 20px; text-align:center;
}
.logo,.logo-fallback {
    width:140px; height:140px; flex-shrink:0; border-radius:50%;
    border:1px solid #ffffff80; object-fit:contain; box-shadow:0 5px 24px #0004;
}
.logo-fallback {
    display:grid; place-items:center; background:#671e25;
    font-size:21px; font-weight:bold; padding:12px; overflow-wrap:anywhere;
}
.eyebrow { margin:12px 0 0; font-size:9px; letter-spacing:2px; line-height:1.6; }
.sr-only {
    position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden;
    clip:rect(0,0,0,0); white-space:nowrap;
}
.category-list {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:start; gap:8px; flex-shrink:0;
}
.category {
    min-width:0; overflow:hidden; border:1px solid #ffebd72e;
    border-radius:12px; background:rgba(35,12,19,.88);
}
.category summary {
    min-height:82px; display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:8px; padding:10px 6px; list-style:none;
    cursor:pointer; text-align:center; -webkit-tap-highlight-color:transparent;
}
.category summary::-webkit-details-marker { display:none; }
.category-icon { width:30px; height:30px; flex-shrink:0; }
.category-name {
    font-size:11px; font-weight:bold; letter-spacing:1px; line-height:1.5;
    text-transform:uppercase; overflow-wrap:anywhere;
}
.category-arrow { display:none; }
.category[open] {
    grid-column:1/-1; overflow:visible; background:#230c13fa; border-color:#efb5a466;
}
.category[open] > summary {
    position:sticky; top:0; z-index:20; min-height:70px;
    flex-direction:row; justify-content:flex-start; gap:13px; padding:15px;
    border-bottom:1px solid #ffffff24; background:#230c13;
    border-radius:12px 12px 0 0; box-shadow:0 5px 15px #0003;
}
.category[open] .category-name { flex:1; min-width:0; text-align:left; }
.category[open] .category-arrow {
    display:block; flex-shrink:0; padding:9px 10px; border:1px solid #efb5a459;
    border-radius:8px; color:#efb5a4; font-size:11px; font-weight:bold;
    line-height:1.4; letter-spacing:0; white-space:nowrap;
}
.products { display:grid; gap:12px; padding:14px; }
.product {
    display:flex; align-items:center; gap:12px; padding:12px;
    border:1px solid #ffffff19; border-radius:10px; background:#ffffff0b;
}
.product-trigger {
    width:100%; margin:0; color:inherit; font:inherit; text-align:left;
    cursor:pointer; appearance:none; -webkit-tap-highlight-color:transparent;
}
.product-trigger:hover { background:#ffffff12; border-color:#efb5a44d; }
.product-image-button,.product-placeholder,.product-trigger > .product-image {
    flex:0 0 62px; width:62px; height:62px; padding:0; border:0;
    border-radius:50%; overflow:hidden; background:#603139; color:#e9bfae;
}
.product-image-button { cursor:pointer; }
.product-placeholder { display:grid; place-items:center; font-size:25px; }
.product-image { display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }
.product-body { display:block; flex:1; min-width:0; }
.product-top { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.product-name { margin:0; font-size:14px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.product-price { flex-shrink:0; font-size:13px; font-weight:bold; color:#efb5a4; white-space:nowrap; }
.product-description {
    display:block; margin:5px 0 0; font-size:11px; line-height:1.5;
    color:#d4c8c0; white-space:pre-line; overflow-wrap:anywhere;
}
.menu-footer { flex-shrink:0; padding-top:14px; text-align:center; font-size:9px; line-height:1.8; color:#eaded2; }
.menu:has(.category[open]) .heading { flex:none; min-height:180px; }
.empty { font-size:13px; line-height:1.6; text-align:center; color:#eaded2; }
/* Telefonda kaydırılabilen ürün detay kartı. */
.image-dialog.product-dialog {
    width:calc(100% - 32px); max-width:390px; max-height:85vh; max-height:85dvh;
    margin:auto; padding:0; overflow:auto; overscroll-behavior:contain;
    border:1px solid #efb5a44d; border-radius:18px;
    background:#230c13; color:#fff7ed; box-shadow:0 20px 70px #0008;
}
.product-dialog::backdrop { background:#080306d9; backdrop-filter:blur(5px); }
.product-dialog [hidden] { display:none !important; }
.product-dialog .dialog-top {
    position:sticky; top:0; z-index:2; display:flex; align-items:center;
    justify-content:space-between; gap:12px; margin:0; padding:14px 16px;
    background:#230c13; border-bottom:1px solid #ffffff1a;
}
.dialog-top h2 { font-size:17px; line-height:1.4; margin:0; overflow-wrap:anywhere; }
.dialog-close {
    display:grid; place-items:center; width:40px; height:40px; flex-shrink:0;
    padding:0; border:1px solid #ffffff24; border-radius:50%;
    background:#ffffff08; color:#fff7ed; font-size:25px; cursor:pointer;
}
.product-dialog .product-dialog-image {
    display:block; width:100%; height:220px; max-height:30dvh;
    object-fit:contain; border-radius:0; background:#18090f;
}
.product-dialog .product-dialog-body { padding:18px; }
.product-dialog-price { margin:0 0 12px; font-size:20px; font-weight:700; color:#efb5a4; }
.product-dialog-description { font-size:14px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.product-facts { margin:18px 0 0; }
.product-facts > div { padding:12px 0; border-top:1px solid #efb5a433; }
.product-facts dt { font-size:12px; font-weight:700; color:#efb5a4; margin-bottom:6px; }
.product-facts dd { margin:0; font-size:14px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; }
.product-dialog.dialog-fallback { position:fixed; inset:16px; margin:auto; z-index:100000; }
button:focus-visible,summary:focus-visible { outline:2px solid #efb5a4; outline-offset:-3px; }
body.admin-bar .menu { min-height:calc(100svh - 32px); }
body.admin-bar .category[open] > summary { top:32px; }
@media(max-width:782px) {
    body.admin-bar .menu { min-height:calc(100svh - 46px); }
    body.admin-bar .category[open] > summary { top:46px; }
}
@media(max-width:600px) {
    body.admin-bar .category[open] > summary { top:0; }
}
@media(max-height:600px) {
    .menu { padding:10px 14px 24px; }
    .logo,.logo-fallback { width:105px; height:105px; }
    .heading { min-height:135px; padding:0 0 10px; }
    .category summary { min-height:66px; gap:5px; }
    .category-icon { width:25px; height:25px; }
    .menu-footer { padding-top:8px; }
}
@media(max-width:350px) {
    .product { gap:9px; padding:10px; }
    .product-image-button,.product-placeholder,.product-trigger > .product-image {
        flex-basis:50px; width:50px; height:50px;
    }
    .product-name { font-size:13px; }
    .product-price { font-size:12px; }
    .category-name { font-size:10px; }
    .category[open] > summary { gap:8px; padding:12px 10px; }
    .category[open] .category-arrow { padding:8px; font-size:10px; }
}

/* Fotoğraf üstte, üç bilgi kutusu altta olan ürün kartı. */
.image-dialog.product-dialog {
    border-radius:20px; background:#230c13; max-width:410px;
}
.product-dialog .dialog-close {
    position:sticky; top:12px; z-index:5; float:right;
    margin:12px 12px -52px 0; background:rgba(20,5,10,.85);
    border-color:rgba(255,255,255,.5); box-shadow:0 2px 12px #0004;
}
.product-dialog .product-dialog-image {
    width:100%; height:auto; aspect-ratio:4/3; max-height:none;
    object-fit:cover; display:block; background:#18090f;
}
.product-dialog .product-dialog-body { padding:22px 18px 20px; clear:both; }
.product-dialog-category {
    margin:0 0 12px; color:#efb565; font-size:11px; font-weight:700;
    text-transform:uppercase; letter-spacing:1.2px;
}
.product-dialog #dialog-title {
    margin:0 0 12px; font-size:25px; line-height:1.2;
    font-weight:700; letter-spacing:-.4px; overflow-wrap:anywhere;
}
.product-dialog .product-dialog-description {
    margin:0 0 22px; color:#dbcec7; font-size:14px; line-height:1.65;
}
.product-dialog .product-facts {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr);
    align-items:stretch; gap:8px; margin:20px 0 0;
}
.product-dialog .product-facts > div {
    min-width:0; padding:13px 7px; border:1px solid #ffffff0d;
    border-radius:13px; background:#ffffff09; text-align:center;
}
.product-dialog .product-facts dt {
    margin:0 0 7px; font-size:12px; color:#efb565; font-weight:700;
}
.product-dialog .product-facts dd {
    margin:0; color:#fff7ed; font-size:12px; line-height:1.5;
    font-weight:400; overflow-wrap:anywhere; white-space:pre-line;
}
@media(max-width:350px) {
    .product-dialog .product-dialog-body { padding:18px 12px; }
    .product-dialog #dialog-title { font-size:22px; }
    .product-dialog .product-facts { gap:6px; }
    .product-dialog .product-facts > div { padding:12px 5px; }
}

.menu-background-logo {
    display: flex !important;
    z-index: 1;
}

.menu-background-logo img {
    width: 125%;
    opacity: 1;
    filter: blur(7px);
    transform: none;
}

.shade {
    background: linear-gradient(#230c1310, #14050a55);
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
    color: #f0c795;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: .5px;
    line-height: 1.5;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(
        90deg, transparent, #f0c795
    );
}

.eyebrow::after {
    transform: rotate(180deg);
}
