/* =====================================================================
 * MasnoonHub Express - v7 Catalog stylesheet
 * Shop / Category archive / Search results.
 *
 * Adapted from the v7 design board ("Search & Category Results.html")
 * to WooCommerce's standard markup. The live archive template wraps the
 * whole page in <div class="mh-catalog cat-XXX"> so EVERY selector here is
 * scoped under .mh-catalog and will not leak to other pages.
 *
 * Design tokens (var(--brand), var(--navy), var(--accent), --r-card, etc.)
 * and the per-category accent maps (.cat-attar / .cat-hijab / .cat-tasbih /
 * .cat-mats / .cat-books / .cat-dates) come from tokens.css, loaded
 * site-wide ahead of this file. No :root block is defined here; the wrapper's
 * cat-XXX class already remaps --accent, so we just USE var(--accent).
 *
 * Default character is baked in: premium card + prominent mufti cert. The
 * board drove those through body[data-character]/[data-mufti] attributes;
 * here the default values live directly in the base .mhub-card / .mhub-cert
 * rules so no body data attributes are required.
 * ===================================================================== */


/* =====================================================================
 * 01 - DESKTOP CATEGORY HEADER (.desk-cathead)
 * Tinted accent backdrop with a soft radial orb, breadcrumb, title,
 * result sub-line, and a right-aligned pill row. Board lines 294-309.
 * ===================================================================== */
.mh-catalog .desk-cathead{
  position:relative; overflow:hidden; padding:22px 30px 24px;
  background:linear-gradient(110deg, color-mix(in srgb,var(--accent-soft) 80%,#fff), color-mix(in srgb,var(--accent-soft) 16%,#fff) 70%);
  border-bottom:1px solid color-mix(in srgb,var(--accent) 14%,var(--line));
}
.mh-catalog .desk-cathead::after{
  content:""; position:absolute; right:-50px; top:-60px; width:230px; height:230px; border-radius:50%;
  background:radial-gradient(circle at 34% 36%, color-mix(in srgb,var(--accent) 20%,transparent), transparent 70%);
  pointer-events:none;
}
/* breadcrumb */
.mh-catalog .desk-cathead .crumb{
  display:flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600;
  color:var(--accent-ink); opacity:.92; white-space:nowrap; overflow:hidden; position:relative;
}
.mh-catalog .desk-cathead .crumb a{ color:inherit; text-decoration:none; }
.mh-catalog .desk-cathead .crumb .sep{ opacity:.45; }
.mh-catalog .desk-cathead .crumb .cur{ color:var(--ink); opacity:.7; }
/* title */
.mh-catalog .desk-cathead h2{
  font-family:var(--font-display); font-weight:700; font-size:30px; letter-spacing:-.015em;
  margin:9px 0 0; color:var(--ink); position:relative; line-height:1.1;
}
.mh-catalog .desk-cathead h2 .qq{ font-style:italic; color:var(--accent-ink); }
/* result sub-line */
.mh-catalog .desk-cathead .sub{ margin-top:7px; font-size:13.5px; color:var(--ink-2); position:relative; }
.mh-catalog .desk-cathead .sub b{ color:var(--ink); font-weight:700; }
/* right-aligned pill row */
.mh-catalog .desk-cathead .pillrow{ position:absolute; right:30px; top:24px; display:flex; gap:8px; }
.mh-catalog .desk-cathead .mini{
  display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.8);
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line)); color:var(--accent-ink);
  font-size:12px; font-weight:700; padding:6px 12px; border-radius:var(--r-pill);
}
.mh-catalog .desk-cathead .mini.trust{ background:var(--trust-soft); border-color:transparent; color:var(--trust); }
.mh-catalog .desk-cathead .mini svg{ width:13px; height:13px; }


/* =====================================================================
 * 02 - DESKTOP LAYOUT (.desk-main / .desk-side / .desk-body / .desk-toolbar / .desk-sort)
 * Two-column grid: 248px sidebar + fluid body. Board lines 311-331.
 * ===================================================================== */
/* Full-width via Astra page-builder layout (mh_is_fullwidth_screen filter); the
   catalog re-bounds itself to a wide centered column so it fills the screen
   without the old Astra boxed card, and stays readable on ultra-wide. */
.mh-catalog{ max-width:1720px; margin-inline:auto; overflow-x:clip; }
/* minmax(0,1fr) lets the body track shrink below its content min-width so the
   grid never forces the page wider than its container on narrower desktops. */
.mh-catalog .desk-main{ display:grid; grid-template-columns:248px minmax(0,1fr); padding-inline:clamp(14px,1.6vw,28px); }
.mh-catalog .desk-body{ min-width:0; }

/* sidebar shell */
.mh-catalog .desk-side{ border-right:1px solid var(--line); padding:0 0 20px; max-height:980px; overflow-y:auto; }
/* mufti hero compaction inside the sidebar */
.mh-catalog .desk-side .muftihero{ margin:16px 14px 4px; flex-wrap:wrap; gap:10px; padding:13px 14px; }
.mh-catalog .desk-side .muftihero .bdg{ width:34px; height:34px; border-radius:9px; }
.mh-catalog .desk-side .muftihero .bdg svg{ width:19px; height:19px; }
.mh-catalog .desk-side .muftihero .tx{ flex-basis:calc(100% - 100px); }
.mh-catalog .desk-side .muftihero .tx b{ font-size:13px; }
.mh-catalog .desk-side .muftihero .tx span{ font-size:11px; }

/* body column */
.mh-catalog .desk-body{ padding:0; }

/* toolbar: result count + sort */
.mh-catalog .desk-toolbar{ display:flex; align-items:center; gap:14px; padding:16px 24px 4px; }
.mh-catalog .desk-toolbar .cnt{ font-size:14px; color:var(--ink-2); }
.mh-catalog .desk-toolbar .cnt b{ color:var(--ink); font-weight:800; }

/* sort dropdown */
.mh-catalog .desk-sort{ margin-left:auto; position:relative; }
.mh-catalog .desk-sort .dbtn{
  display:flex; align-items:center; gap:9px; height:40px; padding:0 14px; border:1.4px solid var(--line);
  background:#fff; border-radius:var(--r-sm); font-family:var(--font-body); font-size:13.5px; font-weight:700;
  color:var(--ink); cursor:pointer;
}
.mh-catalog .desk-sort .dbtn .lo{ color:var(--ink-3); font-weight:600; }
.mh-catalog .desk-sort .dbtn svg{ width:14px; height:14px; color:var(--ink-3); }
.mh-catalog .desk-sort .pop{
  position:absolute; right:0; top:46px; z-index:30; background:#fff; border:1px solid var(--line);
  border-radius:var(--r-md); box-shadow:var(--shadow-pop); padding:6px; min-width:210px;
  opacity:0; visibility:hidden; transform:translateY(-6px); transition:.16s ease;
}
.mh-catalog .desk-sort .pop.on{ opacity:1; visibility:visible; transform:none; }
.mh-catalog .desk-sort .pop button{
  display:flex; align-items:center; gap:9px; width:100%; text-align:left; border:0; background:transparent;
  padding:9px 11px; border-radius:var(--r-sm); font-family:var(--font-body); font-size:13.5px; font-weight:600;
  color:var(--ink); cursor:pointer;
}
.mh-catalog .desk-sort .pop button:hover{ background:var(--line-2); }
.mh-catalog .desk-sort .pop button.on{ color:var(--brand); font-weight:700; }
.mh-catalog .desk-sort .pop button .ck{ margin-left:auto; opacity:0; }
.mh-catalog .desk-sort .pop button.on .ck{ opacity:1; }


/* =====================================================================
 * 03 - PRODUCT GRID (WooCommerce loop)
 * Live grid is WC's standard <ul class="products columns-4">
 *   <li class="product mhub-card ...">. WC's defaults (list bullets,
 *   float:left, width:30.75%, ::before/::after clearfix) are reset here so
 *   the cards sit in a real CSS grid matching the board's .pgrid4.
 *   Board grid: lines 332 (.pgrid4).
 * ===================================================================== */
.mh-catalog ul.products{
  list-style:none; margin:0; padding:14px 24px 6px;
  /* !important + the .mh-catalog scope (more specific than the legacy global
     `ul.products{…!important}` grid rule in style.css) so the board's 4-up grid
     actually wins on the catalog page. Same reason on the 960 rule below. */
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:16px; align-content:start;
}
/* kill WooCommerce's flex/float clearfix pseudo-elements */
.mh-catalog ul.products::before,
.mh-catalog ul.products::after{ content:none; display:none; }
/* each <li> is the card: strip WC's float/width and let grid place it */
.mh-catalog ul.products li.product{
  width:auto; float:none; margin:0; clear:none; padding:0;
}
.mh-catalog ul.products li.product::before,
.mh-catalog ul.products li.product::after{ content:none; display:none; }


/* =====================================================================
 * 04 - PRODUCT CARD (.mhub-card and children)
 * v7 "Product Card (v1 premium)" ported verbatim from
 * Product Card (v1 premium).html lines 199-295, every selector
 * prefixed with .mh-catalog to stay scoped. Tokens referenced
 * (not redefined) from tokens.css: --blue-deep, --surface-2,
 * --verify, --fs-*, --accent, etc.
 * ===================================================================== */
.mh-catalog .mhub-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-card);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mh-catalog .mhub-card:hover{ box-shadow:0 12px 30px -18px rgba(20,29,51,.26); border-color:var(--line-2); transform:translateY(-3px); }

/* square 1:1 media on clean white. Amazon-clean: the whole product is visible on
   white (object-fit:contain), no colour panel, separated from the body by a hairline. */
.mh-catalog .mhub-card__media{
  position:relative; display:block; aspect-ratio:1/1; background:#fff;
  border-bottom:1px solid var(--line);
}
.mh-catalog .mhub-card__media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }

/* placeholder */
.mh-catalog .mhub-ph{
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(135deg, var(--accent-soft) 0 11px, transparent 11px 22px),
    var(--surface-2);
  display:grid; place-items:center;
}
.mh-catalog .mhub-ph span{
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent-ink); background:rgba(255,255,255,.7); padding:4px 8px;
  border-radius:var(--r-pill); font-weight:600;
}

/* discount badge */
.mh-catalog .mhub-badge{
  position:absolute; top:10px; left:10px; z-index:2;
  background:var(--red); color:#fff; font-weight:700; font-size:var(--fs-sm);
  padding:4px 9px; border-radius:var(--r-sm); letter-spacing:.01em;
  box-shadow:var(--shadow-sm); font-variant-numeric:tabular-nums;
}

/* category chip - quiet frosted label (was a loud accent-coloured pill). Keeps
   a small accent dot as the only colour cue so the image stays clean. */
.mh-catalog .mhub-chip{
  position:absolute; bottom:9px; left:9px; z-index:2;
  background:rgba(255,255,255,.86); color:var(--ink-2); font-weight:600; font-size:var(--fs-xs);
  padding:3px 9px; border-radius:var(--r-pill); letter-spacing:0; text-transform:none;
  display:inline-flex; align-items:center; gap:5px;
  box-shadow:0 1px 4px rgba(20,29,51,.10); backdrop-filter:saturate(1.3) blur(3px);
}
.mh-catalog .mhub-chip::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); }

/* wishlist heart (top-right of media) - smaller frosted button, quieter */
.mh-catalog .mhub-wish{
  position:absolute; top:8px; right:8px; z-index:3;
  width:30px; height:30px; min-width:0; padding:0; box-sizing:border-box;
  border-radius:50%; border:0; aspect-ratio:1;
  background:rgba(255,255,255,.78); cursor:pointer;
  display:grid; place-items:center; -webkit-tap-highlight-color:transparent;
  box-shadow:0 1px 4px rgba(20,29,51,.12); backdrop-filter:saturate(1.3) blur(3px);
  transition:background .15s ease;
}
.mh-catalog .mhub-wish:hover{ background:#fff; }
.mh-catalog .mhub-wish svg{
  width:17px; height:17px;
  transition:transform .15s ease;
}
.mh-catalog .mhub-wish svg path{
  fill:none; stroke:var(--ink-2); stroke-width:1.8;
  transition:fill .15s ease, stroke .15s ease;
}
.mh-catalog .mhub-wish:active svg{ transform:scale(.86); }
.mh-catalog .mhub-wish[aria-pressed="true"] svg path{ fill:var(--accent); stroke:var(--accent); }

/* card body */
.mh-catalog .mhub-card__body{ padding:13px 14px 15px; display:flex; flex-direction:column; gap:7px; flex:1; }

/* vendor line - verified seal + store name (sits above the title) */
.mh-catalog .mhub-vendor{
  display:inline-flex; align-items:center; gap:5px; align-self:flex-start;
  color:var(--ink-2); font-size:var(--fs-sm); font-weight:500; text-decoration:none; max-width:100%;
}
.mh-catalog .mhub-vendor span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-catalog .mhub-vendor:hover span{ color:var(--brand); }
.mh-catalog .mhub-verify{ flex:none; width:14px; height:14px; }

/* title - 2-line clamp. Amazon-light weight (regular-ish) rather than bold. */
.mh-catalog .mhub-title{ margin:0; font-size:var(--fs-md); line-height:1.34; font-weight:500; letter-spacing:-.003em; }
.mh-catalog .mhub-title a{
  color:var(--ink); text-decoration:none;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.mh-catalog .mhub-title a:hover{ color:var(--brand); }
.mh-catalog :lang(bn) .mhub-title,
.mh-catalog .mhub-title:lang(bn){ font-family:var(--font-body); }

/* rating + sold meta */
.mh-catalog .mhub-meta{ display:flex; align-items:center; gap:5px; flex-wrap:nowrap; font-size:11.5px; color:var(--ink-3); margin-top:1px; }
.mh-catalog .mhub-stars{
  --rating:5; flex:none; font-size:11px; line-height:1; letter-spacing:.5px; white-space:nowrap;
  background:linear-gradient(90deg, var(--star) calc(var(--rating) / 5 * 100%), #d8d3c9 calc(var(--rating) / 5 * 100%));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent;
}
.mh-catalog .mhub-rate{ font-weight:700; color:var(--ink-2); flex:none; }
.mh-catalog .mhub-sold{ position:relative; padding-left:9px; white-space:nowrap; flex:none; }
.mh-catalog .mhub-sold::before{
  content:""; position:absolute; left:1px; top:50%; transform:translateY(-50%);
  width:3px; height:3px; border-radius:50%; background:var(--ink-3);
}

/* price - pinned to bottom of card body */
.mh-catalog .mhub-price{ display:flex; align-items:baseline; gap:7px; margin-top:auto; padding-top:3px; }
.mh-catalog .mhub-price__now{
  font-size:var(--fs-lg); font-weight:700; color:var(--ink);
  font-variant-numeric:tabular-nums; letter-spacing:-.01em;
}
.mh-catalog .mhub-price__now .cur{ font-weight:600; font-size:.78em; margin-right:1px; }
.mh-catalog .mhub-price__was{
  font-size:var(--fs-sm); color:var(--ink-3); text-decoration:line-through;
  font-variant-numeric:tabular-nums;
}

/* add-to-cart button - full-width, brand orange.
 * High specificity (li.product a.mhub-add) + !important so Astra's inline
 * WooCommerce button colour (.woocommerce a.button.add_to_cart_button = #0084d6)
 * never repaints the brand CTA. Applies on shop, taxonomy, search AND the store. */
.mh-catalog ul.products li.product a.mhub-add,
.mh-catalog .mhub-add{
  margin-top:9px; height:44px; border:0; border-radius:var(--r-sm); cursor:pointer;
  background:var(--brand) !important; color:#fff !important; font-family:var(--font-body); font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center; gap:7px; width:100%;
  text-decoration:none; white-space:nowrap;
  transition:background .16s ease, transform .12s ease; -webkit-tap-highlight-color:transparent;
}
.mh-catalog .mhub-add svg{ width:18px; height:18px; }
.mh-catalog ul.products li.product a.mhub-add:hover,
.mh-catalog .mhub-add:hover{ background:var(--navy) !important; }
.mh-catalog .mhub-add:active{ transform:scale(.985); }


/* =====================================================================
 * 05 - FILTER SIDEBAR INTERNALS
 * Filter groups, Mufti hero priority filter, toggle switch, price range,
 * preset chips, check/radio rows, and star line. Board lines 209-246.
 * ===================================================================== */

/* filter groups */
.mh-catalog .fgroup{ padding:15px 16px; border-bottom:8px solid var(--app-bg); }
.mh-catalog .fgroup:last-of-type{ border-bottom:0; }
.mh-catalog .fgroup > h5{
  font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin:0 0 11px;
}

/* Mufti hero filter (priority) */
.mh-catalog .muftihero{
  margin:14px 14px 6px; padding:14px 15px; border-radius:var(--r-lg);
  background:linear-gradient(135deg,var(--trust-soft),#fff);
  border:1.5px solid color-mix(in srgb,var(--trust) 34%,#fff);
  display:flex; align-items:center; gap:13px; box-shadow:0 8px 22px -16px rgba(47,111,176,.6); cursor:pointer;
}
.mh-catalog .muftihero .bdg{
  width:42px; height:42px; flex:none; border-radius:12px; background:var(--trust); display:grid; place-items:center;
  color:#fff; box-shadow:0 4px 10px -3px rgba(47,111,176,.6);
}
.mh-catalog .muftihero .bdg svg{ width:23px; height:23px; }
.mh-catalog .muftihero .tx{ flex:1; min-width:0; }
.mh-catalog .muftihero .tx b{ display:block; font-size:14.5px; color:var(--ink); font-weight:800; }
.mh-catalog .muftihero .tx span{ font-size:11.5px; color:var(--ink-2); line-height:1.3; display:block; margin-top:2px; }

/* toggle switch */
.mh-catalog .toggle{
  width:48px; height:28px; border-radius:14px; background:var(--line); position:relative; cursor:pointer; flex:none;
  transition:background .2s ease; border:0; padding:0;
}
.mh-catalog .toggle::after{
  content:""; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .2s ease;
}
.mh-catalog .toggle.on{ background:var(--trust); }
.mh-catalog .toggle.on::after{ transform:translateX(20px); }

/* price range */
.mh-catalog .pricetop{ display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.mh-catalog .pricetop .pv{ font-size:13px; font-weight:700; color:var(--ink); font-variant-numeric:tabular-nums; }
.mh-catalog .range{ position:relative; height:24px; margin:0 6px; }
.mh-catalog .range .track{
  position:absolute; top:50%; transform:translateY(-50%); left:0; right:0; height:4px; border-radius:3px; background:var(--line);
}
.mh-catalog .range .fill{
  position:absolute; top:50%; transform:translateY(-50%); height:4px; border-radius:3px; background:var(--brand);
}
.mh-catalog .range input[type=range]{
  position:absolute; top:0; left:0; width:100%; height:24px; margin:0; background:none; pointer-events:none;
  -webkit-appearance:none; appearance:none;
}
.mh-catalog .range input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; pointer-events:auto; width:22px; height:22px; border-radius:50%; background:#fff;
  border:2px solid var(--brand); box-shadow:0 2px 6px rgba(20,29,51,.25); cursor:pointer;
}
.mh-catalog .range input[type=range]::-moz-range-thumb{
  pointer-events:auto; width:22px; height:22px; border-radius:50%; background:#fff; border:2px solid var(--brand);
  box-shadow:0 2px 6px rgba(20,29,51,.25); cursor:pointer;
}

/* preset price chips */
.mh-catalog .presetrow{ display:flex; gap:7px; margin-top:15px; flex-wrap:wrap; }
.mh-catalog .preset{
  font-size:11.5px; font-weight:600; color:var(--ink-2); background:var(--app-bg); border:1px solid transparent;
  border-radius:var(--r-pill); padding:6px 11px; cursor:pointer; font-family:var(--font-body);
}
.mh-catalog .preset.on{ background:var(--brand-soft); color:var(--brand-ink); border-color:var(--brand); }

/* check / radio option rows */
.mh-catalog .optrow{ display:flex; align-items:center; gap:11px; padding:10px 0; cursor:pointer; }
.mh-catalog .optrow + .optrow{ border-top:1px solid var(--line-2); }
.mh-catalog .optrow .box{
  width:21px; height:21px; border-radius:6px; border:1.8px solid var(--line); flex:none; display:grid;
  place-items:center; color:#fff; transition:background .15s, border-color .15s;
}
.mh-catalog .optrow .box svg{ width:13px; height:13px; opacity:0; }
.mh-catalog .optrow .box svg path{ stroke:#fff; }
.mh-catalog .optrow.on .box{ background:var(--brand); border-color:var(--brand); }
.mh-catalog .optrow.on .box svg{ opacity:1; }
.mh-catalog .optrow .lab{ flex:1; font-size:14px; font-weight:600; color:var(--ink); }
.mh-catalog .optrow .lab small{ display:block; font-size:11.5px; color:var(--ink-3); font-weight:500; }
.mh-catalog .optrow .cnt{ font-size:12px; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.mh-catalog .optrow .radio{
  width:21px; height:21px; border-radius:50%; border:1.8px solid var(--line); flex:none; display:grid; place-items:center;
}
.mh-catalog .optrow .radio::after{
  content:""; width:11px; height:11px; border-radius:50%; background:var(--brand); transform:scale(0); transition:transform .15s;
}
.mh-catalog .optrow.on .radio{ border-color:var(--brand); }
.mh-catalog .optrow.on .radio::after{ transform:scale(1); }

/* star line in rating filter */
.mh-catalog .starline{ color:var(--star); letter-spacing:1px; font-size:14px; }
.mh-catalog .starline .off{ color:#d7d7dd; }


/* =====================================================================
 * 06 - PAGINATION
 * Board's .pages numbered pager (lines 335-338) mapped onto WooCommerce's
 * .woocommerce-pagination markup. The active page (li.current / .current)
 * gets the navy fill that the board uses for .pages button.on.
 * ===================================================================== */
.mh-catalog .pages{ display:flex; align-items:center; gap:6px; }

/* native board buttons + WooCommerce page links/spans share one look */
.mh-catalog .pages button,
.mh-catalog .woocommerce-pagination ul li a,
.mh-catalog .woocommerce-pagination ul li span{
  min-width:38px; height:38px; border:1px solid var(--line); background:#fff; border-radius:var(--r-sm);
  font-family:var(--font-body); font-size:13.5px; font-weight:700; color:var(--ink-2); cursor:pointer;
  padding:0 6px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; line-height:1;
}
/* reset WC list chrome on the pagination */
.mh-catalog .woocommerce-pagination{ text-align:center; }
.mh-catalog .woocommerce-pagination ul{
  display:inline-flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; border:0;
}
.mh-catalog .woocommerce-pagination ul li{ border:0; margin:0; padding:0; }
.mh-catalog .woocommerce-pagination ul li::before,
.mh-catalog .woocommerce-pagination ul li::after{ content:none; display:none; }

/* active page = board's .pages button.on */
.mh-catalog .pages button.on,
.mh-catalog .woocommerce-pagination ul li span.current,
.mh-catalog .woocommerce-pagination ul li a.current{
  background:var(--navy); border-color:var(--navy); color:#fff;
}
/* prev/next nav + gap ellipsis */
.mh-catalog .pages button.nav,
.mh-catalog .woocommerce-pagination ul li a.prev,
.mh-catalog .woocommerce-pagination ul li a.next{ color:var(--ink-3); }
.mh-catalog .pages .gap,
.mh-catalog .woocommerce-pagination ul li span.dots{
  color:var(--ink-3); padding:0 2px; border:0; background:transparent; min-width:auto; height:auto;
}


/* =====================================================================
 * 07 - EMPTY STATE
 * Shown when search / filters return nothing: accent orb, headline,
 * clear-filters button, and a popular-shelves grid. Board lines 250-263.
 * ===================================================================== */
.mh-catalog .empty{
  display:flex; flex-direction:column; align-items:center; text-align:center; padding:42px 30px 30px;
}
.mh-catalog .empty .orb{
  width:84px; height:84px; border-radius:50%;
  background:radial-gradient(circle at 32% 30%, var(--accent-soft), color-mix(in srgb,var(--accent-soft) 28%,#fff));
  border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line)); display:grid; place-items:center;
  color:var(--accent-ink); margin-bottom:20px;
}
.mh-catalog .empty .orb svg{ width:36px; height:36px; }
.mh-catalog .empty h3{ font-family:var(--font-display); font-weight:700; font-size:22px; margin:0 0 8px; }
.mh-catalog .empty p{ font-size:14px; color:var(--ink-2); margin:0; max-width:32ch; line-height:1.5; }
.mh-catalog .empty p b{ color:var(--ink); font-weight:700; }
.mh-catalog .empty .clearbtn{
  margin-top:20px; height:46px; padding:0 26px; border:0; border-radius:var(--r-pill);
  background:linear-gradient(180deg,var(--brand-bright),var(--brand)); color:#fff; font-family:var(--font-body);
  font-weight:800; font-size:14.5px; cursor:pointer; box-shadow:0 8px 20px -8px rgba(224,83,15,.6);
}
.mh-catalog .empty .pop{ margin-top:32px; width:100%; }
.mh-catalog .empty .pop .ph5{
  font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin-bottom:13px;
}
.mh-catalog .popgrid{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.mh-catalog .poptile{
  display:flex; align-items:center; gap:10px; padding:11px; background:#fff; border:1px solid var(--line);
  border-radius:var(--r-md); text-decoration:none; text-align:left;
}
.mh-catalog .poptile .sw{ width:36px; height:36px; border-radius:10px; flex:none; display:grid; place-items:center; }
.mh-catalog .poptile .sw svg{ width:19px; height:19px; color:#fff; }
.mh-catalog .poptile .pt{ min-width:0; }
.mh-catalog .poptile .pt b{ display:block; font-size:13px; font-weight:700; color:var(--ink); }
.mh-catalog .poptile .pt span{ font-size:11px; color:var(--ink-3); }


/* =====================================================================
 * 08 - RESPONSIVE (<= 960px)
 * Board rule (line 341): collapse the two-column layout, hide the sidebar,
 * and drop the product grid to two-up. WooCommerce loop grid is collapsed
 * here too (board's .pgrid4 -> two columns, tighter gap + padding).
 * ===================================================================== */
@media (max-width:960px){
  .mh-catalog .desk-main{ grid-template-columns:1fr; }
  .mh-catalog .desk-side{ display:none; }
  .mh-catalog .desk-cathead .pillrow{ display:none; }
  .mh-catalog ul.products{ grid-template-columns:1fr 1fr !important; gap:10px; padding:12px; }
  /* toolbar: result count + sort sit comfortably, sort still right-aligned */
  .mh-catalog .desk-toolbar{ padding:14px 12px 2px; }
}

/* =====================================================================
 * 09 - PHONE TIGHTENING (<= 560px)
 * The grid stays two-up (matches the board), but the category header, card
 * paddings and type scale down so two cards never feel cramped on a 360px
 * phone. Keeps tap targets >=40px.
 * ===================================================================== */
@media (max-width:560px){
  .mh-catalog .desk-cathead{ padding:16px 16px 18px; }
  .mh-catalog .desk-cathead h2{ font-size:23px; }
  .mh-catalog .desk-cathead .sub{ font-size:12.5px; }
  .mh-catalog .desk-toolbar{ padding:12px 12px 2px; gap:10px; }
  .mh-catalog .desk-toolbar .cnt{ font-size:13px; }

  .mh-catalog ul.products{ gap:9px; padding:10px; }
  .mh-catalog .mhub-card__body{ padding:10px 10px 12px; gap:6px; }
  .mh-catalog .mhub-title{ font-size:13px; }
  .mh-catalog .mhub-price__now{ font-size:16px; }
  .mh-catalog .mhub-add{ height:40px; font-size:13px; margin-top:7px; }
  .mh-catalog .mhub-add svg{ width:16px; height:16px; }

  /* empty-state popular tiles go single column so labels never truncate */
  .mh-catalog .popgrid{ grid-template-columns:1fr; }
}
