* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #f5f5f5;
    background-color: #120000;
    background-image: url("../uploads/background.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    background-attachment: fixed;
}

/* MOBİLDE GÖRSEL KIRPILMADAN SIĞSIN */
@media (max-width: 768px) {
    body {
        background-size: 100% 100%;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-color: #120000;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px;
    background: transparent;
}

/* ÜST RESTORAN KARTI */
.header {
    border-radius: 26px;
    padding: 28px;
    background: rgba(18, 18, 18, 0.76);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 25, 0.18);
}

.cover {
    height: 190px;
    background: #222 center/cover no-repeat;
    border-radius: 22px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
}

.logo {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: #2a2a2a center/cover no-repeat;
    flex: 0 0 82px;
    border: 1px solid rgba(255, 140, 25, 0.25);
}

h1 {
    margin: 0;
    font-size: 30px;
    color: #ffffff;
}

.meta {
    color: #d4d4d4;
    margin-top: 8px;
    line-height: 1.5;
}

/* KATEGORİ SEKME ALANI */
.tabs {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding: 6px 0 18px;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 2;
}

.tab {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.82);
    color: #ffb14a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    font-weight: 700;
    border: 1px solid rgba(255, 140, 25, 0.25);
}

/* KATEGORİLER */
.category {
    margin: 12px 0 26px;
}

.category h2 {
    font-size: 22px;
    margin: 0 0 14px;
    color: #ffffff;
}

/* ÜRÜN KARTLARI */
.product {
    display: flex;
    gap: 14px;
    background: rgba(18, 18, 18, 0.76);
    border-radius: 20px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 140, 25, 0.18);
}

.product-img {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: #2a2a2a center/cover no-repeat;
    flex: 0 0 96px;
}

.product h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.product p {
    margin: 7px 0;
    color: #d4d4d4;
    line-height: 1.4;
}

.price {
    font-weight: 800;
    font-size: 18px;
    margin-top: 8px;
    color: #ffb14a;
}

.empty {
    text-align: center;
    background: rgba(18, 18, 18, 0.76);
    border-radius: 20px;
    padding: 30px;
    color: #d4d4d4;
    border: 1px solid rgba(255, 140, 25, 0.18);
}

/* ADMIN PANEL */
.admin-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px;
    background: transparent;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-nav a,
.btn,
button.btn,
input[type="submit"].btn {
    background: #ff8c1a;
    color: #111111;
    border: 1px solid #ff8c1a;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-block;
    cursor: pointer;
    font-weight: 700;
}

.admin-nav a.light,
.btn.light,
a.btn.light,
button.btn.light {
    background: #1f1f1f;
    color: #ff9f1c;
    border: 1px solid #ff9f1c;
}

.admin-top .btn.light,
.admin-top a,
.admin-top .btn {
    background: #1f1f1f;
    color: #ff9f1c;
    border: 1px solid #ff9f1c;
}

.admin-nav a:hover,
.btn:hover,
button:hover {
    opacity: 0.92;
}

/* ADMIN KARTLAR */
.card {
    background: rgba(18, 18, 18, 0.76);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 140, 25, 0.18);
}

/* FORM ALANLARI */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 140, 25, 0.28);
    border-radius: 10px;
    margin: 6px 0 12px;
    font-size: 15px;
    background: #111111;
    color: #f5f5f5;
}

input[type="file"] {
    color: #f5f5f5;
    background: #111111;
    border: 1px solid rgba(255, 140, 25, 0.28);
}

input[type="file"]::file-selector-button {
    background: #ff8c1a;
    color: #111111;
    border: none;
    padding: 8px 12px;
    margin-right: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

label {
    font-weight: 700;
    font-size: 14px;
    color: #f5f5f5;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* TABLOLAR */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 18, 18, 0.76);
    border-radius: 14px;
    overflow: hidden;
}

td,
th {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-align: left;
    color: #f5f5f5;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notice {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 140, 25, 0.16);
    color: #ffb14a;
    margin-bottom: 14px;
}

.login {
    max-width: 420px;
    margin: 80px auto;
}

/* MOBİL */
@media (max-width: 700px) {
    .container {
        padding: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }

    .cover {
        height: 145px;
    }

    .product-img {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .product {
        padding: 12px;
        gap: 12px;
    }
}

/* PRODUCT DETAIL MODAL - FIXED */

.product {
    cursor: pointer;
}

.product-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.82) !important;
    padding: 18px !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-modal.active {
    display: flex !important;
}

.product-modal-content {
    width: 100% !important;
    max-width: 520px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    background: rgba(18, 18, 18, 0.98) !important;
    border-radius: 24px !important;
    position: relative !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 140, 25, 0.35) !important;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.75) !important;
}

.product-modal-img {
    width: 100% !important;
    height: 300px !important;
    background-color: #222 !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    display: block;
}

.product-modal-body {
    padding: 22px !important;
}

.product-modal-body h3 {
    margin: 0 0 10px !important;
    font-size: 25px !important;
    color: #ffffff !important;
}

.product-modal-body p {
    margin: 0 0 16px !important;
    color: #d4d4d4 !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
}

.product-modal-price {
    color: #ffb14a !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.product-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    background: rgba(0,0,0,0.75) !important;
    color: #ffffff !important;
    font-size: 26px !important;
    line-height: 34px !important;
    cursor: pointer !important;
    z-index: 1000000 !important;
    padding: 0 !important;
}

body.modal-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .product-modal {
        padding: 14px !important;
    }

    .product-modal-content {
        max-width: 94vw !important;
        max-height: 84vh !important;
        border-radius: 22px !important;
    }

    .product-modal-img {
        height: 250px !important;
    }

    .product-modal-body {
        padding: 18px !important;
    }

    .product-modal-body h3 {
        font-size: 22px !important;
    }

    .product-modal-price {
        font-size: 22px !important;
    }
}

#productPopupOverlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 999999999;
    background: rgba(0,0,0,0);
    padding: 18px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, background .28s ease, visibility .28s ease;
}

#productPopupOverlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0,0,0,0.82);
}

#productPopupBox {
    width: 100%;
    max-width: 520px;
    max-height: 86vh;
    overflow-y: auto;
    background: #151515;
    border-radius: 24px;
    border: 1px solid rgba(255,140,25,0.35);
    box-shadow: 0 20px 70px rgba(0,0,0,0.75);
    color: #fff;
    position: relative;

    opacity: 0;
    transform: translateY(22px) scale(.94);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}

#productPopupOverlay.show #productPopupBox {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ANA SAYFA TANITIM ALANI */

.promo-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.promo-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 140, 25, 0.16);
    color: #ffb14a;
    border: 1px solid rgba(255, 140, 25, 0.30);
    font-weight: 800;
    margin-bottom: 16px;
}

.promo-hero h1 {
    font-size: 42px;
    line-height: 1.08;
    margin-bottom: 14px;
}

.promo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.promo-btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 12px;
    background: #ff8c1a;
    color: #111;
    font-weight: 800;
    border: 1px solid #ff8c1a;
}

.promo-btn.secondary {
    background: rgba(20,20,20,0.78);
    color: #ffb14a;
    border: 1px solid rgba(255, 140, 25, 0.35);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.promo-card {
    background: rgba(18, 18, 18, 0.76);
    border: 1px solid rgba(255, 140, 25, 0.18);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.promo-card h3 {
    margin: 0 0 8px;
    color: #fff;
}

.promo-card p {
    margin: 0;
    color: #d4d4d4;
    line-height: 1.5;
}

@media(max-width:768px) {
    .promo-hero {
        min-height: 320px;
    }

    .promo-hero h1 {
        font-size: 32px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-actions {
        flex-direction: column;
    }

    .promo-btn {
        text-align: center;
    }
}

.category-note {
    display: inline-block;
    margin: -4px 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 140, 25, 0.18);
    color: #ffb14a;
    border: 1px solid rgba(255, 140, 25, 0.35);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .3px;
}

/* BAĞTAT ÖZEL ARKA PLAN */
body.restaurant-bagtat {
    background-image: url("../uploads/bagtat-bg.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    background-color: #120000 !important;
}

@media (max-width: 768px) {
    body.restaurant-bagtat {
        background-size: 100vw 100vh !important;
        background-position: center center !important;
        background-attachment: fixed !important;
    }
}