:root {
  --bg: #F6F1E4;
  --bg2: #E3EBCF;
  --card: #FFFDF7;
  --accent: #4E7D3A;
  --accent-dark: #3B6129;
  --logo-green: #1B5434;
  --text: #2F3A22;
  --muted: #5E6A4F;
  --line: #DCD5C0;
  --wa: #1FA855;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(47, 58, 34, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--logo-green); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.urdu { font-family: var(--urdu); direction: rtl; line-height: 2.1; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section.alt { background: var(--bg2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 800; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246, 241, 228, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand img { height: 54px; width: auto; }
.nav { display: none; }
.nav a { text-decoration: none; color: var(--text); font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: rgba(78, 125, 58, .08); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; border: 0; background: transparent; color: var(--text); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; font-size: 1.6rem; text-decoration: none; }
.icon-btn:hover { background: rgba(78, 125, 58, .1); }
.badge { position: absolute; top: 4px; right: 2px; background: var(--accent); color: #fff; font: 800 .7rem/1 var(--sans); min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
body.nav-open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
body.nav-open .nav a { padding: 12px; }
@media (min-width: 860px) {
  .nav { display: flex; gap: 2px; }
  .nav-toggle { display: none; }
  .brand img { height: 64px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font: 800 .95rem/1.1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary.added { background: var(--logo-green); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); background: transparent; }
.btn-outline:hover { background: rgba(78, 125, 58, .08); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding: 32px 0 48px; background: radial-gradient(ellipse at 80% 20%, var(--bg2), transparent 60%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero .urdu { font-size: 1.35rem; color: var(--accent-dark); margin: -4px 0 12px; }
.hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 0; list-style: none; font-weight: 700; font-size: .92rem; color: var(--muted); }
.hero-points li::before { content: "\2713"; color: var(--accent); margin-right: 6px; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* product cards */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; background: linear-gradient(180deg, #FBF7EC, #EFE8D4); aspect-ratio: 4 / 5; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card.out .card-img img { opacity: .55; }
.tag, .size-tag { position: absolute; top: 12px; left: 12px; background: #8a3b2a; color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.size-tag { left: auto; right: 12px; background: var(--accent); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body p { margin: 0; font-size: .93rem; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--text); }
.price-ask { font-size: .95rem; color: var(--accent-dark); }
.size { color: var(--muted); font-weight: 700; font-size: .9rem; }
.card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-actions .btn { padding: 10px 8px; font-size: .88rem; }
.grid-loading { min-height: 200px; display: grid; place-items: center; color: var(--muted); grid-column: 1 / -1; }

/* features */
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.feature { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--bg2); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 20px 20px 20px 70px; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1.1rem/38px var(--serif); text-align: center; }
.steps strong { display: block; }

/* recipes */
.recipe-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.recipe { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.recipe img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 70%; }
.recipe-body { padding: 20px; }
.recipe ol, .recipe ul { padding-left: 1.3em; margin: 0 0 1em; }
.recipe li { margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { background: var(--bg2); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }

/* contact strip */
.cta { background: var(--logo-green); color: #F6F1E4; border-radius: 24px; padding: 32px 22px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #DDE6CC; }
.cta .btn-row { justify-content: center; }
.cta .btn-outline { border-color: #DDE6CC; color: #fff; }

/* page header */
.page-head { padding: 40px 0 24px; text-align: center; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.page-head p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; }
.box { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }

/* product detail */
.crumbs { font-size: .88rem; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--muted); }
.detail { display: grid; gap: 28px; padding-bottom: 48px; }
.detail-img { background: linear-gradient(180deg, #FBF7EC, #EFE8D4); border-radius: 24px; display: grid; place-items: center; padding: 18px; max-height: 640px; }
.detail-img img { max-height: 600px; width: auto; object-fit: contain; }
.detail-price { display: flex; gap: 14px; align-items: baseline; margin: 12px 0; }
.detail-price .price { font-size: 1.6rem; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; color: var(--text); font-weight: 800; }
.pill.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy-row .btn { flex: 1; }
.qty-input { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.qty-input input { width: 64px; height: 46px; border: 2px solid var(--line); border-radius: 12px; text-align: center; font: inherit; background: #fff; }
.ticks { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.ticks li::before { content: "\2713"; color: var(--accent); margin-right: 6px; }
.desc { border-top: 1px solid var(--line); padding-top: 16px; }
.tag-inline { color: #8a3b2a; font-weight: 800; }
.notice { text-align: center; padding: 40px 16px; grid-column: 1 / -1; }
@media (min-width: 860px) {
  .detail { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .detail-info { position: sticky; top: 90px; }
}

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(30, 36, 20, .45); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { padding: 16px; overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--card); overflow-y: auto; max-height: 62vh; }
.drawer-foot label { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; }
.drawer-foot input, .drawer-foot textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
.drawer-foot input:focus, .drawer-foot textarea:focus, .qty-input input:focus { outline: none; border-color: var(--accent); }
.drawer-foot p { margin: 0; }
.cart-total { font-size: 1.1rem; }
.cart-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 56px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; }
.cart-info { flex: 1; display: grid; gap: 2px; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.empty { color: var(--muted); }

/* toast + floating wa */
#toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--logo-green); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31, 168, 85, .4); z-index: 20; }
.wa-float svg { width: 28px; height: 28px; }

/* footer */
.site-footer { background: #E9E2CE; padding: 40px 0 90px; margin-top: 0; font-size: .93rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer img { height: 44px; width: auto; margin-bottom: 10px; }
.site-footer h3 { font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.copyright { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
