/*
Theme Name: Northline
Author: Northline Electronics LLC
Description: Custom WooCommerce theme for Northline Electronics (Cincinnati, OH). Brand-sectioned shop, product cards, mini cart, favorites, store info in the Customizer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
WC requires at least: 8.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northline
*/


:root {
  --primary: #c4461a;        /* deep logo orange – white text passes WCAG AA */
  --primary-dark: #1b1a1b;   /* logo charcoal (hover) */
  --accent: #f76630;         /* exact logo orange – decorative use */
  --badge: #c4461a;
  --text: #3a3838;
  --title: #1b1a1b;
  --muted: #777;
  --header-bg: #fbfaf7;
  --topbar-bg: #f0efec;
  --page-bg: #efede8;
  --card-bg: #ffffff;
  --info-bg: #eaeaea;
  --footer-bg: #1b1a1b;
  --line: rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-sm: 5px;
  --container: 1300px;
  --font-body: "Work Sans", Arial, Helvetica, sans-serif;
  --font-title: "Urbanist", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-title); color: var(--title); margin: 0; line-height: 1.2; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: var(--topbar-bg); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 20px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.topbar li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a:hover { color: var(--primary); }
.topbar .icon { width: 15px; height: 15px; opacity: .8; }
.flag { width: 18px; height: 12px; border-radius: 2px; }

/* ---------- Header ---------- */
.header-main { background: var(--header-bg); }
.header-main .container { display: flex; align-items: center; gap: 30px; height: 101px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 86px; width: auto; margin: -4px 0; }
.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.search input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 35px; background: #fff;
  padding: 0 15px 0 42px; font: inherit; font-size: 14px; color: var(--text); outline: none;
}
.search input:focus { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
.search .icon { position: absolute; left: 15px; top: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.h-icon { position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.h-icon .icon { width: 22px; height: 22px; }
.h-icon:hover { color: var(--primary); }
.count {
  position: absolute; top: -6px; left: 14px; min-width: 17px; height: 17px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; padding: 0 4px;
}
.quote-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--title); color: #fff; border-radius: 35px;
  height: 40px; padding: 0 18px; font-size: 13px; font-weight: 600; transition: background .2s;
}
.quote-pill:hover { background: var(--primary); }
.quote-pill .icon { width: 18px; height: 18px; }

.header-nav { background: var(--header-bg); border-top: 1px solid rgba(0,0,0,.05); }
.header-nav .container { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 40px; font-size: 13px; color: #333; border-radius: 6px;
}
.nav a .icon { width: 16px; height: 16px; opacity: .75; }
.nav a:hover .icon, .nav a.active .icon { color: var(--accent); opacity: 1; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active { font-weight: 600; }
.nav-note { font-size: 12px; color: #333; background: #fff; border-radius: 35px; padding: 4px 12px; border: 1px solid var(--line); }

.burger { display: none; background: none; border: 0; padding: 6px; color: var(--title); }
.burger .icon { width: 24px; height: 24px; }

/* Off-canvas mobile menu */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .25s; }
.drawer .panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #fff; transform: translateX(-100%);
  transition: transform .25s; overflow-y: auto; padding: 20px;
}
.drawer.open { pointer-events: auto; }
.drawer.open .shade { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer .panel a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-weight: 500; }
.drawer .panel .close { background: none; border: 0; font-size: 26px; line-height: 1; float: right; }

/* ---------- Page body ---------- */
.page {
  background-color: var(--page-bg);
  background-image:
    radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.025) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
  padding: 40px 0 60px;
}

/* Hero video */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 1270 / 520; }
.hero video, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Brand strip */
.brand-strip { margin: 40px 0 10px; overflow: hidden; position: relative; }
.brand-strip::before, .brand-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.brand-strip::before { left: 0; background: linear-gradient(90deg, var(--page-bg), transparent); }
.brand-strip::after { right: 0; background: linear-gradient(-90deg, var(--page-bg), transparent); }
.marquee { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.brand-strip:hover .marquee { animation-play-state: paused; }
.marquee a {
  flex: none; width: 240px; height: 90px; display: grid; place-items: center; text-align: center;
  font-family: var(--font-title); font-weight: 800; font-size: 27px; letter-spacing: .5px; color: #2b2b2b;
  text-transform: uppercase; padding: 0 10px; line-height: 1; transition: color .2s, transform .2s;
}
.marquee a:hover { color: var(--primary); transform: scale(1.04); }
.marquee a small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-top: 6px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Brand section */
.brand-section { margin-top: 40px; scroll-margin-top: 20px; }
.brand-banner {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 300px; border-radius: var(--radius-sm); overflow: hidden; color: #fff; background: #1b1b1b;
}
.brand-banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.38) 50%, rgba(0,0,0,.72)); }
.brand-banner .inner { position: relative; z-index: 1; padding: 30px; }
.brand-banner h2 {
  color: #fff; font-weight: 800; font-size: 68px; letter-spacing: 1px; line-height: 1; text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.brand-banner p { margin: 12px 0 0; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; opacity: .9; }
.brand-banner .chip {
  display: inline-block; margin-top: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px); border-radius: 35px; padding: 7px 18px; font-size: 13px; font-weight: 600; transition: background .2s;
}
.brand-banner .chip:hover { background: var(--primary); border-color: var(--primary); }
.brand-banner h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--accent); margin: 14px auto 0; }

/* Product grid */
ul.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 20px; }
li.product {
  position: relative; background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s;
}
li.product:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
li.product .thumb { position: relative; aspect-ratio: 1 / 1; padding: 15px 15px 5px; display: grid; place-items: center; background: #fff; }
li.product .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
li.product:hover .thumb img { transform: scale(1.04); }
.wish {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: #333; z-index: 2;
}
.wish .icon { width: 19px; height: 19px; }
.wish:hover, .wish.on { color: #e0245e; }
.wish.on svg path { fill: currentColor; }
.label-new {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--badge); color: #fff; border-radius: 12px;
  padding: 3px 10px; font-size: 12px; font-weight: 600;
}
li.product .info { padding: 10px 15px 16px; display: flex; flex-direction: column; flex: 1; }
li.product .brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
li.product h3 {
  font-size: 15px; font-weight: 700; color: #333; margin: 3px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 54px;
}
li.product .price { color: var(--primary); font-size: 15px; margin-top: auto; }
li.product .actions { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s, margin .3s; }
li.product:hover .actions, li.product:focus-within .actions { max-height: 60px; opacity: 1; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: 35px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; border: 0; transition: background .2s;
}
.btn:hover { background: var(--primary-dark); }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--title); }
.btn.light:hover { background: var(--primary); color: #fff; }
.btn.outline { background: transparent; color: var(--title); border: 1px solid rgba(0,0,0,.18); }
.btn.outline:hover { border-color: var(--primary); color: var(--primary); }
@media (hover: none) { li.product .actions { max-height: none; opacity: 1; margin-top: 10px; } }

/* Promo banner */
.promo {
  margin-top: 60px; display: grid; grid-template-columns: 1.15fr 1fr; background: #e3e1dc; border-radius: var(--radius);
  overflow: hidden; min-height: 300px;
}
.promo .pic { position: relative; min-height: 260px; }
.promo .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo .txt { padding: 40px 45px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.promo h3 { font-size: 30px; font-weight: 800; color: var(--primary); }
.promo .meta { display: grid; gap: 6px; font-size: 15px; }
.promo .meta div { display: flex; gap: 10px; align-items: center; }
.promo .meta .icon { color: var(--accent); }
.promo .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Articles */
.section-title { text-align: center; font-size: 40px; font-weight: 700; margin: 60px 0 30px; }
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article { background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s; }
.article:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.article .img { aspect-ratio: 16 / 10; overflow: hidden; }
.article .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article:hover .img img { transform: scale(1.05); }
.article .body { padding: 22px 25px 26px; text-align: center; }
.article .date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.article h4 { font-size: 18px; font-weight: 600; margin-top: 6px; }

/* Info bar */
.infobar { background: var(--info-bg); padding: 26px 0; }
.infobar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.infobar .item { display: flex; gap: 14px; align-items: center; }
.infobar .item .icon { width: 34px; height: 34px; color: var(--accent); }
.infobar b { display: block; font-family: var(--font-title); color: var(--title); font-size: 15px; }
.infobar span { font-size: 13px; color: #666; }

/* Footer */
footer.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.8); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr) 1.6fr; gap: 30px; padding: 55px 0 40px; }
.footer-top h5 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a:hover { color: #fff; }
.newsletter form { display: flex; gap: 8px; }
.newsletter input {
  flex: 1; height: 42px; border-radius: 35px; border: 1px solid rgba(255,255,255,.2); background: #fff; padding: 0 18px; font: inherit; font-size: 14px;
}
.newsletter .btn { background: #fff; color: #111; }
.newsletter .btn:hover { background: var(--primary); color: #fff; }
.newsletter p { font-size: 12px; margin: 10px 0 0; color: rgba(255,255,255,.6); }
.footer-logo { height: 54px; width: auto; margin-top: 26px; }
.footer-contact { margin-top: 16px; display: grid; gap: 6px; font-size: 13px; }
.footer-contact div { display: flex; gap: 8px; align-items: center; }
.footer-contact .icon { width: 16px; height: 16px; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; height: 63px; font-size: 13px; gap: 20px; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Inner pages ---------- */
.page-title { background: #1b1b1b; color: #fff; position: relative; overflow: hidden; }
.page-title img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-title .container { position: relative; padding: 70px 15px; text-align: center; }
.page-title h1 { color: #fff; font-size: 48px; font-weight: 800; }
.crumbs { margin-top: 10px; font-size: 13px; opacity: .85; }
.crumbs a:hover { text-decoration: underline; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 35px; padding: 7px 16px; font-size: 13px; color: var(--text);
}
.chips button.on, .chips button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters .search { margin: 0; max-width: 320px; }
.cat-title { display: flex; align-items: baseline; gap: 14px; margin-top: 60px; padding-bottom: 12px; border-bottom: 2px solid rgba(0,0,0,.08); scroll-margin-top: 20px; }
.cat-title h2 { font-size: 30px; font-weight: 800; }
.cat-title span { font-size: 13px; color: var(--muted); }
.brand-index { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 13px; }
.brand-index a { color: #555; }
.brand-index a:hover { color: var(--primary); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); display: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.panel { background: #fff; border-radius: var(--radius); padding: 40px; }
.lead { font-size: 18px; color: #444; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stat { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.stat b { display: block; font-family: var(--font-title); font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 14px; color: #555; }
.rounded-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; display: flex; align-items: flex-end; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.75)); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card div { position: relative; z-index: 1; padding: 16px 18px; }
.cat-card b { font-family: var(--font-title); font-size: 18px; display: block; }
.cat-card span { font-size: 12px; opacity: .85; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px; }
.contact-card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.contact-card h3 { font-size: 18px; margin-bottom: 6px; }
.contact-card p { margin: 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; background: #ddd; min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { font-size: 13px; font-weight: 600; color: var(--title); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; font-size: 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 8px; padding: 11px 14px; background: #fff; color: var(--text); outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--primary); }
.form textarea { min-height: 130px; resize: vertical; }
.notice { font-size: 13px; color: #1e6b2f; background: #e7f5ea; border-radius: 8px; padding: 12px 14px; display: none; }

/* ---------- Prices, cart ---------- */
.price del { color: #9a9a9a; margin-right: 6px; font-size: 14px; }
.price ins { text-decoration: none; }
.price .na { color: var(--muted); font-size: 14px; }
.onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--badge); color: #fff; border-radius: 12px;
  padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.cart-pill .amt { font-variant-numeric: tabular-nums; }
.cart-pill .count { left: auto; right: -6px; top: -6px; }
.cart-pill { position: relative; }

.cart-drawer .panel { left: auto; right: 0; width: 380px; transform: translateX(100%); display: flex; flex-direction: column; padding: 0; }
.cart-drawer.open .panel { transform: none; }
.cart-drawer .head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #eee; }
.cart-drawer .head h4 { font-size: 18px; }
.cart-drawer .close { background: none; border: 0; font-size: 28px; line-height: 1; padding: 0 4px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; align-items: center; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; }
.cart-line .n { font-family: var(--font-title); font-weight: 700; font-size: 14px; color: #333; line-height: 1.3; }
.cart-line .q { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cart-line .rm { background: none; border: 0; color: #999; font-size: 20px; line-height: 1; }
.cart-line .rm:hover { color: #e0245e; }
.cart-foot { padding: 18px 20px 22px; border-top: 1px solid #eee; display: grid; gap: 10px; }
.cart-foot .sub { display: flex; justify-content: space-between; font-weight: 600; color: var(--title); }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1a1a1a; color: #fff; border-radius: 35px;
  padding: 11px 20px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.qty { display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.15); border-radius: 35px; height: 40px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .topbar, .header-nav, .search.desktop, .h-icon .lbl { display: none; }
  .burger { display: block; }
  .header-main .container { height: 70px; justify-content: space-between; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .logo img { height: 54px; margin: 0; }
  .header-main .container { position: relative; }
  .header-actions .h-icon.wishlist, .header-actions .h-icon.account { display: none; }
  .quote-pill { padding: 0 12px; }
  .quote-pill .lbl { display: none; }
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .brand-banner { min-height: 220px; }
  .brand-banner h2 { font-size: 48px; }
  .promo { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr 1fr; }
  .articles .article:nth-child(3) { display: none; }
  .infobar .container { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .newsletter { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 16px 0 40px; }
  .hero { aspect-ratio: 4 / 3; }
  ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  li.product .info { padding: 8px 12px 14px; }
  li.product h3 { font-size: 14px; min-height: 0; }
  .brand-banner { min-height: 170px; }
  .brand-banner h2 { font-size: 34px; }
  .brand-banner p { font-size: 11px; letter-spacing: 2px; }
  .section-title { font-size: 28px; margin: 44px 0 20px; }
  .articles { grid-template-columns: 1fr; }
  .articles .article:nth-child(3) { display: block; }
  .infobar .container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; justify-content: center; height: auto; padding: 18px 15px; text-align: center; }
  .promo .txt { padding: 28px 22px; }
  .promo h3 { font-size: 24px; }
  .page-title h1 { font-size: 34px; }
  .page-title .container { padding: 48px 15px; }
  .stats { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form .row2 { grid-template-columns: 1fr; }
  .panel { padding: 26px 20px; }
  .marquee a { width: 180px; font-size: 22px; }
  .filters .search { max-width: none; }
  .cart-drawer .panel { width: 100%; max-width: 100vw; }
}

/* =====================================================================
   WordPress / WooCommerce additions
   (WooCommerce's own frontend styles are switched off in functions;
   everything below styles WooCommerce markup in the Northline look.)
   ===================================================================== */

.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.nl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.center-cta { text-align: center; margin-top: 40px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.container.narrow { max-width: 860px; }
.custom-logo-link img, .logo img { height: 86px; width: auto; }
.footer-logo-link img { height: 54px; width: auto; margin-top: 26px; }
.nav { list-style: none; }
.nav li { list-style: none; }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--primary); font-weight: 600; }
.nav .current-menu-item > a .icon { color: var(--accent); opacity: 1; }
.topbar li a { display: inline; }
.drawer-nav { list-style: none; margin: 0; padding: 0; }
.drawer-search { margin: 30px 0 10px; }
.drawer-contact { font-size: 13px; margin-top: 20px; }
.lead.center { max-width: 760px; margin: 0 auto; }
.panel.center h2 { font-size: 26px; margin-bottom: 10px; }
.contact-row { margin-top: 30px; align-items: stretch; }
.contact-card .more a { color: var(--primary); font-weight: 600; }
.contact-card .big-tel { font-size: 20px; font-weight: 600; color: var(--title); }
.panel h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.notice { display: block; border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.notice.ok { color: #1e6b2f; background: #e7f5ea; }
.notice.err { color: #8a1c1c; background: #fdecea; }
.cat-title h2 a:hover { color: var(--primary); }

/* Entry content (pages, posts) */
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 28px; margin: 1.2em 0 .5em; }
.entry h3 { font-size: 22px; margin: 1.2em 0 .5em; }
.entry a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.entry img { border-radius: var(--radius-sm); height: auto; }
.entry .date { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .nav-links, .woocommerce-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination .page-numbers, .woocommerce-pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 35px; background: #fff; font-size: 14px;
}
.pagination .page-numbers.current, .woocommerce-pagination .page-numbers.current { background: var(--title); color: #fff; }
.woocommerce-pagination { margin-top: 30px; text-align: center; }

/* Product lists */
ul.products { list-style: none; padding: 0; margin: 20px 0 0; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { margin: 0; padding: 0; width: auto; float: none; }
ul.products.auto-grid, .related ul.products, .upsells ul.products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
li.product .thumb img { width: 100%; height: 100%; object-fit: contain; }
li.product h3 a:hover { color: var(--primary); }
li.product a.added_to_cart { display: none; }
li.product .button.loading { opacity: .6; pointer-events: none; }
li.product .star-rating { display: none; }
.onsale {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--badge); color: #fff; border-radius: 12px;
  padding: 3px 10px; font-size: 12px; font-weight: 600; line-height: 1.5;
}
.price { font-variant-numeric: tabular-nums; }
.price del { color: #9a9a9a; margin-right: 6px; font-size: 14px; opacity: 1; }
.price ins { text-decoration: none; background: none; font-weight: 600; }
.price .na { color: var(--muted); font-size: 14px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-bar .woocommerce-result-count { margin: 0; font-size: 14px; color: var(--muted); }
.woocommerce-ordering select, .orderby {
  font: inherit; font-size: 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 35px; padding: 9px 16px; background: #fff;
}
.woocommerce-info.woocommerce-no-products-found, .woocommerce-no-products-found { margin-top: 10px; }

/* Buttons (WooCommerce) */
.button, button.button, a.button, input.button, .wc-block-components-button:not(.is-link), .wp-block-button__link, .checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 22px; border-radius: 35px;
  background: var(--primary); color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 600; border: 0; cursor: pointer;
  text-decoration: none; transition: background .2s; line-height: 1.2;
}
.button:hover, button.button:hover, a.button:hover, input.button:hover, .wc-block-components-button:not(.is-link):hover, .wp-block-button__link:hover { background: var(--primary-dark); color: #fff; }
.button.alt, button.button.alt { background: var(--primary); }
.button:disabled, .button.disabled { opacity: .55; cursor: not-allowed; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 8px; background: #fff; border-left: 4px solid var(--accent);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px;
}
.woocommerce-error { border-left-color: #c0392b; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Forms */
.woocommerce form .form-row { margin: 0 0 14px; }
.woocommerce form .form-row label, .woocommerce-form label { font-size: 13px; font-weight: 600; color: var(--title); display: block; margin-bottom: 5px; }
.woocommerce form .form-row .required { color: var(--primary); text-decoration: none; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce form .form-row input.input-text {
  width: 100%; font: inherit; font-size: 14px; border: 1px solid rgba(0,0,0,.14); border-radius: 8px; padding: 11px 14px; background: #fff; color: var(--text);
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus { border-color: var(--accent); outline: none; }

/* Quantity */
.quantity { display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.15); border-radius: 35px; height: 42px; overflow: hidden; background: #fff; }
.quantity .qty { width: 46px; border: 0; text-align: center; font: inherit; font-weight: 600; outline: none; -moz-appearance: textfield; background: transparent; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity .nl-qty { width: 34px; height: 100%; border: 0; background: transparent; font-size: 18px; color: var(--title); }

/* Single product */
.single-product .page > .container > .crumbs, .single-product .woocommerce-breadcrumb { margin-bottom: 16px; font-size: 13px; }
.single-product div.product { position: relative; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: #fff; border-radius: var(--radius); padding: 30px; position: relative; }
.pdp > .onsale { top: 22px; left: 22px; }
.pdp .woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; }
.pdp .woocommerce-product-gallery__wrapper { margin: 0; }
.pdp .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.pdp .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
.pdp .woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: contain; }
.pdp .woocommerce-product-gallery__trigger {
  position: absolute; top: 4px; right: 4px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: grid; place-items: center; font-size: 0; text-indent: -9999px; overflow: hidden;
}
.pdp .woocommerce-product-gallery__trigger::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--title); border-radius: 50%; position: absolute; top: 10px; left: 10px; }
.pdp .woocommerce-product-gallery__trigger::after { content: ""; width: 2px; height: 7px; background: var(--title); position: absolute; top: 21px; left: 23px; transform: rotate(-45deg); }
.pdp .flex-control-thumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.pdp .flex-control-thumbs li { width: 70px; cursor: pointer; opacity: .6; }
.pdp .flex-control-thumbs img.flex-active, .pdp .flex-control-thumbs li:hover { opacity: 1; }
.pdp .summary { margin: 0; }
.pdp .brandlink { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; }
.pdp .product_title { font-size: 30px; font-weight: 800; margin: 8px 0 14px; }
.pdp p.price, .pdp span.price { font-size: 26px; color: var(--primary); font-weight: 600; margin: 0 0 18px; }
.pdp p.price del { font-size: 18px; }
.pdp .woocommerce-product-details__short-description { margin-bottom: 14px; }
.pdp form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 14px; }
.pdp form.cart .button { min-height: 42px; }
.pdp .buy { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.pdp .stock { font-size: 14px; }
.wish-inline { position: static; width: auto; height: 40px; border-radius: 35px; display: inline-flex; gap: 8px; padding: 0 14px; border: 1px solid rgba(0,0,0,.14); background: #fff; font-size: 13px; margin-bottom: 18px; }
.pdp .product_meta { font-size: 14px; display: grid; gap: 6px; border-top: 1px solid #eee; padding-top: 18px; }
.pdp .product_meta a { color: var(--primary); }
.pdp .perks { display: grid; gap: 10px; margin-top: 22px; font-size: 14px; }
.pdp .perks div { display: flex; gap: 10px; align-items: center; }
.pdp .perks .icon { color: var(--accent); }
.woocommerce-tabs { background: #fff; border-radius: var(--radius); padding: 24px 30px; margin-top: 30px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0 0 16px; border-bottom: 1px solid #eee; }
.woocommerce-tabs ul.tabs li { padding-bottom: 10px; }
.woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--accent); }
.woocommerce-tabs ul.tabs li a { font-family: var(--font-title); font-weight: 700; color: var(--title); }
.woocommerce-tabs .panel { padding: 0; background: none; }
.related > h2, .upsells > h2 { text-align: center; font-size: 30px; margin: 50px 0 10px; }

/* Mini cart (drawer) */
.cart-drawer .panel { left: auto; right: 0; width: 380px; transform: translateX(100%); display: flex; flex-direction: column; padding: 0; }
.cart-drawer.open .panel { transform: none; }
.cart-drawer .head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #eee; }
.cart-drawer .head h4 { font-size: 18px; }
.cart-drawer .close { background: none; border: 0; font-size: 28px; line-height: 1; padding: 0 4px; float: none; }
.cart-drawer .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 6px 20px; overflow-y: auto; flex: 1; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 14px 26px 14px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.woocommerce-mini-cart-item a:not(.remove) { display: contents; font-family: var(--font-title); font-weight: 700; color: #333; }
.woocommerce-mini-cart-item img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; }
.woocommerce-mini-cart-item .quantity { border: 0; height: auto; border-radius: 0; color: var(--muted); font-size: 13px; grid-column: 2; }
.woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 14px; color: #999 !important; font-size: 20px; line-height: 1; }
.woocommerce-mini-cart-item .remove:hover { color: #e0245e !important; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 20px 0; margin: 0; border-top: 1px solid #eee; font-weight: 600; color: var(--title); }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; padding: 12px 20px 22px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--title); border: 1px solid rgba(0,0,0,.18); }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { border-color: var(--primary); color: var(--primary); background: transparent; }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--muted); padding: 50px 20px; margin: 0; }

/* Cart, checkout, account (classic + blocks) */
.woocommerce-cart .entry, .woocommerce-checkout .entry, .woocommerce-account .entry { background: #fff; border-radius: var(--radius); padding: 30px; }
table.shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.shop_table th, table.shop_table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: middle; }
table.shop_table img { width: 64px; height: auto; }
.cart-collaterals { margin-top: 30px; }
.cart_totals { max-width: 420px; margin-left: auto; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 14px; border-radius: 8px; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--page-bg); color: var(--primary); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.wc-block-components-product-name { font-family: var(--font-title); font-weight: 700; color: var(--title); }

/* Favorites */
.favorites .panel { text-align: center; }

@media (max-width: 1024px) {
  .custom-logo-link img, .logo img { height: 54px; }
  .pdp { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .woocommerce-account .woocommerce, .u-columns.col2-set { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pdp .product_title { font-size: 24px; }
  .woocommerce-cart .entry, .woocommerce-checkout .entry, .woocommerce-account .entry { padding: 18px; }
  .cart-drawer .panel { width: 100%; max-width: 100vw; }
  table.shop_table_responsive thead { display: none; }
  table.shop_table_responsive tr { display: grid; }
  table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 6px 10px; }
  table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; }
}

/* Fixes after WordPress test run */
.entry a.btn, .entry a.button { color: #fff; text-decoration: none; }
.entry a.btn.outline { color: var(--title); }
.entry a.btn.outline:hover { color: var(--primary); }
.admin-bar .drawer .panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer .panel { top: 46px; } }
