/* Friska storefront. Colours are sampled from the logo. */
:root {
  --green: #057715;
  --green-deep: #04600f;
  --forest: #093a14;
  --leaf: #7dbe22;
  --leaf-soft: #e9f3d6;
  --cream: #fdfdf5;
  --cream-2: #f4f3e4;
  --white: #ffffff;
  --ink: #10301a;
  --muted: #5a6b5d;
  --line: #e3e5d2;
  --orange: #e9801a;
  --sale: #cf3f25;
  --wa: #128c4b;
  --radius: 20px;
  --leaf-radius: 56px 14px 56px 14px;
  --shadow: 0 1px 2px rgba(9, 58, 20, .06), 0 10px 28px rgba(9, 58, 20, .08);
  --display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.7 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.25; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); color: var(--forest); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1.05rem/1 var(--display); text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(5, 119, 21, .28); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--leaf-soft); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--leaf-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e7940; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream-2); }
.icon-btn:hover { background: var(--line); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top ---------- */
.announce { background: var(--forest); color: #e6f2d3; text-align: center; font-size: .92rem; font-weight: 500; padding: 7px 16px; }
.announce span { margin-inline: 8px; color: var(--leaf); }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(253, 253, 245, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { width: 150px; }
.search { flex: 1; max-width: 520px; margin-inline: auto; position: relative; display: block; }
.search svg { position: absolute; inset-inline-start: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input {
  width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  padding-inline: 48px 18px; transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #8b978c; }
.search input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(125, 190, 34, .25); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 999px; border: 0; background: var(--green); color: #fff; font: 700 1rem/1 var(--display);
}
.cart-btn:hover { background: var(--green-deep); }
.cart-btn b {
  min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px;
  background: #fff; color: var(--green); font: 700 .85rem/1 var(--body);
}
.cart-btn b[hidden] { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero::before {   /* big soft leaf, echoing the leaf in the logo */
  content: ""; position: absolute; width: 620px; height: 620px; inset-inline-start: -180px; top: -220px;
  background: var(--leaf-soft); border-radius: 100% 0 100% 0; rotate: 8deg;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-block: 64px 72px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font: 700 1.05rem/1 var(--display); background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.kicker svg { width: 18px; height: 18px; color: var(--leaf); stroke-width: 2.2; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.3rem); line-height: 1.16; color: var(--forest); margin-block: 20px 16px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.rating { margin-top: 24px; color: var(--muted); font-size: .98rem; }
.rating b { color: var(--ink); }
.stars { color: var(--orange); letter-spacing: 2px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 140px 28px 140px 28px; box-shadow: 0 30px 60px rgba(9, 58, 20, .2); }
.hero-tag {
  position: absolute; inset-inline-start: -14px; bottom: 34px; background: #fff; border-radius: 18px; padding: 12px 18px;
  box-shadow: var(--shadow); display: grid; line-height: 1.35; border-inline-start: 5px solid var(--leaf);
}
.hero-tag strong { font-family: var(--display); color: var(--green); font-size: 1.1rem; }
.hero-tag span { color: var(--muted); font-size: .88rem; }

/* ---------- trust ---------- */
.trust { background: #fff; border-block: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.trust li + li { border-inline-start: 1px solid var(--line); }
.trust svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px 4px 14px 4px; background: var(--leaf-soft); color: var(--green); }
.trust strong { display: block; font-family: var(--display); font-size: 1.08rem; color: var(--forest); line-height: 1.3; }
.trust span { color: var(--muted); font-size: .9rem; }

/* ---------- categories ---------- */
.cats { padding-block: 64px 8px; }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.cat {
  position: relative; display: grid; gap: 4px; text-align: start; padding: 14px 14px 16px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--leaf-radius); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--leaf); }
.cat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 44px 10px 44px 10px; margin-bottom: 8px; background: var(--cream-2); }
.cat strong { font: 800 1.15rem/1.3 var(--display); color: var(--forest); }
.cat span { color: var(--muted); font-size: .9rem; }

/* ---------- shop ---------- */
.shop { padding-block: 56px 80px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shop-head p { color: var(--muted); font-size: .95rem; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 18px 22px; scrollbar-width: none; position: sticky; top: 76px; z-index: 10; background: linear-gradient(var(--cream) 80%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: 700 1rem/1 var(--display); color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s;
}
.chip small { font: 500 .8rem/1 var(--body); color: var(--muted); margin-inline-start: 6px; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed="true"] small { color: #cfe8c0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { display: block; border: 0; padding: 0; background: var(--cream-2); aspect-ratio: 1; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--sale); color: #fff; font: 700 .82rem/1 var(--display); padding: 6px 10px; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1; }
.card h3 { font-size: 1.08rem; color: var(--ink); line-height: 1.4; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:hover { color: var(--green); }
.card h3 button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; border-radius: 4px; }
.card .desc { color: var(--muted); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font: 800 1.2rem/1.2 var(--display); color: var(--green); white-space: nowrap; }
.price small { font: 500 .8rem/1 var(--body); color: var(--muted); margin-inline-start: 3px; }
.price del { display: block; font: 500 .82rem/1.2 var(--body); color: var(--muted); }
.price.ask { font-size: .95rem; color: var(--muted); font-weight: 700; }
.add {
  height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--leaf-soft); color: var(--green);
  font: 700 .98rem/1 var(--display); display: inline-flex; align-items: center; gap: 4px; transition: background .15s, color .15s;
}
.add:hover { background: var(--green); color: #fff; }
.add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.qty { display: inline-flex; align-items: center; height: 42px; border-radius: 999px; background: var(--green); color: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: none; color: inherit; font: 700 1.25rem/1 var(--body); border-radius: 999px; }
.qty button:hover { background: rgba(255, 255, 255, .18); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- story ---------- */
.story { background: var(--forest); color: #e9f3d6; position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -160px; bottom: -260px; background: rgba(125, 190, 34, .14); border-radius: 100% 0 100% 0; }
.story-in { position: relative; display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; padding-block: 72px; }
.story-text img { width: 150px; margin-bottom: 22px; }
.story h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.story p { margin-block: 14px 26px; font-size: 1.12rem; max-width: 34em; color: #cfe2c4; }
.story-photo { border-radius: 110px 22px 110px 22px; aspect-ratio: 1; object-fit: cover; }

/* ---------- footer ---------- */
.footer { background: #062a0e; color: #cfe2c4; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 36px; }
.footer p { margin-top: 8px; font-family: var(--display); font-weight: 600; color: var(--leaf); }
.footer ul { display: grid; gap: 4px; font-size: .98rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- floating cart (mobile) ---------- */
.float-cart {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 15; display: none; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--green); color: #fff;
  font: 700 1.05rem/1 var(--display); box-shadow: 0 14px 30px rgba(5, 119, 21, .4);
}
.float-cart span:first-child { background: #fff; color: var(--green); min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; font: 700 .9rem/1 var(--body); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--cream); }
dialog::backdrop { background: rgba(6, 42, 14, .55); backdrop-filter: blur(3px); }
.drawer { margin: 0; margin-inline-start: auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); max-width: 100%; }
.drawer[open] { display: flex; flex-direction: column; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(-40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { font-size: 1.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #fff; }
.totals { display: grid; gap: 6px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals div:first-child b { font: 800 1.35rem/1.2 var(--display); color: var(--green); }
.totals .free { color: var(--green); }
.totals p { font-size: .85rem; color: var(--muted); }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; background: var(--cream-2); }
.line strong { display: block; font: 700 1rem/1.4 var(--display); }
.line span { color: var(--muted); font-size: .9rem; }
.line .qty { height: 38px; }
.line .qty button { width: 34px; height: 38px; }
.cart-empty { text-align: center; padding: 64px 16px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.cart-empty svg { width: 64px; height: 64px; padding: 16px; border-radius: 28px 8px 28px 8px; background: var(--leaf-soft); color: var(--green); }

.modal { width: min(520px, 100% - 24px); max-height: calc(100dvh - 24px); border-radius: 26px; overflow: hidden; }
.modal[open] { animation: pop .2s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }
.modal-body label { display: grid; gap: 6px; font-weight: 700; font-size: .98rem; }
.modal-body small { font-weight: 400; color: var(--muted); }
.modal-body input, .modal-body textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px; font-weight: 400; resize: vertical;
}
.modal-body input:focus, .modal-body textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(125, 190, 34, .25); }
.modal-body [aria-invalid="true"] { border-color: var(--sale); }
.form-error { color: var(--sale); font-weight: 700; font-size: .95rem; }
.hint { font-size: .9rem; color: var(--muted); background: var(--leaf-soft); padding: 10px 14px; border-radius: 14px; }

.product-modal { width: min(820px, 100% - 24px); }
.pm-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.pm-in { display: grid; grid-template-columns: 1fr 1fr; }
.pm-in img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--cream-2); }
.pm-text { padding: 56px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.pm-text .cat-name { color: var(--green); font: 700 .95rem/1 var(--display); }
.pm-text h2 { font-size: 1.8rem; }
.pm-text p { color: var(--muted); white-space: pre-line; }
.pm-text .price { font-size: 1.7rem; margin-top: 6px; }
.pm-actions { margin-top: auto; padding-top: 18px; display: flex; gap: 12px; align-items: center; }
.pm-actions .add, .pm-actions .qty { height: 52px; }
.pm-actions .add { padding: 0 28px; background: var(--green); color: #fff; font-size: 1.05rem; }
.pm-actions .add:hover { background: var(--green-deep); }
.pm-actions .qty button { width: 50px; height: 52px; }
.pm-note { font-size: .88rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 56px; }
  .hero-photo { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-photo img { border-radius: 100px 22px 100px 22px; }
  .hero-tag { inset-inline-start: 8px; }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-inline-start: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .story-in { grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
  .story-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; min-height: 0; }
  .brand img { width: 124px; }
  .cart-btn { margin-inline-start: auto; height: 44px; padding: 0 16px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .chips { top: 118px; margin-inline: -16px; padding-inline: 16px; }
  .trust li { padding: 16px 10px; gap: 10px; }
  .trust svg { width: 38px; height: 38px; padding: 8px; }
  .trust strong { font-size: .98rem; }
  .trust span { font-size: .8rem; }
  .cats { padding-top: 44px; }
  .cats-grid { display: flex; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .cat { flex: none; width: 150px; scroll-snap-align: start; border-radius: 40px 12px 40px 12px; }
  .cat img { border-radius: 30px 8px 30px 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card h3 { font-size: .98rem; }
  .card .desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add, .card .qty { justify-content: center; width: 100%; }
  .card .qty { justify-content: space-between; }
  .float-cart:not([hidden]) { display: flex; }
  .shop { padding-bottom: 110px; }
  .pm-in { grid-template-columns: 1fr; }
  .pm-in img { aspect-ratio: 1; }
  .pm-text { padding: 20px; }
  .product-modal { overflow-y: auto; }
  .btn { min-height: 50px; padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
