/* =========================================================
   ŞefPos QR — Premium hospitality menu (mobile-first)
   Accent: restoran panelinden gelen --theme-color-* değişkenleri
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
    --sf-ink: #12141a;
    --sf-muted: #6a7180;
    --sf-line: rgba(18, 20, 26, 0.08);
    --sf-surface: #ffffff;
    --sf-bg: #ebecef;
    --sf-radius: 20px;
    --sf-accent: var(--theme-color-1, #9a3412);
}

body.default {
    font-family: 'Manrope', system-ui, sans-serif !important;
    background:
        radial-gradient(1200px 500px at 10% -10%, var(--theme-color-0_12, rgba(0,0,0,.04)), transparent 55%),
        var(--sf-bg) !important;
    color: var(--sf-ink);
    -webkit-font-smoothing: antialiased;
}

#content {
    padding-bottom: 46px;
}

.content-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0 8px;
}

/* —— Sepet kapalı —— */
#view-order-wrapper,
.section-menu.sefpos-item .add-menu,
.menu_excerpt .add-item-button {
    display: none !important;
}

/* —— Top bar —— */
.navbar.bg-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border: 0;
    min-height: 52px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.navbar.bg-header .btn {
    color: #fff !important;
}

#call-the-waiter-btn {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 12px !important;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 11px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

#call-the-waiter-btn i {
    font-size: 20px;
    line-height: 1;
    color: #fff !important;
}

/* —— Hero —— */
.single-page-header.detail-header {
    margin: 0 !important;
    border-radius: 0 0 28px 28px !important;
    overflow: hidden;
    min-height: 168px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.single-page-header .container {
    padding-top: 18px !important;
    padding-bottom: 22px !important;
}

.single-page-header-inner {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px !important;
    padding: 12px 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex !important;
    flex-direction: column !important;
}

/* Mobilde tema.css negative margin ile yazı logo üstüne biniyordu — düzelt */
.single-page-header .left-side,
.single-page-header-inner .left-side {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100%;
}

.single-page-header .header-image,
.single-page-header-inner .header-image {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    flex: 0 0 72px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 2px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #fff;
    position: relative !important;
    z-index: 1;
}

.single-page-header .header-image img,
.single-page-header-inner .header-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.single-page-header .header-details,
.single-page-header-inner .header-details {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    position: relative;
    z-index: 2;
    padding-top: 0 !important;
}

.header-details h3 {
    font-family: 'Syne', 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.03em !important;
    text-transform: none !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--sf-ink) !important;
    display: block !important;
}

.header-details h3 span {
    display: block;
    margin-top: 4px;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.01em;
    opacity: 1;
    color: var(--sf-muted) !important;
}

.header-details ul {
    margin-top: 8px !important;
}

.header-details ul li {
    font-size: 0.72rem !important;
    font-weight: 500;
    opacity: 1;
    color: var(--sf-muted) !important;
}

.header-details ul li a {
    color: var(--sf-muted) !important;
}

.header-details ul li i {
    color: var(--sf-accent) !important;
}

/* —— Arama + yatay kategoriler —— */
.sefpos-toolbar {
    position: sticky;
    top: 52px;
    z-index: 55;
    margin: 0;
    padding: 10px 0 8px;
    background: rgba(235, 236, 239, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sf-line);
}

.sefpos-search-wrap {
    position: relative;
    margin: 0 14px 10px;
}

.sefpos-search-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-muted);
    pointer-events: none;
}

.sefpos-search {
    width: 100%;
    height: 46px;
    border: 1px solid var(--sf-line);
    border-radius: 14px;
    background: #fff;
    padding: 0 40px 0 42px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--sf-ink);
    box-shadow: 0 4px 14px rgba(18, 20, 26, 0.04);
    outline: none;
}

.sefpos-search:focus {
    border-color: var(--sf-accent);
    box-shadow: 0 0 0 3px var(--theme-color-0_18, rgba(0,0,0,.08));
}

.sefpos-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #eef0f3;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.sefpos-chip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 4px;
    scrollbar-width: none;
}

.sefpos-chip-scroll::-webkit-scrollbar {
    display: none;
}

.sefpos-chip {
    flex: 0 0 auto;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid var(--sf-line);
    background: #fff;
    color: var(--sf-ink);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(18, 20, 26, 0.04);
    transition: background .15s, color .15s, border-color .15s, transform .12s;
}

.sefpos-chip.active {
    background: var(--sf-accent);
    border-color: var(--sf-accent);
    color: #fff;
    box-shadow: 0 6px 16px var(--theme-color-0_35, rgba(0,0,0,.18));
}

.sefpos-search-empty {
    margin: 20px 16px;
    padding: 18px;
    text-align: center;
    color: var(--sf-muted);
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--sf-line);
}

/* Arama modu — tüm kategoriler, kapalı alt kategoriler açık */
body.sefpos-search-active .menu-category-item {
    display: block !important;
}

body.sefpos-search-active .accordion .collapse.sefpos-search-open,
body.sefpos-search-active .accordion .collapse.show {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

/* —— Sticky category —— */
.sefpos-cat-title {
    position: sticky;
    top: 148px;
    z-index: 45;
    margin: 14px 16px 6px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: none;
    color: var(--sf-ink);
    line-height: 1.15;
}

.sefpos-cat-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: var(--sf-accent);
}

.menu-category-item > .sefpos-cat-title {
    display: none !important;
}

.card-body.menu-category-item {
    padding: 6px 0 10px !important;
}

/* —— Product cards —— */
.section-menu.sefpos-item {
    margin: 0 14px 10px;
}

.section-menu.sefpos-item .menu-item.list {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--sf-surface);
    border-radius: var(--sf-radius);
    padding: 14px;
    border: 1px solid var(--sf-line);
    box-shadow: 0 10px 28px rgba(18, 20, 26, 0.045);
}

.section-menu.sefpos-item .menu-content {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.section-menu.sefpos-item .menu-detail {
    width: 100%;
}

.section-menu.sefpos-item .menu-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.section-menu.sefpos-item .menu-title h4 {
    margin: 0 !important;
    flex: 1;
    font-family: 'Syne', 'Manrope', sans-serif !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    color: var(--sf-ink) !important;
    text-transform: none !important;
}

.section-menu.sefpos-item .menu-price {
    margin: 0 !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    letter-spacing: -0.02em;
    color: var(--sf-accent) !important;
    white-space: nowrap;
    text-align: right;
    line-height: 1.2;
}

.price-from,
.price-options-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--sf-muted);
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

/* Image */
.section-menu.sefpos-item .menu-image {
    flex: 0 0 86px;
    width: 86px;
    height: 86px;
    margin: 0 !important;
    border-radius: 18px;
    overflow: hidden;
    background: #f4f4f6;
    border: 0;
    box-shadow: inset 0 0 0 1px var(--sf-line);
}

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

.menu-image-fallback {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(255,255,255,.7), transparent),
        linear-gradient(160deg, #f6f6f8, #e9eaee);
    color: #b5b8c0;
}

.menu-image-fallback svg {
    width: 26px;
    height: 26px;
    opacity: 0.8;
}

/* —— Description: tap to expand (no classic button) —— */
.sefpos-desc {
    position: relative;
    margin-top: 7px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sefpos-desc-body {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--sf-muted);
    font-weight: 500;
}

.sefpos-desc.is-clamped .sefpos-desc-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.sefpos-desc.is-clamped:not(.is-open)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.35em;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%);
    pointer-events: none;
}

.sefpos-desc.is-clamped:not(.is-open)::before {
    content: '⋯';
    position: absolute;
    right: 0;
    bottom: -1px;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--sf-accent);
    line-height: 1;
    background: #fff;
    padding-left: 10px;
}

.sefpos-desc.is-open .sefpos-desc-body {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.sefpos-desc-toggle {
    display: none !important;
}

/* Options */
.menu-options-preview {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f8fa;
    border-radius: 14px;
    border: 1px solid var(--sf-line);
}

.menu-options-preview .mop-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: #9399a6;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-options-preview .mop-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.84rem;
}

.menu-options-preview .mop-name {
    color: #3a4050;
    font-weight: 600;
}

.menu-options-preview .mop-price {
    color: var(--sf-accent);
    font-weight: 700;
    white-space: nowrap;
}

/* Sidebar — panel rengi / kurumsal açık panel */
#sidebarleft {
    background: #fff !important;
}

#sidebarleft .sidebar-header {
    background: var(--sf-accent) !important;
    min-height: 120px;
}

#sidebarleft .sidebar-header img {
    opacity: 0.95;
    object-fit: cover;
}

#sidebarleft .heading .title {
    color: var(--sf-muted) !important;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

#sidebarleft .components a {
    color: var(--sf-ink) !important;
    border-radius: 12px;
    margin: 3px 10px;
    padding: 11px 12px !important;
    font-weight: 600;
    font-size: 0.86rem;
}

#sidebarleft .components a i {
    color: var(--sf-accent) !important;
    opacity: 1;
}

#sidebarleft .components a.active,
#sidebarleft .components a:hover {
    background: var(--theme-color-0_12, rgba(0,0,0,.06)) !important;
    color: var(--sf-accent) !important;
    box-shadow: inset 3px 0 0 var(--sf-accent);
}

/* Footer — tam genişlik bar */
.sefpos-brand-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0;
    background: transparent;
    border: 0;
    pointer-events: none;
}

.sefpos-brand-footer a.sefpos-brand-inner {
    pointer-events: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0;
    border-top: 1px solid var(--sf-line);
    border-radius: 0;
    box-shadow: 0 -2px 12px rgba(18, 20, 26, 0.05);
}

.sefpos-brand-footer .sf-brand {
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sf-ink);
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.3;
}

.sefpos-brand-footer .sf-brand span {
    color: var(--sf-accent);
    font-weight: 700;
}

.sefpos-brand-footer .sf-dot {
    font-size: 0.65rem;
    color: #c4c8d0;
    line-height: 1;
}

.sefpos-brand-footer .sf-url {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--sf-muted);
    white-space: nowrap;
}

/* Accordion subcats */
.accordion .card-header {
    background: #fff !important;
    border-radius: 14px !important;
    margin: 0 14px 8px;
    border: 1px solid var(--sf-line) !important;
    box-shadow: none !important;
}

.accordion .card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}
