@import url("fonts/fonts.css");

:root {
    --g900: #08230f;
    --g800: #0e3317;
    --g700: #1b5e20;
    --lime: #c9f04c;
    --sand: #f6f1e6;
    --sand2: #ede5d4;
    --ink: #141810;
    --muted: #6c7466;
    --line: #e1d8c6;
    --f-display: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
    --f-text: 'Noto Sans Arabic', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { background: #fff; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 20px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; margin: 0; letter-spacing: 0; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; }
.word { font-family: var(--f-display); font-weight: 800; font-size: 23px; line-height: 1; color: var(--g800); }
.order { font-size: 13px; font-weight: 600; color: var(--g700); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; white-space: nowrap; }
.order:hover { background: var(--sand); }

/* nav */
.nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; font-size: 13.5px; font-weight: 500; padding: 8px 13px; border-radius: 999px; color: #3e463b; background: var(--sand); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--sand2); }
.nav a[aria-current="page"] { background: var(--g800); color: #fff; }

/* hero */
.hero { position: relative; height: 330px; border-radius: 20px; overflow: hidden; margin-top: 16px; background: var(--g800); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,35,15,.97) 0%, rgba(8,35,15,.93) 26%, rgba(8,35,15,.6) 56%, rgba(8,35,15,.1) 88%); }
.hero .body { position: absolute; inset-inline: 0; bottom: 0; padding: 20px; }
.kicker { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--g900); background: var(--lime); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.hero h1 { font-size: 27px; line-height: 1.35; color: #fff; margin-bottom: 8px; }
.hero p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.9); max-width: 36ch; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--g900); font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 12px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--f-text); }
.btn:hover { background: #d6f96a; }
.btn svg { width: 15px; height: 15px; }

/* headings */
.h2 { font-size: 19px; color: var(--ink); margin: 28px 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h2 small { font-family: var(--f-text); font-weight: 500; font-size: 13px; color: var(--muted); }
.pagehead { margin: 22px 0 4px; }
.pagehead h1 { font-size: 26px; line-height: 1.35; }
.pagehead .fact { font-size: 14px; color: var(--g700); font-weight: 700; margin-top: 6px; }
.pagehead p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.75; max-width: 60ch; }

/* section tiles */
.sections { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec { position: relative; display: block; height: 132px; border-radius: 16px; overflow: hidden; text-decoration: none; background: var(--g800); }
.sec img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,35,15,.95) 0%, rgba(8,35,15,.74) 34%, rgba(8,35,15,.18) 70%, rgba(8,35,15,0) 94%); }
.sec .label { position: absolute; inset-inline: 13px; bottom: 11px; }
.sec b { display: block; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.35; }
.sec i { display: block; font-style: normal; color: rgba(255,255,255,.96); font-size: 13.5px; font-weight: 700; margin-top: 3px; }

/* product grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.tile { display: block; text-decoration: none; color: inherit; }
.tile .ph { border-radius: 14px; overflow: hidden; background: var(--sand); aspect-ratio: 1 / 1; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .nm { font-size: 13.5px; font-weight: 600; line-height: 1.5; margin: 9px 0 4px; min-height: 40px; }
.tile .pr { font-size: 15px; font-weight: 700; color: var(--g700); }
.tile .sz { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.tile .sz span { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-size: 11px; font-weight: 600; color: #5b6356; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; line-height: 1.55; }
.tile .sz .more { border-style: dashed; color: var(--muted); }

/* markets */
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mkt { background: var(--sand); border-radius: 16px; padding: 15px; }
.mkt b { display: block; font-size: 15px; font-weight: 700; color: var(--g800); margin-bottom: 6px; }
.mkt span { display: block; font-size: 12.5px; line-height: 1.75; color: #4b5346; }

/* sell block */
.sellblock { margin-top: 30px; background: var(--g800); border-radius: 20px; padding: 22px 20px; }
.sellblock h2 { color: #fff; font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.sellblock ul { margin: 0 0 16px; padding: 0; list-style: none; }
.sellblock li { position: relative; color: rgba(255,255,255,.88); font-size: 13.5px; line-height: 1.95; padding-inline-start: 16px; }
.sellblock li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* facts + rows */
.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.facts .row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts .row .k { color: var(--muted); flex: 0 0 auto; }
.facts .row .v { font-weight: 600; text-align: start; }

/* callout */
.note { background: var(--sand); border-radius: 14px; padding: 16px 18px; margin-top: 18px; font-size: 13.5px; line-height: 1.8; color: #3f473b; }
.note b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--g800); margin-bottom: 6px; }

/* steps */
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding-inline-start: 40px; padding-bottom: 16px; font-size: 13.5px; line-height: 1.8; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--g800); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; }

/* table */
.tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; }
.tbl thead th { font-family: var(--f-display); font-weight: 800; font-size: 13px; color: var(--g800); }
.tbl tbody th { font-weight: 500; color: var(--muted); }
.tbl td { font-weight: 600; }
.scrollx { overflow-x: auto; }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
.pdp .photo { border-radius: 18px; overflow: hidden; background: var(--sand); }
.pdp .photo img { width: 100%; height: auto; }
.pdp h1 { font-size: 24px; line-height: 1.35; margin: 16px 0 6px; }
.pdp .price { font-size: 21px; font-weight: 700; color: var(--g700); }
.pdp .pnote { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.back { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--g700); text-decoration: none; }
.back:hover { text-decoration: underline; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.sizes button { direction: ltr; unicode-bidi: isolate; font-family: var(--f-text); font-size: 13.5px; font-weight: 600; padding: 9px 14px; min-width: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.sizes button[aria-pressed="true"] { background: var(--g800); border-color: var(--g800); color: #fff; }

/* form */
.form { display: grid; gap: 12px; margin-top: 12px; max-width: 460px; }
.form label { font-size: 13px; font-weight: 600; color: #3f473b; display: block; margin-bottom: 5px; }
.form input { width: 100%; font-family: var(--f-text); font-size: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus { outline: 2px solid var(--lime); outline-offset: 1px; }

/* footer */
.foot { margin-top: 34px; background: var(--g900); border-radius: 20px; padding: 22px 20px; }
.foot .fb { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot .fb span { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: #fff; line-height: 1; }
.foot p { margin: 0 0 14px; font-size: 12.5px; line-height: 1.85; color: rgba(255,255,255,.74); }
.foot .links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.foot .links a { color: #fff; text-decoration: none; font-weight: 600; }
.foot .links a:hover { text-decoration: underline; }
.closing { margin: 16px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }

@media (min-width: 768px) {
    .wrap { padding: 28px 36px; }
    .sections { grid-template-columns: repeat(4, 1fr); }
    .sec { height: 168px; }
    .grid { grid-template-columns: repeat(4, 1fr); gap: 22px 16px; }
    .hero { height: 420px; }
    .hero .body { padding: 28px; }
    .hero h1 { font-size: 40px; }
    .hero p { font-size: 15px; }
    .h2 { font-size: 22px; }
    .nav { flex-wrap: wrap; overflow: visible; }
    .sellblock { padding: 28px; }
    .sellblock h2 { font-size: 26px; }
    .pagehead h1 { font-size: 34px; }
    .pdp { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
    .pdp .info { padding-top: 6px; }
    .pdp h1 { margin-top: 0; }
    .foot { padding: 28px; }
}
