/* Restoran ana sayfası (QR'ın ilk açtığı sayfa) */
.home-page {
    padding: 1.25rem 0 2.5rem;
}

.home-page .container {
    max-width: 1100px;
}

/* ---------- Menüye hızlı giriş ---------- */
.home-start {
    display: grid;
    gap: 0.75rem;
}

.home-search {
    position: relative;
}

.home-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.home-search input {
    width: 100%;
    height: 50px;
    padding: 0 1rem 0 2.75rem;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 1rem;
    color: var(--dark-color);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.home-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.home-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem 0.9rem 0.9rem;
    border-radius: 18px;
    background: var(--primary-color);
    color: var(--on-primary, #fff);
    text-decoration: none;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary-color) 35%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-menu-btn:hover {
    color: var(--on-primary, #fff);
    transform: translateY(-2px);
}

.home-menu-btn:active { transform: scale(0.99); }

.home-menu-btn-icon {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    background: color-mix(in srgb, var(--on-primary, #fff) 16%, transparent);
}

.home-menu-btn-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.home-menu-btn-text b {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
}

.home-menu-btn-text small {
    font-size: 0.82rem;
    opacity: 0.82;
    font-weight: 600;
}

.home-info {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
}

.home-info::-webkit-scrollbar { display: none; }
.home-info-item { flex-shrink: 0; white-space: nowrap; }

.home-info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    height: 38px;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--line);
    color: var(--dark-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.home-info-item i {
    color: var(--primary-ink, var(--primary-color));
}

a.home-info-item:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    color: var(--primary-ink, var(--primary-color));
}

/* ---------- Bloklar ---------- */
.home-block {
    margin-top: 2rem;
}

.home-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.home-block-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark-color);
}

.home-block-head a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-ink, var(--primary-color));
    text-decoration: none;
    white-space: nowrap;
}

.home-block-head a i { font-size: 0.7rem; }

/* Yatay kaydırılan şerit */
.home-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 152px;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.75rem;
    padding: 0.25rem 0.75rem 0.75rem;
    margin: 0 -0.75rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.home-rail::-webkit-scrollbar { display: none; }

.home-rail > * { scroll-snap-align: start; }

.home-rail-wide {
    grid-auto-columns: min(78%, 320px);
}

.home-product {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    color: var(--dark-color);
}

.home-product-img {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.home-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-product:hover .home-product-img img { transform: scale(1.04); }

.home-product-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--sale, #d9480f);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.home-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.home-product-price {
    font-size: 0.92rem;
}

.home-product-price b {
    font-weight: 800;
    color: var(--primary-ink, var(--primary-color));
}

.home-product-price b.is-sale { color: var(--sale, #d9480f); }

.home-product-price del {
    font-size: 0.75rem;
    color: var(--muted);
}

.home-campaign {
    display: block;
    border-radius: 1.1rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 340px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    background: #e2e8f0;
}

.home-campaign img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kategoriler: QR okutulunca ilk görülen ana bölüm — büyük fotoğraflı kartlar */
.home-menu { margin-top: 1.5rem; }

.home-block-note {
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
}

.home-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
}

.home-cat {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #e2e8f0;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
    transition: transform .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.home-cat:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, .16); }
.home-cat:active { transform: scale(.98); }

.home-cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-cat:hover img { transform: scale(1.05); }

/* Yazının her fotoğrafta okunması için alttan karartma */
.home-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%);
}

.home-cat-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: .7rem .8rem;
    line-height: 1.2;
}

.home-cat-text b {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}

.home-cat-text small {
    font-size: .75rem;
    font-weight: 600;
    opacity: .9;
}

/* Fotoğrafı olmayan kategori */
.home-cat.is-noimg {
    background: color-mix(in srgb, var(--primary-color) 14%, #fff);
    color: var(--dark-color);
}

.home-cat.is-noimg::after { display: none; }
.home-cat.is-noimg .home-cat-text b { text-shadow: none; }
.home-cat.is-noimg:hover { color: var(--dark-color); }

.home-cat-ph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-size: 1.8rem;
    color: var(--primary-ink, var(--primary-color));
    opacity: .6;
}

/* "Tüm menü" kartı */
.home-cat-all {
    background: var(--primary-color);
    color: var(--on-primary, #fff);
}

.home-cat-all::after { display: none; }
.home-cat-all:hover { color: var(--on-primary, #fff); }
.home-cat-all .home-cat-text b { text-shadow: none; font-size: 1.1rem; }

.home-cat-all-icon {
    position: absolute;
    top: .8rem;
    left: .8rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: color-mix(in srgb, var(--on-primary, #fff) 18%, transparent);
}

.home-cat-arrow {
    position: absolute;
    top: 1.05rem;
    right: .9rem;
    opacity: .8;
}

/* Anket kartı */
.home-survey {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: color-mix(in srgb, var(--primary-color) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--dark-color);
    text-decoration: none;
}

.home-survey:hover { color: var(--dark-color); }

.home-survey-icon {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-color);
    color: var(--on-primary, #fff);
    font-size: 1.1rem;
}

.home-survey b { display: block; font-size: 0.98rem; }
.home-survey small { color: var(--muted); font-size: 0.82rem; }
.home-survey > i { margin-left: auto; color: var(--primary-ink, var(--primary-color)); }

@media (min-width: 768px) {
    .home-rail { grid-auto-columns: 180px; }
    .home-cats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .home-cat-text b { font-size: 1.15rem; }
}

@media (min-width: 1100px) {
    .home-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 359.98px) {
    .home-cat-text b { font-size: .9rem; }
}
