/*
Theme Name: JABOX
Theme URI: https://www.jabox.biz/
Author: JABOX
Description: Wholesale catalogue theme for JABOX. Works with the JABOX Wholesale plugin. No external fonts, scripts or trackers.
Version: 1.37.1
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: jabox
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; overflow-x: clip; background: var(--jb-bg, #f7f8f7); color: var(--jb-ink, #1c211f); font-family: var(--jb-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Arial, sans-serif); font-size: 16px; font-weight: 400; line-height: 1.47; letter-spacing: -.012em; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body { letter-spacing: 0; line-height: 1.65; }
[lang="ur"] body { line-height: 1.9; }
img, video { max-width: 100%; height: auto; }
a { color: var(--jb-green, #125840); }

.hs-wrap { max-width: 1240px; margin: auto; padding: 0 30px; }
.hs-main { min-height: calc(100dvh - 160px); }

.hs-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--jb-green, #125840); color: #fff; text-decoration: none; }
.hs-skip:focus { top: 12px; }

/* Header */
.hs-header { position: sticky; top: 0; z-index: 30; height: 64px; background: #ffffffeb; border-bottom: 1px solid #e9ecea; box-shadow: 0 2px 16px #12291b06; -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.admin-bar .hs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hs-header { top: 0; } }
.hs-header-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.hs-logo { color: #171917; text-decoration: none; font-size: 1.22rem; font-weight: 650; letter-spacing: -.055em; white-space: nowrap; }
.hs-logo span { font-weight: 400; }
.hs-logo img { max-height: 34px; width: auto; display: block; }
.hs-nav { display: flex; align-items: center; gap: 25px; margin-inline: auto 28px; }
.hs-nav a { color: #515151; text-decoration: none; font-size: .89rem; font-weight: 500; letter-spacing: 0; }
.hs-nav a:hover, .hs-nav a[aria-current="page"] { color: var(--jb-green, #125840); }
.hs-nav a[aria-current="page"] { font-weight: 600; }
.hs-actions { display: flex; align-items: center; gap: 12px; }
.hs-actions select { height: 38px; padding: 0 12px; border: 1px solid #e9edea; border-radius: 99px; background: #f7f8f7; color: var(--jb-ink, #1c211f); cursor: pointer; }
.hs-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e5e9e6; border-radius: 99px; background: #fff; color: var(--jb-ink, #1c211f); line-height: 1; text-decoration: none; }
.hs-icon:hover { background: #eef3eb; }
.hs-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translateY(1px); }
.hs-icon.is-partner::after { content: ""; position: absolute; top: 5px; inset-inline-end: 5px; width: 8px; height: 8px; border-radius: 99px; background: var(--jb-green, #125840); box-shadow: 0 0 0 2px #fff; }
.hs-header-cart i:not(:empty) { position: absolute; right: -4px; top: -5px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 3px; border-radius: 99px; background: #1d1d1d; color: #fff; font-size: .65rem; font-style: normal; font-weight: 700; }
.hs-account-anchor { position: relative; }
.hs-login-tip { position: absolute; z-index: 55; right: 0; top: 52px; display: flex; align-items: center; gap: 7px; padding: 6px 7px 6px 14px; border: 1px solid #dce5d8; border-radius: 13px; background: #fff; box-shadow: 0 12px 35px #1d2d1d25; white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.hs-login-tip.is-visible { opacity: 1; transform: none; }
.hs-login-tip::before { content: ""; position: absolute; right: 13px; top: -6px; width: 10px; height: 10px; transform: rotate(45deg); background: #fff; border-left: 1px solid #dce5d8; border-top: 1px solid #dce5d8; }
.hs-tip-main, .hs-tip-close { border: 0; background: none; }
.hs-tip-main { font-size: .86rem; font-weight: 700; color: var(--jb-green, #125840); padding: 6px 4px; }
.hs-tip-close { width: 27px; height: 27px; border-radius: 7px; color: #7b8478; font-size: 1.1rem; line-height: 1; }
.hs-tip-close:hover { background: #f0f3ed; }
[dir="rtl"] .hs-login-tip { right: auto; left: 0; padding: 6px 14px 6px 7px; }
[dir="rtl"] .hs-login-tip::before { right: auto; left: 13px; }
[dir="rtl"] .hs-actions { direction: ltr; }

/* Footer */
.hs-footer { text-align: center; padding: 40px 12px 28px; color: #939393; font-size: .75rem; }
.hs-footer p { margin: 4px 0; }
.hs-footer a, .hs-footer .hs-linkbtn { color: #7a7a7a; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hs-footer a:hover, .hs-footer .hs-linkbtn:hover { color: var(--jb-green, #125840); text-decoration: underline; }
.hs-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }

/* Floating mobile navigation */
.hs-bottom { display: none; }
@media (max-width: 850px) { .hs-nav { gap: 13px; margin-inline-end: 15px; } .hs-nav a { font-size: .79rem; } }
@media (max-width: 650px) {
  .hs-wrap { padding-inline: 16px; }
  .hs-header { height: 60px; }
  .hs-nav, .hs-actions .hs-desktop-only { display: none; }
  .hs-logo { font-size: 1.03rem; }
  .hs-actions { gap: 6px; }
  .hs-actions select { max-width: 80px; height: 36px; font-size: .78rem; }
  .hs-icon { width: 36px; height: 36px; }
  .hs-login-tip { top: 43px; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .hs-bottom { position: fixed; left: 50%; bottom: calc(11px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%); width: min(calc(100% - 24px), 520px); height: 70px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 5px; border: 1px solid #fff; border-radius: 24px; background: #ffffffef; box-shadow: 0 16px 48px #0e241a24, 0 2px 8px #0e241a0c; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .hs-bottom a, .hs-bottom button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 0; border: 0; border-radius: 17px; background: transparent; color: #848d88; font-size: .71rem; font-weight: 460; line-height: 1.1; letter-spacing: -.015em; text-decoration: none; }
  .hs-bottom b { height: 24px; display: grid; place-items: center; color: inherit; }
  .hs-bottom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .hs-bottom span { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
  .hs-bottom [aria-current="page"] { background: #edf5f0; color: var(--jb-green-deep, #0d4534); font-weight: 570; }
  .hs-bottom a:hover, .hs-bottom button:hover { color: var(--jb-green-deep, #0d4534); background: #f2f7f3; }
  .hs-bottom i:not(:empty) { position: absolute; top: 4px; left: calc(50% + 6px); display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 99px; background: var(--jb-green, #125840); color: #fff; font-size: .62rem; font-style: normal; font-weight: 700; }
  .hs-bottom .is-partner b::after { content: ""; position: absolute; top: 8px; left: calc(50% + 7px); width: 7px; height: 7px; border-radius: 99px; background: var(--jb-green, #125840); }
  .hs-footer { padding-bottom: 26px; }
}
@media (max-width: 380px) {
  .hs-logo { font-size: .96rem; }
  .hs-actions select { max-width: 73px; }
  .hs-bottom { width: calc(100% - 16px); }
  .hs-bottom a, .hs-bottom button { font-size: .66rem; }
}
@media (max-width: 360px) { .hs-wrap { padding-inline: 12px; } }

/* Generic content pages */
.hs-prose-page { max-width: 760px; padding-top: 42px; }
.hs-prose-page h1 { font-size: 1.7rem; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 620; }
.hs-prose-page .entry { line-height: 1.7; }
.hs-404 { text-align: center; padding: 80px 0; }
.hs-404 h1 { font-size: 2rem; margin: 0 0 10px; font-weight: 620; letter-spacing: -.045em; }
.hs-404 p { color: #717171; margin: 0 0 24px; }

/* Minimal modern layer */
body { background: #fbfbf9; color: #141715; }
.hs-header { height: 68px; background: #fbfbf9e6; border-bottom-color: transparent; box-shadow: none; transition: border-color .2s ease; }
.hs-header.is-scrolled { border-bottom-color: #ebebe7; }
.hs-logo { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.hs-logo span { font-weight: 300; letter-spacing: .02em; }
.hs-nav { gap: 30px; }
.hs-nav a { color: #5d625e; font-weight: 450; }
.hs-nav a[aria-current="page"] { color: #141715; font-weight: 550; }
.hs-nav a:hover { color: #141715; }
.hs-actions { gap: 6px; }
.hs-actions select { border: 0; background: transparent; font-size: .86rem; color: #3f433f; padding: 0 8px; }
.hs-actions select:hover { background: #f1f1ee; }
.hs-icon { border: 0; background: transparent; width: 40px; height: 40px; }
.hs-icon:hover { background: #f1f1ee; }
.hs-header-cart i:not(:empty) { right: 0; top: 2px; background: var(--jb-green, #125840); }
.hs-login-tip { border-color: #ebebe7; border-radius: 999px; padding: 5px 6px 5px 14px; }
.hs-tip-close { border-radius: 999px; }
.hs-footer { margin-top: clamp(56px, 7vw, 96px); padding: 28px 12px; border-top: 1px solid #ebebe7; }
.hs-footer-links a { color: #5d625e; font-size: .8rem; }
@media (max-width: 650px) {
  .hs-header { height: 60px; }
  .hs-bottom { border-color: #fff; border-radius: 999px; height: 66px; padding: 6px; }
  .hs-bottom a, .hs-bottom button { border-radius: 999px; font-size: .66rem; }
  .hs-bottom [aria-current="page"] { background: #141715; color: #fff; }
}

/* Full-width desktop layout */
:root { --gutter: clamp(16px, 4vw, 72px); }
.hs-wrap { max-width: 1760px; padding-inline: var(--gutter); }
@media (max-width: 650px) { :root { --gutter: 16px; } .hs-wrap { padding-inline: var(--gutter); } }
@media (max-width: 360px) { :root { --gutter: 12px; } }

/* Soft UI tone */
body { background: #faf6f2; color: #2f2f2f; }
.hs-header { background: #faf6f2e6; }
.hs-logo { font-weight: 800; letter-spacing: .01em; }
.hs-logo span { font-weight: 400; }
.hs-nav a { font-weight: 500; }
.hs-nav a[aria-current="page"] { font-weight: 700; }
.hs-header-cart i:not(:empty) { background: #8ed3cc; }
.hs-footer { border-top-color: #efe7e0; }
@media (max-width: 650px) {
  .hs-bottom { border-radius: 26px; }
  .hs-bottom [aria-current="page"] { background: #2f2f2f; border-radius: 18px; }
  .hs-bottom i:not(:empty) { background: #8ed3cc; }
}

/* Pure white background */
:root { --jb-bg: #fff; }
body { background: #fff; }
.hs-header { background: rgba(255, 255, 255, .9); }


/* ============ Reference UI (clean shop app) — header, bottom bar, footer ============ */
:root { --ink: #1b1b1b; --line: #eceeec; --soft: #f5f6f4; --lime-a: #9be07a; --lime-b: #55c160; --lime-ink: #123d1c; }
body { font-family: var(--jb-font, "PT Sans"), -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Arabic", "Noto Nastaliq Urdu", "Noto Sans Devanagari", sans-serif; color: var(--ink); letter-spacing: 0; }
.hs-wrap { max-width: 1280px; }
.hs-header { height: 72px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid transparent; }
.hs-header.is-scrolled { border-bottom-color: var(--line); }
.hs-logo { font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; }
.hs-logo span { font-weight: 400; }
.hs-nav { gap: 2px; }
.hs-nav a { padding: 9px 14px; border-radius: 99px; color: #5b5f5b; font-size: .94rem; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.hs-nav a:hover { color: var(--ink); background: var(--soft); }
.hs-nav a[aria-current="page"] { color: var(--ink); background: var(--soft); font-weight: 700; }
.hs-actions { gap: 8px; }
.hs-actions select { height: 42px; padding: 0 30px 0 14px; border: 1px solid var(--line); border-radius: 99px; background-color: #fff; font-size: .88rem; font-weight: 600; color: var(--ink); }
.hs-icon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: background-color .15s ease, transform .12s ease; }
.hs-icon:hover { background: var(--soft); }
.hs-icon:active { transform: scale(.94); }
.hs-header-cart i:not(:empty) { top: -3px; right: -3px; min-width: 19px; height: 19px; background: var(--lime-b); color: #fff; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 650px) {
  .hs-header { height: 64px; }
  .hs-logo { font-size: 1rem; }
  .hs-actions select { height: 38px; padding: 0 24px 0 10px; font-size: .8rem; }
  .hs-icon { width: 38px; height: 38px; }
  /* bottom bar: full width, white, thin icons, underline for the current page */
  .hs-bottom { left: 0; right: 0; bottom: 0; width: 100%; height: auto; transform: none; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 -1px 0 var(--line); }
  .hs-bottom a, .hs-bottom button { position: relative; border-radius: 12px; color: #a0a4a0; font-size: .66rem; font-weight: 600; background: none !important; }
  .hs-bottom [aria-current="page"] { color: var(--ink) !important; background: none !important; }
  .hs-bottom [aria-current="page"]::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 18px; height: 2.5px; margin-left: -9px; border-radius: 2px; background: var(--ink); }
  .hs-bottom i:not(:empty) { background: var(--lime-b) !important; color: #fff; }
}

/* footer */
.hs-footer { margin-top: clamp(64px, 8vw, 110px); padding: 0; border-top: 1px solid var(--line); background: #fff; }
.hs-footer-cols { display: none; }
.hs-footer-links { padding: 24px 12px 6px; }
.hs-footer > p { padding: 0 12px 24px; }
@media (min-width: 1025px) {
  .hs-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 56px 0 36px; }
  .hs-footer-brand .hs-footer-logo { display: inline-block; margin-bottom: 14px; }
  .hs-footer-brand p { max-width: 380px; margin: 0 0 8px; color: #6f736f; font-size: .92rem; line-height: 1.6; }
  .hs-footer-cols h4 { margin: 4px 0 16px; font-size: .95rem; font-weight: 700; color: var(--ink); }
  .hs-footer-cols > div:not(.hs-footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
  .hs-footer-cols a, .hs-footer-cols button, .hs-footer-cols span { padding: 0; border: 0; background: none; font: inherit; font-size: .94rem; color: #5b5f5b; text-decoration: none; cursor: pointer; }
  .hs-footer-cols span { cursor: default; }
  .hs-footer-cols a:hover, .hs-footer-cols button:hover { color: var(--ink); }
  .hs-footer-cols button { color: var(--ink); font-weight: 700; }
  .hs-footer-links { display: none; }
  .hs-footer > p { max-width: 1200px; margin: 0 auto; padding: 20px 0 28px; border-top: 1px solid var(--line); text-align: start; color: #8a8e8a; font-size: .84rem; }
}
@media (max-width: 650px) { .hs-actions select { width: 104px; max-width: none; padding: 0 24px 0 12px; } }
@media (max-width: 370px) { .hs-actions select { width: 90px; font-size: .74rem; } .hs-logo { font-size: .9rem; } }

/* ============ Standard sizes: one scale for type, icons, controls, spacing ============ */
:root {
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 16px; --fs-lg: 18px; --fs-h3: 20px; --fs-h2: 24px; --fs-h1: 28px; --fs-display: 32px;
  --ic: 20px; --ic-nav: 22px; --btn-round: 40px; --ctl-h: 40px; --btn-h: 48px; --cta-h: 52px;
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --gutter: 20px; --gap: 12px; --section: 40px;
}
@media (min-width: 651px) { :root { --fs-base: 16px; --fs-h2: 28px; --fs-h1: 34px; --fs-display: 40px; --gutter: 32px; --gap: 16px; --section: 56px; } }
@media (min-width: 1025px) { :root { --fs-h2: 32px; --fs-h1: 40px; --fs-display: 52px; --btn-round: 44px; --ctl-h: 44px; --gutter: 40px; --gap: 24px; --section: 72px; } }
html { font-size: 16px; }
body { font-size: var(--fs-base); line-height: 1.5; }
.hs-wrap { padding-inline: var(--gutter); }
.hs-header { height: 64px; }
@media (min-width: 1025px) { .hs-header { height: 76px; } }
.hs-header-in { align-items: center; }
.hs-logo { font-size: var(--fs-lg); line-height: 1; }
.hs-nav a { font-size: var(--fs-base); padding: 10px 16px; }
.hs-actions { gap: 8px; align-items: center; }
.hs-actions select { height: var(--btn-round); font-size: var(--fs-sm); }
.hs-icon { width: var(--btn-round); height: var(--btn-round); display: grid; place-items: center; padding: 0; }
.hs-icon svg { width: var(--ic); height: var(--ic); transform: none; }
.hs-header-cart i:not(:empty) { font-size: 11px; }
@media (max-width: 650px) {
  .hs-bottom a, .hs-bottom button { font-size: 11px; gap: 3px; }
  .hs-bottom b { height: var(--ic-nav); }
  .hs-bottom svg { width: var(--ic-nav); height: var(--ic-nav); }
}
.hs-footer-links a { font-size: var(--fs-sm); }
.hs-footer > p { font-size: var(--fs-xs); }
@media (min-width: 1025px) { .hs-footer-cols a, .hs-footer-cols button, .hs-footer-cols span, .hs-footer-brand p { font-size: var(--fs-base); } .hs-footer-cols h4 { font-size: var(--fs-md); } }
@media (max-width: 650px) { .hs-logo { font-size: 16px; } .hs-actions { gap: 6px; } .hs-actions select { width: 96px; } .hs-header-in { gap: 10px; } }
@media (max-width: 370px) { .hs-logo { font-size: 14px; } .hs-actions select { width: 84px; } }
@media (max-width: 650px) { .hs-actions select { width: 104px; padding: 0 22px 0 12px; background-position: right 8px center; } }
@media (max-width: 370px) { .hs-actions select { width: 88px; font-size: 12px; } }

/* Brand balance: 90% black & white, 10% JABOX green */
:root { --brand: #115940; }
.hs-header-cart i:not(:empty) { background: var(--brand); }
@media (max-width: 650px) { .hs-bottom i:not(:empty) { background: var(--brand) !important; } }

/* Wordmark: HANGER (bold) + SHAWLS (regular), one word, as supplied */
.hs-logo.has-mark { display: inline-flex; align-items: center; color: var(--ink, #1b1b1b); line-height: 0; }
.hs-logo.has-mark svg { display: block; height: 20px; width: auto; }
@media (min-width: 1025px) { .hs-logo.has-mark svg { height: 22px; } }
@media (max-width: 650px) { .hs-logo.has-mark svg { height: 15px; } .hs-actions select { width: 94px; } }
@media (max-width: 370px) { .hs-logo.has-mark svg { height: 12px; } }
.hs-footer-logo.has-mark svg { height: 18px; }
@media (max-width: 650px) { .hs-logo.has-mark svg { height: 14px; } .hs-actions select { width: 102px; } }
.hs-footer-cols { text-align: start; }
@media (max-width: 650px) { .hs-actions select { padding: 0 20px 0 10px; font-size: 12.5px; background-position: right 6px center; } }
/* script wordmarks (Arabic, Urdu, Hindi) sit a little taller so they read at the same visual size */
.hs-logo.has-mark[data-script="ar"] svg, .hs-logo.has-mark[data-script="ur"] svg, .hs-logo.has-mark[data-script="hi"] svg { height: 28px; }
@media (min-width: 1025px) { .hs-logo.has-mark[data-script="ar"] svg, .hs-logo.has-mark[data-script="ur"] svg, .hs-logo.has-mark[data-script="hi"] svg { height: 32px; } }
@media (max-width: 650px) { .hs-logo.has-mark[data-script="ar"] svg, .hs-logo.has-mark[data-script="ur"] svg, .hs-logo.has-mark[data-script="hi"] svg { height: 24px; } }
.hs-footer-logo.has-mark[data-script="ar"] svg, .hs-footer-logo.has-mark[data-script="ur"] svg, .hs-footer-logo.has-mark[data-script="hi"] svg { height: 26px; }
@media (max-width: 650px) { .hs-logo.has-mark[data-script="ar"] svg, .hs-logo.has-mark[data-script="ur"] svg, .hs-logo.has-mark[data-script="hi"] svg { height: 22px; } }
.hs-find-btn svg { width: var(--ic, 20px); height: var(--ic, 20px); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 650px) { .hs-find-btn { display: none !important; } }
/* JABOX wordmark (4:1) — kept compact */
.hs-logo.has-mark svg, .hs-logo.has-mark[data-script] svg { height: 24px; }
@media (min-width: 1025px) { .hs-logo.has-mark svg, .hs-logo.has-mark[data-script] svg { height: 26px; } }
@media (max-width: 650px) { .hs-logo.has-mark svg, .hs-logo.has-mark[data-script] svg { height: 21px; } }
.hs-footer-logo.has-mark svg, .hs-footer-logo.has-mark[data-script] svg { height: 44px; }
