* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== تعریف فونت‌های محلی ========== */
@font-face {
    font-family: 'AllFont';
    src: url('../fonts/all.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PMFont';
    src: url('../fonts/PM.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ========== استایل پایه با فونت AllFont ========== */
body {
    font-family: 'AllFont', system-ui, -apple-system, sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
}

/* ========== صفحه اصلی (لندینگ) ========== */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 10%, #1a1a1a, #000000);
}

.landing-container {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

/* عنوان کافه با فونت PMFont */
.cafe-name {
    font-family: 'PMFont', 'AllFont', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin: 1rem 0;
    font-weight: normal;
}

.welcome-msg {
    font-family: 'AllFont', sans-serif;
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1rem;
}

.hours-wrapper {
    margin-bottom: 2rem;
}

.hours {
    font-family: 'AllFont', sans-serif;
    font-size: 0.9rem;
    color: #aaaaaa;
}

.btn-enter {
    font-family: 'AllFont', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: black;
    text-decoration: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-enter:hover {
    background: #e0e0e0;
    transform: scale(1.02);
}

/* ========== هدر داخلی ========== */
.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    flex-wrap: wrap;
}

.logo-small svg {
    width: 45px;
    height: 45px;
}

/* عنوان کافه در هدر با فونت PMFont */
.cafe-title {
    font-family: 'PMFont', 'AllFont', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ========== دسته‌بندی‌ها ========== */
.categories-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #050505;
    justify-content: center;
}

.cat-btn {
    font-family: 'AllFont', sans-serif;
    background: transparent;
    border: 1px solid #333;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}

.cat-btn.active,
.cat-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

/* ========== آیتم‌های منو ========== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 25px;
}

.menu-item-card {
    background: #111111;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
    border-color: #444;
}

.item-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #1e1e1e;
}

.item-info {
    padding: 18px;
}

.item-name {
    font-family: 'AllFont', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.item-price {
    font-family: 'AllFont', sans-serif;
    color: #ffd966;
    font-weight: bold;
}

.item-desc {
    font-family: 'AllFont', sans-serif;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 8px;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 680px) {
    .items-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .cafe-title {
        font-size: 1.2rem;
    }

    .landing-container {
        padding: 1.5rem;
    }

    .cafe-name {
        font-size: 1.8rem;
    }

    .btn-enter {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ========== استایل‌های اضافی برای پنل مدیریت ========== */
.admin-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.btn-admin {
    font-family: 'AllFont', sans-serif;
    background: white;
    color: black;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
}

input,
textarea,
select {
    font-family: 'AllFont', sans-serif;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 20px;
}

button {
    font-family: 'AllFont', sans-serif;
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
}

.loading {
    font-family: 'AllFont', sans-serif;
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.error-msg {
    font-family: 'AllFont', sans-serif;
    text-align: center;
    padding: 40px;
    color: #ff8888;
}