/*
Theme Name: Ilm o Adab
Theme URI: https://ilmoadabpublishers.com
Author: Ilm o Adab Publishers
Author URI: https://ilmoadabpublishers.com
Description: A modern, mobile-first bookstore theme for Ilm o Adab Publishers — Balochi, Brahui, Urdu and English books. WooCommerce compatible, with WhatsApp ordering built in.
Version: 1.2.35
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ilmoadab
Tags: e-commerce, books, multilingual, rtl-language-support, custom-colors, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   ILM O ADAB — design tokens (royal blue / orange system,
   matched to the approved design preview)
   ============================================================ */
:root {
  --blue: #1d5fae;
  --blue-dark: #134a8f;
  --blue-deep: #0e3568;
  --orange: #f97316;
  --orange-dark: #ea6a0a;
  --ink: #17233a;
  --muted: #5d6f88;
  --line: #e5ebf3;
  --bg: #f6f8fb;
  --card: #ffffff;
  --wa: #22b358;
  --wa-dark: #1c9c4c;
  --radius: 14px;
  /* Legacy aliases (older templates / inline styles) */
  --teal: var(--blue);
  --teal-dark: var(--blue-dark);
  --teal-light: #e9f1fb;
  --gold: var(--orange);
  --gold-dark: var(--orange-dark);
  --gold-light: #ffd9a8;
  --cream: #faf6ee;
  --white: #ffffff;
  --wa-green: var(--wa);
  --wa-green-dark: var(--wa-dark);
  --danger: #e11d48;
  --shadow: 0 10px 30px rgba(13, 53, 104, 0.10);
  --font-latin: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-latin);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; color: var(--blue-deep); }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 54px 0; }
.section-title { text-align: center; margin-bottom: 0.4rem; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--blue-deep); }
.section-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 2rem; }

/* Section head (preview style: left-aligned title + view-all link) */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--blue-deep); margin: 0; }
.sec-head .sub { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.view-all { color: var(--orange-dark); font-weight: 700; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.view-all:hover { text-decoration: underline; color: var(--orange-dark); }

/* Urdu / Balochi / Arabic-script titles */
.urdu, [lang="ur"], [lang="bal"] {
  font-family: var(--font-urdu);
  line-height: 2.5;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--font-latin); font-weight: 700; font-size: 15px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-orange, .btn-gold { background: var(--orange); color: #fff; }
.btn-orange:hover, .btn-gold:hover { background: var(--orange-dark); color: #fff; }
.btn-teal { background: var(--blue); color: #fff; }
.btn-teal:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-dark); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-shop { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

/* WhatsApp buttons */
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff !important;
  padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
  border: 0; cursor: pointer; text-align: center;
}
.wa-btn:hover { background: var(--wa-dark); color: #fff !important; transform: translateY(-1px); }
.wa-btn svg { width: 16px; height: 16px; flex: none; }
.wa-btn--small { padding: 11px; font-size: 14px; width: 100%; }
.wa-btn--block { width: 100%; padding: 13px 22px; font-size: 15px; }

/* Floating WhatsApp bubble */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 99;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .wa-tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--ink); font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 0.8rem; border-radius: 8px; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar { background: var(--blue-deep); color: #dbe7f7; font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
.topbar .tb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #ffd9a8; }
.topbar svg { width: 14px; height: 14px; fill: #fff; }
.tb-social { display: flex; gap: 10px; }
.tb-social a { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: inline-flex; align-items: center; justify-content: center; }
.tb-social a:hover { background: var(--orange); }
.tb-social svg { width: 13px; height: 13px; }

/* ============================================================
   Header — brand row + full-width nav row (no overlap)
   ============================================================ */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(13, 53, 104, 0.08); position: sticky; top: 0; z-index: 60; }
.site-header .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 10px; padding-bottom: 12px; position: relative; }
.site-brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; margin-right: auto; }
.site-brand > a { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-brand img, .site-brand .custom-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(13, 53, 104, 0.25); flex: none; }
.site-brand .logo-mark {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-urdu); font-weight: 700; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(13, 53, 104, 0.25);
}
.brand-text { min-width: 0; }
.brand-text strong { display: block; font-weight: 800; font-size: 19px; color: var(--blue-deep); line-height: 1.25; white-space: nowrap; }
.brand-text small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
/* Preview brand subline: the Urdu name, set larger like the preview. */
.brand-text small.urdu { font-size: 14px; }
.main-nav { display: flex; flex: 1 0 100%; order: 3; padding-top: 8px; border-top: 1px solid #e8eef6; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
.main-nav a { display: inline-block; color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 9px 13px; border-radius: 9px; white-space: nowrap; }
.main-nav a:hover { background: #eef3fa; color: var(--blue-dark); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: #eef3fa; color: var(--blue-dark); }
/* WhatsApp Order CTA (preview .nav-cta) — class may sit on the <a> (fallback menu) or the <li> (wp-admin menu). */
.main-nav a.nav-cta, .main-nav .nav-cta > a { background: var(--wa) !important; color: #fff !important; display: inline-flex; align-items: center; gap: 7px; }
.main-nav a.nav-cta:hover, .main-nav .nav-cta > a:hover { background: var(--wa-dark) !important; }
.main-nav .nav-cta svg { width: 16px; height: 16px; fill: #fff; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; line-height: 0; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--blue-deep); stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* ============================================================
   Hero
   ============================================================ */
.hero { background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-dark) 55%, var(--blue) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px); background-size: 26px 26px; pointer-events: none; }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 64px 20px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; position: relative; }
.hero-kicker, .hero-eyebrow {
  display: inline-block; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px; color: #fff;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: 1.35; margin-bottom: 14px; color: #fff; }
.hero h1 .hl { color: #ffd9a8; }
.hero p.lead { font-size: 16.5px; color: #d7e4f6; max-width: 520px; margin-bottom: 26px; }
.hero-btns, .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hstat b { display: block; font-size: 24px; font-weight: 800; }
.hstat span { font-size: 13px; color: #c4d6ef; }
.hero-art { position: relative; height: 380px; display: block; }
.hbook { position: absolute; width: 200px; margin: 0; border-radius: 8px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); border: 5px solid #fff; background: #fff; overflow: hidden; }
.hbook img { display: block; width: 100%; height: 270px; object-fit: cover; }
.hbook.hb1 { left: 6%; top: 24px; transform: rotate(-7deg); }
.hbook.hb2 { left: 36%; top: 0; transform: rotate(2deg); z-index: 2; width: 220px; }
.hbook.hb2 img { height: 296px; }
.hbook.hb3 { left: 68%; top: 44px; transform: rotate(8deg); }
.hbook figcaption { font-size: 12px; font-weight: 700; color: var(--blue-deep); padding: 8px 10px; text-align: center; line-height: 1.5; }
.hbook figcaption.urdu { line-height: 2.2; }

/* ============================================================
   Trust band (delivery / why shop with us)
   ============================================================ */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-in { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #e9f1fb; display: flex; align-items: center; justify-content: center; }
.trust-item .ic svg { width: 22px; height: 22px; fill: var(--blue); }
.trust-item b { display: block; font-size: 14px; color: var(--ink); }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ============================================================
   Literary quote band (front-page.php carries its own inline
   styles; these rules cover the class-based markup)
   ============================================================ */
.quote-band { background: #faf6ee; background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(13, 53, 104, 0.05) 28px); border-top: 1px solid #e8dfc9; border-bottom: 1px solid #e8dfc9; }
.quote-in { max-width: 860px; margin: 0 auto; padding: 44px 20px; text-align: center; }
.quote-in .qmark { font-size: 44px; color: var(--orange); font-family: Georgia, serif; line-height: 1; display: block; }
.quote-in .sher { font-family: var(--font-urdu); font-size: clamp(20px, 3.4vw, 30px); color: var(--blue-deep); line-height: 2.6; }
.quote-in .attr { margin-top: 4px; font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.4px; }
.quote-band .quote-sher { font-size: 30px; }

/* ============================================================
   Grids & cards
   ============================================================ */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Language tiles */
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.lang-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 16px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s; display: block;
}
.lang-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--blue); }
.lang-card:nth-child(2)::after { background: var(--orange); }
.lang-card:nth-child(3)::after { background: #0ea5a5; }
.lang-card:nth-child(4)::after { background: #7c5cbf; }
.lang-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 53, 104, 0.12); }
.lang-card .lang-script, .lang-card .ln { font-family: var(--font-urdu); font-size: 26px; color: var(--blue-deep); line-height: 2.2; }
.lang-card .ln-latin { font-family: var(--font-latin); font-weight: 800; font-size: 24px; line-height: 1.6; }
.lang-card h3 { font-size: 18px; margin: 2px 0; color: var(--ink); }
.lang-card .count, .lang-card p { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 0; }

/* Collection cards */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.col-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.col-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 53, 104, 0.10); }
.col-card .n { width: 52px; height: 52px; flex: none; border-radius: 14px; background: linear-gradient(140deg, var(--blue), var(--blue-dark)); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.col-card:nth-child(2) .n { background: linear-gradient(140deg, #f97316, #ea580c); }
.col-card:nth-child(3) .n { background: linear-gradient(140deg, #0ea5a5, #0b7c7c); }
.col-card:nth-child(4) .n { background: linear-gradient(140deg, #7c5cbf, #5e3fa3); }
.col-card:nth-child(5) .n { background: linear-gradient(140deg, #e11d48, #b3123a); }
.col-card:nth-child(6) .n { background: linear-gradient(140deg, #1f9d55, #177a42); }
.col-card h4 { font-size: 16.5px; margin: 0 0 2px; color: var(--ink); }
.col-card p { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
/* Legacy collection-card hook (same look) */
.collection-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.collection-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 53, 104, 0.10); }
.collection-card h3 { font-size: 16.5px; margin: 0 0 2px; color: var(--ink); }
.collection-card .count { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Kitab Jah — online reading library shelf */
.kj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.kj-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.kj-card img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; }
.kj-card h4 { font-size: 15px; margin: 0 0 2px; color: var(--ink); }
.kj-card p { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.kj-badge { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
@media (max-width: 860px) { .kj-grid { grid-template-columns: repeat(2, 1fr); } }
.kj-card .btn { margin-top: 4px; }
.kj-lang { margin-top: 36px; }
.kj-lang:first-child { margin-top: 6px; }
.kj-lang-title { display: inline-block; font-size: 22px; color: var(--ink); margin: 0; padding-bottom: 7px; border-bottom: 3px solid var(--orange); }
.kj-lang .kj-grid { margin-top: 16px; }
.kj-lang-empty { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* Kitab Jah — protected reader */
.kj-login { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; text-align: center; max-width: 640px; margin: 0 auto; }
.kj-login h2 { margin: 0 0 8px; color: var(--ink); }
.kj-login p { color: var(--muted); margin: 0 0 18px; }
.kj-login .btn { margin: 4px; }
.kj-reader { background: #0e1a2e; border-radius: 16px; padding: 16px; }
.kj-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kj-btn { background: var(--orange); color: #fff; border: 0; font-weight: 700; font-size: 14.5px; padding: 9px 18px; border-radius: 22px; cursor: pointer; }
.kj-btn:hover { background: var(--orange-dark); }
.kj-btn:disabled { opacity: 0.4; cursor: default; }
.kj-count { color: #c9dbf2; font-weight: 600; font-size: 14.5px; }
.kj-stage { position: relative; text-align: center; }
.kj-stage img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.kj-warn { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; background: rgba(10, 20, 38, 0.92); color: #fff; font-weight: 700; font-size: 17px; padding: 24px; border-radius: 8px; }
.kj-note { color: #9db8d9; font-size: 13px; text-align: center; margin: 12px 0 2px; }
@media print { .kj-reader, .kj-login { display: none !important; } }

/* Authors — horizontal strip + spotlight */
.auth-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; gap: 14px; overflow-x: auto; margin-top: 22px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.auth-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; scroll-snap-align: start; display: block;
}
.auth-card .avatar, .author-card .avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep)); color: #fff;
  font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-urdu); line-height: 1;
}
.auth-card:nth-child(even) .avatar { background: linear-gradient(140deg, var(--orange), var(--orange-dark)); }
.auth-card h4 { font-size: 14.5px; margin: 0 0 2px; color: var(--ink); }
.auth-card p { font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0; }
.spotlight {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); color: #fff;
  border-radius: var(--radius); padding: 22px 20px; scroll-snap-align: start; min-width: 290px;
  border: 1px solid var(--blue-deep);
}
.spotlight .kick { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #ffd9a8; }
.spotlight h4 { font-size: 19px; margin: 6px 0 4px; color: #fff; }
.spotlight p { font-size: 13px; color: #c9dbf2; margin: 0; }
.spotlight .cnt { display: inline-block; margin-top: 10px; background: rgba(255, 255, 255, 0.16); padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
/* Legacy author-card hook (taxonomy / fallback grids) */
.author-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.author-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 53, 104, 0.12); }
.author-card h3 { font-size: 1.05rem; margin-bottom: 0.1rem; padding: 0 1rem; }
.author-card .count { color: var(--muted); font-size: 0.83rem; display: block; }

/* Promo band */
.promo {
  background: linear-gradient(100deg, #e11d48, #f97316); border-radius: 18px; color: #fff;
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 54px;
}
.promo h3 { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.promo p { font-size: 14.5px; opacity: 0.92; margin: 0; }
.promo .btn { background: #fff; color: #c21c44; }
.promo .btn:hover { background: #fff; color: #c21c44; }

/* Shop by budget */
.budget-strip {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 26px; display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: space-between;
}
.budget-strip h3 { font-size: 18px; color: var(--blue-deep); margin: 0 0 2px; }
.budget-strip p { font-size: 13.5px; color: var(--muted); margin: 0; }
.budget-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.budget-chips a { border: 2px solid var(--orange); color: var(--orange-dark); font-weight: 800; font-size: 14px; padding: 10px 20px; border-radius: 30px; }
.budget-chips a:hover { background: var(--orange); color: #fff; }

/* ============================================================
   WooCommerce product cards & pages (preview book-card look)
   ============================================================ */
#main ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 22px 0 0; padding: 0; }
#main ul.products::before, #main ul.products::after { display: none; }
#main ul.products li.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; float: none !important; width: 100% !important; margin: 0 !important;
  display: flex; flex-direction: column; position: relative; text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
}
#main ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 53, 104, 0.13); }
#main ul.products li.product a img { margin: 0 0 4px; aspect-ratio: 3/4; object-fit: cover; width: 100%; background: #eef2f7; }
#main ul.products li.product .book-cat {
  font-size: 11px; color: var(--orange-dark); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px; padding: 14px 14px 0;
}
#main ul.products li.product .woocommerce-loop-product__title {
  font-size: 16.5px; font-weight: 600; padding: 4px 14px 0; color: var(--ink); margin: 0; flex: 1;
}
#main ul.products li.product .price { color: var(--blue-deep); font-weight: 800; font-size: 18px; padding: 6px 14px 0; display: block; margin-bottom: 12px; }
#main ul.products li.product .price del { color: #9aa9bd; font-weight: 500; font-size: 14px; margin-right: 7px; }
#main ul.products li.product .price ins { text-decoration: none; }
#main ul.products li.product .onsale {
  position: absolute; top: 10px; left: 10px; background: #e11d48; color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 20px;
  letter-spacing: 0.4px; z-index: 2; min-height: 0; min-width: 0; line-height: 1.5; margin: 0;
}
#main ul.products li.product .onsale.oos { background: #64748b; }
#main ul.products li.product .button {
  margin: auto 14px 10px; background: #e9f1fb; color: var(--blue-dark);
  font-weight: 700; font-size: 14px; padding: 10px; border-radius: 10px; text-align: center;
}
#main ul.products li.product .button:hover { background: var(--blue); color: #fff; }
#main ul.products li.product .wa-btn { margin: 0 14px 14px; width: auto; }
#main ul.products li.product .star-rating { margin: 8px 14px 0; }

/* Quick view pill on the cover (preview .qv) — JS positions it at the
   bottom of the cover image; revealed on hover, always on touch. */
#main ul.products li.product .qv {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(6px);
  background: rgba(13, 53, 104, 0.92); color: #fff; border: 0; cursor: pointer;
  font-family: var(--font-latin); font-weight: 700; font-size: 12.5px;
  padding: 8px 18px; border-radius: 20px; white-space: nowrap; z-index: 3;
  opacity: 0; transition: opacity 0.15s, transform 0.15s;
}
#main ul.products li.product:hover .qv, #main ul.products li.product:focus-within .qv { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (hover: none) {
  #main ul.products li.product .qv { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Quick view modal (preview .qv-modal) */
.qv-modal {
  position: fixed; inset: 0; background: rgba(13, 35, 68, 0.62);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 18px;
}
.qv-modal.open { display: flex; }
.qv-box {
  background: #fff; border-radius: 18px; max-width: 640px; width: 100%;
  display: grid; grid-template-columns: 220px 1fr; overflow: hidden;
  position: relative; animation: qvpop 0.18s ease-out;
}
@keyframes qvpop { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qv-x { position: absolute; top: 6px; right: 12px; background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; line-height: 1; z-index: 2; }
.qv-cov { background: #eef2f7; min-height: 300px; }
.qv-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-body { padding: 26px 24px; display: flex; flex-direction: column; }
.qv-body .book-cat { font-size: 11px; color: var(--orange-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.qv-body .book-title { font-weight: 600; font-size: 20px; margin: 4px 0 8px; color: var(--ink); }
.qv-body .book-price { font-weight: 800; color: var(--blue-deep); font-size: 18px; margin: 8px 0 18px; }
.qv-body .wa-order {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--wa); color: #fff; font-weight: 700; padding: 11px;
  border-radius: 10px; font-size: 14px; margin-top: auto;
}
.qv-body .wa-order:hover { background: var(--wa-dark); color: #fff; }
.qv-body .wa-order svg { width: 16px; height: 16px; fill: #fff; }
@media (max-width: 560px) {
  .qv-box { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .qv-cov { min-height: 0; }
  .qv-cov img { max-height: 300px; }
}

/* Single product */
.single-product .product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.single-product .product .onsale {
  background: #e11d48; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 11px; border-radius: 20px; min-height: 0; min-width: 0; line-height: 1.5;
}
.single-product .price { color: var(--blue-deep); font-weight: 800; }
.ilmoadab-order-box {
  margin-top: 1.4rem; padding: 1.2rem; border: 2px dashed var(--wa); border-radius: var(--radius);
  background: #f2fbf5; text-align: center;
}
.ilmoadab-order-box p { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--ink); }
.ilmoadab-order-box .btn-row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Adab Online teaser band
   ============================================================ */
.adab-band { background: #faf6ee; background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(13, 53, 104, 0.045) 28px); border-top: 1px solid #e8dfc9; border-bottom: 1px solid #e8dfc9; }
.adab-in { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.adab-kick { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--orange-dark); }
.adab-tag { font-family: var(--font-urdu); font-size: clamp(30px, 5vw, 46px); color: var(--blue-deep); line-height: 2.2; margin: 4px 0 6px; }
.adab-sub { color: var(--muted); font-size: 15.5px; max-width: 660px; margin-bottom: 26px; }
.adab-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.adab-tab { border: 2px solid var(--blue); background: #fff; color: var(--blue-deep); font-weight: 800; font-size: 13.5px; padding: 9px 20px; border-radius: 24px; display: inline-block; transition: all 0.15s; }
.adab-tab:hover { background: #e9f1fb; color: var(--blue-deep); }
.adab-tab.active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
/* Adab Online writings grid (preview .adab-grid / .adab-card — Adab Online page) */
.adab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adab-card {
  background: #fffdf8; border: 1px solid #e8dfc9; border-radius: var(--radius);
  padding: 22px 20px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.adab-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 53, 104, 0.12); }
.adab-card .cat {
  position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--blue);
  padding: 4px 12px; border-radius: 14px;
}
.adab-card .cat.poetry { background: #7c5cbf; }
.adab-card .cat.story { background: var(--orange-dark); }
.adab-card .cat.essay { background: #0ea5a5; }
.adab-card .cat.trans { background: #e11d48; }
.adab-card .cat.article { background: #0e7c61; }
.adab-card .langtag {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--blue-dark);
  background: #e9f1fb; border-radius: 12px; padding: 3px 12px; margin-bottom: 10px; width: fit-content;
}
.adab-card h4 { font-size: 19px; color: var(--ink); margin-bottom: 2px; padding-right: 86px; }
.adab-card .by { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.adab-card .ex { font-size: 14px; color: #4a5a75; flex: 1; margin-bottom: 14px; }
.adab-card .read { color: var(--orange-dark); font-weight: 800; font-size: 14px; }
.adab-card .read:hover { text-decoration: underline; }
.adab-submit {
  margin-top: 30px; background: linear-gradient(120deg, var(--blue-deep), var(--blue-dark) 60%, var(--blue));
  border-radius: 20px; padding: 36px 34px; color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.adab-submit h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-bottom: 8px; color: #fff; }
.adab-submit p { color: #c9dbf2; font-size: 14.5px; max-width: 600px; margin: 0; }
.steps { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 16px 18px; }
.step b { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 4px; }
.step .n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.step span { font-size: 13px; color: #c9dbf2; }
.adab-cta { text-align: center; }

/* "Submit Your Writing" form (preview .adab-formwrap) */
.adab-formwrap {
  background: #fffdf8; border-radius: 16px; padding: 28px 26px; color: var(--ink);
  max-width: 560px; width: 100%; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18); box-sizing: border-box;
}
.adab-formwrap h4 { font-size: 18px; color: var(--blue-deep); margin-bottom: 4px; }
.adab-formwrap .fnote { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.adab-form-error {
  background: #fdeef2; border: 1px solid #e11d48; color: #9f1239; border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px;
}
.ffield { margin-bottom: 14px; }
.ffield label { display: block; font-size: 13px; font-weight: 700; color: var(--blue-deep); margin-bottom: 6px; }
.ffield input[type="text"], .ffield input[type="email"], .ffield input[type="tel"],
.ffield select, .ffield textarea {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); box-sizing: border-box;
}
.ffield textarea { min-height: 96px; resize: vertical; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus { outline: none; border-color: var(--blue); }
.ffield input.bad, .ffield select.bad, .ffield textarea.bad { border-color: #e11d48; }
.ffield .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ferr { display: block; font-size: 12px; color: #e11d48; font-weight: 700; margin-top: 4px; }
.ferr:empty { display: none; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcheck {
  display: flex !important; gap: 10px; align-items: flex-start; font-size: 13.5px !important;
  color: var(--ink) !important; cursor: pointer; font-weight: 600 !important;
}
.fcheck input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--orange-dark); }
#transDetails { background: #f7fafd; border: 2px dashed var(--line); border-radius: 12px; padding: 16px 16px 6px; margin-bottom: 14px; }
#transDetails .ffield { margin-bottom: 10px; }
#adabDone { padding: 14px 4px; text-align: center; }
#adabDone h4 { font-size: 20px; color: var(--blue-deep); margin-bottom: 10px; }
#adabDone p { color: #4a5a75; font-size: 15px; line-height: 1.7; }
@media (max-width: 560px) {
  .frow { grid-template-columns: 1fr; }
}

/* ============================================================
   Publish With Us — homepage wrap + page template
   ============================================================ */
.publish-wrap { background: linear-gradient(130deg, var(--blue-deep), var(--blue-dark)); border-radius: 22px; padding: 46px 40px; color: #fff; }
.publish-wrap h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; color: #fff; }
.publish-wrap .sub { color: #c9dbf2; max-width: 640px; margin-bottom: 22px; }
.publish-hero { background: linear-gradient(120deg, var(--blue-deep), var(--blue-dark) 60%, var(--blue)); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.publish-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px); background-size: 26px 26px; pointer-events: none; }
.publish-hero .container { position: relative; }
.publish-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.publish-hero p { color: #c9dbf2; max-width: 640px; margin: 0; }
/* Inner-page hero (preview .page-hero — Authors, Adab Online, Publish pages) */
.page-hero { background: linear-gradient(120deg, var(--blue-deep), var(--blue-dark) 60%, var(--blue)); color: #fff; padding: 46px 0 40px; margin-bottom: 8px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.5px, transparent 1.6px); background-size: 26px 26px; pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-hero p { color: #c9dbf2; max-width: 640px; margin: 0; }
.page-hero .back { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; border: 2px solid rgba(255, 255, 255, 0.5); padding: 8px 18px; border-radius: 24px; }
.page-hero .back:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--orange); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(13, 53, 104, 0.12); }
.service-card .icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.service-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Cost estimator (preview .est look) */
.estimator { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.est-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.est-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--blue-deep); margin-bottom: 6px; }
.est-field select, .est-field input {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: var(--font-latin); background: #fff; color: var(--ink);
}
.est-field select:focus, .est-field input:focus { outline: none; border-color: var(--blue); }
.est-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.est-warnings { margin-bottom: 1.2rem; }
.est-warning {
  background: #fef6e0; border-left: 4px solid var(--orange); color: #7a5c14;
  padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; margin-bottom: 0.6rem;
}
.est-error {
  background: #fdecea; border-left: 4px solid var(--danger); color: #8e2a20;
  padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; font-size: 0.88rem; margin-bottom: 0.6rem;
}
.est-result { background: var(--bg); border: 2px dashed var(--orange); border-radius: 14px; padding: 24px 20px; text-align: center; margin-top: 6px; }
.est-result .per-copy-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.est-result .per-copy { font-size: 44px; font-weight: 800; color: var(--blue-deep); line-height: 1.2; }
.est-result .per-copy small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.est-result .total { font-size: 1.05rem; margin: 0.4rem 0 0.8rem; color: var(--muted); font-weight: 600; }
.est-breakdown { text-align: left; max-width: 520px; margin: 0 auto 1.2rem; font-size: 0.88rem; color: #4a5a75; }
.est-breakdown li { margin-bottom: 0.25rem; }
.est-disclaimer { font-size: 12px; color: var(--muted); margin: 1rem 0; }
.est-result .wa-btn { margin-top: 0.4rem; }

/* Publish contact form */
.pub-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.pub-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.pub-form .est-field { margin-bottom: 1rem; }
.pub-form textarea {
  width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 10px;
  font-family: var(--font-latin); font-size: 14.5px; min-height: 110px; resize: vertical; background: #fff; color: var(--ink);
}
.pub-form textarea:focus { outline: none; border-color: var(--blue); }
.pub-direct { background: #e9f1fb; border-radius: 16px; padding: 28px; }
.pub-direct h3 { margin-top: 0; }

/* ============================================================
   Content / blog
   ============================================================ */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 53, 104, 0.13); }
.post-card .post-body { padding: 1.4rem; }
.post-card h2 { font-size: 1.25rem; }
.post-card h2 a { color: var(--blue-deep); }
.post-meta { color: var(--muted); font-size: 0.83rem; margin-bottom: 0.7rem; }
.entry-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.5rem 0.95rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.pagination .current { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--blue-deep); color: #c9dbf2; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 30px; padding: 50px 0 34px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer p, .site-footer li { font-size: 14px; }
.site-footer a { color: #c9dbf2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.foot-brand img, .foot-brand .custom-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.foot-brand .logo-mark {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-urdu); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.foot-brand b { color: #fff; font-size: 17px; }
.foot-social { display: flex; gap: 10px; margin-top: 14px; }
.foot-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: inline-flex; align-items: center; justify-content: center; }
.foot-social a:hover { background: var(--orange); }
.foot-social svg { width: 16px; height: 16px; fill: #fff; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.foot-map, .footer-map { margin-top: 12px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); background: #dbe7f7; }
.foot-map iframe, .footer-map iframe { width: 100%; height: 190px; border: 0; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 16px 0;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: #9db4d4;
}

/* ============================================================
   404 / search
   ============================================================ */
.error-404, .search-results-wrap { text-align: center; padding: 4rem 0; }
.error-404 h1 { font-size: 4rem; color: var(--blue); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4, #main ul.products { grid-template-columns: repeat(3, 1fr); }
  .est-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .adab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px;
    box-shadow: 0 14px 30px rgba(13, 53, 104, 0.14); display: none; border-top: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: block; }
  .hero-in { grid-template-columns: 1fr; padding: 48px 20px 40px; }
  .hero-art { height: 320px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hbook { width: 132px; }
  .hbook img { height: 176px; }
  .hbook.hb1 { left: 12px; top: 26px; transform: rotate(-5deg); }
  .hbook.hb2 { width: 148px; left: 50%; top: 0; margin-left: -74px; transform: rotate(2deg); }
  .hbook.hb2 img { height: 196px; }
  .hbook.hb3 { left: auto; right: 12px; top: 38px; transform: rotate(6deg); }
  .trust-in { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, #main ul.products { grid-template-columns: repeat(2, 1fr); }
  .col-grid { grid-template-columns: 1fr 1fr; }
  .publish-wrap { padding: 34px 22px; }
  .adab-submit { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, #main ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #main ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; }
  #main ul.products li.product .price { font-size: 16px; }
  #main ul.products li.product .wa-btn { font-size: 13px; padding: 10px 6px; }
  .col-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .topbar .tb-hide { display: none; }
  .hero-stats { gap: 18px; }
  .section { padding: 42px 0; }
  .container { padding: 0 16px; }
  .site-header .nav { padding: 10px 14px; gap: 6px 10px; }
  .site-brand { gap: 9px; }
  .site-brand > a { gap: 9px; }
  .site-brand img, .site-brand .custom-logo, .site-brand .logo-mark { width: 44px; height: 44px; }
  .brand-text strong { font-size: 15.5px; }
  .brand-text small, .brand-text small.urdu { font-size: 11px; }
  .menu-toggle { padding: 5px; }
  .btn-shop { padding: 8px 13px; font-size: 13px; }
  .quote-in { padding: 36px 16px; }
  .quote-band .quote-sher { font-size: clamp(17px, 6.2vw, 30px); white-space: nowrap; }
  .adab-submit { padding: 28px 22px; }
  .services-grid, .est-grid { grid-template-columns: 1fr; }
  .estimator, .pub-form, .pub-direct { padding: 1.3rem; }
  .single-product .product { padding: 1.2rem; }
  .wa-float { width: 54px; height: 54px; right: 0.9rem; bottom: 0.9rem; }
}

/* Content protection (user's order, 2026-11-16): no text selection or
   printing on the front end; form fields stay selectable/editable. */
body { -webkit-user-select: none; user-select: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
@media print { body { display: none !important; } }
