@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/tajawal-arabic-400.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/tajawal-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/tajawal-arabic-500.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/tajawal-latin-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/tajawal-arabic-700.woff2") format("woff2");
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: Tajawal;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/tajawal-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --paper: #F6F1E7;
    --paper-2: #FFFCF7;
    --ink: #1C2B24;
    --ink-soft: #5C6B63;
    --leaf: #2F6B4F;
    --citrus: #E37B2C;
    --tomato: #C8453A;
    --line: #E4D9C8;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: Tajawal, Tahoma, Arial, sans-serif;
    line-height: 1.5;
    padding-bottom: 88px;
}

body.has-buybar { padding-bottom: 96px; }

a { color: inherit; }

.skip {
    position: absolute;
    inset-inline-start: 12px;
    top: -40px;
    background: var(--leaf);
    color: var(--paper-2);
    padding: 8px 12px;
    z-index: 30;
}

.skip:focus { top: 8px; }

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--leaf);
    text-decoration: none;
}

.brand img, .foot-brand img {
    width: 76px;
    height: 58px;
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
}

.search { position: relative; flex: 1; }

.search input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    font: inherit;
    padding: 0 14px;
}

.cart-chip, .nav-btn, .step, .add, .filter-open, .sheet-close {
    font: inherit;
    cursor: pointer;
}

.cart-chip {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    padding: 0 12px;
}

.wrap { padding: 12px; }

.banners { position: relative; margin-bottom: 16px; }

.banner-pick {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.banner-slide { display: none; }

.banners .banner-pick:nth-of-type(1):checked ~ .banner-stage .banner-slide:nth-child(1),
.banners .banner-pick:nth-of-type(2):checked ~ .banner-stage .banner-slide:nth-child(2),
.banners .banner-pick:nth-of-type(3):checked ~ .banner-stage .banner-slide:nth-child(3),
.banners .banner-pick:nth-of-type(4):checked ~ .banner-stage .banner-slide:nth-child(4),
.banners .banner-pick:nth-of-type(5):checked ~ .banner-stage .banner-slide:nth-child(5),
.banners .banner-pick:nth-of-type(6):checked ~ .banner-stage .banner-slide:nth-child(6),
.banners .banner-pick:nth-of-type(7):checked ~ .banner-stage .banner-slide:nth-child(7),
.banners .banner-pick:nth-of-type(8):checked ~ .banner-stage .banner-slide:nth-child(8) {
    display: block;
}

.banner-nav { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }

.banner-nav label {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.banner {
    position: relative;
    flex: 0 0 100%;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
}

.banner img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 168px;
    object-fit: cover;
    object-position: center;
    background: var(--paper);
}

.units { display: grid; gap: 8px; margin: 12px 0; }

.unit-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.unit-choice strong { margin-inline-start: auto; color: var(--citrus); }

.section-head, .crumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.section-head { margin: 8px 0 12px; }

.section-head h1, .section-head h2, .crumbs { margin: 0; }

.more { color: var(--leaf); font-weight: 700; text-decoration: none; }

.tiles, .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tile, .card {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
}

.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; min-height: 104px; min-width: 0; }

.tile-photo-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: var(--paper);
    overflow: hidden;
}

.tile-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--leaf);
    font-weight: 700;
}

.tile strong { font-size: 15px; }

.tile small, .muted { color: var(--ink-soft); }

.card { display: flex; flex-direction: column; padding: 8px; min-height: 100%; }

.card-link { text-decoration: none; }

.media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 12px;
    background: var(--paper);
    overflow: hidden;
    margin-bottom: 8px;
}

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

.letter { font-size: 32px; font-weight: 700; color: var(--ink-soft); }

.badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    background: var(--paper-2);
}

.badge-off {
    inset-inline-start: auto;
    inset-inline-end: 8px;
    background: var(--tomato);
    color: #fff;
    font-weight: 700;
}

.was {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    margin-inline-end: 6px;
}

.qty-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }

.qty-row .step { width: 40px; height: 40px; }

.progress {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.progress li {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding-top: 8px;
    border-top: 4px solid var(--line);
    color: var(--ink-soft);
}

.progress .is-done { border-top-color: var(--leaf); color: var(--leaf); font-weight: 700; }

.track-card { margin-top: 16px; }

.is-in { color: var(--leaf); }

.is-out { color: var(--tomato); }

.name { display: block; font-weight: 500; min-height: 44px; }

.price { margin: 4px 0 8px; color: var(--citrus); font-weight: 700; font-size: 18px; }

.price span, .unit { color: var(--ink-soft); font-size: 13px; font-weight: 500; }

.add, .sheet-close, .filter-open {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--leaf);
    color: var(--paper-2);
    text-decoration: none;
    font-weight: 700;
}

.card .add { margin-top: auto; }

.pick { margin-top: auto; }

.pick[hidden], .pick [hidden] { display: none; }

.pick .qty-row { margin: 0; }

.card .pick .step { width: 36px; height: 36px; font-size: 18px; }

.pick .qty { flex: 1; background: var(--paper-2); border-radius: 16px; }

.buybar .pick { flex: 1; display: flex; margin: 0; }

.buybar .pick .add,
.buybar .pick .qty-row { flex: 1; }

.crumbs { justify-content: flex-start; color: var(--ink-soft); margin-bottom: 8px; }

.crumbs a { color: var(--leaf); text-decoration: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0 12px; }

.chips a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper-2);
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
}

.product-media {
    aspect-ratio: 1;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    border-radius: 16px;
    background: var(--paper-2);
    border: 1px solid var(--line);
}

.product-media img { object-fit: contain; }

h1 { font-size: 24px; margin: 8px 0; }

.count { color: var(--ink-soft); font-size: 16px; font-weight: 500; margin-inline-start: 8px; }

.empty { color: var(--ink-soft); }

.buybar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 12;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--paper-2);
    border-top: 1px solid var(--line);
}

.step {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    color: var(--ink);
    font-size: 22px;
}

.qty {
    min-width: 48px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.buybar .add { flex: 1; }

.sheet[hidden] { display: none; }

.sheet {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(28, 43, 36, 0.45);
    display: flex;
    align-items: flex-end;
}

.sheet-panel {
    width: 100%;
    background: var(--paper-2);
    border-radius: 16px 16px 0 0;
    padding: 16px;
}

.sheet-panel p { margin-top: 0; color: var(--ink-soft); }

.sheet-panel a {
    display: flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.sheet-panel [aria-current="true"] { color: var(--leaf); font-weight: 700; }

.sheet-close { width: 100%; margin-top: 12px; }

label { display: block; margin: 12px 0 4px; font-weight: 500; }

input, select, textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper-2);
    color: var(--ink);
    font: inherit;
    padding: 8px 12px;
}

textarea { min-height: 96px; }

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.cart-row {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.cart-row.has-photo {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 12px;
    align-items: center;
}

.cart-row img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: var(--paper);
    grid-row: 1 / span 4;
}

.cart-row button {
    min-height: 48px;
    border: 0;
    background: transparent;
    color: var(--tomato);
    font: inherit;
    font-weight: 700;
}

.warn { color: var(--tomato); }

[aria-invalid="true"] { border-color: var(--tomato); }

.wrap .add, .wrap .filter-open { width: 100%; margin-top: 16px; scroll-margin-bottom: 96px; }

.checkout-go, form[data-checkout] .add {
    position: relative;
    z-index: 20;
}

.phone { direction: ltr; text-align: right; }

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--leaf);
    outline-offset: 2px;
}

.foot {
    display: grid;
    gap: 16px;
    margin: 28px 12px 96px;
    padding: 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.foot-brand strong { display: block; color: var(--leaf); font-size: 20px; }

.foot-brand p { margin: 4px 0 0; color: var(--ink-soft); }

.foot-links { display: flex; flex-direction: column; gap: 8px; }

.foot-links a, .foot-contact a { color: var(--leaf); font-weight: 700; text-decoration: none; }

.foot-contact a { display: block; }

.foot h2 { margin: 0 0 8px; font-size: 16px; }

.socials { display: flex; gap: 8px; }

.social {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
}

.social-wa, .float-wa { background: #25D366; }

.social-fb { background: #1877F2; }

.social-ig { background: #E1306C; }

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 10px 12px 0;
}

.trust li {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--ink-soft);
    font-size: 13px;
}

.notice {
    margin: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #F8E6D8;
    color: var(--tomato);
    font-weight: 700;
}

body.has-buybar .floats { bottom: 88px; }

.floats {
    position: fixed;
    inset-inline-end: 16px;
    bottom: 24px;
    z-index: 14;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(28, 43, 36, 0.18);
}

.float-cart { background: var(--leaf); }

.float [data-cart-count] {
    position: absolute;
    top: -4px;
    inset-inline-start: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--citrus);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.cart-layout, .checkout { display: grid; gap: 16px; }

.summary {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
}

.summary h2 { margin: 0 0 8px; font-size: 18px; }

.summary p { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; }

.summary .add { margin-top: 12px; }

.prose p, .prose ul, .prose ol { margin: 0.5rem 0; }

@media (min-width: 960px) {
    body { padding-bottom: 48px; }
    body.has-buybar { padding-bottom: 96px; }
    .wrap { max-width: 1100px; margin: 0 auto; }
    .tiles, .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .banner img { aspect-ratio: 16 / 7; max-height: 420px; object-fit: cover; }
    .buybar { bottom: 0; }
    .floats { bottom: 24px; }
    .foot { grid-template-columns: 1.3fr 1fr 0.8fr 1fr; align-items: start; margin: 28px auto 24px; max-width: 1100px; }
    .cart-layout, .checkout { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
    .summary { position: sticky; top: 84px; }
}
