:root {
    --ink: #4d3533;
    --ink-2: rgba(77, 53, 51, 0.7);
    --ink-3: rgba(77, 53, 51, 0.5);
    --hair: rgba(77, 53, 51, 0.1);
    --raised: #f6f2ef;
    --teal: #73a89a;
    --wa: #128c7e;
    --wa-dark: #0f7568;
    --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Times New Roman", "Noto Naskh Arabic", serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
}

.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Brand */
.brand-block { display: flex; flex-direction: column; gap: 24px; }
.brand {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.tagline { margin: 0; color: var(--ink-2); }
.intro { margin: 12px 0 0; max-width: 620px; }

/* Sections */
.section { display: flex; flex-direction: column; gap: 20px; }
.section-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }

/* Filters */
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice-label { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    appearance: none;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--hair);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.chip:hover { background: rgba(77, 53, 51, 0.05); }
.chip.is-on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.chip.is-on:hover { background: var(--teal); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip-reset { margin-top: 2px; }

.caption { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 20px; }

/* Cards */
.list { display: grid; gap: 40px; }
.card { display: grid; gap: 14px; }
.card[hidden] { display: none; }

.media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--raised);
}
.photo-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.photo-btn img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.tag, .count {
    position: absolute;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.tag { inset-block-start: 12px; inset-inline-start: 12px; }
.count { inset-block-end: 12px; inset-inline-end: 12px; }

/* Shop card without a photo */
.blank {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    aspect-ratio: 16 / 10;
    padding: 20px;
    text-align: center;
}
.arch {
    width: 54px;
    height: 68px;
    margin-block-end: 12px;
    border: 1px solid var(--ink-3);
    border-block-end: 0;
    border-start-start-radius: 27px;
    border-start-end-radius: 27px;
}
.blank-name { font-size: 19px; font-weight: 600; }
.blank-place { font-size: 13px; color: var(--ink-2); }

.body { display: grid; gap: 12px; }
.head { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.num { min-width: 22px; padding-block-start: 2px; color: var(--ink-3); font-family: var(--font-display); font-size: 15px; line-height: 1.4; }
.title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.place { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.specs li { padding: 5px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-block-start: 2px; }
.prices.single { grid-template-columns: 1fr; }
.price { display: grid; gap: 1px; padding-inline-start: 14px; border-inline-start: 1px solid var(--hair); }
.price:first-child { padding-inline-start: 0; border-inline-start: 0; }
.amount { font-size: 19px; font-weight: 600; line-height: 1.3; }
.cur { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.per { font-size: 12px; line-height: 1.5; color: var(--ink-2); }

/* WhatsApp */
.wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--wa);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 120ms ease;
}
.wa:hover { background: var(--wa-dark); }
.wa:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wa svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 8px; }
.empty[hidden] { display: none; }
.empty p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-line { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.contact-label { min-width: 52px; color: var(--ink-2); font-size: 13px; }
.contact-line a { color: var(--ink); text-underline-offset: 3px; }

.closing { margin: 0; color: var(--ink-2); max-width: 620px; }
.nowrap { white-space: nowrap; }

/* Photo viewer */
.viewer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: rgba(37, 31, 33, 0.94);
}
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; justify-content: flex-end; padding: 10px 12px; }
.viewer-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.12); }
.viewer-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 12px; min-height: 0; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.viewer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    color: #fff;
}
.viewer-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; text-align: center; }
.viewer-meta #vTitle { font-weight: 600; }
.viewer-nav {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.viewer-nav:hover { background: rgba(255, 255, 255, 0.24); }
.viewer-nav[disabled] { opacity: 0.35; cursor: default; }
body.viewer-open { overflow: hidden; }

/* Wider screens */
@media (min-width: 768px) {
    .page { padding: 36px; }
    .brand { font-size: 36px; }
    .list { grid-template-columns: 1fr 1fr; gap: 34px; }
    .title { font-size: 20px; }
    .contact .wa { width: auto; }
}
