/* Journal Fresh - a self-built theme for OpenCart 4.1.0.4 (SU XIU palette) (SU XIU palette)
   Layout follows the Journal 3 "Farm Fresh" demo, re-implemented from scratch. */

:root {
  --jf-green: #31564f;
  --jf-green-dark: #234038;
  --jf-green-soft: #f1ece1;
  --jf-ink: #2f3a34;
  --jf-muted: #71807a;
  --jf-line: #e6ded0;
  --jf-soft: #faf7f0;
  --jf-orange: #c2a05c;
  --jf-red: #b4472f;
  --jf-radius: 16px;
  --jf-shadow: 0 8px 26px rgba(80, 62, 38, .10);
}

html, body { margin: 0; padding: 0; }
body.jf-body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #fcfaf5;
  color: var(--jf-ink);
  font-size: 15px;
  line-height: 1.6;
}
.jf-body a { color: inherit; text-decoration: none; }
.jf-body a:hover { color: var(--jf-green); }
.jf-body img { max-width: 100%; }
.jf-body ul { list-style: none; margin: 0; padding: 0; }
.jf-body button { font-family: inherit; }
.jf-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.jf-accent { color: var(--jf-green); }
.jf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--jf-green); color: #fff; cursor: pointer; transition: .2s ease;
}
.jf-btn:hover { background: var(--jf-green-dark); color: #fff; transform: translateY(-2px); }
.jf-btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.jf-btn-outline:hover { background: #fcfaf5; color: var(--jf-green-dark); }
.jf-btn-dark { background: #1e2a22; }
.jf-btn-dark:hover { background: #000; }

/* ---------- top bar ---------- */
.jf-topbar { background: var(--jf-soft); border-bottom: 1px solid var(--jf-line); font-size: 12.5px; color: var(--jf-muted); }
.jf-topbar .jf-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.jf-topbar-left, .jf-topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.jf-topbar span { display: inline-flex; align-items: center; gap: 7px; }
.jf-topbar i { color: var(--jf-green); font-size: 14px; }
.jf-topbar-right a:hover { color: var(--jf-green); }

/* ---------- header ---------- */
.jf-header { background: #fcfaf5; border-bottom: 1px solid var(--jf-line); }
.jf-header .jf-wrap { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.jf-logo { flex: 0 0 auto; }
.jf-logo img { height: 56px; width: auto; display: block; }
.jf-logo h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--jf-green-dark); }
.jf-search { flex: 1 1 auto; max-width: 620px; position: relative; }
.jf-search form { display: flex; align-items: center; border: 1.5px solid var(--jf-line); border-radius: 999px; overflow: hidden; background: #fcfaf5; transition: .2s; }
.jf-search form:focus-within { border-color: var(--jf-green); box-shadow: 0 0 0 4px rgba(75,155,95,.1); }
.jf-search input { flex: 1; border: 0; outline: 0; padding: 12px 20px; font-size: 14px; min-width: 0; background: transparent; }
.jf-search button { border: 0; background: var(--jf-green); color: #fff; width: 52px; height: 46px; font-size: 17px; cursor: pointer; }
.jf-search button:hover { background: var(--jf-green-dark); }
.jf-search select { display: none; }
.jf-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.jf-actions > a, .jf-actions > div { position: relative; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--jf-ink); white-space: nowrap; }
.jf-actions i { font-size: 20px; color: var(--jf-green-dark); }
.jf-actions .jf-ico-label { display: block; line-height: 1.2; }
.jf-actions .jf-ico-title { font-size: 11px; color: var(--jf-muted); display: block; }
.jf-badge { position: absolute; top: -9px; left: 14px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--jf-orange); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.jf-actions .dropdown-menu { border: 1px solid var(--jf-line); border-radius: 12px; box-shadow: var(--jf-shadow); padding: 8px; }

/* ---------- navigation / mega menu ---------- */
.jf-nav { background: #fcfaf5; border-bottom: 1px solid var(--jf-line); position: relative; z-index: 40; }
.jf-nav .jf-wrap { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.jf-nav-all { display: inline-flex; align-items: center; gap: 10px; background: var(--jf-green); color: #fff; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; }
.jf-nav-all:hover { background: var(--jf-green-dark); }
.jf-nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.jf-nav-links > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; font-size: 13px; font-weight: 500; border-radius: 8px; white-space: nowrap; }
.jf-nav-links > li > a:hover { background: var(--jf-soft); color: var(--jf-green-dark); }
.jf-nav-links > li.has-child { position: relative; }
.jf-mega { position: absolute; top: 100%; left: 0; width: min(760px, 90vw); background: #fcfaf5; border: 1px solid var(--jf-line); border-radius: 0 0 var(--jf-radius) var(--jf-radius); box-shadow: 0 18px 40px rgba(31,68,44,.14); padding: 26px; display: none; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.jf-nav-links > li.has-child:hover > .jf-mega, .jf-mega:hover { display: grid; }
.jf-mega h6 { font-size: 13px; font-weight: 700; color: var(--jf-green-dark); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--jf-line); }
.jf-mega a { display: block; font-size: 13px; padding: 5px 0; color: #4a5750; }
.jf-mega a:hover { color: var(--jf-green); padding-left: 4px; }
.jf-nav-promo { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--jf-orange); white-space: nowrap; }
.jf-nav-toggle { display: none; border: 0; background: transparent; font-size: 22px; color: var(--jf-ink); }

/* ---------- hero slider ---------- */
.jf-hero { position: relative; margin-top: 24px; border-radius: var(--jf-radius); overflow: hidden; background: #e8f1e6; }
.jf-hero-track { position: relative; height: 420px; }
.jf-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: flex; align-items: center; }
.jf-hero-slide.active { opacity: 1; }
.jf-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jf-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 55%); }
.jf-hero-copy { position: relative; z-index: 2; padding: 0 8%; max-width: 620px; }
.jf-hero-copy .jf-kicker { display: inline-block; font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700; color: var(--jf-green-dark); background: rgba(255,255,255,.78); padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.jf-hero-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; font-weight: 800; color: #2f3a34; margin: 0 0 14px; letter-spacing: -1px; }
.jf-hero-copy p { font-size: 17px; color: #4a5a50; margin: 0 0 26px; }
.jf-hero-copy .jf-btn + .jf-btn { margin-left: 10px; }
.jf-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--jf-green-dark); font-size: 18px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.jf-hero-arrow:hover { background: #fcfaf5; transform: translateY(-50%) scale(1.08); }
.jf-hero-prev { left: 18px; }
.jf-hero-next { right: 18px; }
.jf-hero-dots { position: absolute; bottom: 20px; left: 8%; z-index: 5; display: flex; gap: 9px; align-items: center; }
.jf-hero-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255,255,255,.65); cursor: pointer; padding: 0; transition: .2s; }
.jf-hero-dots button.active { width: 28px; background: var(--jf-green-dark); }
.jf-hero-count { font-size: 12px; color: #fff; margin-left: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.3); }

/* ---------- section head ---------- */
.jf-section { margin-top: 56px; }
.jf-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.jf-section-head h3 { font-size: 27px; font-weight: 800; margin: 0; letter-spacing: -.5px; color: var(--jf-ink); }
.jf-section-head p { margin: 5px 0 0; font-size: 13px; color: var(--jf-muted); }
.jf-section-head .jf-see { font-size: 13px; font-weight: 600; color: var(--jf-green-dark); border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.jf-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.jf-tabs button { border: 1px solid var(--jf-line); background: #fcfaf5; color: #4a5750; padding: 8px 18px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.jf-tabs button.active { background: var(--jf-green); border-color: var(--jf-green); color: #fff; }

/* ---------- category tiles ---------- */
.jf-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jf-cat { position: relative; border-radius: var(--jf-radius); overflow: hidden; min-height: 230px; display: flex; align-items: center; }
.jf-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jf-cat:hover img { transform: scale(1.07); }
.jf-cat-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,35,20,.05), rgba(12,35,20,.55)); }
.jf-cat-copy { position: relative; z-index: 2; padding: 26px; color: #fff; }
.jf-cat-copy small { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }
.jf-cat-copy h4 { font-size: 23px; font-weight: 700; margin: 6px 0 4px; line-height: 1.2; }
.jf-cat-copy .jf-from { font-size: 13px; opacity: .92; margin-bottom: 14px; }
.jf-cat-copy a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #fff; padding-bottom: 3px; color: #fff; }

/* ---------- product cards ---------- */
.jf-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.jf-rail.jf-rail-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jf-card { position: relative; background: #fcfaf5; border: 1px solid var(--jf-line); border-radius: var(--jf-radius); overflow: hidden; transition: .25s ease; display: flex; flex-direction: column; }
.jf-card:hover { box-shadow: var(--jf-shadow); transform: translateY(-4px); border-color: #e6ded0; }
.jf-card-media { position: relative; background: var(--jf-soft); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jf-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s ease; }
.jf-card:hover .jf-card-media img { transform: scale(1.06); }
.jf-tag { position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 999px; }
.jf-tag-sale { background: var(--jf-red); }
.jf-tag-new { background: var(--jf-green); }
.jf-tag-out { background: #7d8a82; }
.jf-card-tools { position: absolute; right: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateX(8px); transition: .25s ease; }
.jf-card:hover .jf-card-tools { opacity: 1; transform: none; }
.jf-card-tools button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fcfaf5; color: var(--jf-green-dark); box-shadow: 0 3px 10px rgba(0,0,0,.12); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.jf-card-tools button:hover { background: var(--jf-green); color: #fff; }
.jf-quickview { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 12px); z-index: 3; opacity: 0; background: rgba(30,42,34,.92); color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .25s ease; white-space: nowrap; }
.jf-card:hover .jf-quickview { opacity: 1; transform: translate(-50%, 0); }
.jf-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.jf-card-brand { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--jf-muted); }
.jf-card-title { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 38px; margin: 0; }
.jf-card-title a:hover { color: var(--jf-green); }
.jf-card-desc { font-size: 11.5px; color: var(--jf-muted); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jf-rating { display: flex; gap: 2px; color: #e8a93c; font-size: 12px; }
.jf-rating i { font-style: normal; }
.jf-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.jf-price .new { font-size: 18px; font-weight: 800; color: var(--jf-green-dark); }
.jf-price .old { font-size: 13px; color: #9aa59e; text-decoration: line-through; }
.jf-price .tax { font-size: 11px; color: var(--jf-muted); width: 100%; }
.jf-card-add { width: 100%; border: 1.5px solid var(--jf-green); background: #fcfaf5; color: var(--jf-green-dark); border-radius: 999px; padding: 9px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; margin-top: 4px; }
.jf-card-add:hover { background: var(--jf-green); color: #fff; }
.jf-card form { margin: 0; }

/* ---------- promo / cta ---------- */
.jf-promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 56px; }
.jf-promo-box { position: relative; border-radius: var(--jf-radius); overflow: hidden; min-height: 250px; display: flex; align-items: center; }
.jf-promo-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jf-promo-box:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,45,26,.86), rgba(14,45,26,.12)); }
.jf-promo-copy { position: relative; z-index: 2; padding: 36px; color: #fff; max-width: 480px; }
.jf-promo-copy small { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; opacity: .85; }
.jf-promo-copy h4 { font-size: 30px; font-weight: 800; line-height: 1.15; margin: 10px 0; }
.jf-promo-copy p { font-size: 13px; opacity: .9; margin: 0 0 20px; }
.jf-promo-copy .jf-from { font-size: 15px; font-weight: 700; margin-right: 16px; }
.jf-promo-side { background: var(--jf-soft); border: 1px solid var(--jf-line); border-radius: var(--jf-radius); padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.jf-promo-side h4 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.jf-promo-side p { color: var(--jf-muted); font-size: 13px; margin: 0 0 20px; }

/* ---------- feature strip ---------- */
.jf-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--jf-line); border-radius: var(--jf-radius); overflow: hidden; background: var(--jf-soft); }
.jf-feature { display: flex; align-items: center; gap: 16px; padding: 26px 28px; border-right: 1px solid var(--jf-line); }
.jf-feature:last-child { border-right: 0; }
.jf-feature i { font-size: 30px; color: var(--jf-green); flex: 0 0 auto; }
.jf-feature h5 { font-size: 15px; font-weight: 700; margin: 0 0 3px; }
.jf-feature p { font-size: 12px; color: var(--jf-muted); margin: 0; }

/* ---------- brands ---------- */
.jf-brands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.jf-brand { border: 1px solid var(--jf-line); border-radius: var(--jf-radius); padding: 30px 12px; text-align: center; transition: .2s; }
.jf-brand:hover { border-color: var(--jf-green); box-shadow: var(--jf-shadow); }
.jf-brand strong { display: block; font-size: 17px; font-weight: 800; color: #3a4a40; letter-spacing: -.4px; }
.jf-brand span { font-size: 11px; color: var(--jf-muted); }

/* ---------- blog ---------- */
.jf-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.jf-post { border: 1px solid var(--jf-line); border-radius: var(--jf-radius); overflow: hidden; transition: .2s; }
.jf-post:hover { box-shadow: var(--jf-shadow); }
.jf-post-cover { height: 150px; background: linear-gradient(135deg, #f1ece1, #d9c7a4); position: relative; }
.jf-post:nth-child(2) .jf-post-cover { background: linear-gradient(135deg, #f6d9b0, #e2a462); }
.jf-post:nth-child(3) .jf-post-cover { background: linear-gradient(135deg, #f5efe3, #c9b58d); }
.jf-post-date { position: absolute; left: 16px; top: 16px; background: #fcfaf5; border-radius: 10px; padding: 8px 12px; text-align: center; font-size: 12px; line-height: 1.2; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.jf-post-date b { display: block; font-size: 19px; color: var(--jf-green-dark); }
.jf-post-body { padding: 20px; }
.jf-post-body h5 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.jf-post-body p { font-size: 12.5px; color: var(--jf-muted); margin: 0 0 14px; }
.jf-post-body a { font-size: 12.5px; font-weight: 600; color: var(--jf-green-dark); }

/* ---------- footer ---------- */
.jf-footer { background: #31564f; color: #f3ece0; margin-top: 64px; }
.jf-footer a { color: #f3ece0; }
.jf-footer a:hover { color: #fff; }
.jf-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.13); flex-wrap: wrap; }
.jf-newsletter h4 { margin: 0 0 4px; font-size: 21px; font-weight: 700; color: #fff; }
.jf-newsletter p { margin: 0; font-size: 13px; opacity: .8; }
.jf-newsletter form { display: flex; align-items: center; background: #fcfaf5; border-radius: 999px; overflow: hidden; min-width: 360px; flex: 1 1 360px; max-width: 460px; }
.jf-newsletter input { flex: 1; border: 0; outline: 0; padding: 13px 20px; font-size: 14px; min-width: 0; }
.jf-newsletter button { border: 0; background: var(--jf-green); color: #fff; width: 52px; height: 46px; font-size: 17px; cursor: pointer; }
.jf-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 44px 0; }
.jf-footer-cols h5 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 18px; }
.jf-footer-cols li { margin-bottom: 9px; font-size: 13px; }
.jf-footer-about p { font-size: 13px; line-height: 1.7; opacity: .82; max-width: 280px; }
.jf-footer-about img { height: 50px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.jf-social { display: flex; gap: 10px; margin-top: 18px; }
.jf-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.jf-social a:hover { background: var(--jf-green); border-color: var(--jf-green); }
.jf-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.13); font-size: 12.5px; flex-wrap: wrap; }
.jf-payments { display: flex; gap: 8px; }
.jf-payments span { border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 4px 9px; font-size: 11px; letter-spacing: .5px; }

/* ---------- quickview modal ---------- */
.jf-modal-mask { position: fixed; inset: 0; background: rgba(16,32,22,.55); z-index: 999; display: none; align-items: center; justify-content: center; padding: 20px; }
.jf-modal-mask.open { display: flex; }
.jf-modal { background: #fcfaf5; border-radius: var(--jf-radius); max-width: 760px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; }
.jf-modal img { width: 100%; height: 100%; object-fit: contain; background: var(--jf-soft); padding: 24px; }
.jf-modal-body { padding: 34px 28px; }
.jf-modal-body h3 { font-size: 23px; margin: 0 0 10px; }
.jf-modal-body .jf-price { margin: 14px 0; }
.jf-modal-close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fcfaf5; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; font-size: 16px; z-index: 2; }

.jf-to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--jf-green); color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--jf-shadow); display: none; z-index: 60; }
.jf-to-top.show { display: block; }

/* ---------- inherited OpenCart elements ---------- */
#alert { position: relative; z-index: 1000; }
.jf-body #top, .jf-body header > .container, .jf-body #menu, .jf-body footer { display: none !important; }
.jf-body main { display: block; }
.jf-body #common-home.container { max-width: none; padding: 0; width: 100%; }
.jf-body .breadcrumb, .jf-body .alert { border-radius: 10px; }
.jf-body .btn-primary { background: var(--jf-green); border-color: var(--jf-green); }
.jf-body .btn-primary:hover { background: var(--jf-green-dark); border-color: var(--jf-green-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .jf-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jf-rail .jf-card:nth-child(n+9) { display: none; }
  .jf-nav-links > li:nth-child(n+7) { display: none; }
}
@media (max-width: 991px) {
  .jf-header .jf-wrap { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .jf-search { order: 3; max-width: none; flex-basis: 100%; }
  .jf-actions { gap: 14px; }
  .jf-actions .jf-ico-label { display: none; }
  .jf-nav-toggle { display: block; }
  .jf-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fcfaf5; padding: 14px 24px; box-shadow: var(--jf-shadow); flex-direction: column; align-items: stretch; }
  .jf-nav-links.open { display: flex; }
  .jf-mega { position: static; width: 100%; box-shadow: none; border: 0; padding: 8px 0 12px 14px; grid-template-columns: repeat(2, 1fr); }
  .jf-nav-promo { display: none; }
  .jf-cats { grid-template-columns: repeat(2, 1fr); }
  .jf-features { grid-template-columns: repeat(2, 1fr); }
  .jf-feature:nth-child(2) { border-right: 0; }
  .jf-feature:nth-child(-n+2) { border-bottom: 1px solid var(--jf-line); }
  .jf-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .jf-brands { grid-template-columns: repeat(3, 1fr); }
  .jf-posts { grid-template-columns: repeat(2, 1fr); }
  .jf-promo { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .jf-wrap { padding: 0 16px; }
  .jf-topbar-left span:nth-child(n+2) { display: none; }
  .jf-topbar-right { gap: 12px; }
  .jf-hero-track { height: 340px; }
  .jf-hero-copy { padding: 0 8%; }
  .jf-hero-copy h2 { font-size: 32px; }
  .jf-hero-copy p { font-size: 14px; }
  .jf-hero-shade { background: linear-gradient(90deg, rgba(255,255,255,.62), rgba(255,255,255,.05)); }
  .jf-section { margin-top: 40px; }
  .jf-section-head h3 { font-size: 22px; }
  .jf-rail, .jf-rail.jf-rail-4 { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .jf-rail .jf-card, .jf-rail .jf-card:nth-child(n+9) { display: flex; flex: 0 0 70%; scroll-snap-align: start; }
  .jf-cat { min-height: 180px; }
  .jf-cat-copy { padding: 18px; }
  .jf-cat-copy h4 { font-size: 18px; }
  .jf-features { grid-template-columns: 1fr; }
  .jf-feature { border-right: 0; border-bottom: 1px solid var(--jf-line); }
  .jf-brands { grid-template-columns: repeat(2, 1fr); }
  .jf-posts { grid-template-columns: 1fr; }
  .jf-footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .jf-newsletter form { min-width: 0; }
  .jf-modal { grid-template-columns: 1fr; }
  .jf-modal img { height: 200px; }
}

/* ---------- refinements ---------- */
.jf-nav-all { white-space: nowrap; }
.jf-hero-dots { left: auto; right: 8%; }
.jf-cat-overlay { background: linear-gradient(90deg, rgba(12,35,20,.74) 0%, rgba(12,35,20,.40) 55%, rgba(12,35,20,.06) 100%); }
.jf-section-head .jf-tabs { margin-left: auto; margin-right: 16px; }

/* Compact cart button over the default OpenCart cart widget (keeps its AJAX dropdown) */
.jf-body #cart .dropdown.d-grid { display: block !important; }
.jf-body #cart .dropdown > button {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: var(--jf-green); color: #fff; font-size: 0; box-shadow: none;
  display: flex; align-items: center; justify-content: center;
}
.jf-body #cart .dropdown > button i { font-size: 18px; color: #fff; }
.jf-body #cart .dropdown > button::after { display: none; }
.jf-body #cart .dropdown-menu { min-width: 320px; border-radius: 12px; border: 1px solid var(--jf-line); box-shadow: var(--jf-shadow); }

/* OpenCart's stylesheet.css sets a dark colour on all h1-h6; restore white on dark panels */
.jf-cat-copy, .jf-cat-copy h4, .jf-cat-copy small, .jf-cat-copy .jf-from, .jf-cat-copy a,
.jf-promo-copy h4 { color: #fff; }
.jf-cat-copy { width: 64%; }
.jf-cat-copy h4 { text-shadow: 0 1px 8px rgba(0, 0, 0, .28); }
