/* ============================================================
   Akam Babylon — storefront styles
   Palette: black / white / red
   ============================================================ */
:root {
    --black: #0d0d0d;
    --black-2: #1a1a1a;
    --black-3: #262626;
    --white: #ffffff;
    --off: #f5f5f5;
    --gray: #8a8a8a;
    --gray-2: #d9d9d9;
    --red: #e3141b;
    --red-dark: #b60f15;
    --red-soft: #fdeaea;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.16);
    --font-rtl: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --font-ltr: 'Poppins', 'Vazirmatn', 'Segoe UI', sans-serif;
    --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font-rtl);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    padding-bottom: 68px; /* mobile bar */
    -webkit-font-smoothing: antialiased;
}
body.lang-en { font-family: var(--font-ltr); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1,h2,h3,h4 { font-weight: 800; letter-spacing: -.01em; margin: 0; }
.container { max-width: 1240px; padding-inline: 18px; margin-inline: auto; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ---------- Announcement bar ---------- */
.announce {
    background: var(--red); color: #fff; font-size: .85rem; font-weight: 600;
    text-align: center; padding: 7px 14px; overflow: hidden; white-space: nowrap;
}
.announce span { display: inline-block; animation: announce 18s linear infinite; }
@keyframes announce { from { transform: translateX(100vw);} to { transform: translateX(-100%);} }
[dir=ltr] .announce span { animation-name: announce-ltr; }
@keyframes announce-ltr { from { transform: translateX(-100%);} to { transform: translateX(100vw);} }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #eee;
}
.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 60px; width: auto; object-fit: contain; }
.brand-text { font-family: var(--font-ltr); font-weight: 600; font-size: 1.1rem; color: var(--black); letter-spacing: -.02em; }
.brand-text b { color: var(--red); font-weight: 800; }
.icon-btn {
    background: none; border: 0; width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; color: var(--black);
    position: relative; transition: background .2s;
}
.icon-btn:hover { background: var(--off); }
.menu-btn { display: none; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.main-nav > a {
    padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #333;
    transition: all .2s;
}
.main-nav > a:hover { background: var(--off); color: var(--black); }
.main-nav > a.active { background: var(--black); color: #fff; }
.nav-lang { display: none; }
.search-form {
    margin-inline-start: auto; display: flex; align-items: center; background: var(--off);
    border-radius: 999px; padding: 4px 6px 4px 16px; width: 280px; max-width: 32vw; transition: box-shadow .2s;
}
[dir=ltr] .search-form { padding: 4px 6px 4px 16px; }
[dir=rtl] .search-form { padding: 4px 16px 4px 6px; }
.search-form:focus-within { box-shadow: 0 0 0 3px rgba(227,20,27,.15); background: #fff; outline: 1px solid var(--gray-2); }
.search-form input { border: 0; background: none; flex: 1; outline: none; font-size: .95rem; min-width: 0; }
.search-form button { border: 0; background: var(--black); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.search-form button:hover { background: var(--red); }
.search-form { position: relative; }
.search-drop {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: max(100%, 360px); max-width: calc(100vw - 24px); background: #fff; border-radius: 16px; z-index: 80;
    box-shadow: 0 16px 48px rgba(0,0,0,.18); border: 1px solid var(--gray-2); max-height: min(70vh, 520px); overflow-y: auto;
}
.sd-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #f1f1f1; transition: background .15s; }
.sd-item:hover, .sd-item.focus { background: var(--off); }
.sd-item.out { opacity: .55; }
.sd-img { width: 48px; height: 48px; border-radius: 10px; background: #f3f3f3; flex: 0 0 auto; overflow: hidden; }
.sd-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sd-info b { font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-info small { color: #999; font-size: .75rem; }
.sd-price { font-weight: 800; color: var(--red); font-size: .92rem; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.sd-price s { color: #aaa; font-weight: 500; font-size: .75rem; }
.sd-empty { padding: 18px; text-align: center; color: #888; font-size: .9rem; }
.sd-all { display: block; text-align: center; padding: 12px; font-weight: 700; color: var(--black); background: var(--off); font-size: .9rem; }
.sd-all:hover, .sd-all.focus { background: var(--black); color: #fff; }

/* mobile full-screen search */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 120; padding: 12px; backdrop-filter: blur(3px); }
.so-form { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 8px; }
.so-form input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1.05rem; padding: 10px 8px; background: none; }
.so-form button { border: 0; background: var(--black); color: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.so-form .so-close { background: var(--off); color: var(--black); }
.so-form .search-drop { top: calc(100% + 8px); max-height: calc(100vh - 100px); width: 100%; }
body.so-open { overflow: hidden; }
.mobile-bar .mb-search { display: none; }
@media (max-width: 480px) { .mobile-bar .mb-search { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 4px; }
.lang-switch { position: relative; }
.lang-code { font-size: .7rem; font-weight: 800; position: absolute; bottom: 4px; inset-inline-end: 4px; background: var(--red); color: #fff; padding: 0 4px; border-radius: 6px; line-height: 1.4; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: #fff; border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 6px; min-width: 150px; display: none; z-index: 60;
}
.lang-menu.open { display: block; animation: pop .15s ease-out; }
.lang-menu a { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 600; }
.lang-menu a:hover { background: var(--off); }
.lang-menu a.active { background: var(--red-soft); color: var(--red); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98);} to { opacity: 1; transform: none;} }
.cart-btn .cart-count {
    position: absolute; top: 2px; inset-inline-end: 2px; background: var(--red); color: #fff;
    font-size: .68rem; font-weight: 800; min-width: 19px; height: 19px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff;
    transition: transform .2s;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.45)} 100%{transform:scale(1)} }

@media (max-width: 991px) {
    :root { --header-h: 64px; }
    .brand-text { display: none; }
    .brand img { height: 52px; }
    .search-form { width: auto; max-width: none; flex: 1; margin-inline-start: 0; }
    .main-nav {
        position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(300px, 82vw);
        background: var(--black); color: #fff; flex-direction: column; align-items: stretch;
        padding: 90px 18px 24px; gap: 6px; z-index: 70; margin: 0;
        transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    }
    [dir=rtl] .main-nav { transform: translateX(100%); }
    .main-nav.open { transform: none; }
    .main-nav > a { color: #ddd; font-size: 1.05rem; padding: 12px 16px; }
    .main-nav > a.active { background: var(--red); color: #fff; }
    .nav-lang { display: flex; gap: 6px; margin-top: auto; }
    .nav-lang a { flex: 1; text-align: center; padding: 10px 6px; border: 1px solid #444; border-radius: 10px; color: #ccc; font-size: .85rem; font-weight: 600; }
    .nav-lang a.active { background: #fff; color: var(--black); border-color: #fff; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 65; display: none; }
    .nav-backdrop.open { display: block; }
    .cart-btn { display: none; }
    .lang-menu { inset-inline-end: 0; }
}
@media (max-width: 480px) {
    .search-form { display: none; }
}

/* ---------- Buttons ---------- */
.btn-red, .btn-black, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 700; border: 2px solid transparent;
    transition: all .2s; font-size: .95rem; line-height: 1.2; white-space: nowrap;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(227,20,27,.3); }
.btn-black { background: var(--black); color: #fff; border-color: var(--black); }
.btn-black:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
button:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Partners / sponsors strip ---------- */
.partners { background: #fff; border-bottom: 1px solid #eee; display: flex; align-items: stretch; overflow: hidden; }
.partners-label { flex-shrink: 0; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; display: flex; align-items: center; padding: 0 14px; position: relative; z-index: 2; white-space: nowrap; }
.partners-label::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -10px; width: 10px; background: linear-gradient(to right, var(--red), transparent); }
[dir=rtl] .partners-label::after { background: linear-gradient(to left, var(--red), transparent); }
.partners-marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners-track { display: flex; align-items: center; gap: 14px; width: max-content; padding: 10px 14px; animation: marquee 45s linear infinite; }
[dir=rtl] .partners-track { animation-name: marquee-rtl; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner { display: inline-flex; align-items: center; gap: 12px; background: var(--off); border: 1px solid #ececec; border-radius: 999px; padding: 6px 20px 6px 7px; transition: all .2s; flex-shrink: 0; }
[dir=rtl] .partner { padding: 6px 7px 6px 20px; }
.partner img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid #e5e5e5; }
.partner span { font-weight: 800; font-size: 1.05rem; color: #333; white-space: nowrap; }
.partner:hover { background: var(--black); border-color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow); }
.partner:hover span { color: #fff; }
@media (max-width: 640px) { .partner img { width: 54px; height: 54px; } .partner span { font-size: 1.1rem; } .partners-track { padding: 9px 10px; gap: 12px; animation-duration: 30s; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; background: var(--black); color: #fff;
    padding: 64px 0 80px; min-height: 480px; display: flex; align-items: center;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 85% 30%, rgba(227,20,27,.45), transparent 70%),
        radial-gradient(500px 300px at 10% 90%, rgba(227,20,27,.25), transparent 70%);
    animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity:.7; transform: scale(1);} to { opacity:1; transform: scale(1.08);} }
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .08;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 20px; animation: fadeUp .7s both; }
.hero-tag i { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(227,20,27,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(227,20,27,0);} 100% { box-shadow: 0 0 0 0 rgba(227,20,27,0);} }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); line-height: 1.25; margin-bottom: 16px; animation: fadeUp .7s .1s both; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.1rem; color: #cfcfcf; max-width: 520px; margin-bottom: 30px; animation: fadeUp .7s .2s both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .7s .3s both; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--black); border-color: #fff; }
.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeIn 1s .2s both; }
.hero-visual .logo-card {
    width: min(280px, 60%); aspect-ratio: 1; background: #fff; border-radius: 34px; padding: 20px;
    box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
    animation: float 5s ease-in-out infinite; transform-origin: center;
}
.hero-visual .logo-card img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg);} 50% { transform: translateY(-16px) rotate(1deg);} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none;} }
@keyframes fadeIn { from { opacity: 0;} to { opacity: 1;} }
.hero-phones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; animation: fadeUp .7s .4s both; }
.hero-phones a { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-family: var(--font-ltr); font-size: .95rem; direction: ltr; transition: background .2s; }
.hero-phones a:hover { background: var(--red); }
@media (max-width: 991px) {
    .hero { display: none; }
    .hero h1 { font-size: 1.45rem; margin-bottom: 8px; }
    .hero p { font-size: .92rem; margin-bottom: 0; }
    .hero-tag { margin-bottom: 12px; font-size: .78rem; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-inline: auto; }
    .hero-actions, .hero-phones { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-visual { display: none; }
}

/* ---------- Features strip ---------- */
.features { margin-top: -36px; position: relative; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
    background: #fff; border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center;
    box-shadow: var(--shadow); border: 1px solid #f0f0f0; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.feature b { display: block; font-size: .95rem; }
.feature span { font-size: .8rem; color: var(--gray); }
@media (max-width: 991px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .feature { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); position: relative; padding-inline-start: 16px; }
.section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: 10%; height: 80%; width: 5px; background: var(--red); border-radius: 4px; }
.section-head .sub { color: var(--gray); font-size: .9rem; margin-top: 4px; padding-inline-start: 16px; }
.section-head a { font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* ---------- Categories chips ---------- */
.cat-scroller { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 12px; }
.cat-chip {
    flex-shrink: 0; padding: 9px 18px; border-radius: 999px; background: var(--off); font-weight: 700;
    font-size: .92rem; border: 2px solid transparent; transition: all .2s;
}
.cat-chip:hover { border-color: var(--black); background: #fff; }
.cat-chip.active { background: var(--black); color: #fff; }

/* ---------- Category cards (level 1 & 2) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-grid.main { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .cat-grid.main { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 380px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #efefef; border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.cat-card-img { aspect-ratio: 1; background: var(--off); display: grid; place-items: center; overflow: hidden; position: relative; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-letter { font-size: 2.6rem; font-weight: 800; color: var(--red); background: var(--red-soft); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; }
.cat-card-body { padding: 10px 12px 12px; text-align: center; }
.cat-card-body b { display: block; font-size: .98rem; line-height: 1.35; }
.cat-card-body span { font-size: .76rem; color: var(--gray); }
/* main categories: big banner cards with the name over the image */
.cat-grid.main { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-grid.main .cat-card { position: relative; border-radius: 20px; }
.cat-grid.main .cat-card-img { aspect-ratio: 1 / 1; background: var(--black); }
.cat-grid.main .cat-card-letter { background: rgba(255,255,255,.08); color: #fff; width: 96px; height: 96px; font-size: 3.4rem; }
.cat-grid.main .cat-card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; text-align: start; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 60%, transparent); color: #fff; }
.cat-grid.main .cat-card-body b { font-size: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.cat-grid.main .cat-card-body b::after { content: "←"; font-size: 1.1rem; color: var(--red); background: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
[dir=ltr] .cat-grid.main .cat-card-body b::after { content: "→"; }
@media (max-width: 640px) { .cat-grid.main .cat-card-img { aspect-ratio: 1 / 1; } .cat-grid.main .cat-card-body { padding: 36px 14px 12px; } .cat-grid.main .cat-card-body b { font-size: 1.2rem; } }
@media (max-width: 640px) { .cat-card { border-radius: 14px; } .cat-card-body { padding: 8px 8px 10px; } .cat-card-body b { font-size: .88rem; } .cat-card-letter { width: 56px; height: 56px; font-size: 2rem; } }
/* brand cards (level 2): big banner cards like the main categories */
.cat-grid.brands { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-grid.brands .cat-card { position: relative; border-radius: 20px; }
.cat-grid.brands .cat-card-img { aspect-ratio: 1 / 1; background: #fff; padding: 0; }
.cat-grid.brands .cat-card-img img { object-fit: cover; }
.cat-grid.brands .cat-card-letter { width: 96px; height: 96px; font-size: 3.4rem; }
.cat-grid.brands .cat-card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px; text-align: start; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 60%, transparent); color: #fff; }
.cat-grid.brands .cat-card-body b { font-size: 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.cat-grid.brands .cat-card-body b::after { content: "←"; font-size: 1.1rem; color: var(--red); background: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
[dir=ltr] .cat-grid.brands .cat-card-body b::after { content: "→"; }
.cat-grid.brands .cat-card-body span { color: #ddd; font-size: .8rem; }
@media (max-width: 640px) { .cat-grid.brands { grid-template-columns: 1fr; gap: 12px; } .cat-grid.brands .cat-card-img { aspect-ratio: 1 / 1; } .cat-grid.brands .cat-card-body { padding: 36px 14px 12px; } .cat-grid.brands .cat-card-body b { font-size: 1.2rem; } }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #aaa; margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs b { color: #fff; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
@media (max-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .cat-chip { padding: 8px 14px; font-size: .85rem; } .cat-scroller { gap: 7px; } }
.card-p {
    background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #efefef;
    display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-p:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #e5e5e5; }
.card-p .img { position: relative; aspect-ratio: 1; background: var(--off); overflow: hidden; display: block; }
.card-p .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card-p:hover .img img { transform: scale(1.07); }
.card-p .img .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #ccc; }
.badge-off { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; padding: 4px 10px; border-radius: 999px; z-index: 2; box-shadow: 0 4px 12px rgba(227,20,27,.4); }
.badge-feat { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--black); color: #fff; font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.badge-soldout { position: absolute; inset: 0; background: rgba(255,255,255,.65); display: grid; place-items: center; font-weight: 800; color: var(--black); z-index: 2; backdrop-filter: blur(2px); }
.card-p .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-p .cat { font-size: .74rem; color: var(--gray); font-weight: 600; }
.card-p h3 { font-size: .98rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price .now { font-weight: 800; font-size: 1.1rem; color: var(--red); font-family: var(--font-ltr); direction: ltr; }
.price .cur { font-size: .75rem; color: var(--gray); font-weight: 600; }
.price .was { text-decoration: line-through; color: var(--gray); font-size: .85rem; font-family: var(--font-ltr); direction: ltr; }
.card-p .add {
    margin-top: 8px; width: 100%; border: 0; background: var(--black); color: #fff; padding: 10px; border-radius: 12px;
    font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s;
    font-size: .88rem;
}
.card-p .add:hover { background: var(--red); }
@media (max-width: 640px) { .card-p .body { padding: 10px; } .card-p h3 { font-size: .88rem; } .price .now { font-size: 1rem; } }

.card-qty {
    direction: ltr; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; background: var(--black); border-radius: 12px; overflow: hidden; height: 40px;
}
.card-qty[hidden] { display: none; }
.card-qty button { width: 44px; height: 100%; border: 0; background: var(--red); color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.card-qty button:hover { background: var(--red-dark); }
.card-qty b { color: #fff; font-family: var(--font-ltr); font-size: 1.05rem; }
.marquee .card-qty { background: #fff; } .marquee .card-qty b { color: var(--black); }

/* ---------- Marquee (featured) ---------- */
.marquee-section { background: var(--black); color: #fff; padding: 40px 0 34px; margin-top: 44px; overflow: hidden; position: relative; }
@media (max-width: 640px) { .marquee-section { padding: 26px 0 22px; margin-top: 30px; } .marquee-section .section-head { margin-bottom: 14px; } .marquee .card-p { width: 190px; } .marquee .card-p .body { padding: 8px 10px 10px; } .marquee .card-p h3 { min-height: 0; font-size: .85rem; } }
.marquee-section .section-head h2::before { background: var(--red); }
.marquee-section .section-head a { color: #fff; }
.marquee-section .sub { color: #999; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
[dir=rtl] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0);} to { transform: translateX(50%);} }
.marquee .card-p { width: 220px; flex-shrink: 0; border-color: #2a2a2a; background: var(--black-2); color: #fff; }
.marquee .card-p .img { background: #111; }
.marquee .card-p .cat { color: #888; }
.marquee .card-p .add { background: var(--red); }
.marquee .card-p .add:hover { background: #fff; color: var(--black); }
.marquee .price .was { color: #777; }
.text-marquee { border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 12px 0; margin-top: 44px; overflow: hidden; }
.text-marquee .marquee-track { animation-duration: 28s; gap: 0; }
.text-marquee span { font-family: var(--font-ltr); font-weight: 800; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; padding: 0 28px; white-space: nowrap; color: #333; }
.text-marquee span:nth-child(odd) { color: #fff; }
.text-marquee span i { color: var(--red); font-style: normal; }

/* ---------- Discount banner ---------- */
.promo {
    margin-top: 56px; background: linear-gradient(120deg, var(--red) 0%, #a30c11 100%); color: #fff; border-radius: 24px;
    padding: 36px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden;
}
.promo::after { content: "%"; position: absolute; inset-inline-end: -10px; bottom: -60px; font-size: 220px; font-weight: 900; opacity: .12; font-family: var(--font-ltr); line-height: 1; }
.promo h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
.promo p { margin: 6px 0 0; opacity: .9; }
.promo .btn-black { position: relative; z-index: 1; }
@media (max-width: 640px) { .promo { flex-direction: column; text-align: center; padding: 28px 20px; } }

/* ---------- Products page ---------- */
.page-head { background: var(--black); color: #fff; padding: 34px 0; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-head p { margin: 4px 0 0; color: #aaa; font-size: .92rem; }
/* coupon + free delivery (checkout / cart) */
.coupon-box { margin: 12px 0 8px; }
.coupon-box label { display: block; font-size: .8rem; font-weight: 700; color: #666; margin-bottom: 6px; }
.coupon-row { display: flex; gap: 6px; }
.coupon-row input { flex: 1; min-width: 0; border: 1.5px dashed #bbb; border-radius: 10px; padding: 9px 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .95rem; outline: 0; background: #fff; }
.coupon-row input:focus { border-color: var(--black); border-style: solid; }
.coupon-row input:read-only { background: #eefaf2; border-color: #1a9a4a; border-style: solid; color: #1a7a3c; }
.coupon-row button { border: 0; background: var(--black); color: #fff; border-radius: 10px; padding: 0 16px; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.coupon-row button:hover { background: var(--red); }
.coupon-msg { font-size: .8rem; margin-top: 5px; min-height: 1em; color: var(--red); }
.coupon-box.ok .coupon-msg { color: #1a9a4a; font-weight: 600; }
.coupon-box.has-error .coupon-row input { border-color: var(--red); }
.row.discount b { color: #1a9a4a; }
.rc-rm-coupon { border: 0; background: none; color: #bbb; font-size: .75rem; cursor: pointer; padding: 0 4px; }
.rc-rm-coupon:hover { color: var(--red); }
.free-ship { margin: 8px 0 4px; }
.fs-bar { height: 7px; background: #eee; border-radius: 99px; overflow: hidden; }
.fs-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff6b6b); border-radius: 99px; transition: width .4s; }
.free-ship.done .fs-bar i { background: linear-gradient(90deg, #1a9a4a, #4fd484); }
.fs-text { font-size: .78rem; color: #777; margin-top: 5px; font-weight: 600; }
.free-ship.done .fs-text { color: #1a9a4a; }
.free-ship.dark .fs-bar { background: #333; }
.free-ship.dark .fs-text { color: #bbb; }
.free-ship.dark.done .fs-text { color: #4fd484; }

.crumb-bar { background: var(--black); color: #fff; padding: 10px 0; }
.crumb-bar .crumbs { margin-bottom: 0; font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.toolbar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 22px 0 18px; flex-wrap: wrap; }
.toolbar select { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--gray-2); background: #fff; font-weight: 600; }
.count { color: var(--gray); font-size: .9rem; }
.empty { text-align: center; padding: 70px 20px; color: var(--gray); }
.empty svg { margin: 0 auto 14px; opacity: .3; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 34px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--off); font-weight: 700; padding: 0 10px; }
.pager .cur { background: var(--black); color: #fff; }

/* ---------- Product details ---------- */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0; align-items: start; }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; gap: 24px; padding: 20px 0; } }
.gallery .main { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--off); border: 1px solid #eee; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery .thumbs button { flex-shrink: 0; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--off); padding: 0; transition: border-color .2s; }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button.active { border-color: var(--red); }
.pd-info .cat { color: var(--red); font-weight: 700; font-size: .85rem; }
.pd-info h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 6px 0 14px; line-height: 1.3; }
.pd-info .price { margin: 0 0 18px; }
.pd-info .price .now { font-size: 1.8rem; }
.pd-info .price .was { font-size: 1.05rem; }
.pd-info .off-pill { background: var(--red-soft); color: var(--red); font-weight: 800; padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
.pd-info .desc { color: #444; white-space: pre-line; margin-bottom: 24px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--black); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; }
.qty button:hover { background: var(--off); }
.qty input { width: 52px; text-align: center; border: 0; font-weight: 800; font-size: 1.05rem; outline: none; direction: ltr; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.pd-contact { background: var(--off); border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.pd-contact a { font-family: var(--font-ltr); font-weight: 700; direction: ltr; background: #fff; padding: 5px 12px; border-radius: 8px; border: 1px solid #e5e5e5; }
.pd-contact a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Cart ---------- */
.cart-layout > * { min-width: 0; }
[hidden] { display: none !important; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 30px 0 50px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid #eee; border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; background: var(--off); }
.cart-item h4 { font-size: .98rem; margin-bottom: 4px; }
.cart-item .unit { color: var(--gray); font-size: .85rem; font-family: var(--font-ltr); direction: ltr; display: inline-block; }
.cart-item .line { font-weight: 800; color: var(--red); font-family: var(--font-ltr); direction: ltr; text-align: end; }
.cart-item .rm { border: 0; background: none; color: var(--gray); font-size: .8rem; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.cart-item .rm:hover { color: var(--red); }
.cart-item .qty { transform: scale(.85); transform-origin: end; }
.cart-item .col-end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 70px 1fr; } .cart-item img { width: 70px; height: 70px; } .cart-item .col-end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }
.summary { background: var(--black); color: #fff; border-radius: 20px; padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 1.15rem; margin-bottom: 16px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #333; font-size: .95rem; }
.summary .row b { font-family: var(--font-ltr); direction: ltr; }
.summary .row.total { border: 0; font-size: 1.15rem; font-weight: 800; padding-top: 14px; }
.summary .row.total b { color: var(--red); font-size: 1.4rem; }
.summary .btn-red { margin-top: 16px; }

/* ---------- Checkout / forms ---------- */
.form-card { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 24px; }
.form-card h3 { font-size: 1.15rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.form-card h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field label i { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 2px solid #e6e6e6; border-radius: 12px; font-size: 1rem; outline: none;
    transition: border-color .2s, box-shadow .2s; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--red); }
.field .hint { font-size: .8rem; color: var(--gray); margin-top: 5px; }
.field .err { font-size: .82rem; color: var(--red); margin-top: 5px; font-weight: 600; display: none; }
.field.has-error .err { display: block; }
.field input[type=tel] { direction: ltr; text-align: start; font-family: var(--font-ltr); letter-spacing: .05em; font-weight: 600; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #333; font-size: .9rem; }
.mini-list li span:last-child { font-family: var(--font-ltr); direction: ltr; white-space: nowrap; }
.alert-err { background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 16px; }

/* ---------- Phone input ---------- */
.field input.phone-input { direction: ltr; text-align: left; font-family: var(--font-ltr); font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; }
.field input.phone-input::placeholder { letter-spacing: .12em; font-weight: 500; color: #bbb; }

/* ---------- Checkout receipt ---------- */
.receipt { padding: 0; overflow: hidden; background: #fff; color: var(--black); border: 1px solid #eee; box-shadow: var(--shadow); }
.receipt .rc-head { background: var(--black); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.receipt .rc-head h3 { margin: 0; font-size: 1.05rem; }
.rc-clear { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; transition: background .2s; }
.rc-clear:hover { background: var(--red); }
.rc-clear[hidden] { display: none; }
.rc-items { padding: 6px 14px; max-height: 360px; overflow-y: auto; }
.rc-item { display: grid; grid-template-columns: 48px 1fr auto 26px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e5e5e5; }
.rc-item:last-child { border-bottom: 0; }
.rc-img { width: 48px; height: 48px; border-radius: 10px; background: var(--off); overflow: hidden; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; }
.rc-info { min-width: 0; }
.rc-name { font-weight: 700; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-unit { font-size: .75rem; color: var(--gray); font-family: var(--font-ltr); direction: ltr; display: inline-block; }
.rc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.rc-line { font-weight: 800; color: var(--red); font-family: var(--font-ltr); direction: ltr; font-size: .95rem; }
.rc-qty { direction: ltr; display: inline-flex; align-items: center; border: 1.5px solid var(--black); border-radius: 999px; overflow: hidden; height: 28px; }
.rc-qty button { width: 28px; height: 100%; border: 0; background: none; font-weight: 800; font-size: 1rem; line-height: 1; color: var(--black); }
.rc-qty button:hover { background: var(--black); color: #fff; }
.rc-qty b { min-width: 24px; text-align: center; font-family: var(--font-ltr); font-size: .9rem; }
.rc-rm { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--off); color: #999; font-size: .8rem; line-height: 1; }
.rc-rm:hover { background: var(--red); color: #fff; }
.rc-tear { height: 14px; background: radial-gradient(circle at 8px 0, transparent 6px, #fff 6.5px) -8px 0 / 16px 14px repeat-x, #f3f3f3; border-top: 1px dashed #ddd; }
.receipt > .row { margin: 0 18px; border-bottom-color: #e5e5e5; }
.receipt > .row b { color: var(--black); }
.receipt > .row.total b { color: var(--red); }
.receipt > .btn-red { margin: 16px 18px 0; width: calc(100% - 36px); }
.receipt > .alert-err { margin: 14px 18px 0 !important; }
.receipt > .btn-red + div, .receipt > .alert-err { margin-bottom: 18px !important; }
.receipt > .btn-red:last-child, .receipt > .btn-red { margin-bottom: 18px; }
@media (max-width: 900px) { .receipt { position: static; } }

/* ---------- Success ---------- */
.success { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.success .check { width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; animation: popIn .5s cubic-bezier(.2,1.4,.4,1); box-shadow: 0 16px 40px rgba(227,20,27,.35); }
@keyframes popIn { from { transform: scale(0);} to { transform: scale(1);} }
.success h1 { font-size: 1.8rem; margin-bottom: 10px; }
.success .num { display: inline-block; background: var(--black); color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 800; margin: 14px 0 26px; font-family: var(--font-ltr); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #ccc; margin-top: 70px; padding: 50px 0 20px; position: relative; overflow: hidden; }
.site-footer::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(227,20,27,.45), transparent 70%),
        radial-gradient(500px 300px at 10% 100%, rgba(227,20,27,.25), transparent 70%);
    animation: glow 8s ease-in-out infinite alternate;
}
.site-footer::after {
    content: ""; position: absolute; inset: 0; opacity: .08;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 84px; border-radius: 16px; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; color: #999; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.phone-list, .link-list { list-style: none; margin: 0; padding: 0; }
.phone-list li { margin-bottom: 8px; }
.phone-list a { font-family: var(--font-ltr); font-weight: 700; font-size: 1.05rem; color: #fff; display: inline-block; transition: color .2s; }
.phone-list a:hover { color: var(--red); }
.link-list li { margin-bottom: 8px; }
.link-list a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; transition: all .2s; }
.social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; font-size: .82rem; color: #777; flex-wrap: wrap; gap: 8px; }
.admin-link { color: #444; }
.admin-link:hover { color: #fff; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
    position: fixed; bottom: 0; inset-inline: 0; height: 64px; background: #fff; border-top: 1px solid #eee; z-index: 45;
    display: flex; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 700; color: #777; flex: 1; }
.mobile-bar a.active, .mobile-bar a:hover { color: var(--red); }
.mb-cart { position: relative; }
.mb-cart b { position: absolute; top: -6px; inset-inline-end: -10px; background: var(--red); color: #fff; font-size: .6rem; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
@media (min-width: 992px) { .mobile-bar { display: none; } }

/* ---------- Sticky "order selected items" bar ---------- */
.cart-bar {
    position: fixed; bottom: calc(64px + env(safe-area-inset-bottom) + 10px); inset-inline: 12px; z-index: 48;
    display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; border-radius: 16px;
    padding: 13px 16px; font-weight: 800; font-size: 1rem; box-shadow: 0 14px 34px rgba(227,20,27,.45), 0 0 0 3px rgba(255,255,255,.7);
    animation: cartBarIn .35s cubic-bezier(.2,1.2,.4,1);
}
.cart-bar[hidden] { display: none; }
.cart-bar:hover { background: var(--red-dark); color: #fff; }
.cart-bar .cb-count { background: #fff; color: var(--red); min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; font-family: var(--font-ltr); }
.cart-bar .cb-count b { display: inline !important; }
.cart-bar .cb-text { flex: 1; }
.cart-bar .cb-total { font-family: var(--font-ltr); direction: ltr; white-space: nowrap; font-size: .95rem; }
.cart-bar .cb-total small { font-size: .7rem; opacity: .85; }
@keyframes cartBarIn { from { opacity: 0; transform: translateY(24px) scale(.96);} to { opacity: 1; transform: none;} }
body.has-cart-bar { padding-bottom: 146px; }
body.has-cart-bar .toast-box { bottom: calc(64px + 78px); }
@media (min-width: 992px) {
    .cart-bar { bottom: 22px; inset-inline: auto; left: 50%; transform: translateX(-50%); min-width: 420px; max-width: 560px; }
    .cart-bar:hover { transform: translateX(-50%) translateY(-2px); }
    body.has-cart-bar { padding-bottom: 90px; }
    body.has-cart-bar .toast-box { bottom: 96px; }
}

/* ---------- Header "Install app" button + iOS guide ---------- */
.install-btn {
    display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; border: 0; border-radius: 999px;
    padding: 8px 14px; font-weight: 800; font-size: .85rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(227,20,27,.35);
    animation: installPulse 2.4s ease-in-out infinite; margin-inline-start: 8px;
}
.install-btn[hidden] { display: none; }
.install-btn:hover { background: var(--red-dark); animation: none; }
@keyframes installPulse { 0%,100% { box-shadow: 0 6px 16px rgba(227,20,27,.35);} 50% { box-shadow: 0 6px 22px rgba(227,20,27,.6);} }
@media (max-width: 991px) {
    .install-btn { margin-inline: auto; padding: 8px 14px; }
}
@media (max-width: 360px) { .install-btn span { display: none; } .install-btn { padding: 9px 11px; } }
.ib-close { background: none; border: 0; color: #999; font-size: 1rem; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.ib-close:hover { background: var(--off); color: var(--black); }
.ios-sheet { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.ios-sheet[hidden] { display: none; }
.ios-card { background: #fff; color: var(--black); border-radius: 22px; padding: 26px 22px 22px; width: 100%; max-width: 420px; text-align: center; position: relative; animation: fadeUp .35s both; }
.ios-card img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 10px; }
.ios-card > b { display: block; font-size: 1.05rem; margin-bottom: 12px; }
.ios-card p { margin: 6px 0; font-size: .95rem; color: #333; }
.ios-card .ib-close { position: absolute; top: 10px; inset-inline-end: 10px; }

/* ---------- Toast ---------- */
.toast-box { position: fixed; bottom: 80px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
[dir=rtl] .toast-box { transform: translateX(50%); }
@media (min-width: 992px) { .toast-box { bottom: 24px; } }
.toast { background: var(--black); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn .3s cubic-bezier(.2,1.2,.4,1); white-space: nowrap; }
.toast svg { color: var(--red); }
.toast.hide { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9);} to { opacity: 1; transform: none;} }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px);} }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
