/* ═══════════════════════════════════════
   Cafe13 — سایت اصلی
   ═══════════════════════════════════════ */

:root {
    --gold: #d2a64a;
    --gold-soft: #f0d38a;
    --ink: #010101;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.09);
    --muted: #a8a29e;
    --radius: 1.4rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

button, a, .item-card {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--ink);
}

body {
    background: var(--ink);
    color: #f5f5f4;
    font-family: "Vazirmatn", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}

/*!* Scrollbar *!*/
/*::-webkit-scrollbar {*/
/*    width: 8px;*/
/*}*/

/*::-webkit-scrollbar-track {*/
/*    background: #010101;*/
/*}*/

/*::-webkit-scrollbar-thumb {*/
/*    background: linear-gradient(180deg, #d2a64a, #48270d);*/
/*    border-radius: 999px;*/
/*}*/

/*!* scrollbar افقی منو *!*/
/*.cats::-webkit-scrollbar {*/
/*    height: 3px;*/
/*}*/

/*.cats::-webkit-scrollbar-thumb {*/
/*    background: var(--gold);*/
/*    border-radius: 999px;*/
/*}*/

/*@media (max-width: 768px) {*/
/*    body::-webkit-scrollbar {*/
/*        display: none;*/
/*    }*/

/*    body {*/
/*        scrollbar-width: none;*/
/*    }*/
/*}*/

/* ── Layout ──────────────────────────── */
.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ── Hero ────────────────────────────── */
.hero {
    padding-top: 0;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Menu Section ────────────────────── */
.menu-section {
    padding: 2rem 0 4rem;
}

/* Categories */
.cats-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(1, 1, 1, .92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 -1rem;
    padding: 0 1rem;
}

.cats {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .6rem 0;
}

.cat-btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 .85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
    transition: color .18s, border-color .18s, background .18s;
}

.cat-btn:hover {
    border-color: rgba(210, 166, 74, .4);
    color: #f5f5f4;
}

.cat-btn.active {
    border-color: rgba(240, 211, 138, .6);
    background: linear-gradient(135deg, rgba(210, 166, 74, .28), rgba(123, 70, 28, .28));
    color: var(--gold-soft);
}

/* Hot note */
.hot-note {
    margin: 1rem 0;
    padding: .65rem 1rem;
    border: 1px solid rgba(210, 166, 74, .25);
    border-radius: var(--radius);
    background: rgba(210, 166, 74, .06);
    color: var(--gold-soft);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
}

/* Items Grid */
.items-grid {
    display: grid;
    gap: 0;
    margin-top: 1.5rem;
}

@media (min-width: 900px) {
    .items-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 2.5rem;
    }
}

/* Item Card */
.item-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    transition: border-color .18s, background .18s, transform .18s;
}

.item-card:hover {
    border-color: rgba(210, 166, 74, .36);
    background: linear-gradient(90deg, rgba(210, 166, 74, .04), transparent 64%);
    transform: translateY(-1px);
}

.item-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    background: radial-gradient(circle at 35% 20%, rgba(207, 164, 72, .35), transparent 38%),
    linear-gradient(145deg, #1b1208, #050403);
    display: grid;
    place-items: center;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.item-card:hover .item-thumb img {
    transform: scale(1.05);
}

.item-thumb .thumb-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: .7;
}

.item-body {
    flex: 1;
    min-width: 0;
}

.item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #f5f5f4;
}

.item-price {
    flex-shrink: 0;
    font-size: .9rem;
    font-weight: 900;
    color: var(--gold);
    white-space: nowrap;
}

.item-badge {
    margin-top: .25rem;
    font-size: .73rem;
    font-weight: 900;
    color: var(--gold);
}

.item-desc {
    margin-top: .5rem;
    font-size: .82rem;
    line-height: 1.8;
    color: var(--muted);
}

/* Empty */
.empty-box {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem 1rem;
    border: 1px dashed rgba(210, 166, 74, .3);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.empty-box img {
    width: 72px;
    margin: 0 auto 1rem;
    opacity: .6;
}

.empty-box h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: .5rem;
}

.empty-box p {
    color: var(--muted);
    font-size: .85rem;
}

/* Loading */
.loading-box {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem;
    color: var(--muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Footer ──────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: #000;
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 560px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-box {
    border: 1px solid rgba(210, 166, 74, .2);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    background: linear-gradient(180deg, rgba(210, 166, 74, .06), rgba(255, 255, 255, .02));
}

.contact-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--gold);
    font-weight: 900;
    margin-bottom: .6rem;
}

.contact-box p,
.contact-box a {
    font-size: .9rem;
    line-height: 2;
    color: #d6d3d1;
}

.contact-box a:hover {
    color: var(--gold);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(210, 166, 74, .45);
    color: var(--gold);
    font-weight: 700;
    font-size: .88rem;
    transition: background .2s, color .2s;
}

.instagram-btn:hover {
    background: var(--gold);
    color: var(--ink);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.footer-copy p {
    font-size: .78rem;
    color: #78716c;
}

.footer-copy a {
    color: var(--gold);
    font-weight: 700;
}

.footer-copy a:hover {
    color: var(--gold-soft);
}

/* ── Scroll Top ──────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 99;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(210, 166, 74, .45);
    background: rgba(0, 0, 0, .7);
    color: var(--gold);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .3s, border-color .2s;
    backdrop-filter: blur(14px);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 211, 138, .8);
}

@media (max-width: 640px) {
    .item-thumb {
        width: 80px;
        height: 80px;
    }

    .item-card {
        gap: .7rem;
    }
}
