:root {
    --ink: #2c2320;
    --ink-2: #6b5f5a;
    --ink-3: #9c918c;
    --hairline: #eae4df;
    --page: #fffdfb;
    --sand: #f6f1ec;
    --teal: #2f7d6d;
    --teal-soft: #e8f1ee;
    --gold: #b8873f;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(44, 35, 32, .05), 0 12px 28px -18px rgba(44, 35, 32, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 251, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--hairline);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; color: var(--teal); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; font-weight: 600; }
.brand-text small { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.head-nav { display: flex; align-items: center; gap: 18px; }
.head-nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-call {
    padding: 8px 16px;
    border: 1px solid var(--teal);
    border-radius: 999px;
    color: var(--teal) !important;
    font-weight: 500;
}
.head-call:hover { background: var(--teal-soft); }
@media (max-width: 640px) {
    .head-nav a:not(.head-call) { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero img { width: 100%; height: clamp(320px, 46vw, 520px); object-fit: cover; }
.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(24, 18, 16, .78) 0%, rgba(24, 18, 16, .55) 45%, rgba(24, 18, 16, .18) 100%);
}
.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    color: #fff;
    padding-block: 24px;
}
.eyebrow {
    margin: 0;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #e9d7b8;
}
.hero h1 { margin: 0; font-size: clamp(26px, 5.2vw, 46px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin: 0; max-width: 46ch; font-size: clamp(14px, 2.4vw, 17px); color: rgba(255, 255, 255, .86); }
.cta {
    align-self: flex-start;
    margin-top: 6px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .6);
}
.cta:hover { background: var(--sand); }

/* ---------- trust strip ---------- */
.strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}
.strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    color: var(--ink-2);
}
.strip-item svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- note ---------- */
.note {
    margin-top: 18px;
    padding: 16px 20px;
    background: var(--sand);
    border-radius: 14px;
    border-inline-start: 3px solid var(--gold);
}
.note p { margin: 0; font-size: 14px; color: var(--ink-2); }
.note-title { font-weight: 600; color: var(--ink); margin-bottom: 2px !important; }

/* ---------- blocks ---------- */
.block { margin-top: 52px; scroll-margin-top: 84px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.block-head h2 { margin: 0; font-size: clamp(21px, 3.4vw, 27px); font-weight: 700; letter-spacing: -.01em; }

.filters { display: flex; gap: 8px; }
.chip {
    font: inherit;
    font-size: 14px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* ---------- products ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card[data-chosen] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.card-photo { position: relative; background: var(--sand); }
.card-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.detail { margin: 0; font-size: 13px; color: var(--ink-3); }
.price { margin: 6px 0 10px; font-size: 16px; font-weight: 700; color: var(--teal); }
.add {
    margin-top: auto;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--sand);
    color: var(--ink);
    cursor: pointer;
    transition: background .15s;
}
.add:hover { background: #efe8e1; }
.qty {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    border: 1px solid var(--teal);
    border-radius: 12px;
    background: var(--teal-soft);
}
.qty button {
    width: 46px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--teal);
    font: inherit;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    border-radius: 12px;
}
.qty button:hover { background: rgba(47, 125, 109, .12); }
.qty span { font-weight: 600; color: var(--teal); }

@media (min-width: 700px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
    .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
    .card h3 { font-size: 16px; }
}

/* ---------- cart ---------- */
.empty { margin: 0; color: var(--ink-3); font-size: 15px; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.lines li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.lines .text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lines .name { font-size: 15px; font-weight: 600; }
.lines .meta { font-size: 13px; color: var(--ink-3); }
.lines .amount { font-size: 15px; font-weight: 600; white-space: nowrap; }
.lines .remove {
    border: 0;
    background: none;
    color: var(--ink-3);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 0 4px;
}
.total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    font-size: 15px;
    font-weight: 600;
}
.total { font-size: 22px; color: var(--teal); }

/* ---------- order ---------- */
.order-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13px; color: var(--ink-2); }
.field input, .field textarea {
    font: inherit;
    font-size: 16px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--hairline);
    border-radius: 12px;
    background: var(--page);
    color: var(--ink);
    outline: none;
    transition: border-color .15s, background .15s;
}
.field input { height: 48px; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { border-color: var(--teal); background: #fff; }

.order-side { display: flex; flex-direction: column; gap: 12px; }
.primary {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background: var(--teal);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.primary:hover { background: #26695b; }
.primary[disabled] { background: #e7e1dc; color: #a79e98; cursor: default; }
.hint { margin: 0; font-size: 14px; color: var(--ink-2); }

.preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--sand);
}
.preview-label { margin: 0; font-size: 12px; color: var(--ink-3); }
.preview pre {
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.secondary {
    font: inherit;
    font-size: 14px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
@media (min-width: 860px) {
    .order-card { grid-template-columns: 1.1fr .9fr; padding: 26px; gap: 30px; }
    .order-side { position: sticky; top: 88px; align-self: start; }
}

/* ---------- footer ---------- */
.site-foot { margin-top: 64px; padding: 30px 0 110px; border-top: 1px solid var(--hairline); background: var(--sand); }
.foot-inner { display: flex; flex-direction: column; gap: 10px; }
.foot-name { margin: 0; font-weight: 600; }
.foot-line { margin: 0; font-size: 13px; color: var(--ink-3); }
@media (min-width: 720px) {
    .foot-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .site-foot { padding-bottom: 40px; }
}

/* ---------- floating cart bar ---------- */
.cart-bar {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6);
}
.cart-bar-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; color: rgba(255, 255, 255, .75); }
.cart-bar-text strong { font-size: 16px; color: #fff; }
.cart-bar-go {
    padding: 10px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
@media (min-width: 860px) { .cart-bar { inset-inline: auto 24px; width: 340px; } }

[hidden] { display: none !important; }
