@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #f2600c;
    --primary-dark: #c23f0a;
    --primary-light: #fdece0;
    --accent: #ffb703;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f5f6f8;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== HERO HEADER ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow-md);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -120px;
    left: -80px;
    animation: floatBlob 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    right: 10%;
    background: rgba(255,183,3,.2);
    animation: floatBlob 6s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 30%;
    background: rgba(255,255,255,.06);
    animation: floatBlob 10s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.1); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    border: 2px solid rgba(255,255,255,.5);
}

.hero-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    border: 2px solid rgba(255,255,255,.4);
}

.hero-title {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
    letter-spacing: -0.5px;
}

.hero-hours {
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-nav {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 28px;
}

.hero-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
}

.hero-nav-link.active,
.hero-nav-link:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.8);
}

/* ===== STICKY FILTER BAR ===== */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    margin-top: -1px;
    z-index: 50;
    transition: box-shadow .2s, position .01s;
}

.filter-bar.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown .25s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.filter-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 320px;
}

.search-wrap input {
    width: 100%;
    padding: 11px 40px 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.search-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: #fff;
}

.search-ico {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: #fff;
    padding: 9px 20px;
    border-radius: 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(242,96,12,.25);
}

.cat-pill.active:hover {
    color: #fff;
    background: var(--primary-dark);
}

/* ===== MENU SECTION ===== */
.menu-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.dish-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    animation: fadeInUp .4s ease both;
}

.dish-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.dish-card:hover .dish-image img {
    transform: scale(1.08);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dish-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f1f3;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.dish-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c4cc;
    font-size: 36px;
}

.dish-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.dish-body {
    padding: 16px 18px 18px;
}

.dish-name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.dish-desc {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dish-price {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.dish-currency {
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 2px;
}

.empty-plate {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.empty-plate i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    opacity: .5;
}

.empty-plate p {
    font-size: 15px;
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
    padding: 20px 24px 60px;
}

.contact-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.contact-info-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 140%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.contact-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.contact-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(242,96,12,.3);
}

.contact-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.contact-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.contact-link-highlight {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.contact-link-highlight:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cl-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.cl-text {
    flex: 1;
}

.contact-map {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer p { margin: 0; }

/* ===== FLOATING CALL BUTTON ===== */
.float-call {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(242,96,12,.4);
    z-index: 100;
    animation: pulseRing 2.5s infinite;
    transition: transform .2s;
}

.float-call:hover {
    transform: scale(1.1);
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(242,96,12,.5), 0 8px 24px rgba(242,96,12,.4); }
    70% { box-shadow: 0 0 0 16px rgba(242,96,12,0), 0 8px 24px rgba(242,96,12,.4); }
    100% { box-shadow: 0 0 0 0 rgba(242,96,12,0), 0 8px 24px rgba(242,96,12,.4); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-wrap { grid-template-columns: 1fr; }
    .hero-title { font-size: 24px; }
    .hero-inner { padding: 32px 20px 24px; }
    .menu-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
    .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
    .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dish-body { padding: 12px 14px 14px; }
    .dish-name { font-size: 15px; }
    .dish-price { font-size: 16px; }
    .filter-bar-inner { padding: 12px 16px; }
    .search-wrap { max-width: 100%; flex-basis: 100%; }
    .hero-nav { padding: 0 16px; gap: 20px; }
    .float-call { width: 50px; height: 50px; bottom: 18px; left: 18px; }
}

/* ===== ADMIN PANEL (unchanged) ===== */
.admin-body {
    background: var(--bg);
    min-height: 100vh;
}

.admin-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header a {
    color: #fff;
    text-decoration: none;
    opacity: .9;
}

.admin-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 4px;
    padding: 0 24px;
    overflow-x: auto;
}

.admin-nav a {
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.admin-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

.admin-container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 20px 60px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    font-size: 17px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input[type=text],
.form-group input[type=number],
.form-group input[type=password],
.form-group input[type=url],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.btn.secondary {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn.danger {
    background: #dc2626;
}

.btn.small {
    padding: 6px 14px;
    font-size: 13px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    text-align: right;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
}

.actions-cell {
    display: flex;
    gap: 6px;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.login-wrap {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.login-wrap h1 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.current-thumb {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== Color palette picker (admin) ===== */
.color-palette-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.color-pick-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.color-pick-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    background: #fff;
}

.color-pick-swatch {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.color-pick-swatch input[type=color] {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: none;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-pick-hex {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    direction: ltr;
    text-align: left;
    background: transparent;
}

.color-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.color-preset {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}

.color-preset:hover {
    transform: scale(1.12);
    border-color: var(--text-dark);
}

@media (max-width: 600px) {
    .color-palette-group { grid-template-columns: 1fr; }
}
