/* City App website — styles on top of Bootstrap 5.3 (RTL/LTR + light/dark). Colors match the mobile app theme. */

:root,
[data-bs-theme="light"] {
    --ca-primary: #CD183D;
    --ca-primary-rgb: 205, 24, 61;
    --ca-primary-dark: #61011F;
    --ca-accent: #FFB200;
    --ca-surface: #F6F5F5;
    --ca-card: #FFFFFF;
    --ca-border: rgba(0, 0, 0, .08);
    --ca-shadow: 0 2px 8px rgba(0, 0, 0, .07);

    --bs-primary: var(--ca-primary);
    --bs-primary-rgb: var(--ca-primary-rgb);
    --bs-link-color: var(--ca-primary);
    --bs-link-color-rgb: var(--ca-primary-rgb);
    --bs-link-hover-color: var(--ca-primary-dark);
    --bs-body-bg: var(--ca-surface);
    --bs-body-font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

[data-bs-theme="dark"] {
    --ca-primary-dark: #610129;
    --ca-surface: #191717;
    --ca-card: #242121;
    --ca-border: rgba(255, 255, 255, .08);
    --ca-shadow: 0 2px 10px rgba(0, 0, 0, .35);

    --bs-body-bg: var(--ca-surface);
    --bs-link-color: #FF5C7C;
    --bs-link-color-rgb: 255, 92, 124;
    --bs-link-hover-color: #FF8FA5;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
}

.page {
    flex: 1 0 auto;
    padding-block: 1rem 2rem;
}

.btn-primary {
    --bs-btn-bg: var(--ca-primary);
    --bs-btn-border-color: var(--ca-primary);
    --bs-btn-hover-bg: #B01434;
    --bs-btn-hover-border-color: #B01434;
    --bs-btn-active-bg: var(--ca-primary-dark);
    --bs-btn-active-border-color: var(--ca-primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--ca-primary);
    --bs-btn-border-color: var(--ca-primary);
    --bs-btn-hover-bg: var(--ca-primary);
    --bs-btn-hover-border-color: var(--ca-primary);
    --bs-btn-active-bg: var(--ca-primary-dark);
}

/* ── App banner ─────────────────────────────────────────── */
.app-banner {
    background: linear-gradient(90deg, var(--ca-primary-dark), var(--ca-primary));
    color: #fff;
    font-size: .875rem;
}

.app-banner-inner {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-block: .5rem;
}

.app-banner-logo {
    border-radius: 10px;
    background: #fff;
    flex: none;
}

.app-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.app-banner-close {
    background: none;
    border: 0;
    color: #fff;
    opacity: .8;
    padding: .25rem;
}

.app-banner-close:hover { opacity: 1; }

/* ── Top bar: red app bar like the app (logo · city with an amber pin · basket / account / language / theme) ── */
.topbar {
    background: var(--ca-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(var(--ca-primary-rgb), .25);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    flex: none;
}

.brand:hover { color: #fff; }
.brand img { border-radius: 10px; background: #fff; }
.brand-name { font-size: 1.1rem; }

.city-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    padding: .35rem .5rem;
    border-radius: 10px;
}

.city-btn:hover { background: rgba(255, 255, 255, .12); }
.city-btn-pin { color: var(--ca-accent); font-size: 1.15rem; }
.city-btn-caret { font-size: .7rem; opacity: .9; }
.city-btn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topbar-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--ca-border);
    background: transparent;
    color: var(--bs-body-color);
    text-decoration: none;
    font-weight: 700;
}

.icon-btn:hover { background: rgba(var(--ca-primary-rgb), .08); color: var(--ca-primary); }

.topbar .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .28); }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.cart-btn { position: relative; font-size: 1.15rem; }
.cart-btn-count {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ca-primary-dark);
    border: 2px solid var(--ca-primary);
    color: #fff;
    font-size: .68rem;
    line-height: 15px;
    text-align: center;
}

.lang-label { font-size: .9rem; }

.theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-light { display: inline; }
[data-bs-theme="dark"] .theme-icon-dark { display: none; }

@media (max-width: 991.98px) {
    /* Phones / tablets: the city sits in the middle, like the app. */
    .brand-name { display: none; }
    .city-btn { margin-inline: auto; }
    .topbar-actions { margin-inline-start: 0; }
}

@media (max-width: 380px) {
    .topbar .icon-btn { width: 34px; height: 34px; }
    .city-btn { font-size: .95rem; padding-inline: .25rem; }
}

/* Home: the red band under the app bar with the search field (rounded bottom corners, like the app). */
.app-band {
    background: var(--ca-primary);
    border-radius: 0 0 35px 35px;
    margin-top: -1rem;
    padding: .35rem 0 1.15rem;
    margin-bottom: 1rem;
}

.app-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 50px;
    background: #fff;
    border-radius: 25px;
    padding-inline: 1.1rem .4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.app-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #212121;
    font-size: 1rem;
}

.app-search input::placeholder { color: #8a8a8a; }
.app-search button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: #555; font-size: 1.25rem; }
.app-search button:hover { background: rgba(0, 0, 0, .05); color: var(--ca-primary); }
[data-bs-theme="dark"] .app-search { background: #2b2727; }
[data-bs-theme="dark"] .app-search input { color: #f1f1f1; }
[data-bs-theme="dark"] .app-search button { color: #ccc; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ca-primary) 0%, var(--ca-primary-dark) 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--ca-shadow);
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 178, 0, .18);
    pointer-events: none;
}

.hero-text { position: relative; z-index: 1; flex: 1; }

.hero-kicker { margin: 0 0 .25rem; opacity: .85; font-weight: 600; }

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.hero-title .bi { color: var(--ca-accent); }

.hero-sub { max-width: 40rem; opacity: .92; margin-bottom: 1.25rem; }

.hero-img {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid rgba(255, 255, 255, .25);
    flex: none;
}

@media (max-width: 575.98px) {
    .hero { padding: 1.5rem 1.25rem; }
    .hero-img { display: none; }
}

/* ── Sections & cards ───────────────────────────────────── */
.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.placeholder-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--ca-card);
    border: 1px dashed var(--ca-border);
    border-radius: 18px;
    padding: 1.25rem;
    color: var(--bs-secondary-color);
}

.placeholder-card .bi { font-size: 1.75rem; color: var(--ca-primary); }

/* ── City grid (picker + home) ──────────────────────────── */
.modal-content { border-radius: 22px; background: var(--bs-body-bg); }

/* ── Message pages (404 / error / API down) ─────────────── */
.message-page {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 36rem;
    margin-inline: auto;
}

.message-icon {
    display: inline-grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: rgba(var(--ca-primary-rgb), .1);
    color: var(--ca-primary);
    font-size: 2.6rem;
}

[data-bs-theme="dark"] .message-icon { background: rgba(var(--ca-primary-rgb), .22); color: #FF7A94; }

.message-code {
    margin: .75rem 0 0;
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
    color: rgba(var(--ca-primary-rgb), .18);
}

.message-page h1 { font-size: 1.5rem; font-weight: 800; margin-top: .75rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--ca-card);
    border-top: 1px solid var(--ca-border);
    padding-block: 2rem 1rem;
    margin-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.footer-title { font-size: 1rem; font-weight: 800; margin-bottom: .75rem; }

.footer-links li + li { margin-top: .4rem; }

.footer-links a { color: var(--bs-body-color); text-decoration: none; }

.footer-links a:hover { color: var(--ca-primary); }

.store-badges { display: flex; flex-wrap: wrap; gap: .5rem; }

.store-badges img { height: 40px; width: auto; }

.social-links { display: flex; gap: .5rem; }

.social-links a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--ca-primary-rgb), .08);
    color: var(--ca-primary);
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid var(--ca-border);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
}

/* ── Bottom nav (mobile): a floating bar like the app; Reels in the middle with the app's gradient ── */
.bottom-nav {
    position: fixed;
    z-index: 1020;
    bottom: calc(10px + env(safe-area-inset-bottom));
    inset-inline: 8px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-inline: .25rem;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.bottom-nav a {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
}

.bn-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 32px;
    border-radius: 12px;
    font-size: 1.35rem;
    transition: background-color .15s, height .15s;
}

.bn-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Active item: a tinted square with the icon only (the app hides the label). */
.bottom-nav a.active { color: var(--ca-primary); }
.bottom-nav a.active .bn-icon { height: 48px; background: rgba(var(--ca-primary-rgb), .1); }
.bottom-nav a.active:not(.bn-reels) .bn-label { display: none; }
[data-bs-theme="dark"] .bottom-nav a.active { color: #FF7A94; }

.bn-reels-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 46px;
    margin-top: -14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF007A, #FF416C 55%, #FF4B2B);
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 6px 16px rgba(255, 65, 108, .45);
    animation: bn-pulse 2.4s ease-in-out infinite;
}

.bn-new {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 6px;
    border: 2px solid var(--ca-card);
    border-radius: 7px;
    background: #E0103A;
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .02em;
}

.bn-reels .bn-label { color: var(--bs-body-color); }

@keyframes bn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .bn-reels-btn { animation: none; } }

/* Room for the floating bar at the end of the page. */
@media (max-width: 767.98px) {
    body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ═══════════════ Phase 2: home sections, service page ═══════════════ */

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.visually-hidden-focusable:not(:focus) { position: absolute; }

/* ── Slider ── */
.slider { position: relative; }

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 20px;
    box-shadow: var(--ca-shadow);
    background: var(--ca-card);
}

.slider-track::-webkit-scrollbar { display: none; }

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 2 / 1;
}

.slide img,
.slide a { display: block; width: 100%; height: 100%; object-fit: cover; }

.slider-dots {
    position: absolute;
    bottom: .6rem;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: .3rem;
    pointer-events: none;
}

.slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    transition: width .2s, background-color .2s;
}

.slider-dots span.active { width: 20px; background: #fff; }

/* ── Search box ── */
.search-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 16px;
    padding: .35rem .35rem .35rem .75rem;
    box-shadow: var(--ca-shadow);
}

[dir="rtl"] .search-box { padding: .35rem .75rem .35rem .35rem; }

.search-box > .bi { color: var(--bs-secondary-color); }

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
    outline: none;
    padding: .4rem 0;
}

.search-box .btn { border-radius: 12px; flex: none; }

.search-box-sm { box-shadow: none; border-radius: 14px; }

/* ── Horizontal scrollers ── */
.h-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.h-scroll > * { scroll-snap-align: start; }

.h-scroll-tiles { grid-auto-columns: minmax(230px, 280px); }

/* ── Service tiles: the picture itself with 20px corners (no card), a tab in its top corner, the name below — like the app ── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem .85rem;
}

@media (max-width: 575.98px) {
    /* 4 per row on phones, like the app. */
    .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem .5rem; }
    .service-name { font-size: .8rem; }
    .service-badge { font-size: .62rem; padding: .05rem .4rem; }
}

.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: var(--bs-body-color);
    text-decoration: none;
    text-align: center;
    transition: transform .15s;
}

a.service-tile:hover { color: var(--bs-body-color); }

.service-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.04;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(var(--ca-primary-rgb), .08);
    color: var(--ca-primary);
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.service-img img { width: 100%; height: 100%; object-fit: cover; }

/* The tab sits in the top corner, cut like the app's (rounded on the inner corner only). */
.service-badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 800;
    padding: .1rem .55rem;
    border-end-start-radius: 12px;
    background: var(--ca-accent);
    color: #3a2600;
}

.service-tile[style*="--tile-border"] .service-badge.is-note { background: var(--tile-border); color: #fff; }
.service-badge.is-new { background: #1E6FE0; color: #fff; }
.service-badge.is-soon { background: var(--ca-primary); color: #fff; }

.service-name { font-weight: 800; font-size: .95rem; line-height: 1.3; opacity: .85; }

.service-tile.is-soon .service-img img { filter: grayscale(1); opacity: .6; }
.service-tile.is-soon { cursor: default; }

/* ── Places list: rows like the app's RestaurantCell (picture at the start, details beside it); 2–3 columns on wide screens ── */
.place-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0 1.5rem;
}

@media (max-width: 575.98px) {
    .place-grid { grid-template-columns: minmax(0, 1fr); }
}

.place-row {
    position: relative;
    display: flex;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--ca-border);
    min-width: 0;
}

.place-row-media {
    position: relative;
    flex: none;
    width: 130px;
    height: 118px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(var(--ca-primary-rgb), .08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.place-row-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-row-noimg { display: grid; place-items: center; color: var(--ca-primary); font-size: 2rem; }

.place-row-logo {
    position: absolute;
    top: .4rem;
    inset-inline-start: .4rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid #fff;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    z-index: 1;
}

.place-row-ribbon {
    position: absolute;
    top: 0;
    inset-inline-start: 2.2rem;
    width: 20px;
    height: 26px;
    display: grid;
    place-items: start center;
    padding-top: 3px;
    background: var(--ca-accent);
    color: var(--ca-primary);
    font-size: .7rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    z-index: 2;
}

.place-row-closed {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    z-index: 1;
}

.place-row-closed .bi { font-size: 1.4rem; }

.place-row-fav {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    z-index: 3;
    width: 36px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-end-start-radius: 12px;
    background: var(--ca-primary);
    color: #fff;
    font-size: 1.05rem;
}

.place-row-fav:hover { background: #B01434; }

.place-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding-top: .1rem;
}

.place-row-name {
    display: flex;
    align-items: center;
    gap: .3rem;
    max-width: 100%;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.35;
}

.place-row-name a {
    min-width: 0;
    color: var(--bs-body-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.place-row:hover .place-row-name a { color: var(--ca-primary); }
[data-bs-theme="dark"] .place-row:hover .place-row-name a { color: #FF7A94; }

.place-verified { flex: none; color: #1E88E5; font-size: 1.05rem; }

.place-row-summary {
    margin: 0;
    max-width: 100%;
    font-size: .8rem;
    color: var(--bs-secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Featured / similar places: a full picture with the name in white (the app's featured strip). */
.place-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, .2);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.place-tile::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.place-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.place-tile:hover .place-tile-img { transform: scale(1.04); }
.place-tile-logo { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 1; width: 46px; height: 46px; border-radius: 12px; border: 2px solid #fff; background: #fff; object-fit: cover; }
.place-tile-tag { position: absolute; top: .5rem; inset-inline-start: .5rem; z-index: 1; }
.place-tile-name { position: absolute; inset-inline: .75rem; bottom: .5rem; z-index: 1; font-size: 1.1rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.place-tile:hover { color: #fff; }

/* Shared bits still used by the place page. */
.place-offer {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    background: var(--ca-accent);
    color: #3a2600;
    font-size: .75rem;
    font-weight: 800;
    padding: .15rem .5rem;
    border-radius: 5px;
}

.place-rate { color: #b77a00; }
[data-bs-theme="dark"] .place-rate { color: var(--ca-accent); }

.place-status { padding: .05rem .5rem; border-radius: 5px; }
.place-status.is-open { background: rgba(25, 135, 84, .12); color: #198754; }
.place-status.is-closed { background: rgba(108, 117, 125, .15); color: var(--bs-secondary-color); }
[data-bs-theme="dark"] .place-status.is-open { color: #5dd39e; }

.place-hours { color: var(--bs-secondary-color); font-weight: 600; }

/* ── Offer / news card ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    box-shadow: var(--ca-shadow);
    color: var(--bs-body-color);
    text-decoration: none;
}

a.news-card:hover { color: var(--bs-body-color); }

.news-img {
    aspect-ratio: 16 / 9;
    background: rgba(var(--ca-primary-rgb), .08);
    display: grid;
    place-items: center;
    color: var(--ca-primary);
    font-size: 2rem;
}

.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem .85rem .85rem;
}

.news-place {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
}

.news-place img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

.news-title {
    font-weight: 800;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: .82rem;
    color: var(--bs-secondary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-expire { font-size: .75rem; font-weight: 700; color: var(--ca-primary); }

/* ── Product card: picture (place logo, amber tag), then the price with a small red "+" and the name — like the app ── */
.item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 17px;
    overflow: hidden;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    color: var(--bs-body-color);
}

.h-scroll:has(.item-card) { grid-auto-columns: minmax(158px, 180px); }

.item-img {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1.2 / 1;
    background: rgba(var(--ca-primary-rgb), .06);
    color: var(--ca-primary);
    font-size: 2rem;
    overflow: hidden;
}

.item-img img { width: 100%; height: 100%; object-fit: cover; }

.item-img > .item-logo {
    inset: auto;
    top: .45rem;
    inset-inline-end: .45rem;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 2px solid #fff;
    background: #fff;
    object-fit: cover;
    z-index: 1;
}

.item-tag {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1;
    border-radius: 0;
    border-start-end-radius: 10px;
}

.item-body { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .65rem .7rem; flex: 1; }

.item-price-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 28px; }

.item-price { font-weight: 900; font-size: 1.02rem; color: var(--bs-body-color); white-space: nowrap; }

.item-price del { color: var(--bs-secondary-color); font-weight: 600; font-size: .78rem; margin-inline-start: .25rem; }

.item-name {
    margin: 0;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-name a { color: inherit; text-decoration: none; }
.item-card:hover .item-name a { color: var(--ca-primary); }

.item-place { font-size: .75rem; color: var(--bs-secondary-color); }

/* "+" (add to basket): a small red circle beside the price, above the card's link. */
.card-add {
    position: relative;
    z-index: 2;
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ca-primary);
    color: #fff;
    font-size: .95rem;
}

.card-add:hover { filter: brightness(1.08); }
.card-add:active { transform: scale(.92); }

/* ── Service page ── */
.breadcrumb { --bs-breadcrumb-divider: "›"; }
.breadcrumb a { text-decoration: none; }

.page-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
}

.page-head-img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    flex: none;
    box-shadow: var(--ca-shadow);
}

.page-head-icon {
    display: grid;
    place-items: center;
    background: rgba(var(--ca-primary-rgb), .1);
    color: var(--ca-primary);
    font-size: 1.6rem;
}

.page-title { font-size: 1.5rem; font-weight: 800; margin: 0; }

.tabs {
    display: flex;
    gap: .35rem;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 16px;
    padding: .3rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tabs a {
    flex: 1;
    white-space: nowrap;
    text-align: center;
    padding: .5rem .75rem;
    border-radius: 12px;
    font-weight: 700;
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.tabs a.active { background: var(--ca-primary); color: #fff; }

.filters { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .75rem; }

.filters-row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }

.chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: thin;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: none;
    padding: .3rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--ca-border);
    background: var(--ca-card);
    color: var(--bs-body-color);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.chip.active { background: var(--ca-primary); border-color: var(--ca-primary); color: #fff; }

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--ca-card);
    border: 1px dashed var(--ca-border);
    border-radius: 18px;
    color: var(--bs-secondary-color);
}

.empty-state > .bi { font-size: 2.5rem; color: var(--ca-primary); display: block; margin-bottom: .5rem; }

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
}

.pager [data-load-more] { min-width: 12rem; font-weight: 700; border-radius: 12px; }

/* ═══════════════ Phase 3: place page ═══════════════ */

.place-hero {
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--ca-shadow);
    margin-bottom: 1rem;
}

.place-hero-cover {
    position: relative;
    aspect-ratio: 16 / 5;
    background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark));
}

.place-hero-cover img { width: 100%; height: 100%; object-fit: cover; }

.place-hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
    padding: 0 1.25rem 1.25rem;
}

.place-hero-logo {
    width: 104px;
    height: 104px;
    margin-top: -52px;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid var(--ca-card);
    background: var(--ca-card);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    display: grid;
    place-items: center;
    color: var(--ca-primary);
    font-size: 2.5rem;
    flex: none;
    position: relative;
}

.place-hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.place-hero-info { flex: 1 1 260px; min-width: 0; padding-top: .75rem; }

.place-hero-name { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; margin: 0 0 .15rem; }

.place-hero-summary { color: var(--bs-secondary-color); margin-bottom: .4rem; }

.place-hero-info .place-meta { font-size: .85rem; }

.place-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.place-hero-actions .btn { border-radius: 12px; }

@media (max-width: 575.98px) {
    .place-hero-cover { aspect-ratio: 16 / 8; }
    .place-hero-body { padding: 0 1rem 1rem; }
    .place-hero-logo { width: 84px; height: 84px; margin-top: -42px; border-radius: 20px; }
    .place-hero-actions { width: 100%; }
    .place-hero-actions .btn-primary { flex: 1; }
}

.place-tabs {
    position: sticky;
    top: 62px;
    z-index: 1010;
    box-shadow: var(--ca-shadow);
}

.place-tabs a { flex: 0 1 auto; }

@media (min-width: 768px) {
    .place-tabs a { flex: 1; }
}

/* ── Online menu ── */
.menu-note {
    font-size: .82rem;
    color: var(--bs-secondary-color);
    background: rgba(var(--ca-primary-rgb), .06);
    border-radius: 12px;
    padding: .5rem .75rem;
}

.menu-toolbar {
    position: sticky;
    top: 122px;
    z-index: 1005;
    background: var(--bs-body-bg);
    padding: .5rem 0 .25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.menu-cats { scrollbar-width: none; }
.menu-cats::-webkit-scrollbar { display: none; }

.menu-section { padding-top: 1rem; scroll-margin-top: 220px; }

.menu-section-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .75rem; }

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .menu-items { grid-template-columns: 1fr; }
}

.menu-item {
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 16px;
    padding: .75rem;
    box-shadow: var(--ca-shadow);
}

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

.menu-item-name { font-size: 1rem; font-weight: 800; margin: 0 0 .2rem; }

.menu-item-desc {
    font-size: .8rem;
    color: var(--bs-secondary-color);
    margin: 0 0 .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-prices {
    list-style: none;
    padding: 0;
    margin: 0 0 .25rem;
    font-size: .82rem;
    display: grid;
    gap: .15rem;
}

.menu-prices li { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px dashed var(--ca-border); padding-bottom: .1rem; }
.menu-prices strong { color: var(--ca-primary); white-space: nowrap; }

.menu-item-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }

.tag {
    font-size: .7rem;
    font-weight: 700;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: rgba(108, 117, 125, .12);
    color: var(--bs-secondary-color);
}

.tag-offer { background: rgba(var(--ca-primary-rgb), .1); color: var(--ca-primary); }

.menu-item-img {
    flex: none;
    width: 104px;
    height: 104px;
    border-radius: 14px;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: rgba(var(--ca-primary-rgb), .06);
    cursor: zoom-in;
}

.menu-item-img img { width: 100%; height: 100%; object-fit: cover; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

button.item-img { border: 0; padding: 0; width: 100%; cursor: zoom-in; }

/* ── Images (menu photos / gallery) ── */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .6rem;
}

.image-grid-menu { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.image-thumb {
    border: 0;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(var(--ca-primary-rgb), .06);
    cursor: zoom-in;
    box-shadow: var(--ca-shadow);
}

.image-grid-menu .image-thumb { aspect-ratio: 3 / 4; }

.image-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.image-thumb:hover img { transform: scale(1.03); }

.lightbox-dialog { max-width: min(96vw, 1100px); }

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
    background: #111;
}

.lightbox-close { position: absolute; top: -2.25rem; inset-inline-end: 0; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 1.3rem;
    display: grid;
    place-items: center;
}

.lightbox-prev { inset-inline-start: .5rem; }
.lightbox-next { inset-inline-end: .5rem; }
[dir="ltr"] .lightbox-nav i { transform: scaleX(-1); display: inline-block; }
#lightbox.single .lightbox-nav { display: none; }

/* ── Reels ── */
.reel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .6rem;
}

@media (max-width: 575.98px) {
    .reel-grid { grid-template-columns: repeat(3, 1fr); gap: .35rem; }
}

.reel-thumb {
    position: relative;
    border: 0;
    padding: 0;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background: #222;
    color: #fff;
}

.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }

.reel-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
}

.reel-title {
    position: absolute;
    bottom: .5rem;
    inset-inline: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-dialog { max-width: min(92vw, 420px); }
.video-dialog video { width: 100%; max-height: 85vh; border-radius: 12px; background: #000; }
.video-close { position: absolute; top: -2.25rem; inset-inline-end: 0; }

/* ── Info tab ── */
.info-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .info-grid { grid-template-columns: 1fr; }
}

.info-col { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: var(--ca-shadow);
}

.info-title { font-size: 1rem; font-weight: 800; margin-bottom: .6rem; }
.info-title .bi { color: var(--ca-primary); }

.info-text { white-space: pre-line; }

.branch { padding: .75rem 0; border-top: 1px solid var(--ca-border); }
.branch:first-of-type { border-top: 0; padding-top: 0; }

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

.branch-phones { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }

.flex-none { flex: none; }

/* ═══════════════ Phase 4 ═══════════════ */

.topbar-nav { display: flex; gap: .15rem; margin-inline-start: .25rem; }

.topbar-nav a {
    padding: .4rem .7rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    white-space: nowrap;
}

.topbar-nav a:hover,
.topbar-nav a.active { color: #fff; background: rgba(255, 255, 255, .16); }

.footer-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-bottom: .5rem; }
.footer-pages a { color: var(--bs-secondary-color); text-decoration: none; font-weight: 600; }
.footer-pages a:hover { color: var(--ca-primary); }

/* Offer details */
.offer-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: var(--ca-shadow);
}

@media (max-width: 767.98px) {
    .offer-detail { grid-template-columns: 1fr; }
}

.offer-detail-img {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(var(--ca-primary-rgb), .06);
    cursor: zoom-in;
}

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

.offer-detail-title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; margin-bottom: .75rem; }

.offer-detail-text { line-height: 1.9; }

a.news-place { text-decoration: none; }

/* Reels page */
.reel-item { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }

.reel-place {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--bs-body-color);
    text-decoration: none;
    min-width: 0;
}

.reel-place img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.reel-place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* City Mart */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .store-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
}

.store-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .5rem;
    border-radius: 16px;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    box-shadow: var(--ca-shadow);
    color: var(--bs-body-color);
    text-decoration: none;
    text-align: center;
}

.store-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(var(--ca-primary-rgb), .06);
    color: var(--ca-primary);
    font-size: 1.8rem;
}

.store-img img { width: 100%; height: 100%; object-fit: cover; }

.store-name { font-size: .82rem; font-weight: 700; line-height: 1.3; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .6rem;
}

@media (max-width: 575.98px) {
    .brand-grid { grid-template-columns: repeat(4, 1fr); gap: .4rem; }
}

.brand-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    color: var(--bs-body-color);
    text-decoration: none;
    text-align: center;
    min-width: 0;
}

.brand-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ca-border);
    display: grid;
    place-items: center;
    font-size: .7rem;
    padding: 4px;
}

.brand-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.brand-tile-name { font-size: .72rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.brand-logo { background: #fff; object-fit: contain; padding: 4px; }

/* Static pages */
.text-page { max-width: 52rem; margin-inline: auto; }

.download-hero { text-align: center; padding: 2rem 0 1rem; }

.download-logo { border-radius: 28px; box-shadow: var(--ca-shadow); }

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

/* ═══════════════ Fixed image boxes ═══════════════
   aspect-ratio only sets a *minimum* height when the box has content, so a tall image used to
   stretch its card. The image is now taken out of the flow and fills the box, so every card of
   the same kind has exactly the same image height whatever the source image size. */
.place-cover,
.news-img,
.item-img,
.service-img,
.store-img,
.image-thumb,
.reel-thumb,
.place-hero-cover,
.slide {
    position: relative;
    overflow: hidden;
}

.place-cover > img,
.news-img > img,
.item-img > img,
.service-img > img,
.store-img > img,
.image-thumb > img,
.reel-thumb > img,
.place-hero-cover > img,
.slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide > a { position: absolute; inset: 0; }

/* Badges / overlays stay above the absolutely positioned image. */
.place-offer,
.service-badge,
.reel-play,
.reel-title { z-index: 1; }

/* Cards in a row/grid all get the same height. */
.news-grid > .news-card,
.h-scroll > .news-card { height: 100%; }

/* ═══════════════ Other cities (home page) ═══════════════ */
.city-cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .85rem;
}

.city-cover-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ca-primary), rgba(var(--ca-primary-rgb), .7));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.city-cover-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.city-cover-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, 0) 70%);
}

.city-cover-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3rem;
    opacity: .55;
}

.city-cover-name {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem .9rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.city-cover-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.city-cover-name > i {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
    font-size: .95rem;
    transition: background .2s ease;
}

.city-cover-card:hover,
.city-cover-card:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.city-cover-card:hover > img { transform: scale(1.05); }
.city-cover-card:hover .city-cover-name > i { background: var(--ca-primary); }

[data-bs-theme="dark"] .city-cover-card { box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }

@media (max-width: 575.98px) {
    .city-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .city-cover-name { font-size: .95rem; padding: .6rem .7rem; }
    .city-cover-name > i { width: 26px; height: 26px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .city-cover-card, .city-cover-card > img { transition: none; }
    .city-cover-card:hover > img { transform: none; }
}

/* City picker modal: same cover cards, with a clear "selected" state. */
.city-picker .modal-header { padding: 1.25rem 1.25rem .25rem; }
.city-picker .modal-body { padding: 1rem 1.25rem 1.25rem; }
.city-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.city-cover-card.selected {
    box-shadow: 0 0 0 3px var(--bs-body-bg), 0 0 0 6px var(--ca-primary), 0 8px 20px rgba(var(--ca-primary-rgb), .25);
}

.city-cover-check {
    position: absolute;
    top: .6rem;
    inset-inline-start: .6rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--ca-primary);
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.city-cover-badge {
    flex: none;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--ca-primary);
    font-size: .75rem;
    font-weight: 700;
    text-shadow: none;
}

@media (max-width: 575.98px) {
    .city-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .city-picker .modal-header, .city-picker .modal-body { padding-inline: 1rem; }
}

/* ═══════════════ Design polish ═══════════════ */

:root,
[data-bs-theme="light"] {
    --ca-radius: 18px;
    --ca-shadow-hover: 0 12px 28px rgba(0, 0, 0, .12);
    --ca-shimmer: rgba(255, 255, 255, .55);
}

[data-bs-theme="dark"] {
    --ca-shadow-hover: 0 12px 28px rgba(0, 0, 0, .5);
    --ca-shimmer: rgba(255, 255, 255, .07);
}

/* ── Buttons: one radius everywhere ── */
.btn { --bs-btn-border-radius: 10px; --bs-btn-font-weight: 700; }
.btn-sm { --bs-btn-border-radius: 8px; }

/* ── Cards: same lift on hover, small press on tap ── */
.place-card,
.news-card,
.item-card,
.service-tile,
.store-tile,
.brand-tile,
.city-cover-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

:is(.place-card, a.news-card, .item-card, .store-tile, .brand-tile):hover {
    transform: translateY(-3px);
    box-shadow: var(--ca-shadow-hover);
}

:is(.place-card, a.news-card, .item-card, a.service-tile, .store-tile, .brand-tile, .city-cover-card):active {
    transform: scale(.98);
}

/* ── Image loading shimmer (only while the image is still loading; needs JS to know when it is done) ── */
@keyframes ca-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

html.js :is(.place-cover, .news-img, .item-img, .service-img, .store-img, .image-thumb, .reel-thumb,
             .place-hero-cover, .place-logo, .place-hero-logo, .brand-img, .menu-item-img, .slide,
             .city-cover-card):has(img):not(.img-done):not(.img-failed)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(100deg, transparent 20%, var(--ca-shimmer) 50%, transparent 80%);
    animation: ca-shimmer 1.3s ease-in-out infinite;
    pointer-events: none;
}

.place-logo,
.place-hero-logo,
.brand-img,
.menu-item-img { position: relative; overflow: hidden; }

.place-logo,
.place-hero-logo { background: rgba(var(--ca-primary-rgb), .06); }

/* Images fade in instead of popping. */
html.js :is(.place-cover, .news-img, .item-img, .place-hero-cover, .place-logo, .place-hero-logo, .image-thumb, .reel-thumb, .city-cover-card) img {
    transition: opacity .3s ease;
}

html.js :is(.place-cover, .news-img, .item-img, .place-hero-cover, .place-logo, .place-hero-logo, .image-thumb, .reel-thumb, .city-cover-card):not(.img-done) > img {
    opacity: 0;
}

/* No cover: the logo, blurred, fills the cover. */
.place-cover > img.cover-from-logo {
    filter: blur(18px) saturate(1.3);
    transform: scale(1.3);
    opacity: .75;
}

/* ── Horizontal rows: no grey scrollbars; ‹ › buttons on desktop ── */
.h-scroll,
.chips,
.tabs { scrollbar-width: none; }

.h-scroll::-webkit-scrollbar,
.chips::-webkit-scrollbar,
.tabs::-webkit-scrollbar { display: none; }

.h-scroll { padding: .25rem .1rem .75rem; }

.h-scroll-wrap { position: relative; }

.h-scroll-btn {
    position: absolute;
    top: calc(50% - 26px);
    z-index: 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ca-border);
    border-radius: 50%;
    background: var(--ca-card);
    color: var(--bs-body-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}

.h-scroll-btn[hidden] { display: none; }
.h-scroll-btn.is-prev { inset-inline-start: -14px; }
.h-scroll-btn.is-next { inset-inline-end: -14px; }
.h-scroll-wrap:hover .h-scroll-btn,
.h-scroll-btn:focus-visible { opacity: 1; }
.h-scroll-btn:hover { background: var(--ca-primary); border-color: var(--ca-primary); color: #fff; }

[dir="rtl"] :is(.h-scroll-btn, .slider-arrow) .bi { display: inline-block; transform: scaleX(-1); }

/* ── Slider: arrows on desktop; counter + progress bar when there are many slides ── */
.slider-arrow {
    position: absolute;
    top: calc(50% - 22px);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #1d1b1b;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .2s ease;
}

.slider-arrow.is-prev { inset-inline-start: .85rem; }
.slider-arrow.is-next { inset-inline-end: .85rem; }

@media (hover: hover) and (pointer: fine) {
    .slider-arrow { display: grid; }
    .slider:hover .slider-arrow,
    .slider-arrow:focus-visible { opacity: 1; }
}

.slider-count {
    position: absolute;
    bottom: .75rem;
    inset-inline-end: .75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    pointer-events: none;
}

.slider-progress {
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    overflow: hidden;
    display: flex;
}

[dir="rtl"] .slider-progress { justify-content: flex-end; }

.slider-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width .3s ease;
}

/* ── Home: section rhythm, titles, "view all" ── */
.home-section { margin-top: 2.25rem; }

.section-head { margin-bottom: .85rem; }
.section-head .section-title { margin-bottom: 0; }

.section-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.3rem;
    margin-bottom: .85rem;
}

.section-title > .bi {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(var(--ca-primary-rgb), .1);
    color: var(--ca-primary);
    font-size: 1rem;
    flex: none;
}

[data-bs-theme="dark"] .section-title > .bi { background: rgba(var(--ca-primary-rgb), .22); color: #FF7A94; }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: none;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(var(--ca-primary-rgb), .08);
    color: var(--ca-primary);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

.section-link:hover { background: rgba(var(--ca-primary-rgb), .16); color: var(--ca-primary); }
[data-bs-theme="dark"] .section-link { color: #FF7A94; background: rgba(var(--ca-primary-rgb), .2); }

/* ── Home search: bigger and centred ── */
.home-search { margin-top: 1.25rem; }

.search-box-lg {
    max-width: 760px;
    margin-inline: auto;
    padding: .45rem .45rem .45rem 1rem;
    border-radius: 20px;
    border-width: 2px;
    border-color: rgba(var(--ca-primary-rgb), .12);
    transition: border-color .15s ease, box-shadow .15s ease;
}

[dir="rtl"] .search-box-lg { padding: .45rem 1rem .45rem .45rem; }

.search-box-lg:focus-within {
    border-color: rgba(var(--ca-primary-rgb), .45);
    box-shadow: 0 0 0 4px rgba(var(--ca-primary-rgb), .1), var(--ca-shadow);
}

.search-box-lg > .bi { font-size: 1.15rem; color: var(--ca-primary); }
.search-box-lg input { font-size: 1rem; padding-block: .55rem; }
.search-box-lg .btn { padding-inline: 1.4rem; border-radius: 14px; }

/* ── Places list: 4 per row on large screens ── */
@media (min-width: 1200px) {
    .place-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Filters: sort + "open now" as chips ── */
.filter-select {
    width: auto;
    border-radius: 999px;
    border-color: var(--ca-border);
    background-color: var(--ca-card);
    font-weight: 700;
    font-size: .85rem;
    padding-block: .3rem;
    padding-inline-start: .9rem;
}

.filter-toggle { cursor: pointer; user-select: none; }
.filter-toggle:has(input:checked) { background: #198754; border-color: #198754; color: #fff; }
.filter-toggle:has(input:focus-visible) { outline: 2px solid var(--ca-primary); outline-offset: 2px; }

.chip { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.chip:not(.active):hover { border-color: rgba(var(--ca-primary-rgb), .4); color: var(--ca-primary); }

/* ── Place page: logo next to the name, soft fade at the bottom of the cover ── */
.place-hero-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent);
    pointer-events: none;
}

.place-hero-body { flex-wrap: wrap; align-items: flex-start; }
.place-hero-info { flex: 1 1 0; min-width: 180px; padding-top: .9rem; }
.place-hero-actions { flex-basis: 100%; }

@media (min-width: 768px) {
    .place-hero-body { align-items: flex-end; }
    .place-hero-actions { flex-basis: auto; }
}

@media (max-width: 575.98px) {
    .place-hero-logo { width: 76px; height: 76px; margin-top: -34px; border-radius: 18px; }
    .place-hero-info { padding-top: .6rem; }
    .place-hero-name { font-size: 1.35rem; }
}

.place-tabs { background: var(--ca-card); }

/* ── App banner: slimmer on phones ── */
@media (max-width: 575.98px) {
    .app-banner { font-size: .8rem; }
    .app-banner-inner { gap: .5rem; padding-block: .35rem; }
    .app-banner-logo { width: 32px; height: 32px; border-radius: 8px; }
    .app-banner .btn { padding: .2rem .6rem; font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
    html.js *::before { animation: none !important; }
    :is(.place-card, a.news-card, .item-card, a.service-tile, .store-tile, .brand-tile, .city-cover-card):is(:hover, :active) { transform: none; }
}

/* ── Slider on desktop: at most 420px tall so the next section shows; the whole banner stays visible
      (contain) and a blurred copy of it fills the sides. Phones and tablets keep the 2:1 banner. ── */
.slide-bg { display: none; }

@media (min-width: 992px) {
    .slide { aspect-ratio: auto; height: min(420px, 50vh); min-height: 300px; }
    .slide img:not(.slide-bg) { object-fit: contain; }
    .slide > .slide-bg {
        display: block;
        filter: blur(28px) saturate(1.2);
        transform: scale(1.2);
        opacity: .9;
    }
}

/* ── Footer: developer credit ── */
.footer-credit { white-space: nowrap; }
.footer-credit::before { content: "·"; margin-inline: .5rem; }
.footer-credit a { color: inherit; font-weight: 700; text-decoration: none; transition: color .15s ease; }
.footer-credit a:hover { color: var(--ca-primary); }
[data-bs-theme="dark"] .footer-credit a:hover { color: #FF7A94; }

@media (max-width: 575.98px) {
    .footer-credit { display: block; margin-top: .35rem; }
    .footer-credit::before { content: none; }
}

/* ═══════════════ Website basket (orders sent on WhatsApp) ═══════════════ */
.menu-note-order { background: rgba(25, 135, 84, .08); color: #146c43; }
[data-bs-theme="dark"] .menu-note-order { color: #5dd39e; background: rgba(25, 135, 84, .16); }

.cart-add { margin-top: .5rem; border-radius: 999px; padding-inline: .9rem; font-weight: 700; }
.card-add.cart-add { margin: 0; padding: 0; border-radius: 50%; }

/* Floating button: above the mobile bottom bar, bottom corner on desktop. */
.cart-fab {
    position: fixed;
    z-index: 1030;
    inset-inline-end: 1rem;
    bottom: calc(92px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .6rem .55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ca-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(var(--ca-primary-rgb), .4);
    animation: cart-pop .3s ease;
}

[dir="rtl"] .cart-fab { padding: .55rem 1rem .55rem .6rem; }
.cart-fab[hidden] { display: none; }
.cart-fab:hover { background: #B01434; }

@media (min-width: 768px) {
    .cart-fab { bottom: 1.5rem; inset-inline-end: 1.5rem; }
}

@media (max-width: 575.98px) {
    .cart-fab { inset-inline: 1rem; justify-content: space-between; }
}

.cart-fab-icon { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.cart-fab-count {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--ca-primary);
    font-size: .72rem;
    line-height: 20px;
    text-align: center;
}
.cart-fab-total { padding: .2rem .7rem; border-radius: 999px; background: rgba(0, 0, 0, .18); font-size: .85rem; }

@keyframes cart-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Keep the last items of the page reachable above the floating button. */
body.has-cart .page { padding-bottom: 5.5rem; }

.cart-toast {
    position: fixed;
    z-index: 1090;
    left: 50%;
    top: 5rem;
    transform: translate(-50%, -10px);
    padding: .5rem 1rem;
    border-radius: 999px;
    background: #198754;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Dialogs */
.cart-modal .modal-header { gap: .75rem; align-items: center; }
.cart-item-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }

.cart-group { border: 1px solid var(--ca-border); border-radius: 14px; padding: .5rem .75rem .25rem; margin-bottom: .75rem; }
.cart-group legend { float: none; width: auto; padding: 0 .35rem; margin: 0; font-size: .95rem; font-weight: 800; }
.cart-group legend small { font-weight: 600; color: var(--bs-secondary-color); font-size: .75rem; }

.cart-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .1rem;
    border-bottom: 1px dashed var(--ca-border);
    cursor: pointer;
}
.cart-option:last-child { border-bottom: 0; }
.cart-option input { accent-color: var(--ca-primary); width: 18px; height: 18px; flex: none; }
.cart-option span { flex: 1; }
.cart-option strong { font-size: .85rem; color: var(--ca-primary); }
[data-bs-theme="dark"] .cart-option strong { color: #FF7A94; }

.cart-qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }

.cart-stepper { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--ca-border); border-radius: 999px; padding: .15rem; }
.cart-stepper .btn { width: 36px; height: 36px; border-radius: 50%; padding: 0; display: grid; place-items: center; color: var(--ca-primary); }
.cart-stepper .btn:hover { background: rgba(var(--ca-primary-rgb), .1); }
.cart-stepper > span { min-width: 1.8rem; text-align: center; font-weight: 800; }
.cart-stepper-sm .btn { width: 30px; height: 30px; font-size: .85rem; }

.cart-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; padding-block: .65rem; font-weight: 800; }
.cart-cta-price { padding: .1rem .6rem; border-radius: 999px; background: rgba(0, 0, 0, .15); }

.cart-empty { text-align: center; padding: 2rem 1rem; color: var(--bs-secondary-color); }
.cart-empty > .bi { font-size: 2.5rem; color: var(--ca-primary); display: block; margin-bottom: .5rem; }

.cart-line { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--ca-border); }
.cart-line-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; display: grid; place-items: center; background: rgba(var(--ca-primary-rgb), .08); color: var(--ca-primary); }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 800; line-height: 1.35; }
.cart-line-extra { font-size: .78rem; color: var(--bs-secondary-color); }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: .35rem; }

.cart-summary { padding-top: .75rem; }
.cart-sum { font-size: 1.15rem; color: var(--ca-primary); }
[data-bs-theme="dark"] .cart-sum { color: #FF7A94; }



/* ═══════════════ Customer account ═══════════════ */
.account-btn { width: auto; min-width: 40px; padding-inline: .6rem; gap: .35rem; display: inline-flex; align-items: center; }
.account-btn .bi { font-size: 1.15rem; }
.account-btn.is-signed-in { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .16); }
.account-btn-text { font-size: .85rem; font-weight: 700; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) { .account-btn-text { display: none; } }

.account-menu { min-width: 14rem; border-radius: 14px; border-color: var(--ca-border); box-shadow: var(--ca-shadow-hover); }

.auth-card {
    max-width: 440px;
    margin: 1.5rem auto 2rem;
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    box-shadow: var(--ca-shadow);
}

@media (max-width: 575.98px) {
    .auth-card { margin-top: .5rem; padding: 1.25rem 1rem; border-radius: 18px; }
}

.auth-head { text-align: center; margin-bottom: 1.5rem; }
.auth-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(var(--ca-primary-rgb), .1);
    color: var(--ca-primary);
    font-size: 1.9rem;
    margin-bottom: .75rem;
}
[data-bs-theme="dark"] .auth-icon { background: rgba(var(--ca-primary-rgb), .22); color: #FF7A94; }
.auth-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .35rem; }

.auth-form .form-control { border-radius: 14px; }
.auth-form .input-group .form-control { border-start-end-radius: 0; border-end-end-radius: 0; }
.auth-form .input-group .btn { border-start-start-radius: 0; border-end-start-radius: 0; border-color: var(--bs-border-color); }
.auth-code { font-size: 1.6rem; letter-spacing: .5em; font-weight: 800; }

.auth-channels { padding: 1rem; border-radius: 16px; background: rgba(var(--ca-primary-rgb), .04); border: 1px dashed var(--ca-border); }

/* ── Account pages: addresses ── */
.account-page { max-width: 720px; margin: 1rem auto 2rem; }

.address-list { display: grid; gap: .75rem; }
.address-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    box-shadow: var(--ca-shadow);
}
.address-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--ca-primary-rgb), .08); color: var(--ca-primary); font-size: 1.15rem; }
.address-info { flex: 1; min-width: 0; line-height: 1.5; }

.address-form .form-control { border-radius: 12px; }

.map-box { position: relative; height: 320px; border-radius: 18px; overflow: hidden; border: 2px solid var(--ca-border); background: #e9eef2; }
.map-box.is-outside { border-color: var(--bs-danger); }
.map-canvas { position: absolute; inset: 0; z-index: 0; }
.map-pin {
    position: absolute;
    z-index: 500;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--ca-primary);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35));
    pointer-events: none;
}
.map-locate { position: absolute; z-index: 500; bottom: .75rem; inset-inline-start: .75rem; border-radius: 999px; font-weight: 700; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.leaflet-container { font-family: inherit; }

/* ── Basket: order on the site ── */
.cart-checkout { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ca-border); }

/* ── Checkout / orders ── */
.checkout-card { padding: 1rem; margin-bottom: .9rem; border-radius: 16px; background: var(--ca-card); border: 1px solid var(--ca-border); box-shadow: var(--ca-shadow); }
.checkout-h { font-size: 1rem; font-weight: 800; margin: 0 0 .6rem; }
.checkout-h .bi { color: var(--ca-primary); }
.checkout-place { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; padding: .6rem .8rem; border-radius: 14px; background: rgba(var(--ca-primary-rgb), .05); color: inherit; text-decoration: none; }
.checkout-place img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
[dir="ltr"] .checkout-place .bi-chevron-left { transform: scaleX(-1); }
.checkout-line { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--ca-border); }
.checkout-line:last-child { border-bottom: 0; }
.checkout-qty { flex: none; min-width: 2.2rem; padding: .1rem .35rem; border-radius: 8px; background: rgba(var(--ca-primary-rgb), .1); color: var(--ca-primary); font-weight: 800; text-align: center; }
.choice-list { display: grid; gap: .5rem; }
.choice { display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .8rem; border-radius: 14px; border: 1.5px solid var(--ca-border); cursor: pointer; line-height: 1.5; }
.choice input { margin-top: .3rem; accent-color: var(--ca-primary); }
.choice:has(input:checked) { border-color: var(--ca-primary); background: rgba(var(--ca-primary-rgb), .05); }
.checkout-pay { display: flex; align-items: center; gap: .6rem; }
.checkout-pay > .bi { font-size: 1.6rem; color: #1faa55; }
.checkout-totals > div { padding: .15rem 0; }
.checkout-form .form-control { border-radius: 12px; }

.orders-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; padding: .3rem; border-radius: 999px; background: rgba(var(--ca-primary-rgb), .06); }
.orders-tabs a { flex: 1; padding: .45rem; border-radius: 999px; text-align: center; font-weight: 700; color: inherit; text-decoration: none; }
.orders-tabs a.active { background: var(--ca-primary); color: #fff; }
.order-list { display: grid; gap: .75rem; }
.order-card { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 16px; background: var(--ca-card); border: 1px solid var(--ca-border); box-shadow: var(--ca-shadow); color: inherit; text-decoration: none; }
.order-card > img, .order-card-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.order-card-icon { display: grid; place-items: center; background: rgba(var(--ca-primary-rgb), .08); color: var(--ca-primary); font-size: 1.3rem; }
.order-card-info { flex: 1; min-width: 0; line-height: 1.5; }
.order-card-date { flex: none; align-self: flex-start; white-space: nowrap; font-size: .75rem; }
.order-card-wrap { display: grid; gap: .4rem; }
.order-card-again { justify-self: start; border-radius: 999px; }
.order-status-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-inline-end: .2rem; }
.order-status.fs-6 .order-status-icon { width: 20px; height: 20px; }
.order-copy { border-radius: 999px; padding: .15rem .6rem; margin-inline-end: auto; }
.order-time { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .55rem .75rem; border-radius: 12px; background: rgba(var(--ca-primary-rgb), .08); }
.order-time > .bi { color: var(--ca-primary); }
.order-notes-box { margin-bottom: 1rem; padding: 1rem; border: 1.5px solid var(--ca-primary); border-radius: 14px; text-align: center; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; white-space: pre-line; }
.order-line-img { flex: none; width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }
.min-w-0 { min-width: 0; }
.order-add { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--bs-secondary-color); }
.order-add-price { flex: none; padding: 0 .35rem; border-radius: 4px; background: var(--ca-primary); color: #fff; font-weight: 700; font-size: .78rem; }
.order-add-group { margin-top: .5rem; padding: 0 .3rem; font-size: .85rem; font-weight: 700; background: rgba(127, 127, 127, .12); border-radius: 4px; display: inline-block; }
.order-driver { display: flex; align-items: center; gap: .75rem; }
.order-driver > img, .order-driver-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ca-primary); }
.order-driver-icon { display: grid; place-items: center; color: var(--ca-primary); font-size: 1.3rem; }
.order-attachments { display: flex; flex-wrap: wrap; gap: .5rem; }
.order-attachments img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; border: 1px solid var(--ca-border); }
.support-row { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed var(--ca-border); }
.support-row:last-child { border-bottom: 0; }
.checkout-distance { margin-top: .75rem; padding: .6rem .75rem; border-radius: 12px; background: rgba(var(--ca-primary-rgb), .08); font-size: .9rem; }
.order-status { display: inline-block; margin-top: .2rem; padding: .1rem .6rem; border-radius: 999px; background: rgba(var(--ca-primary-rgb), .1); color: var(--ca-primary); font-size: .8rem; font-weight: 800; }
.order-placed { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: 1rem; border-radius: 16px; background: rgba(31, 170, 85, .1); border: 1px solid rgba(31, 170, 85, .35); }
.order-placed > .bi { font-size: 2rem; color: #1faa55; }
.order-status.is-updated, [data-order-status-box].is-updated { animation: order-status-flash 1.6s ease; }
@keyframes order-status-flash { 0%, 40% { background: #1faa55; color: #fff; } 100% { } }
@media (prefers-reduced-motion: reduce) { .order-status.is-updated, [data-order-status-box].is-updated { animation: none; } }
.promo-box .form-control { border-radius: 0; }
.promo-box > :first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.promo-box > :last-child:not([hidden]), .promo-box > [data-promo-apply]:not([hidden]) { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-stars label { font-size: 1.9rem; line-height: 1; color: var(--ca-border); cursor: pointer; transition: color .15s; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: #f5a623; }
.rate-stars input:focus-visible + label { outline: 2px solid var(--ca-primary); outline-offset: 2px; border-radius: 4px; }
.rate-row { display: flex; justify-content: space-between; align-items: center; padding: .25rem 0; }
.rate-stars-view { color: #f5a623; }
.schedule-box { margin-top: .75rem; }
.fav-btn.is-fav { color: #e0245e; border-color: #e0245e; }
.fav-btn.is-fav:hover { background: rgba(224, 36, 94, .08); color: #e0245e; }
.account-links { display: grid; margin-top: .25rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--ca-border); background: var(--ca-card); }
.account-links a { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; color: inherit; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--ca-border); }
.account-links a:last-child { border-bottom: 0; }
.account-links a .bi { color: var(--ca-primary); }
.account-links a:hover { background: rgba(var(--ca-primary-rgb), .05); }
.promo-list { display: grid; gap: .75rem; }
.promo-card { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .9rem 1rem; border-radius: 16px; background: var(--ca-card); border: 1px dashed rgba(var(--ca-primary-rgb), .45); }
.promo-card-main { display: flex; align-items: center; gap: .75rem; flex: 1 1 220px; min-width: 0; }
.promo-amount { flex: none; min-width: 3.4rem; padding: .35rem .5rem; border-radius: 12px; background: rgba(var(--ca-primary-rgb), .1); color: var(--ca-primary); font-weight: 800; text-align: center; }
.promo-code-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--ca-primary); background: transparent; color: var(--ca-primary); font-weight: 800; letter-spacing: .04em; }
.promo-code-btn:hover { background: rgba(var(--ca-primary-rgb), .08); }
.promo-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
.promo-pick { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; border: 1px dashed var(--ca-primary); background: rgba(var(--ca-primary-rgb), .05); color: var(--ca-primary); font-size: .85rem; font-weight: 700; }
.promo-pick small { color: var(--bs-secondary-color); font-weight: 600; }
.min-w-0 { min-width: 0; }
#place-tabs { scroll-margin-top: 72px; }
.order-actions { display: grid; gap: .5rem; margin-bottom: .9rem; }
.order-action-sheet > summary { list-style: none; }
.order-action-sheet > summary::-webkit-details-marker { display: none; }
.order-actions img { vertical-align: -4px; }
.order-action-sheet[open] > summary.btn-outline-danger { background: var(--bs-danger); border-color: var(--bs-danger); color: #fff; opacity: 1; }
.order-action-sheet[open] > summary.btn-outline-primary { background: var(--ca-primary); border-color: var(--ca-primary); color: #fff; opacity: 1; }
/* Product card + "add to basket" button (home offers, City Mart, brands, product search). */
/* Promo-code strip (home and place pages), like the app's ticket cards. */
.promo-strip { margin: .25rem 0 .5rem; }
.promo-strip-place { margin-top: .75rem; }
.promo-scroller { display: flex; gap: .75rem; overflow-x: auto; padding: .25rem .1rem .5rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.promo-ticket { flex: 0 0 230px; display: flex; min-height: 96px; border-radius: 14px; overflow: hidden; background: var(--ca-card); border: 1px solid rgba(var(--ca-primary-rgb), .3); box-shadow: var(--ca-shadow); scroll-snap-align: start; }
.promo-ticket-off { flex: none; width: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; background: linear-gradient(160deg, var(--ca-primary), #8f0f1e); color: #fff; border-inline-end: 2px dashed rgba(255, 255, 255, .6); text-align: center; padding: .25rem; }
.promo-ticket-off strong { font-size: 1.05rem; line-height: 1.1; }
.promo-ticket-off span { font-size: .75rem; opacity: .9; }
.promo-ticket-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; padding: .55rem .65rem; }
.promo-ticket-place { display: flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-weight: 700; font-size: .85rem; }
.promo-ticket-place img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.promo-ticket-place span, .promo-ticket-text { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.promo-ticket-text { font-size: .82rem; font-weight: 600; }
.promo-ticket-code { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 8px; border: 1px dashed var(--ca-primary); background: rgba(var(--ca-primary-rgb), .06); color: var(--ca-primary); font-weight: 800; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
/* Ordering chips on the place header / cards. */
.order-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.order-chip.is-on { background: rgba(31, 170, 85, .12); color: #168a45; }
.order-chip.is-busy { background: rgba(220, 53, 69, .1); color: var(--bs-danger); }
.order-chip.is-fee { background: rgba(var(--ca-primary-rgb), .08); color: var(--ca-primary); cursor: help; }
.place-online { position: relative; display: inline-flex; align-items: center; font-size: 1rem; } /* relative: keeps its visually-hidden label inside the card (else it widens the page in scrolling rows) */
.place-online.is-on { color: #1faa55; }
.place-online.is-off { color: var(--bs-danger); opacity: .8; }
/* Input rules (validate.js): message under the field + characters-left counter. */
.val-msg { margin-top: .3rem; font-size: .82rem; font-weight: 700; color: var(--bs-danger); }
.val-counter { margin-top: .2rem; font-size: .75rem; color: var(--bs-secondary-color); text-align: end; }
.val-counter.is-low { color: var(--bs-danger); font-weight: 700; }
/* Checkout: an address with its edit button. */
.choice-row { display: flex; align-items: stretch; gap: .4rem; }
.choice-row > .choice { flex: 1; min-width: 0; }
.choice-edit { flex: none; display: grid; place-items: center; width: 44px; border-radius: 14px; border: 1.5px solid var(--ca-border); color: var(--ca-primary); text-decoration: none; }
.choice-edit:hover { border-color: var(--ca-primary); background: rgba(var(--ca-primary-rgb), .05); }

/* ═══════════════ App look: chips, coloured panels, offers carousel (matches the mobile app) ═══════════════ */

/* Chips, like the app: rating (red, amber star), VIP (black, lime text), offer (amber). Radius 5. */
.ca-chips { display: flex; flex-wrap: wrap; gap: .3rem; }

.ca-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .45rem;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1.6;
    white-space: nowrap;
}

.ca-chip-rate { background: var(--ca-primary); color: #fff; }
.ca-chip-rate .bi { color: var(--ca-accent); }
.ca-chip-vip { background: #000; color: #B7FF00; }
.ca-chip-vip b { color: var(--ca-accent); font-weight: 900; }
.ca-chip-offer { background: var(--ca-accent); color: #3a2600; }

/* "Online until 3 AM" / "Closed · opens 1 PM" line under a place's name. */
.ca-avail { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 700; }
.ca-avail.is-on { color: #2E9D3F; }
.ca-avail.is-off { color: #E53935; }
[data-bs-theme="dark"] .ca-avail.is-on { color: #5dd39e; }
[data-bs-theme="dark"] .ca-avail.is-off { color: #ff7a7a; }

/* Coloured home panels (offer groups: their own colour / amber; featured stores: purple; promo codes: red). */
.app-panel {
    --panel-bg: var(--ca-accent);
    --panel-fg: #2b1d00;
    background: var(--panel-bg);
    color: var(--panel-fg);
    border-radius: 24px;
    padding: .9rem .9rem 1rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.app-panel.is-dark { --panel-fg: #fff; }
.app-panel.is-purple { --panel-bg: linear-gradient(180deg, #6A3FB5, #5B34A3); }
.app-panel.is-promo { --panel-bg: linear-gradient(180deg, #D22446, #BE1A3A); }
[data-bs-theme="dark"] .app-panel.is-promo { --panel-bg: linear-gradient(180deg, #A5162F, #7a1427); }

.app-panel-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }

.app-panel-bar { width: 5px; height: 26px; border-radius: 3px; background: var(--ca-accent); }

.app-panel-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
}

.app-panel-icon.is-percent { background: var(--ca-primary); color: #fff; }
.app-panel-icon.is-tag { width: auto; height: auto; color: var(--ca-accent); font-size: 1.4rem; }
.app-panel-icon.is-ribbon { width: auto; height: auto; color: var(--ca-accent); font-size: 1.5rem; }

.app-panel-title { margin: 0; flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 900; color: inherit; }

.app-panel-sub { margin: -.4rem 0 .6rem; font-size: .85rem; opacity: .85; }

.app-panel-more {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ca-accent);
    color: #3a2600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.app-panel-more:hover { color: #3a2600; filter: brightness(1.05); }

.app-panel .h-scroll { padding-bottom: .25rem; }
.app-panel .h-scroll-btn { color: var(--bs-body-color); }

/* Promo tickets: a coloured side with the discount (red at home, amber on a place page), the code in a box. */

.promo-ticket { flex: 0 0 250px; min-height: 118px; border-radius: 16px; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); position: relative; }
.promo-ticket-off { width: 76px; background: var(--ca-primary); border-inline-end: 2px dashed rgba(255, 255, 255, .7); }
.promo-ticket-off strong { font-size: 1.25rem; }
.promo-strip-place .promo-ticket-off { background: var(--ca-accent); color: #2b1d00; border-inline-end-color: rgba(0, 0, 0, .25); }
.promo-strip-place .promo-ticket { border: 1px solid var(--ca-border); box-shadow: none; }
.promo-ticket-body { color: var(--bs-body-color); align-items: flex-start; gap: .35rem; }
.promo-ticket-place { color: #1E6FE0; text-decoration: underline; text-underline-offset: 3px; }
.promo-ticket-codebox {
    padding: .1rem .7rem;
    border: 1px solid rgba(var(--ca-primary-rgb), .35);
    border-radius: 8px;
    background: rgba(var(--ca-primary-rgb), .06);
    color: var(--ca-primary);
    font-weight: 900;
    letter-spacing: .12em;
    font-size: .95rem;
}
[data-bs-theme="dark"] .promo-ticket-codebox { color: #FF7A94; }
.promo-ticket-copy { display: inline-flex; align-items: center; gap: .3rem; padding: 0; border: 0; background: none; color: var(--bs-secondary-color); font-size: .8rem; font-weight: 700; }
.promo-ticket-copy:hover { color: var(--ca-primary); }

/* Offers carousel: the neighbours peek in (2 at a time on wide screens); amber "ends" tag, thin red frame. */
.home-offers { margin-top: .25rem; }
.offer-carousel .slider-track {
    gap: .75rem;
    padding-inline: 9%;
    scroll-padding-inline: 9%;
    border-radius: 0;
    box-shadow: none;
    background: none;
}

.offer-carousel .slide.offer-slide {
    flex: 0 0 82%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2.25 / 1;
    border-radius: 18px;
    border: 1.5px solid rgba(var(--ca-primary-rgb), .7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    background: rgba(var(--ca-primary-rgb), .08);
}

.offer-carousel .slide.offer-slide img { object-fit: cover; }

.offer-ends {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1;
    padding: .15rem .8rem;
    border-start-end-radius: 12px;
    background: var(--ca-accent);
    color: #2b1d00;
    font-size: .85rem;
    font-weight: 800;
}

.offer-slide-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; font-weight: 800; text-align: center; color: var(--bs-body-color); }

@media (min-width: 768px) {
    .offer-carousel .slider-track { padding-inline: max(1rem, calc((100% - 1300px) / 2)); scroll-padding-inline: max(1rem, calc((100% - 1300px) / 2)); }
    .offer-carousel .slide.offer-slide { flex-basis: calc(50% - 1.5rem); max-width: 640px; }
}

/* ═══════════════ App look: tabs, filters, place page, menu, offers ═══════════════ */

/* Segmented tabs (offers / news, places / offers / news): a grey track with the selected one as a red pill. */
.tabs {
    gap: .25rem;
    padding: .3rem;
    border: 0;
    border-radius: 24px;
    background: rgba(127, 127, 127, .1);
}

.tabs a { border-radius: 20px; padding: .55rem .75rem; }
.tabs a.active {
    background: linear-gradient(135deg, #D72A4B, var(--ca-primary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--ca-primary-rgb), .35);
}

/* Food categories: round pictures with the name under them; the chosen one gets a red ring. */
.cat-circles {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    padding: .25rem .1rem .5rem;
    scrollbar-width: none;
}

.cat-circles::-webkit-scrollbar { display: none; }

.cat-circle {
    flex: none;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    color: var(--bs-body-color);
    text-decoration: none;
    text-align: center;
}

.cat-circle-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 2px solid var(--ca-border);
    background: var(--ca-card);
    color: var(--ca-primary);
    font-size: 1.4rem;
    transition: border-color .15s;
}

.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle-name { font-size: .78rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-circle.active .cat-circle-img { border: 3px solid var(--ca-primary); }
.cat-circle.active { color: var(--ca-primary); }
[data-bs-theme="dark"] .cat-circle.active { color: #FF7A94; }
.cat-circle:hover .cat-circle-img { border-color: rgba(var(--ca-primary-rgb), .5); }

/* Search fields in pages: outlined with 15px corners, like the app. */
.search-box-sm { border-radius: 15px; border: 1.5px solid rgba(127, 127, 127, .45); background: transparent; box-shadow: none; }

/* ── Place page header: darkened cover with rounded bottom corners; logo, name and chips over it ── */
.place-hero { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; margin-bottom: .75rem; }

.place-hero-cover {
    position: relative;
    aspect-ratio: auto;
    min-height: 250px;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ca-primary-dark), var(--ca-primary));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.place-hero-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.place-hero-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    height: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .85) 100%);
    pointer-events: none;
}

.place-hero-tools { position: absolute; top: .75rem; inset-inline-end: .75rem; z-index: 2; display: flex; gap: .4rem; }

.hero-tool {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 1.15rem;
    backdrop-filter: blur(4px);
}

.hero-tool:hover { background: rgba(0, 0, 0, .55); color: #fff; }
.hero-tool.is-fav { color: #ff4d6d; }

.place-hero-over {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: .9rem;
    padding: 3.5rem 1.25rem 1.5rem;
    color: #fff;
}

.place-hero-cover .place-hero-logo {
    flex: none;
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 16px;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--ca-primary);
    font-size: 2rem;
}

.place-hero-cover .place-hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.place-hero-cover .place-hero-info { flex: 1; min-width: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }

.place-hero-cover .place-hero-name {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 900;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.place-hero-cover .place-verified { color: #42A5F5; font-size: .8em; }

.hero-chip-rate { background: var(--ca-accent); color: #3a2600; }
.hero-chip-rate .bi { color: var(--ca-primary); }
.hero-chip-light { background: #fff; color: #222; }
.hero-chip-light .bi { color: var(--ca-primary); }
.hero-chip-open { background: #43A047; color: #fff; }
.hero-chip-closed { background: #E53935; color: #fff; }
.hero-chip-dark { background: rgba(0, 0, 0, .6); color: #fff; }

.place-hero-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .75rem .25rem 0; }
.place-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; min-width: 0; flex: 1 1 260px; font-size: .88rem; }
.place-hero-summary { width: 100%; margin: 0; color: var(--bs-secondary-color); }
.place-hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 1 auto; }

@media (max-width: 767.98px) {
    /* Phones: the header goes edge to edge, like the app. */
    .place-hero-cover { margin-inline: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); min-height: 230px; }
    .place-hero-over { padding: 3.25rem 1rem 1.35rem; }
    .place-hero-cover .place-hero-logo { width: 76px; height: 76px; }
    .place-hero-actions { width: 100%; }
    .place-hero-actions .btn { flex: 1; }
}

@media (min-width: 992px) {
    .place-hero-cover { min-height: 320px; }
}

/* Place tabs: separate chips with a light red background; the chosen one solid red. */
.place-tabs { background: none; padding: .25rem 0; border-radius: 0; box-shadow: none; gap: .5rem; }
.place-tabs a {
    flex: 0 0 auto;
    padding: .55rem 1rem;
    border-radius: 10px;
    background: rgba(var(--ca-primary-rgb), .1);
    color: var(--bs-body-color);
    box-shadow: none;
}

.place-tabs a .bi { color: var(--ca-primary); }
.place-tabs a.active { background: var(--ca-primary); color: #fff; box-shadow: 0 3px 10px rgba(var(--ca-primary-rgb), .3); }
.place-tabs a.active .bi { color: #fff; }
[data-bs-theme="dark"] .place-tabs a .bi { color: #FF7A94; }

@media (max-width: 575.98px) {
    .place-tabs a { flex: 0 0 auto; }
}

/* ── Online menu: amber sections button + underlined tabs; red section bars; items as rows with the picture at the end ── */
.menu-catbar { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--ca-border); }

.menu-cats-btn {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--ca-accent);
    color: #2b1d00;
    font-size: 1.5rem;
}

.menu-cats-list { max-height: 60vh; overflow-y: auto; border-radius: 12px; }

.menu-cats { display: flex; gap: .25rem; overflow-x: auto; flex: 1; min-width: 0; }

.menu-cats .chip {
    flex: none;
    border: 0;
    border-radius: 0;
    background: none;
    padding: .6rem .8rem;
    font-weight: 700;
    color: var(--bs-body-color);
    border-bottom: 3px solid transparent;
    box-shadow: none;
}

.menu-cats .chip.active,
.menu-cats .chip[aria-current] { color: var(--ca-primary); border-bottom-color: var(--ca-primary); background: none; }

.menu-section { padding-top: 1.25rem; }

.menu-section-title {
    margin: 0;
    padding: .6rem 1rem;
    border-radius: 30px 30px 0 0;
    background: var(--ca-primary);
    color: #fff;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.menu-section-title + p { margin: 0; padding: .5rem 1rem 0; background: var(--ca-card); border-inline: 1px solid var(--ca-border); }

.menu-items {
    gap: 0;
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.menu-item {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--ca-border);
    align-items: flex-start;
}

.menu-item-name { font-size: 1.1rem; }
.menu-item .item-price,
.menu-prices strong { color: #2E9D3F; font-weight: 900; }
[data-bs-theme="dark"] .menu-item .item-price,
[data-bs-theme="dark"] .menu-prices strong { color: #5dd39e; }

.menu-item-media { position: relative; flex: none; }
.menu-item-media .menu-item-img { width: 150px; height: 128px; border-radius: 14px; }

.menu-add {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 3px solid var(--ca-card);
    border-radius: 12px;
    background: #43A047;
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    padding: 0;
}

.menu-add:hover { background: #388E3C; }
.menu-add-btn { background: #43A047; color: #fff; border-radius: 10px; }
.menu-add-btn:hover { background: #388E3C; color: #fff; }

@media (max-width: 575.98px) {
    .menu-item-media .menu-item-img { width: 128px; height: 112px; }
}

/* ── Offers / news cards: the picture first, thin red frame, amber "ends" tag on it ── */
.news-card { border: 1.5px solid rgba(var(--ca-primary-rgb), .55); border-radius: 18px; }
.news-img { position: relative; aspect-ratio: 2.25 / 1; }
.news-body { padding: .6rem .85rem .75rem; }

/* Basket bar: amber like the app's "shopping list" bar. */
.cart-fab { background: var(--ca-accent); color: #2b1d00; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.cart-fab:hover { background: #F0A800; }
.cart-fab-icon { background: rgba(0, 0, 0, .1); }
.cart-fab-count { background: var(--ca-primary); color: #fff; }
.cart-fab-total { background: rgba(0, 0, 0, .12); }

/* Narrow windows with a mouse: keep the row buttons inside the page. */
@media (max-width: 575.98px) {
    .h-scroll-btn.is-prev { inset-inline-start: 0; }
    .h-scroll-btn.is-next { inset-inline-end: 0; }
}

/* ═══════════════ Home spacing pass: one rhythm between sections; offers inside the page width on desktop ═══════════════ */
.home-section { margin-top: 2rem; }
.app-band + .home-section,
.app-band + .container > .home-section { margin-top: 0; }
.home-section .section-head { margin-bottom: .75rem; }

/* Offers: edge to edge with peeking neighbours on phones; on wider screens two full offers inside the page width. */
@media (max-width: 767.98px) {
    .home-offers-wrap.container-md { padding-inline: 0; }
}

@media (min-width: 768px) {
    .offer-carousel .slider-track { padding-inline: 0; scroll-padding-inline: 0; }
    .offer-carousel .slide.offer-slide { flex-basis: calc(50% - .375rem); max-width: none; scroll-snap-align: start; }
}

/* Promo tickets use the same row as other strips (arrows on desktop, no scrollbar). */
.promo-scroller.h-scroll { display: flex; grid-auto-flow: unset; grid-auto-columns: unset; padding: .25rem .1rem .35rem; }

/* Sponsors: a little shorter on desktop so the page flows. */
@media (min-width: 992px) {
    .slider:not(.offer-carousel) .slide { height: min(320px, 42vh); min-height: 240px; }
}

/* Other cities fill the row (3 cities = 3 wide cards). */
.city-cover-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 768px) {
    .city-cover-card { aspect-ratio: 16 / 9; }
}

/* App banner: phones / tablets only, a slim strip (no logo). */
.app-banner-text strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Desktop: the city's services in one row when they fit (9–10 tiles). */
@media (min-width: 992px) {
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 1rem .75rem; }
}

/* Service tiles have no card: on hover only the picture lifts (no box around the tile), and the name turns red. */
a.service-tile:hover,
a.service-tile:active { transform: none; box-shadow: none; background: none; }
.service-img { transition: transform .18s ease, box-shadow .18s ease; }
a.service-tile:hover .service-img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
a.service-tile:active .service-img { transform: scale(.97); }
a.service-tile:hover .service-name { color: var(--ca-primary); opacity: 1; }
[data-bs-theme="dark"] a.service-tile:hover .service-name { color: #FF7A94; }
a.service-tile:focus-visible { outline: none; }
a.service-tile:focus-visible .service-img { outline: 3px solid rgba(var(--ca-primary-rgb), .5); outline-offset: 2px; }

/* Featured ribbon: alone at the corner, or on the logo's corner when there is one (like the app). */
.place-row-ribbon { inset-inline-start: .5rem; }
.place-row-logo + .place-row-ribbon { top: .4rem; inset-inline-start: calc(.4rem + 28px); }

/* Category circles get the same ‹ › buttons as other rows on desktop. */
.h-scroll-wrap > .cat-circles { padding-inline: .1rem; }

/* A place without a cover shows its whole logo (contained on a light background), never cropped or twice. */
.place-tile.is-logo { background: #fff; }
.place-tile.is-logo .place-tile-img { object-fit: contain; padding: 12% 18% 26%; }
.place-tile.is-logo:hover .place-tile-img { transform: none; }
.place-row-cover.is-logo { object-fit: contain; background: #fff; padding: 10px; }
[data-bs-theme="dark"] .place-tile.is-logo,
[data-bs-theme="dark"] .place-row-cover.is-logo { background: #2b2727; }

/* The place tabs stick under the header: they need the page background so content doesn't show through. */
.place-tabs { background: var(--bs-body-bg); padding: .5rem 0; z-index: 1010; }

/* ── Offers tab (service page): each place in a card with a row of its products on offer, like the app ── */
.offer-place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem; }

.offer-place {
    min-width: 0;
    padding: .25rem .85rem .85rem;
    border: 1.5px solid rgba(127, 127, 127, .3);
    border-radius: 20px;
    background: var(--ca-card);
}

.offer-place > .place-row { border-bottom: 0; padding-bottom: .5rem; }
.offer-place-items { grid-auto-columns: minmax(150px, 170px); padding-bottom: .25rem; }
.offer-place .h-scroll-wrap { margin-top: .15rem; }

/* The place tabs scroll away with the header section, so the menu's sections bar sticks right under the app bar. */
.menu-toolbar { top: 60px; padding: .35rem 0 0; box-shadow: 0 6px 8px -8px rgba(0, 0, 0, .25); }
.menu-section { scroll-margin-top: 130px; }

/* ── Reels strip (service page), like the app: tall cards, logo in a white ring, views, name at the bottom ── */
.reel-strip { grid-auto-columns: 118px; gap: .6rem; margin: .25rem 0 1rem; }

.reel-card {
    position: relative;
    display: block;
    width: 118px;
    aspect-ratio: 118 / 176;
    padding: 0;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #222;
    color: #fff;
    text-align: start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, .8) 100%); }
.reel-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.reel-card:hover .reel-card-img { transform: scale(1.05); }
.reel-card-logo { position: absolute; top: .4rem; inset-inline-end: .4rem; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; background: #fff; object-fit: cover; }
.reel-card-views { position: absolute; top: .5rem; inset-inline-start: .4rem; z-index: 1; padding: 0 .4rem; border-radius: 8px; background: rgba(0, 0, 0, .45); font-size: .7rem; font-weight: 700; }
.reel-card-name { position: absolute; inset-inline: .5rem; bottom: .45rem; z-index: 1; font-size: .78rem; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Reels page: black like the app, 2 columns on phones, amber accents ── */
.reels-dark {
    margin-top: -1rem;
    margin-bottom: -2rem;
    padding: 1rem 0 2.5rem;
    background: #0d0d0d;
    color: #f1f1f1;
    min-height: 70vh;
}

.reels-dark .breadcrumb-item,
.reels-dark .breadcrumb-item.active,
.reels-dark .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }
.reels-dark .breadcrumb-item a { color: var(--ca-accent); }
.reels-dark .page-title { color: #fff; }
.reels-dark .page-head-icon { background: rgba(255, 178, 0, .15); color: var(--ca-accent); }
.reels-dark .reel-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.reels-dark .reel-thumb { aspect-ratio: .62; border-radius: 16px; background: #1e1e1e; }
.reels-dark .reel-play { color: var(--ca-accent); }
.reels-dark .reel-place { color: #f1f1f1; }
.reels-dark .reel-place:hover { color: var(--ca-accent); }
.reels-dark .empty-state { color: rgba(255, 255, 255, .7); }
.reels-dark .btn-outline-primary { --bs-btn-color: var(--ca-accent); --bs-btn-border-color: var(--ca-accent); --bs-btn-hover-bg: var(--ca-accent); --bs-btn-hover-border-color: var(--ca-accent); --bs-btn-hover-color: #1a1200; }

@media (max-width: 575.98px) {
    .reels-dark .reel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Offer group page header + brands in a purple panel (City Mart). */
.group-head-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; flex: none; }
.group-head .app-panel-title { font-size: 1.5rem; }
.app-panel.is-dark .brand-tile-name { color: #fff; }
.app-panel .brand-grid { margin-top: .25rem; }

/* ═══════════════ Place page on wide screens: menu + basket side panel ═══════════════ */
.place-layout { display: grid; gap: 1.5rem; align-items: start; }
.place-aside { display: none; }

@media (min-width: 992px) {
    .place-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .place-aside { display: block; position: sticky; top: 76px; }
    /* The panel shows the basket here, so no floating button. */
    body.has-cart-panel .cart-fab { display: none !important; }
    body.has-cart-panel.has-cart .page { padding-bottom: 0; }
}

@media (min-width: 1200px) {
    .place-layout { grid-template-columns: minmax(0, 1fr) 370px; }
}

.side-card {
    background: var(--ca-card);
    border: 1px solid var(--ca-border);
    border-radius: 20px;
    box-shadow: var(--ca-shadow);
    padding: 1rem;
}

.side-card-title { display: flex; align-items: center; gap: .45rem; font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.side-card-title > .bi { color: var(--ca-primary); }

.cart-panel { display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.cart-panel-lines { overflow-y: auto; min-height: 0; margin-inline: -.25rem; padding-inline: .25rem; }
.cart-panel-lines .cart-empty { padding: 1.5rem .5rem; }
.cart-panel-foot { border-top: 1px dashed var(--ca-border); padding-top: .75rem; margin-top: .5rem; }
.cart-panel-count {
    min-width: 1.5rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--ca-primary);
    color: #fff;
    font-size: .8rem;
    line-height: 1.5rem;
    text-align: center;
}

.side-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; font-size: .92rem; }
.side-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.side-facts .bi { color: var(--ca-primary); margin-top: .15rem; }
.side-facts .bi.text-success { color: #43A047 !important; }
.side-facts .bi.text-danger { color: #E53935 !important; }

/* Place header without a cover picture: no need for a tall block. */
.place-hero-cover.no-cover { min-height: 190px; }
@media (min-width: 992px) {
    .place-hero-cover.no-cover { min-height: 210px; }
}

/* ── Empty states, like the app: the icon in a soft circle, a short line and one action ── */
.empty-state { border: 0; box-shadow: var(--ca-shadow); padding: 2.25rem 1.25rem; }
.empty-state > .bi {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    background: rgba(var(--ca-primary-rgb), .1);
    font-size: 2.1rem;
}
[data-bs-theme="dark"] .empty-state > .bi { background: rgba(var(--ca-primary-rgb), .22); color: #FF7A94; }
.empty-state .btn { border-radius: 12px; font-weight: 700; }
.reels-dark .empty-state { background: #1b1b1b; box-shadow: none; }

/* ── Loading placeholders (load more, favourites) ── */
.skel {
    display: block;
    border-radius: 10px;
    background: rgba(127, 127, 127, .16);
    position: relative;
    overflow: hidden;
}
.skel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, var(--ca-shimmer, rgba(255, 255, 255, .5)) 50%, transparent 80%);
    animation: ca-shimmer 1.3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; } }
.skel-line { height: .8rem; margin-top: .55rem; }
.skel-short { width: 55%; }
.skel-row { display: flex; gap: .85rem; align-items: center; padding: .75rem 0; }
.skel-thumb { flex: none; width: 110px; height: 110px; border-radius: 16px; }
.skel-lines { flex: 1; min-width: 0; }
.skel-lines .skel-line:first-child { width: 70%; margin-top: 0; height: 1rem; }
.skel-card { display: block; background: var(--ca-card); border-radius: 16px; padding: .5rem; box-shadow: var(--ca-shadow); }
.skel-img { aspect-ratio: 1; border-radius: 12px; }
.skel-card .skel-line { margin-inline: .25rem; }
.skel-card .skel-short { margin-bottom: .35rem; }

/* Service picture in the page title: always a tile, even before the picture loads. */
.page-head-icon > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
span.page-head-img { overflow: hidden; }

/* ── 404 / error pages in the app look ── */
.message-page { background: var(--ca-card); border-radius: 24px; box-shadow: var(--ca-shadow); margin-block: 1rem 2rem; padding: 2.5rem 1.25rem; }
.message-icon { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark)); color: #fff; box-shadow: 0 10px 24px rgba(var(--ca-primary-rgb), .3); }
[data-bs-theme="dark"] .message-icon { background: linear-gradient(135deg, var(--ca-primary), var(--ca-primary-dark)); color: #fff; }
.message-code { color: var(--ca-primary); opacity: .18; }
.message-page .search-box { border-radius: 15px; }
.message-page .btn { border-radius: 12px; font-weight: 700; }

/* Wide screens, menu tab: the side panel already has the order / call buttons. */
@media (min-width: 992px) {
    .place-hero.with-cart-panel .place-hero-actions .btn-primary,
    .place-hero.with-info-panel .place-hero-actions { display: none; }
}

/* ═══════════════ My orders: the app's OrderCell ═══════════════ */
.orders-page { max-width: 1100px; margin-inline: auto; }
.order-cells { display: grid; gap: .9rem; }
@media (min-width: 768px) { .order-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; } }

.order-cell {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem;
    border-radius: 12px;
    background: var(--ca-card);
    border: 1px solid rgba(127, 127, 127, .25);
    transition: box-shadow .15s ease, border-color .15s ease;
}
.order-cell:hover { border-color: rgba(var(--ca-primary-rgb), .45); box-shadow: var(--ca-shadow); }

.order-cell-logo {
    flex: none;
    width: 70px;
    height: 70px;
    border-radius: 11px;
    border: 1px solid rgba(127, 127, 127, .15);
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(var(--ca-primary-rgb), .06);
    color: var(--ca-primary);
    font-size: 1.6rem;
}
.order-cell-logo img { width: 100%; height: 100%; object-fit: cover; }

.order-cell-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.order-cell-head { display: flex; align-items: center; gap: .4rem; }
.order-cell-name { flex: 1; min-width: 0; color: inherit; text-decoration: none; font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-cell-name:hover { color: var(--ca-primary); }
.order-cell-eye {
    flex: none;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--ca-primary);
    color: #fff;
    font-size: .8rem;
}
.order-cell-number { font-size: .92rem; }
.order-cell-number b { font-weight: 800; margin-inline-start: .15rem; }

.order-cell-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; }
.order-cell-status {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    padding: .15rem .55rem .15rem .45rem;
    border-radius: 5px;
    background: var(--ca-primary);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* The status icon is drawn white on the red pill, like the app. */
.order-cell-status img { flex: none; width: 15px; height: 15px; object-fit: contain; filter: brightness(0) invert(1); }
.order-cell-date { flex: 0 1 auto; min-width: 0; font-size: .75rem; font-weight: 700; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Above the card's link, so it is its own button. */
.order-cell-again { position: relative; z-index: 2; width: 100%; margin-top: .45rem; border-radius: 8px; font-weight: 800; }
.order-cell [data-reorder-error] { position: relative; z-index: 2; }

.order-cells > .skel-row { background: var(--ca-card); border-radius: 12px; border: 1px solid rgba(127, 127, 127, .2); padding: .6rem; }
.order-cells > .skel-row .skel-thumb { width: 70px; height: 70px; border-radius: 11px; }

[data-bs-theme="dark"] .order-cell-status { background: var(--ca-primary); }

/* Endless lists: the "load more" button stays in the page (for crawlers / no JS) but is only seen while
   loading ("Loading…") or when a load failed (tap to retry). */
html.js [data-load-more][data-auto]:not([aria-busy="true"]):not(.is-failed) { visibility: hidden; }
html.js [data-load-more][data-auto][aria-busy="true"] { border-color: transparent; background: none; color: var(--bs-secondary-color); pointer-events: none; }

/* ═══════════════ Sharing ═══════════════ */
.share-sheet { border: 0; border-radius: 22px; }
.share-name { font-weight: 700; font-size: .9rem; color: var(--bs-secondary-color); margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-name:empty { display: none; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem .5rem; margin-bottom: 1rem; }
.share-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bs-body-color);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}
.share-opt[hidden] { display: none; }
.share-opt > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.45rem;
    transition: transform .15s ease;
}
.share-opt:hover { color: var(--bs-body-color); }
.share-opt:hover > span { transform: scale(1.08); }
.share-wa > span { background: #25D366; }
.share-fb > span { background: #1877F2; }
.share-ms > span { background: linear-gradient(45deg, #0099FF, #A033FF, #FF5280); }
.share-tg > span { background: #29A9EB; }
.share-x > span { background: #111; }
[data-bs-theme="dark"] .share-x > span { background: #fff; color: #000; }
.share-more > span { background: rgba(127, 127, 127, .2); color: var(--bs-body-color); }
.share-copy { display: flex; gap: .4rem; }
.share-copy .form-control { min-width: 0; font-size: .78rem; border-radius: 10px; }
.share-copy .btn { flex: none; border-radius: 10px; }

/* Share button on offer / news cards (next to the card's link, not inside it). */
.news-card-wrap { position: relative; min-width: 0; }
.news-card-wrap > .news-card { height: 100%; }
.card-share {
    position: absolute;
    top: .55rem;
    inset-inline-start: .55rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: .95rem;
    backdrop-filter: blur(4px);
}
.card-share:hover { background: var(--ca-primary); color: #fff; }

/* Tools under the video player. */
.video-tools { display: flex; gap: .5rem; justify-content: center; padding: .6rem; background: #000; }
.video-tools[hidden] { display: none; }
.video-tool { color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; font-weight: 700; }
.video-tool:hover { color: #000; background: var(--ca-accent); border-color: var(--ca-accent); }

/* ── One reel's page ── */
.reel-page { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 768px) { .reel-page { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 2rem; } }
.reel-page-video { border-radius: 20px; overflow: hidden; background: #111; aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; width: 100%; }
.reel-page-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
@media (max-width: 767.98px) { .reel-page-video { margin-inline: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); width: auto; border-radius: 0 0 20px 20px; } }
.reel-page-body { color: #fff; }
.reel-page-place { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; margin-bottom: .75rem; }
.reel-page-place:hover { color: var(--ca-accent); }
.reel-page-place img, .reel-page-place-icon { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #fff; }
.reel-page-place-icon { display: grid; place-items: center; color: var(--ca-primary); font-size: 1.3rem; }
.reel-page-title { font-size: clamp(1.3rem, 3.5vw, 1.9rem); font-weight: 900; color: #fff; margin-bottom: .4rem; }
.reel-page-views { color: rgba(255, 255, 255, .65); font-size: .9rem; margin-bottom: .75rem; }
.reel-page-views .bi { color: var(--ca-accent); }
.reel-page-text { color: rgba(255, 255, 255, .85); white-space: pre-line; margin-bottom: 1rem; }
.reel-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.reel-page-actions .btn { border-radius: 12px; }
.btn-accent { background: var(--ca-accent); border-color: var(--ca-accent); color: #2b1d00; }
.btn-accent:hover, .btn-accent:focus { background: #ffc233; border-color: #ffc233; color: #2b1d00; }
.reel-page-all { color: var(--ca-accent); }

/* ═══════════════ Responsive safety (phones) ═══════════════
   1) Grid columns never grow past the screen because of wide content (a long category bar, a long word):
      "1fr" alone means minmax(auto, 1fr), so min-content could widen the page. */
.place-layout { grid-template-columns: minmax(0, 1fr); }
.place-main, .place-aside, .order-cell, .order-cell-body, .reel-page > *, .offer-detail > *, .info-grid > *, .footer-grid > * { min-width: 0; }
@media (min-width: 992px) {
    .place-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (min-width: 1200px) {
    .place-layout { grid-template-columns: minmax(0, 1fr) 370px; }
}
.order-cells { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .order-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reel-page { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .reel-page { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }

/* Auto-fill grids: the smallest column is never wider than the screen (340px cards on a 320px phone). */
.place-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.news-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.menu-items { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.city-cover-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.download-features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.info-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 767.98px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .info-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-items { grid-template-columns: minmax(0, 1fr); }
    .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 2) Long words / links (a Facebook link, a long English name, a number) wrap instead of pushing the page. */
/*    "break-word" only breaks a word that can't fit its line, and never squeezes small badges ("NEW")
      into one letter per line; the text blocks below may break anywhere. */
body { overflow-wrap: break-word; }
.chip, .ca-chip, .tag, .section-link, .btn { max-width: 100%; }
.ca-chip, .chip { white-space: normal; }
.section-head > :first-child { min-width: 0; }
.branch-head > :first-child { min-width: 0; }
.place-hero-info, .place-hero-meta, .checkout-place, .order-cell-head { min-width: 0; }
.info-text, .offer-detail-text, .reel-page-text, .news-desc, .place-hero-summary, .place-hero-name, .page-title,
.place-row-name, .news-title, .menu-item-name, .item-name, .offer-detail-title, .reel-page-title, .branch-head, .checkout-place { overflow-wrap: anywhere; }

/* 3) Media never wider than its box. */
img, video, iframe { max-width: 100%; }

/* 4) Last safety net: a phone never pans sideways. "clip" (not "hidden") keeps the sticky header and menu bar working. */
html, body { overflow-x: clip; }

/* ── Get-the-app strip above the header (every screen) ── */
.app-banner { background: #151515; color: #fff; font-size: .85rem; }
.app-banner-inner { gap: .6rem; padding-block: .4rem; }
.app-banner-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ca-primary); color: #fff; font-size: 1rem; }
.app-banner-text { flex-direction: row; align-items: center; }
.app-banner-text strong { font-weight: 700; font-size: inherit; white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-banner-btn { flex: none; background: var(--ca-accent); border-color: var(--ca-accent); color: #2b1d00; border-radius: 10px; white-space: nowrap; }
.app-banner-btn:hover, .app-banner-btn:focus { background: #ffc233; border-color: #ffc233; color: #2b1d00; }
.app-banner-stores { flex: none; gap: .4rem; align-items: center; }
.app-banner-stores img { height: 30px; width: auto; display: block; }
.app-banner-stores a { border-radius: 6px; transition: transform .15s ease; }
.app-banner-stores a:hover { transform: translateY(-1px); }
.app-banner-close { flex: none; }
@media (max-width: 575.98px) {
    .app-banner { font-size: .76rem; }
    .app-banner-icon { width: 26px; height: 26px; font-size: .9rem; border-radius: 8px; }
}

/* Status line: the basket icon follows the place (open / closed), the text today's workday (like the app). */
.ca-avail .icon-on { color: #2E9D3F; }
.ca-avail .icon-off { color: #E53935; }
[data-bs-theme="dark"] .ca-avail .icon-on { color: #5dd39e; }
[data-bs-theme="dark"] .ca-avail .icon-off { color: #ff7a7a; }
.ca-avail [data-status] { font-variant-numeric: tabular-nums; }
.ca-chip [data-status]:empty, .ca-avail [data-status]:empty { display: none; }
