/* ==========================================================================
   SAHİL — Ege sahili / beach club (dm-tema F14)
   Gün batımı güneşi + dalga bandı, Ege kapısı biçimli (kemer) logo ve ürün
   kartları, iki sütun ızgara (Forum + Manrope). Açık varsayılan; "Koyu"
   seçilirse gece sahili. Vurgu: --sh-acc = marka rengi, --sh-sun = ikinci vurgu.
   ========================================================================== */
:root {
    --sh-bg: #F4F7F7;
    --sh-sky: #E6F1F5;
    --sh-card: #FFFFFF;
    --sh-ink: #10324A;
    --sh-muted: #587385;
    --sh-line: #DCE7EA;
    --sh-acc: var(--theme-color-1, #1B6CA8);
    --sh-acc-soft: var(--theme-color-0_08, rgba(27, 108, 168, .08));
    --sh-acc-35: var(--theme-color-0_35, rgba(27, 108, 168, .35));
    --sh-on-acc: var(--theme-on-accent, #fff);
    --sh-sun: var(--theme-accent2-1, #E4572E);
    --sh-shadow: rgba(16, 50, 74, .10);
    --sh-display: 'Forum', 'Times New Roman', serif;
    --sh-text: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}
body[data-theme-mode="dark"] {
    --sh-bg: #0B1D2B;
    --sh-sky: #10283A;
    --sh-card: #10283A;
    --sh-ink: #EAF2F6;
    --sh-muted: #9DB3C1;
    --sh-line: rgba(234, 242, 246, .12);
    --sh-acc: var(--theme-accent-dark-1, #5FA8DC);
    --sh-acc-soft: var(--theme-accent-dark-0_12, rgba(95, 168, 220, .12));
    --sh-acc-35: var(--theme-accent-dark-0_35, rgba(95, 168, 220, .35));
    --sh-on-acc: var(--theme-on-accent-dark, #111);
    --sh-sun: var(--theme-accent2-dark-1, #F08A6A);
    --sh-shadow: rgba(0, 0, 0, .35);
}

body {
    margin: 0; color: var(--sh-ink);
    font-family: var(--sh-text);
    -webkit-font-smoothing: antialiased;
    background: var(--sh-bg);
}
body.noscroll { overflow: hidden; }

.overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(8, 28, 42, .5);
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* --- Başlık: gökyüzü, güneş, dalga, kemer kapı --- */
.sh-head { position: relative; text-align: center; padding: 0 18px 8px; }
.sh-scene {
    position: relative; display: block; height: 138px; margin: 0 -18px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sh-sky), var(--sh-bg));
}
.sh-sun {
    position: absolute; left: 50%; bottom: 8px;
    width: 104px; height: 104px; margin-left: -52px; border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--sh-sun) 70%, #fff) 0%, var(--sh-sun) 70%);
    background-color: var(--sh-sun);
    opacity: .92;
}
.sh-sea {
    position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
    background: var(--sh-acc);
    -webkit-mask: radial-gradient(13px at 50% 0, transparent 97%, #000) 0 0 / 26px 100% repeat-x;
            mask: radial-gradient(13px at 50% 0, transparent 97%, #000) 0 0 / 26px 100% repeat-x;
}
.sh-sea-2 {
    height: 26px; opacity: .55; background: var(--sh-acc-35);
    -webkit-mask-position: 13px 0; mask-position: 13px 0;
    bottom: 22px;
}
.sh-door {
    position: relative; z-index: 2;
    display: inline-block; margin-top: -58px;
    width: 92px; height: 110px; padding: 5px; box-sizing: border-box;
    background: var(--sh-card);
    border-radius: 46px 46px 12px 12px;
    box-shadow: 0 14px 30px var(--sh-shadow);
}
.sh-logo {
    width: 100%; height: 100%; display: block; object-fit: cover;
    border-radius: 41px 41px 8px 8px;
}
.sh-name {
    margin: 14px 0 0;
    font-family: var(--sh-display); font-weight: 400;
    font-size: clamp(32px, 9.5vw, 46px); line-height: 1.05; letter-spacing: .01em;
    color: var(--sh-ink); text-wrap: balance;
}
.sh-sub { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--sh-muted); }
.sh-actions {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-wrap: wrap; margin-top: 16px;
}
.sh-pill {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    background: var(--sh-card); color: var(--sh-ink);
    border: 1px solid var(--sh-line); border-radius: 999px;
    padding: 9px 15px; font-family: var(--sh-text); font-size: 12.5px; font-weight: 700; line-height: 1;
    box-shadow: 0 4px 12px var(--sh-shadow);
}
.sh-pill i { color: var(--sh-acc); font-size: 14px; }
.sh-pill:focus-visible, .sh-chip:focus-visible, .sh-add:focus-visible, .sh-servis:focus-visible, .sh-cartbar-btn:focus-visible {
    outline: 2px solid var(--sh-acc); outline-offset: 2px;
}

/* dil menüsü */
.sh-lang { position: relative; }
.sh-lang-menu {
    display: none; position: absolute; inset-inline-end: 0; inset-inline-start: auto; text-align: start;
    top: calc(100% + 8px); z-index: 960;
    min-width: 150px; max-width: calc(100vw - 24px); padding: 6px;
    background: var(--sh-card); border: 1px solid var(--sh-line); border-radius: 16px;
    box-shadow: 0 18px 40px var(--sh-shadow);
}
.sh-lang-menu.show { display: block; }
.sh-lang-menu .dropdown-item {
    display: block; padding: 9px 12px; border-radius: 10px; background: transparent;
    color: var(--sh-ink); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.sh-lang-menu .dropdown-item:hover, .sh-lang-menu .dropdown-item:focus { background: var(--sh-acc-soft); color: var(--sh-ink); }

/* --- Arama --- */
.sh-search-row { padding: 12px 16px 0; max-width: 1040px; margin: 0 auto; box-sizing: border-box; }
.sh-search-row[hidden] { display: none !important; }
.sh-search-row input {
    width: 100%; box-sizing: border-box; outline: none;
    background: var(--sh-card); color: var(--sh-ink);
    border: 1px solid var(--sh-line); border-radius: 999px;
    padding: 12px 18px; font-family: var(--sh-text); font-size: 15px; font-weight: 500;
}
.sh-search-row input::placeholder { color: var(--sh-muted); opacity: 1; }
.sh-search-row input:focus { border-color: var(--sh-acc); }

/* --- Çipler --- */
.sh-chips {
    position: sticky; top: 0; z-index: 500;
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 12px 16px;
    background: linear-gradient(180deg, var(--sh-bg) 82%, transparent);
}
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chip {
    flex: 0 0 auto; cursor: pointer; white-space: nowrap;
    background: var(--sh-card); color: var(--sh-ink);
    border: 1px solid var(--sh-line); border-radius: 999px;
    padding: 10px 17px; font-family: var(--sh-text); font-size: 13.5px; font-weight: 700; line-height: 1;
    transition: background .2s, color .2s, border-color .2s;
}
.sh-chip.active { background: var(--sh-acc); border-color: var(--sh-acc); color: var(--sh-on-acc); }

/* --- Gövde --- */
.sh-body { max-width: 1040px; margin: 0 auto; padding: 0 16px 150px; box-sizing: border-box; }
.sh-cat-head { margin: 24px 2px 14px; }
.sh-cat-title {
    margin: 0; font-family: var(--sh-display); font-weight: 400;
    font-size: 31px; line-height: 1.1; color: var(--sh-ink);
}
.sh-cat-title::after { /* dalgalı çizgi */
    content: ''; display: block; width: 92px; height: 8px; margin-top: 8px;
    background: var(--sh-acc);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 16px 8px repeat-x;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Cpath d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 16px 8px repeat-x;
}
.sh-cat-count { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--sh-muted); }
.sh-subhead {
    margin: 20px 2px 10px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--sh-muted);
}
.sh-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }

/* --- Ürün: kemer kart --- */
.sh-item {
    position: relative; display: flex; flex-direction: column;
    background: var(--sh-card);
    /* kemer: yatay %50 + dikey ~genişliğin yarısı (tüm köşeler oransal küçülmesin diye 999px değil) */
    border-radius: 50% 50% 18px 18px / 29% 29% 18px 18px;
    padding: 7px 7px 12px;
    box-shadow: 0 10px 24px var(--sh-shadow);
}
.sh-item-media {
    position: relative; aspect-ratio: 4 / 5; cursor: pointer;
    border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; overflow: hidden;
    background: var(--sh-acc-soft);
}
.sh-item-media img, .sh-item-noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-item-noimg { display: flex; align-items: center; justify-content: center; color: var(--sh-acc); font-size: 30px; }
.sh-item-type {
    position: absolute; top: 30%; inset-inline-end: 8px;
    width: 18px; height: 18px; padding: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); font-size: 6.5px;
}
.sh-item-type.veg { color: #2F9E44; }
.sh-item-type.nonveg { color: #D9480F; }
.sh-kcal {
    position: absolute; left: 8px; bottom: 8px;
    background: rgba(255, 255, 255, .92); color: #10324A;
    border-radius: 999px; padding: 4px 9px; font-size: 10.5px; font-weight: 800;
}
[dir="rtl"] .sh-kcal { left: auto; right: 8px; }
.sh-item-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 6px 0; min-width: 0; }
.sh-item-name {
    margin: 0; cursor: pointer;
    font-family: var(--sh-display); font-weight: 400;
    font-size: 19px; line-height: 1.12; color: var(--sh-ink);
}
.sh-item-desc {
    margin: 5px 0 0; cursor: pointer;
    font-size: 12.5px; line-height: 1.5; color: var(--sh-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sh-body .sh-algs { display: inline-flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.sh-body .sh-algs i {
    width: 21px; height: 21px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sh-bg); border: 1px solid var(--sh-line);
    font-style: normal; font-size: 9px; font-weight: 700; color: var(--sh-muted);
}
.sh-item-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 10px;
}
.sh-item-price { font-size: 16px; font-weight: 800; color: var(--sh-ink); font-variant-numeric: tabular-nums; }
.sh-add {
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--sh-acc); color: var(--sh-on-acc); border: 0;
    font-size: 17px; box-shadow: 0 8px 18px var(--sh-acc-35);
    transition: transform .12s;
}
.sh-add:active { transform: scale(.92); }

.sh-no-result[hidden] { display: none !important; }
.sh-no-result { text-align: center; padding: 28px 0; font-size: 14px; font-weight: 600; color: var(--sh-muted); }
.sh-brand { text-align: center; padding: 28px 0 0; font-size: 11.5px; font-weight: 600; color: var(--sh-muted); opacity: .8; }
.sh-body .dm-empty-cat { grid-column: 1 / -1; color: var(--sh-muted); }

#menuDetail .sh-algs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
#menuDetail .sh-algs i {
    font-style: normal; font-size: 12px; font-weight: 700; color: #333;
    background: #F1F1F3; border-radius: 999px; padding: 3px 9px;
}

/* --- Sepet çubuğu --- */
.sh-cartbar {
    position: fixed; left: 14px; right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom)); z-index: 900;
}
.sh-cartbar.none { display: none; }
.sh-cartbar-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 54px; cursor: pointer;
    background: var(--sh-acc); color: var(--sh-on-acc);
    border: 0; border-radius: 999px; padding: 0 8px 0 10px;
    font-family: var(--sh-text); font-size: 14px; font-weight: 800;
    box-shadow: 0 14px 30px var(--sh-acc-35);
}
.sh-cartbar-count {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 8px 12px; font-size: 12.5px;
}
.sh-cartbar-count::before { /* güneş noktası */
    content: ''; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
    background: var(--sh-sun); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7);
}
.sh-cartbar-price {
    background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 8px 14px;
    font-variant-numeric: tabular-nums;
}

/* --- Servis --- */
.sh-servis {
    position: fixed; inset-inline-end: 14px; bottom: 84px; z-index: 890; cursor: pointer;
    background: var(--sh-card); color: var(--sh-ink);
    border: 1px solid var(--sh-line); border-radius: 999px;
    padding: 11px 17px; font-family: var(--sh-text); font-size: 13px; font-weight: 800; line-height: 1;
    box-shadow: 0 12px 28px var(--sh-shadow);
}
.sh-servis i { color: var(--sh-acc); }

.dm-preview-bar { bottom: 140px !important; }

@media (max-width: 340px) {
    .sh-list { grid-template-columns: 1fr; }
}
@media (min-width: 640px) {
    .sh-scene { height: 170px; }
    .sh-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
    .sh-chips { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
    .sh-cartbar { left: 50%; right: auto; width: min(640px, calc(100vw - 28px)); transform: translateX(-50%); }
    .sh-servis { inset-inline-end: 24px; }
}
@media (min-width: 980px) {
    .sh-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .sh-chip, .sh-add { transition: none; }
}
