/* ==========================================================================
   GARINBA — Bold Persian street-food design system
   Schwarz · Rot · Weiß · RTL
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Lalezar';
    src: url('/assets/fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

:root {
    --black: #0a0a0a;
    --black-2: #141414;
    --black-3: #1d1d1d;
    --red: #f80500;
    --red-deep: #c40400;
    --white: #ffffff;
    --off: #f5f3f0;
    --ink: #f4f4f4;
    --muted: #9b9b9b;
    --line: #2a2a2a;
    --line-light: #e7e2da;

    --display: 'Lalezar', 'Vazirmatn', Tahoma, sans-serif;
    --body: 'Vazirmatn', Tahoma, sans-serif;

    --radius: 14px;
    --shadow: 0 18px 50px rgba(0,0,0,.45);
    --shadow-red: 0 14px 40px rgba(255,23,23,.35);
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    background: var(--black);
    color: var(--ink);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* fine grain + red ambience over the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 500px at 85% -5%, rgba(255,23,23,.16), transparent 60%),
        radial-gradient(700px 500px at -10% 10%, rgba(255,23,23,.10), transparent 55%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

a { color: var(--red); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: .5px; }

/* ============================ HEADER ============================ */
.site-header {
    background: rgba(8,8,8,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }

/* generic inline icons */
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.16em; flex: none; }
.main-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.main-nav a {
    position: relative;
    color: var(--ink);
    font-weight: 600;
    padding: .45rem .7rem;
    border-radius: 8px;
    transition: color .2s, background .2s;
}
.main-nav a::after {
    content: "";
    position: absolute;
    inset-inline: .7rem;
    bottom: .25rem;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cart {
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    background: var(--red) !important;
    color: var(--white) !important;
    font-weight: 700;
    padding: .5rem .9rem !important;
    border-radius: 999px;
    box-shadow: var(--shadow-red);
}
.nav-cart::after { display: none; }
.nav-cart:hover { background: var(--red-deep) !important; }

/* ============================ HERO ============================ */
.hero {
    position: relative;
    text-align: center;
    padding: clamp(4rem, 11vw, 8.5rem) 1rem clamp(3rem, 7vw, 5rem);
    overflow: hidden;
}
.hero-monogram {
    position: absolute;
    inset-inline-end: -3%;
    top: 50%;
    transform: translateY(-50%);
    height: 115%;
    width: auto;
    opacity: .055;
    pointer-events: none;
}
.hero .eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: 3px;
    color: var(--red);
    border: 1px solid var(--red);
    border-radius: 999px;
    padding: .35rem 1.1rem;
    margin-bottom: 1.4rem;
}
.hero h1 {
    font-size: clamp(3rem, 11vw, 7rem);
    margin: 0;
    color: var(--white);
    text-shadow: 0 6px 40px rgba(255,23,23,.25);
}
.hero h1 .accent { color: var(--red); }
.hero p {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: var(--muted);
    max-width: 40ch;
    margin: 1.1rem auto 0;
}
.hero-cta {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

/* staggered intro */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .18s; }
.d3 { animation-delay: .32s; }
.d4 { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
}

/* ============================ MARQUEE ============================ */
.marquee {
    background: var(--red);
    color: var(--white);
    border-block: 2px solid var(--black);
    overflow: hidden;
    white-space: nowrap;
    padding: .55rem 0;
}
.marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    align-items: center;
    will-change: transform;
    animation: slide 22s linear infinite;
    font-family: var(--display);
    font-size: 1.25rem;
    letter-spacing: 1px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track .mstar { width: .8em; height: .8em; color: var(--black); vertical-align: 0; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ SECTIONS ============================ */
section { position: relative; }
.section-pad { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.section-title {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 1.6rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.section-title::before {
    content: "";
    width: 12px;
    height: 1.4em;
    background: var(--red);
    border-radius: 3px;
    flex: none;
}

.lead { color: var(--muted); max-width: 52ch; margin: -0.6rem 0 0; }

/* ============================ FEATURE STRIP ============================ */
.features {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 1rem;
}
.feature {
    background: var(--black-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--red); }
.feature .ico { display: inline-flex; color: var(--red); font-size: 2.1rem; }
.feature .ico .icon { width: 1em; height: 1em; vertical-align: 0; }
.feature h3 { color: var(--white); font-size: 1.5rem; margin: .6rem 0 .3rem; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ============================ MENU / GALLERY GRID ============================ */
.menu-grid, .gallery-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.menu-card {
    position: relative;
    background: var(--white);
    color: var(--black);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: transform .25s, border-color .25s, box-shadow .25s;
    overflow: hidden;
}
.menu-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 5px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .25s;
}
.menu-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}
.menu-card:hover::before { transform: scaleY(1); }
.menu-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: .2rem;
}
.menu-card .name { font-family: var(--display); font-size: 1.45rem; color: var(--black); line-height: 1.2; }
.menu-card .desc { color: #585858; font-size: .95rem; line-height: 1.7; }
.menu-card .price {
    margin-top: auto;
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--red);
}
.menu-card form { margin-top: .5rem; }

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--line);
    transition: transform .3s, border-color .3s;
}
.gallery-grid img:hover { transform: scale(1.02); border-color: var(--red); }

/* ============================ INFO / HOURS / LOCATION ============================ */
.info-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.info-card {
    background: var(--black-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
}
.info-card .ico { display: inline-flex; color: var(--red); font-size: 1.7rem; }
.info-card .ico .icon { width: 1em; height: 1em; vertical-align: 0; }
.info-card h3 { color: var(--white); font-size: 1.5rem; margin: .4rem 0 .5rem; }
.info-card p { color: var(--muted); margin: 0; }
.info-card .big { font-family: var(--display); font-size: 1.7rem; color: var(--white); }

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--white); color: var(--black); }
.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn-small { padding: .45rem .95rem; font-size: .9rem; border-radius: 8px; }
.btn-link { border: none; background: none; color: var(--red); padding: .2rem .4rem; box-shadow: none; }
.btn-link:hover { background: none; color: var(--red-deep); transform: none; text-decoration: underline; }

/* on white cards the default btn needs dark outline */
.menu-card .btn { border-color: var(--black); color: var(--black); }
.menu-card .btn:hover { background: var(--black); color: var(--white); }
.menu-card .btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.menu-card .btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* ============================ CART ============================ */
.cart-list { display: flex; flex-direction: column; gap: .85rem; margin: 1rem 0; }
.cart-row {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--white); color: var(--black);
    border-radius: var(--radius); padding: 1rem 1.2rem;
    border-inline-start: 5px solid var(--red);
}
.cart-name { font-family: var(--display); font-size: 1.3rem; flex: 1 1 160px; }
.cart-price { color: #585858; }
.cart-qty { width: 4rem; padding: .35rem; text-align: center; border: 1px solid var(--line-light); border-radius: 8px; font: inherit; }
.cart-qty-form { display: flex; gap: .4rem; align-items: center; }
.cart-line { font-family: var(--display); font-size: 1.35rem; color: var(--red); min-width: 7rem; text-align: left; }
.cart-summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 1.8rem; flex-wrap: wrap;
    background: var(--black-2); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.2rem 1.5rem;
}
.cart-summary strong { font-family: var(--display); font-size: 1.7rem; color: var(--white); }

/* ============================ CHECKOUT ============================ */
.checkout-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 580px; }
.checkout-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; color: var(--ink); }
.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form textarea {
    padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit;
    background: var(--black-3); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,23,23,.2);
}
.checkout-form textarea { min-height: 5rem; resize: vertical; }
.order-type { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.order-type legend { color: var(--red); font-weight: 700; font-family: var(--display); font-size: 1.2rem; padding-inline: .4rem; }
.order-type label { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.field-error { color: #ff6b6b; font-size: .9rem; }
.checkout-summary {
    margin-top: .5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem;
}
.checkout-summary strong { font-family: var(--display); font-size: 1.5rem; color: var(--white); }

/* ============================ FOOTER ============================ */
.site-footer {
    margin-top: 3.5rem;
    background: #060606;
    border-top: 2px solid var(--red);
    padding: 2.5rem 0 2rem;
}
.footer-grid {
    display: grid; gap: 1.6rem;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: start;
}
.footer-logo { height: 46px; width: auto; display: block; }
.footer-brand p { color: var(--muted); margin: .2rem 0; max-width: 38ch; }
.footer-col h4 { font-family: var(--display); color: var(--white); font-size: 1.4rem; margin: 0 0 .6rem; }
.footer-col p, .footer-col a { color: var(--muted); margin: .35rem 0; display: flex; align-items: flex-start; gap: .45rem; }
.footer-col p .icon, .footer-col a .icon { color: var(--red); margin-top: .28em; }
.nav-cart .icon { width: 1.05em; height: 1.05em; }
.footer-col a:hover { color: var(--red); }
.enamad { display: flex; justify-content: center; }
.enamad-placeholder {
    width: 110px; height: 110px; border: 2px dashed var(--red); border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--muted); font-size: .8rem; text-align: center; padding: .4rem; line-height: 1.5;
}
.footer-bottom { text-align: center; color: #6b6b6b; margin-top: 2rem; font-size: .85rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 820px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .header-inner { flex-wrap: wrap; gap: .5rem; }
    .main-nav { gap: .15rem; font-size: .95rem; }
    .main-nav a { padding: .4rem .5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .cart-line { min-width: auto; text-align: right; }
}

/* ============================ PRODUKT-DETAIL ============================ */
/* Verlinkbare Karten: Bild + Name werden klickbar, Layout bleibt unverändert. */
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .name { color: var(--red); }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--red); }
.breadcrumb .current { color: var(--white); }

.item-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.4rem;
    align-items: start;
}

.item-gallery .item-main {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    display: block;
}
.item-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .8rem;
}
.item-thumb-btn {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}
.item-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--line);
    transition: border-color .2s;
}
.item-thumb:hover { border-color: var(--red); }
.item-thumb.is-active { border-color: var(--red); }

.item-noimg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 360px;
    background: var(--black-2);
    border: 2px dashed var(--red);
    border-radius: var(--radius);
}
.item-noimg .ico { color: var(--red); font-size: 3.4rem; display: inline-flex; }
.item-noimg .brand { font-family: var(--display); font-size: 1.8rem; color: var(--white); }

.item-info { display: flex; flex-direction: column; gap: 1rem; }
.item-info h1 { color: var(--white); margin: 0; }
.item-detail .item-price {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--red);
    margin: 0;
}
.item-desc { color: var(--muted); line-height: 1.9; margin: 0; }
.item-info form { margin: 0; }
.item-back {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.item-back:hover { color: var(--red); }

@media (max-width: 860px) {
    .item-detail { grid-template-columns: 1fr; gap: 1.6rem; }
}
