/* AkyuzOrderQR - QR menu.
   Renkler kasa uygulamasindaki PosTheme ile ayni; iki uygulama tek urun gibi gorunur. */

:root {
    --primary: #E8590C;
    --primary-dark: #C74806;
    --ink: #171F2E;
    --ink-soft: #2A3448;
    --text: #161B22;
    --text-muted: #64748B;
    --surface: #FFFFFF;
    --background: #F6F7FA;
    --border: #E6EAF0;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Yazar stilleri tarayicinin [hidden] kuralini ezdigi icin (ornegin .product
   display:flex tasir), gizleme kurali burada acikca tanimlanir. Kategori ve
   arama filtreleri bu kurala dayanir. */
[hidden] { display: none !important; }


html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
    line-height: 1.45;
}

img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px 64px;
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    /* Gorsel yoksa ya da yuklenemezse zemin bu gradyana duser. */
    background: radial-gradient(120% 140% at 15% 0%, #2C3A55 0%, var(--ink) 55%, #0E1420 100%);
    color: #fff;
    padding: 56px 18px 64px;
    text-align: center;
}

/* Firmanin kendi urun fotografi bulaniklastirilarak zemin yapilir. Kenarlarda
   bulanik cerceve olusmamasi icin alan disari tasirilir ve buyutulur. */
.hero-photo {
    position: absolute;
    inset: -60px;
    width: calc(100% + 120px);
    height: calc(100% + 120px);
    object-fit: cover;
    object-position: center;
    filter: blur(26px) saturate(1.15);
    transform: scale(1.15);
    opacity: .85;
    z-index: 0;
    pointer-events: none;
}

/* Fotograf uzerine koyu perde: baslik her fotografta okunur kalmali. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 120% at 50% -10%, rgba(232, 89, 12, .18), transparent 60%),
        linear-gradient(180deg, rgba(14, 20, 32, .42) 0%, rgba(14, 20, 32, .58) 55%, rgba(14, 20, 32, .78) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -120px;
    width: 420px;
    height: 240px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(232, 89, 12, .35), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: #F0A26A;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0;
    font-size: clamp(30px, 7vw, 46px);
    font-weight: 700;
    letter-spacing: -.02em;
    text-shadow: 0 2px 18px rgba(8, 12, 20, .55);
}

.hero-subtitle {
    margin: 10px 0 0;
    color: #D5DDE9;
    font-size: 15px;
    text-shadow: 0 1px 10px rgba(8, 12, 20, .5);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.hero-chip {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(12, 18, 30, .38);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(4px);
    color: #DCE3EE;
    font-size: 12.5px;
}

/* ---------------------------------------------------------------- kategori cubugu */

.catbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 247, 250, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.catbar-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.catbar-inner::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}

.chip.is-active,
.chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------------------------------------------------------------- arama */

.searchbar {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 18px 6px;
}

.search-wrap { position: relative; }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    box-shadow: var(--shadow);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 89, 12, .14);
}

/* ---------------------------------------------------------------- kategoriler */

.category { padding-top: 26px; }

.category-head { margin-bottom: 14px; }

.category-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.category-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13.5px;
}

.items {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .items { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .items { grid-template-columns: repeat(3, 1fr); }
}

.item {
    display: flex;
    gap: 14px;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}

.item-photo {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #F1F4F9, #E4E9F1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-initials {
    font-size: 24px;
    font-weight: 700;
    color: #9AA7BC;
    letter-spacing: .02em;
}

.item-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.item-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 650;
}

.item-desc {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* ---------------------------------------------------------------- durumlar */

.empty, .no-result {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
}

.empty-icon { font-size: 46px; }

.no-result { padding: 40px 20px 0; }

/* ---------------------------------------------------------------- karsilama / hata */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
}

.landing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 40px 32px;
    text-align: center;
    max-width: 460px;
}

.landing-brand {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .08em;
    font-size: 14px;
    margin-bottom: 10px;
}

.landing-card h1 {
    margin: 0 0 10px;
    font-size: 22px;
}

.landing-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14.5px;
}

.landing-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.landing-label {
    display: block;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.landing-hint code {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: #F1F4F9;
    color: var(--ink);
    font-size: 14px;
}

.error-code {
    display: inline-block;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

/* ---------------------------------------------------------------- uretici serit */

/* Logo beyaz ve seffaf zeminli oldugu icin serit koyu tutulur; ust cubukla ayni
   renk kullanildigindan sayfanin geri kalaniyla catismaz. */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 16px 30px;
    background: var(--ink);
    color: #8C99AE;
    text-align: center;
}

.site-footer-logo {
    height: 26px;
    width: auto;
    opacity: .9;
}

.site-footer-copy {
    font-size: 11.5px;
    letter-spacing: .02em;
}

/* ------------------------------------------------------------------ lisans kapagi
   Suresi dolan menu silinmez, okunamaz hale getirilir: ziyaretci bir seyin gecici
   olarak durdugunu anlar, bos sayfa gormez. */

.licensed-out {
    filter: blur(7px) saturate(.55);
    /* Bulaniklik kenarlarda seffaflik birakir; olcek bunu disari tasirarak kapatir. */
    transform: scale(1.02);
    pointer-events: none;
    user-select: none;
}

.license-veil {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(23, 31, 46, .55);
    /* Bulanik zeminin ustunde ayrica koyu bir katman: metin her fotografta okunur. */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.license-card {
    width: min(440px, 100%);
    padding: 36px 30px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(16, 24, 40, .28);
    text-align: center;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #FDECE3;
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.license-title {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
    color: var(--text);
}

.license-text {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
}

.license-text strong { color: var(--text); }

.license-hint {
    margin: 0 0 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.license-action {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.license-action:hover { background: var(--primary-dark); }

/* Kapak acikken sayfa kaydirilmaz; arkadaki menu gezilebilir gorunmemelidir. */
body.license-locked { overflow: hidden; }
