/*
Theme Name: QHomeLife
Theme URI: https://qhomelife.com
Author: QHomeLife
Description: Ferguson Light — a clean, white, product-first storefront for QHomeLife. White canvas, slate ink, restrained signal red. Source Sans 3 throughout. WooCommerce native.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: qhomelife
*/

/* ========================================================================
   Tokens — "Ferguson Light"
   ===================================================================== */
:root {
  --bg: #FFFFFF;
  --alt: #F6F6F4;
  --surface: #FFFFFF;
  --ink: #22272C;
  --soft: #5F6B76;
  --line: #E3E5E2;
  --line-d: #C9CEC9;
  --red: #C8102E;
  --navy: #2A3B47;
  --navy-d: #1B2830;
  --link: #1F5C99;
  --ok: #177245;
  --err: #C8102E;
  --stone: #F6F6F4;
  --radius: 8px;
  --shadow: 0 8px 26px rgba(34, 39, 44, 0.10);
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --wrap: 1320px;
}

/* ========================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* clip (not hidden): guards against horizontal overflow without hijacking
   the window scroll container — keeps the native vertical scrollbar */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .45em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }
p { margin: 0 0 1.05em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
::selection { background: #D8E4EF; color: var(--ink); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute;
}

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

/* Buttons */
.btn, .button, button, input[type=submit],
.woocommerce #respond input#submit, .woocommerce a.button,
.woocommerce button.button, .woocommerce input.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 12px 26px;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .button:hover, button:hover, input[type=submit]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--navy-d);
  border-color: var(--navy-d);
  color: #fff;
}
.btn-bronze,
.woocommerce div.product form.cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-bronze:hover { background: var(--navy-d); border-color: var(--navy-d); }
.btn-cream, .btn-line {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-d);
}
.btn-cream:hover, .btn-line:hover { background: var(--alt); color: var(--ink); border-color: var(--navy); }

/* Forms */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235F6B76' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
  cursor: pointer;
}
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], input[type=url], select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(42, 59, 71, .12);
}
label { font-weight: 600; font-size: .9rem; }

/* ========================================================================
   Header — light, search-forward
   ===================================================================== */
.topbar {
  background: var(--alt);
  color: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 16px;
}
.topbar a { color: var(--link); }
.topbar .sep { margin: 0 12px; opacity: .5; }

.site-header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 var(--line); }
.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 12px;
}
.mast-search { order: 2; min-width: 0; }
.mast-search form { display: flex; max-width: 760px; margin: 0 auto; width: 100%; }
.mast-search input[type=search] {
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 13px 18px;
  font-size: 1rem;
  border-color: var(--navy);
  border-width: 2px;
}
.mast-search input[type=search]:focus { box-shadow: none; border-color: var(--navy-d); }
.mast-search button {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 13px 22px;
  background: var(--navy);
  border: 2px solid var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
}
.mast-search button:hover { background: var(--navy-d); }
.mast-search button svg { width: 19px; height: 19px; }

.brand {
  order: 1;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  text-align: left;
}
.brand em { font-style: normal; color: var(--red); }
.brand:hover { color: var(--ink); }
.brand--img { display: inline-flex; align-items: center; }
.brand--img img { height: 62px; width: auto; display: block; }
@media (max-width: 540px) { .brand--img img { height: 44px; } }

.header-tools { order: 3; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  position: relative;
  background: none; border: none; cursor: pointer;
}
.tool-link:hover { background: var(--alt); color: var(--navy); }
.tool-link svg { width: 21px; height: 21px; flex: none; }
.tool-ico { position: relative; display: inline-flex; }
.tool-label { line-height: 1; }
.cart-count {
  position: absolute;
  top: -7px; right: -9px;
  min-width: 17px; height: 17px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  padding: 0 4px;
}
.tool-link > .cart-count { top: 1px; right: 4px; }

.navbar { border-top: none; background: var(--navy); }
.main-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--wrap);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav a {
  display: inline-block;
  padding: 12px 17px;
  color: #DCE4EA;
  font-weight: 600;
  font-size: .94rem;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav .current-menu-item > a {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-bottom-color: var(--red);
}

.nav-toggle { display: none; background: none; border: 1px solid var(--line-d); border-radius: var(--radius); padding: 9px 11px; color: var(--ink); cursor: pointer; }
.drawer-head, .drawer-foot, .nav-overlay { display: none; }
/* the icon toggle duplicates the masthead search bar — only show it when that bar is hidden */
#qh-search-toggle { display: none; }
.search-drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.search-drawer.open { display: block; }
.search-drawer form { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; padding: 14px 24px; }
.search-drawer input[type=search] { flex: 1; }

/* ========================================================================
   Hero — light split
   ===================================================================== */
.hero, .hero-dark { background: var(--alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-dark::after { display: none; }
.hero-grid, .hero-dark .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 52px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hero-grid > * { min-width: 0; }
.hero-dark .kicker { color: var(--red); }
.hero-dark h1 { color: var(--ink); font-size: clamp(2.1rem, 4vw, 3.2rem); }
.hero-dark h1 em { font-style: normal; color: var(--ink); }
.hero p.lead, .hero-dark p.lead { font-size: 1.1rem; color: var(--soft); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.hero-meta b, .hero-dark .hero-meta b { display: block; font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.hero-meta span, .hero-dark .hero-meta span { font-size: .82rem; color: var(--soft); line-height: 1.45; display: block; margin-top: 2px; }
.hero-dark .hero-meta { border-top-color: var(--line-d); }

.hero-visual { position: relative; padding: 0; }
.hero-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  background: #fff;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp { display: none; }
.hero-chip {
  position: absolute;
  left: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow);
  max-width: 300px;
}
.hero-chip img { width: 52px; height: 52px; object-fit: contain; background: var(--alt); border-radius: 7px; padding: 5px; }
.hero-chip b { display: block; font-size: .84rem; color: var(--ink); line-height: 1.3; }
.hero-chip em { font-style: normal; font-size: .78rem; color: var(--link); font-weight: 700; }

/* ========================================================================
   Sections
   ===================================================================== */
.section { padding: 46px 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  max-width: none;
  margin: 0 0 22px;
}
.section-head .sh-left { min-width: 0; }
.section-head h2 { margin: 0; font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.section-head p { color: var(--soft); margin: 4px 0 0; font-size: .95rem; }
.section-head .section-link { flex: none; margin: 0 0 3px; font-weight: 700; font-size: .92rem; color: var(--link); white-space: nowrap; }
.section-head .section-link:hover { text-decoration: underline; }
.eyebrow-rule { display: flex; align-items: center; gap: 0; margin-bottom: 4px; }
.eyebrow-rule i { display: none; }
.eyebrow-rule span { font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* Department tiles — clean white cards */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-tile {
  position: relative;
  min-height: 180px;
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow: hidden;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dept-tile:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.tint-sand, .tint-clay, .tint-porcelain, .tint-sage, .tint-moss, .tint-greige { background: #fff; }
.dept-no { display: none; }
.dept-info { position: absolute; left: 22px; bottom: 18px; max-width: 55%; }
.dept-info b { display: block; font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.dept-info > span { font-size: .84rem; font-weight: 600; color: var(--link); }
.dept-img {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.dept-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s ease; }
.dept-tile:hover .dept-img img { transform: scale(1.05); }

/* Product cards */
.p-grid, .bento-cards { display: grid; gap: 26px 20px; }
.p-grid { grid-template-columns: repeat(4, 1fr); }
.bento { display: grid; grid-template-columns: 1.05fr 1.45fr; gap: 20px; align-items: stretch; }
.bento-cards { grid-template-columns: 1fr 1fr; }
.p-card { display: flex; flex-direction: column; color: var(--ink); }
.p-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.p-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.p-card:hover .p-media { border-color: var(--line-d); box-shadow: var(--shadow); }
.p-card:hover .p-media img { transform: scale(1.04); }
.p-brand { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 2px; }
.p-name {
  font-size: .95rem;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-card:hover .p-name { color: var(--link); }
.p-price { font-weight: 800; font-size: 1.02rem; margin-top: 6px; color: var(--ink); }
.p-price del { color: var(--soft); opacity: .7; font-weight: 400; margin-right: 6px; }
.p-price ins { text-decoration: none; }
.p-ship, .loop-ship { display: block; font-size: .78rem; font-weight: 700; color: var(--ok); margin-top: 3px; }

.bento-feature {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
}
.bento-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.bento-feature:hover img { transform: scale(1.03); }
.bento-label {
  position: absolute;
  left: 16px; right: auto; bottom: 16px;
  max-width: 320px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bento-label .kicker { color: var(--red) !important; margin-bottom: 4px; }
.bento-label b {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 2px 0 8px;
}
.bento-cta { font-size: .88rem; font-weight: 700; color: var(--link); }
.bento-feature:hover .bento-cta { text-decoration: underline; }

/* Wide banner */
.banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  border-radius: var(--radius);
  padding: 44px 52px;
  border: 1px solid var(--line);
  background: var(--alt);
}
.tint-porcelain.banner { background: var(--alt); }
.banner-copy h2 { margin-bottom: 12px; }
.banner-copy p { color: var(--soft); max-width: 36em; }
.banner-img { display: flex; align-items: center; justify-content: center; }
.banner-img img { max-height: 300px; object-fit: contain; border-radius: var(--radius); }

/* Value props */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 13px; align-items: flex-start; }
.prop i {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.prop i svg { width: 21px; height: 21px; }
.prop b { display: block; font-size: .95rem; }
.prop span { display: block; font-size: .84rem; color: var(--soft); }

/* Brand strip — single-row infinite marquee of wordmark logos */
.brand-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.brand-track {
  display: flex;
  width: max-content;
  animation: qh-marquee 36s linear infinite;
}
.brand-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
@keyframes qh-marquee { to { transform: translateX(-50%); } }
.brand-logos span { display: inline-flex; flex: none; opacity: .72; transition: opacity .15s ease; }
.brand-logos span:hover { opacity: 1; }
.brand-logos svg { height: 38px; width: auto; display: block; }
@media (max-width: 820px) {
  .brand-logos svg { height: 30px; }
  .brand-set { gap: 40px; padding-right: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Promise band — light */
.band {
  background: var(--alt);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 46px 52px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band::after { display: none; }
.band h2 { color: var(--ink); }
.band p { color: var(--soft); }
.band a { color: var(--link); font-weight: 700; }
.band a:hover { text-decoration: underline; }
.band .kicker { color: var(--red) !important; }
.band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.band-points li { display: flex; gap: 11px; align-items: start; font-size: .95rem; color: var(--ink); }
.band-points svg { width: 19px; height: 19px; color: var(--ok); flex: none; margin-top: 3px; }

/* Policy trio */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border: none; }
.policy-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.policy-card:first-child { padding-left: 26px; }
.policy-card h3 { font-size: 1.12rem; }
.policy-card p { color: var(--soft); font-size: .93rem; }
.policy-card a { font-weight: 700; font-size: .9rem; color: var(--link); }
.policy-card a:hover { text-decoration: underline; }

/* ========================================================================
   WooCommerce — loop
   ===================================================================== */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none !important; content: none !important; }

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  list-style: none;
  margin: 0 !important;
  padding: 0;
}
ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 0 12px !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
ul.products li.product:hover img { border-color: var(--line-d); box-shadow: var(--shadow); }
.loop-brand {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 2px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-body);
  font-size: .95rem !important;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  padding: 0 !important;
}
ul.products li.product:hover .woocommerce-loop-product__title { color: var(--link); }
ul.products li.product .price {
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 1.02rem !important;
  margin-top: auto !important;
  padding-top: 7px;
}
ul.products li.product .price del { color: var(--soft); opacity: .7; font-weight: 400; margin-right: 6px; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product .button {
  margin-top: 10px;
  padding: 9px 16px;
  font-size: .86rem;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line-d);
  align-self: flex-start;
}
ul.products li.product .button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.woocommerce span.onsale, span.onsale {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 5px !important;
  font-weight: 700;
  font-size: .74rem !important;
  line-height: 1 !important;
  padding: 6px 9px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  top: 10px !important;
  left: 10px !important;
  position: absolute;
  z-index: 5;
}
.oos-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line-d);
  color: var(--soft);
  border-radius: 5px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.woocommerce .woocommerce-result-count { color: var(--soft); font-size: .9rem; padding-top: 10px; }
.woocommerce .woocommerce-ordering select {
  width: auto;
  padding: 10px 38px 10px 14px;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 999px;
  border-color: var(--line-d);
  background-color: #fff;
}
.woocommerce .woocommerce-ordering select:hover { border-color: var(--navy); }

/* Custom sort dropdown (replaces the native picker) */
.qh-select { position: relative; display: inline-block; }
.qh-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line-d);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease;
}
.qh-select-btn:hover { background: #fff; border-color: var(--navy); color: var(--ink); }
.qh-select-btn svg { width: 14px; height: 14px; color: var(--soft); transition: transform .18s ease; }
.qh-select.open .qh-select-btn { border-color: var(--navy); }
.qh-select.open .qh-select-btn svg { transform: rotate(180deg); }
.qh-select-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 235px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(34, 39, 44, .16);
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.qh-select.open .qh-select-list { opacity: 1; visibility: visible; transform: none; }
.qh-select-list li {
  position: relative;
  padding: 9px 14px 9px 34px;
  border-radius: 7px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.qh-select-list li:hover { background: var(--alt); color: var(--navy); }
.qh-select-list li.active { color: var(--navy); }
.qh-select-list li.active::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A3B47' stroke-width='3'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce nav.woocommerce-pagination { margin-top: 42px; }
.woocommerce nav.woocommerce-pagination ul { border: none; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Shop hero */
.shop-hero { background: var(--alt); border-bottom: 1px solid var(--line); padding: 34px 0 30px; margin-bottom: 40px; text-align: center; }
.shop-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.shop-hero .woocommerce-breadcrumb { margin: 0 0 8px !important; font-size: .82rem !important; color: var(--soft) !important; }
.shop-hero .woocommerce-breadcrumb a { color: var(--link); }
.shop-hero p.archive-desc { color: var(--soft); margin: 8px auto 0; max-width: 58em; }
.woo-main { padding-bottom: 72px; }

/* ========================================================================
   Single product
   ===================================================================== */
/* Fixed square gallery frame — image always contained, never cropped/oversized */
.woocommerce div.product div.images { max-width: 520px; }
.woocommerce div.product div.images > .flex-viewport,
.woocommerce div.product div.images > figure.woocommerce-product-gallery__wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
/* Woo ships this at z-index 99 — keep it under our drawers/overlays (92+) */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { z-index: 9 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { display: block; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 18px;
  border: none;
  border-radius: 0;
}
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: 64px; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  opacity: .7;
  cursor: pointer;
  padding: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--navy); }

.pdp-brand {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}
.pdp-brand .mpn { color: var(--soft); letter-spacing: .02em; text-transform: none; font-weight: 400; }
.woocommerce div.product .product_title { font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.woocommerce div.product p.price { color: var(--ink) !important; font-size: 1.5rem; font-weight: 800; margin-top: 8px; }
.woocommerce div.product p.price del { opacity: .55; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--soft); }

.woocommerce div.product form.cart { margin: 24px 0; padding: 20px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce div.product form.cart div.quantity { margin-right: 12px; }
.woocommerce .quantity .qty { width: 80px; text-align: center; }
.woocommerce div.product form.cart .variations { margin-bottom: 12px; }
.woocommerce div.product form.cart .variations td.label { padding-right: 14px; font-weight: 700; }
.woocommerce div.product form.cart .variations select { min-width: 200px; }
.woocommerce div.product form.cart .button { padding: 13px 34px; }
.woocommerce div.product .product_meta { color: var(--soft); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 14px; }
.woocommerce div.product .product_meta a { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--ok); font-weight: 700; }
.woocommerce div.product .stock.out-of-stock { color: var(--err); font-weight: 700; }

.product-assurance { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; display: grid; gap: 9px; }
.product-assurance div { display: flex; gap: 11px; align-items: center; font-size: .89rem; color: var(--ink); }
.product-assurance svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.product-assurance a { font-weight: 700; color: var(--link); }

.woocommerce div.product .woocommerce-tabs { margin-top: 44px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; border: none; display: flex; gap: 24px; border-bottom: 1px solid var(--line-d); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: none; background: none; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 11px 2px; font-weight: 700; color: var(--soft); border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--red); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 24px 0 0; }
.related.products, .upsells.products { margin-top: 56px; }
.related.products > h2, .upsells.products > h2 { font-size: 1.5rem; margin-bottom: 22px; text-align: center; }
/* related: single scrollable row */
.related.products ul.products, .upsells.products ul.products {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: none !important;
  grid-auto-columns: calc((100% - 60px) / 4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-d) transparent;
}
.related.products ul.products::-webkit-scrollbar, .upsells.products ul.products::-webkit-scrollbar { height: 8px; }
.related.products ul.products::-webkit-scrollbar-thumb, .upsells.products ul.products::-webkit-scrollbar-thumb { background: var(--line-d); border-radius: 999px; }
.related.products ul.products::-webkit-scrollbar-track, .upsells.products ul.products::-webkit-scrollbar-track { background: transparent; }
.related.products ul.products li.product, .upsells.products ul.products li.product { scroll-snap-align: start; }
@media (max-width: 820px) {
  .related.products ul.products, .upsells.products ul.products { grid-auto-columns: 46%; gap: 14px; }
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--navy) !important;
  background: #fff !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink) !important;
  position: relative;
  padding: 14px 18px 14px 46px !important;
  line-height: 1.55;
}
/* Woo draws notice icons with its icon font (not loaded here) — use SVGs instead */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  content: "" !important;
  position: absolute !important;
  left: 16px !important;
  top: 15px !important;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat;
}
.woocommerce-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A3B47' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-5M12 8h.01'/%3E%3C/svg%3E");
}
.woocommerce-message::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177245' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.6 2.6L16 9.5'/%3E%3C/svg%3E");
}
.woocommerce-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A03D2E' stroke-width='2'%3E%3Cpath d='M12 3 2.5 20h19z'/%3E%3Cpath d='M12 9.5V14M12 17h.01'/%3E%3C/svg%3E");
}
.woocommerce-error { border-top-color: var(--err) !important; }

/* ========================================================================
   Cart / Checkout / Account
   ===================================================================== */
.wc-page { padding-top: 38px; padding-bottom: 90px; }
.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}
.woocommerce table.shop_table thead th { background: var(--alt); color: var(--ink); }
/* horizontal hairlines only — no vertical cell borders, no doubled lines */
.woocommerce table.shop_table td, .woocommerce table.shop_table th {
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 12px 14px;
}
.woocommerce table.shop_table thead th { border-bottom: 1px solid var(--line-d) !important; }
.woocommerce table.shop_table tbody:last-child tr:last-child td,
.woocommerce table.shop_table tbody:last-child tr:last-child th,
.woocommerce table.shop_table tfoot tr:last-child td,
.woocommerce table.shop_table tfoot tr:last-child th { border-bottom: none !important; }
.woocommerce a.remove { color: var(--err) !important; }
.woocommerce a.remove:hover { background: var(--err); color: #fff !important; }
.woocommerce form.checkout_coupon, .woocommerce form.login { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 20px; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { float: none; width: 100%; }

/* ---- Cart: items left, sticky totals right ---- */
.woocommerce-cart .wc-page .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
/* Woo clearfix pseudos become phantom grid cells here too */
.woocommerce-cart .wc-page .woocommerce::before,
.woocommerce-cart .wc-page .woocommerce::after { display: none !important; content: none !important; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; grid-row: 1; }
.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 1; }
.woocommerce-cart .wc-page .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { min-width: 0; }
.woocommerce-cart table.shop_table thead th {
  background: transparent;
  border-bottom: 1px solid var(--line-d) !important;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--soft);
}
.woocommerce-cart table.shop_table td { padding: 16px 14px; vertical-align: middle; }
.woocommerce-cart table.shop_table td.product-thumbnail img {
  width: 82px !important;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.woocommerce-cart table.shop_table td.product-name a { color: var(--ink); font-weight: 600; }
.woocommerce-cart table.shop_table td.product-name a:hover { color: var(--link); }
.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal { font-weight: 700; white-space: nowrap; }
.woocommerce-cart table.shop_table .quantity .qty { width: 70px; padding: 8px; }
.woocommerce-cart td.actions { padding-top: 18px !important; }
.woocommerce-cart td.actions .coupon { display: inline-flex; gap: 8px; float: left; }
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-page table.cart td.actions .coupon .input-text {
  width: 240px;
  padding: 10px 14px;
  font-size: .95rem;
}
.woocommerce-cart td.actions .button { padding: 11px 20px; font-size: .9rem; }
/* disabled state (e.g. "Update cart" before any change) — readable, clearly inactive */
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled[disabled] {
  background: var(--alt);
  color: var(--soft);
  border: 1px solid var(--line-d);
  cursor: not-allowed;
  opacity: 1;
  padding: 11px 20px;
}
.woocommerce button.button:disabled:hover,
.woocommerce button.button.disabled:hover {
  background: var(--alt);
  color: var(--soft);
  border-color: var(--line-d);
}
.woocommerce-cart .cart-collaterals { position: sticky; top: 108px; width: auto; min-width: 0; }
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.woocommerce-cart .cart_totals h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; }
.woocommerce-cart .cart_totals table.shop_table { border: none; }
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
  background: transparent;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 12px 0;
}
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-size: 1.08rem; font-weight: 800; border-bottom: none !important; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 14px 0 0; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0; padding: 15px; font-size: 1rem; }
.cart-empty.woocommerce-info { grid-column: 1 / -1; }
.woocommerce-cart .return-to-shop { grid-column: 1 / -1; }
.woocommerce-cart .return-to-shop a.button { background: var(--navy); color: #fff; }
.woocommerce-cart .cross-sells { grid-column: 1 / -1; margin-top: 26px; }
.woocommerce-cart .cross-sells > h2 { font-size: 1.3rem; margin-bottom: 16px; }

/* ---- Checkout: form left, sticky order summary right ---- */
.woocommerce-checkout .wc-page form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 32px;
  align-items: start;
}
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 4; min-width: 0; }
.woocommerce-checkout form.checkout h3 {
  font-size: 1.15rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
}
.woocommerce-checkout form.checkout .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce-checkout form.checkout label { display: block; margin-bottom: 5px; font-size: .88rem; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 48.5%; }
.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: none;
}
.woocommerce-checkout .wc-page #order_review {
  grid-column: 2;
  grid-row: 2;
  position: sticky;
  top: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table { border: none; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td {
  background: transparent;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  padding: 11px 0;
  font-size: .93rem;
}
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table .order-total td { font-size: 1.05rem; font-weight: 800; }
.woocommerce-checkout #payment { margin-top: 14px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle { margin-bottom: 14px; }

@media (max-width: 980px) {
  .woocommerce-cart .wc-page .woocommerce,
  .woocommerce-checkout .wc-page form.checkout { grid-template-columns: 1fr; }
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout .wc-page #order_review { position: static; }
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout .wc-page #order_review { grid-column: 1; grid-row: auto; }
}

.woocommerce-checkout #payment { background: var(--alt); border-radius: var(--radius); border: 1px solid var(--line); }
.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
#add_payment_method #payment ul.payment_methods, .woocommerce-cart #payment ul.payment_methods, .woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.woocommerce-checkout #payment #place_order { width: 100%; font-size: 1.02rem; padding: 15px; }
/* NOTE: no !important here — gateway plugins keep their own hidden blocks hidden */
#vgc-stripe-pay { display: block; }

/* ---- Order received / order pay ---- */
.woocommerce-thankyou-order-received {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F5C38;
  background: #EBF3EC;
  border: 1px solid #C8DCCC;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 22px;
}
.woocommerce-thankyou-order-received::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23177245' stroke-width='2.4'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.6 2.6L16 9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 32px !important;
  padding: 0;
}
/* Woo clearfix pseudos = phantom grid cells */
ul.woocommerce-order-overview::before,
ul.woocommerce-order-overview::after { display: none !important; content: none !important; }
ul.woocommerce-order-overview li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  padding: 13px 16px !important;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
}
ul.woocommerce-order-overview li strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  margin-top: 4px;
  font-weight: 700;
}
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 1.3rem; margin-bottom: 14px; }
.woocommerce-customer-details address {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  padding: 18px 20px !important;
  font-style: normal;
  line-height: 1.8;
}
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email { margin: 6px 0 0; color: var(--soft); }
.woocommerce table.shop_table td .button { padding: 10px 22px; font-size: .88rem; margin-right: 6px; }
.woocommerce-order-pay #payment { background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-order-pay #payment .form-row { padding: 14px 18px; }
.woocommerce-order-pay #payment #place_order { width: 100%; padding: 15px; font-size: 1.02rem; }

@media (max-width: 600px) {
  /* overview: big order-number card on top, date/total side by side */
  ul.woocommerce-order-overview { grid-template-columns: 1fr 1fr; gap: 10px; }
  ul.woocommerce-order-overview li:first-child { grid-column: 1 / -1; }
  /* tighter order tables */
  .woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 10px 9px; font-size: .9rem; }
  /* my-account orders list only — on order-pay/received this nowrap hits long
     tfoot values (shipping method, payment method) and blows the table out */
  .woocommerce-account table.shop_table td:nth-child(2), .woocommerce-account table.shop_table th:nth-child(2) { white-space: nowrap; }
  .woocommerce table.shop_table td .button { display: inline-block; margin: 2px 6px 2px 0; padding: 9px 16px; font-size: .84rem; }
  /* order-pay review table: rebuilt as flex rows further down */
  .woocommerce-order-pay table.shop_table td, .woocommerce-order-pay table.shop_table th { white-space: normal; overflow-wrap: break-word; }
}

/* ---- vgcpayment-connect receipt card (order received) ----
   The gateway plugin inlines its own receipt CSS after ours and sets
   white-space:nowrap + text-align:right on EVERY td, so long product names
   can't wrap and push the amount column off-screen on mobile. Patch it here
   instead of editing the plugin. */
.wc-page .woocommerce-order { font-family: inherit; }
.wc-page .woocommerce-order table.shop_table { table-layout: fixed; }
.wc-page .woocommerce-order table.shop_table thead th.product-name { width: 60%; }
.wc-page .woocommerce-order table.shop_table td.product-name,
.wc-page .woocommerce-order table.shop_table tfoot th {
  white-space: normal !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}
/* long tfoot values (shipping method, payment method) must wrap too —
   the plugin's overflow:hidden card silently clips them otherwise */
.wc-page .woocommerce-order table.shop_table tfoot td {
  white-space: normal !important;
  overflow-wrap: break-word;
}
.wc-page .woocommerce-order table.shop_table td.product-name .product-quantity { color: var(--soft); font-weight: 600; }
.wc-page .woocommerce-order table.shop_table td .order-actions-button {
  display: inline-block;
  margin: 3px 0 3px 8px;
  white-space: nowrap;
}

/* failed-payment state: plain template text → error card */
.wc-page .woocommerce-order .woocommerce-thankyou-order-failed {
  margin: 1.1rem 1.1rem 0;
  padding: 14px 16px;
  background: #FBEDEE;
  border: 1px solid #F0C9CE;
  border-radius: 10px;
  color: #8A1F2E;
  font-weight: 600;
  line-height: 1.55;
}
.wc-page .woocommerce-order .woocommerce-thankyou-order-failed-actions { margin: 12px 1.1rem 1.4rem; }
.wc-page .woocommerce-order .woocommerce-thankyou-order-failed-actions .button { margin-right: 8px; }

@media (max-width: 600px) {
  /* plugin adds its own 1rem side margin inside our padded .wrap — reclaim it */
  .wc-page .woocommerce-order { margin-left: 0 !important; margin-right: 0 !important; }
  .wc-page .woocommerce-order .woocommerce-order-overview,
  .wc-page .woocommerce-order .woocommerce-order-details,
  .wc-page .woocommerce-order .woocommerce-customer-details { padding-left: 1rem; padding-right: 1rem; }

  /* Rebuild the receipt table as flex rows — real table layout squeezes long
     values into one-word-per-line columns at 390px. Label left, value right. */
  .wc-page .woocommerce-order table.shop_table,
  .wc-page .woocommerce-order table.shop_table tbody,
  .wc-page .woocommerce-order table.shop_table tfoot { display: block; width: 100%; }
  .wc-page .woocommerce-order table.shop_table thead { display: none; }
  .wc-page .woocommerce-order table.shop_table tr {
    display: flex;
    align-items: baseline;
    gap: 4px 12px;
    padding: .7rem .1rem;
    border-bottom: 1px solid #eef1f5;
  }
  .wc-page .woocommerce-order table.shop_table th,
  .wc-page .woocommerce-order table.shop_table td {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-size: .92rem;
  }
  .wc-page .woocommerce-order table.shop_table td.product-name { flex: 1 1 auto; }
  .wc-page .woocommerce-order table.shop_table td.product-total { flex: 0 0 auto; margin-left: auto; }
  .wc-page .woocommerce-order table.shop_table tfoot th { flex: 0 0 auto; }
  .wc-page .woocommerce-order table.shop_table tfoot td { flex: 0 1 auto; margin-left: auto; max-width: 62%; text-align: right !important; }
  /* actions row: label on top, full-width tap-friendly buttons under it */
  .wc-page .woocommerce-order table.shop_table tfoot tr:has(.order-actions-button) { display: block; border-bottom: none; }
  .wc-page .woocommerce-order table.shop_table tfoot tr:has(.order-actions-button) td { max-width: none; margin: 0; text-align: left !important; }
  .wc-page .woocommerce-order table.shop_table td .order-actions-button {
    display: block;
    width: auto;
    margin: 8px 0 0;
    text-align: center;
    padding: 12px 16px;
    font-size: .92rem;
  }

  /* Order-pay review table: same flex-row treatment */
  .woocommerce-order-pay .wc-page table.shop_table,
  .woocommerce-order-pay .wc-page table.shop_table tbody,
  .woocommerce-order-pay .wc-page table.shop_table tfoot { display: block; width: 100%; border: none; }
  .woocommerce-order-pay .wc-page table.shop_table thead { display: none; }
  .woocommerce-order-pay .wc-page table.shop_table tr {
    display: flex;
    align-items: baseline;
    gap: 4px 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
  }
  .woocommerce-order-pay .wc-page table.shop_table tr:last-child { border-bottom: none; }
  .woocommerce-order-pay .wc-page table.shop_table th,
  .woocommerce-order-pay .wc-page table.shop_table td {
    display: block;
    padding: 0 !important;
    border: none !important;
    font-size: .92rem;
  }
  .woocommerce-order-pay .wc-page table.shop_table td.product-name { flex: 1 1 auto; }
  .woocommerce-order-pay .wc-page table.shop_table td.product-quantity { flex: 0 0 auto; color: var(--soft); }
  .woocommerce-order-pay .wc-page table.shop_table td.product-subtotal { flex: 0 0 auto; margin-left: auto; font-weight: 700; }
  .woocommerce-order-pay .wc-page table.shop_table tfoot th { flex: 0 0 auto; font-weight: 700; }
  .woocommerce-order-pay .wc-page table.shop_table tfoot td.product-total { flex: 0 1 auto; margin-left: auto; max-width: 62%; text-align: right; }

  /* order-pay: tighter payment box around the embedded card form */
  .woocommerce-order-pay #payment .form-row { padding: 12px; }
}

/* ---- Account: sidebar + content ---- */
.woocommerce-account .wc-page .woocommerce {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 20px 28px;
  align-items: start;
}
/* Woo clearfix pseudos = phantom grid cells — kill + pin real children */
.woocommerce-account .wc-page .woocommerce::before,
.woocommerce-account .wc-page .woocommerce::after { display: none !important; content: none !important; }
.woocommerce-account .wc-page .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; grid-row: auto; }
/* Woo's float layout forces width 30%/68% — neutralize inside the grid */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; }

/* user identity card */
.qh-acct-user {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--navy);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
}
.qh-acct-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qh-acct-meta { min-width: 0; }
.qh-acct-meta b { display: block; color: #fff; font-size: 1rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qh-acct-meta em { display: block; font-style: normal; color: #B8C4CD; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Cloudflare email obfuscation wraps the address in an <a> — keep it looking
   like the surrounding text on the navy card, not a blue link. */
.qh-acct-meta a { color: inherit; text-decoration: none; }
.qh-acct-meta a:hover { color: inherit; }

/* navigation as one unified card */
.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-column: 1;
  grid-row: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.woocommerce-account .wc-page .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; grid-row: 1 / span 3; }
.woocommerce-account.woocommerce-lost-password .wc-page .woocommerce,
.woocommerce-account .wc-page .woocommerce:has(> .woocommerce-form-login),
.woocommerce-account .wc-page .woocommerce:has(#customer_login) { display: block; max-width: none; margin: 0; }
.woocommerce-account .wc-page .woocommerce:has(> .woocommerce-form-login) { max-width: 480px; margin: 0 auto; }
.woocommerce-account .wc-page .woocommerce-form-login { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #fff; }

/* Login | Register side by side */
.woocommerce-account #customer_login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
/* Woo's clearfix pseudos become phantom grid cells — kill them */
.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after { display: none !important; content: none !important; }
.woocommerce-account #customer_login .col-1 { grid-column: 1; grid-row: 1; }
.woocommerce-account #customer_login .col-2 { grid-column: 2; grid-row: 1; }
@media (max-width: 820px) {
  .woocommerce-account #customer_login .col-1 { grid-column: 1; grid-row: 1; }
  .woocommerce-account #customer_login .col-2 { grid-column: 1; grid-row: 2; }
}
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
  float: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
}
.woocommerce-account #customer_login h2 { font-size: 1.25rem; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.woocommerce-account #customer_login form { border: none; padding: 0; margin: 0; }
.woocommerce-account #customer_login .form-row { margin-bottom: 14px; }
.woocommerce-account #customer_login label { display: block; margin-bottom: 5px; }
.woocommerce-account #customer_login button.button { width: 100%; padding: 13px; }
.woocommerce-account #customer_login .lost_password { font-size: .88rem; margin: 10px 0 0; }
.woocommerce-account #customer_login .woocommerce-privacy-policy-text { font-size: .84rem; color: var(--soft); }
@media (max-width: 820px) { .woocommerce-account #customer_login { grid-template-columns: 1fr; } }

/* Social login buttons (Nextend) inside Woo forms */
.woocommerce form .nsl-container { margin-top: 14px; }
@media (max-width: 820px) {
  .woocommerce-account .wc-page .woocommerce { grid-template-columns: 1fr; grid-template-rows: none; }
  .qh-acct-user { grid-column: 1; grid-row: 1; }
  .woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2; }
  .woocommerce-account .wc-page .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; grid-row: 3; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr 1fr; }
  .woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { grid-column: 1 / -1; }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block; padding: 11px 14px; border: none;
  border-radius: 8px; background: transparent; font-weight: 600; color: var(--ink);
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--alt); color: var(--navy); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--navy); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--err); }
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #FAECEC; color: var(--err); }

/* content panel */
.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  min-width: 0;
}
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-MyAccount-content mark { background: #FBF0D9; padding: 0 5px; border-radius: 3px; font-weight: 700; }
.woocommerce-MyAccount-content .woocommerce-Button, .woocommerce-MyAccount-content .button { padding: 11px 22px; }

/* addresses: two cards side by side (kill Woo clearfix phantom cells) */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display: none !important; content: none !important; }
.woocommerce-account .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-Addresses .col-2 { float: none; width: 100%; }
.woocommerce-account .woocommerce-Address { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--alt); }
.woocommerce-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.woocommerce-account .woocommerce-Address-title h3 { font-size: 1.05rem; margin: 0 0 8px; }
.woocommerce-account .woocommerce-Address-title .edit { font-size: .85rem; font-weight: 700; }
.woocommerce-account .woocommerce-Address address { font-style: normal; line-height: 1.7; color: var(--soft); }

/* account/edit forms */
.woocommerce-MyAccount-content form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce-MyAccount-content form label { display: block; margin-bottom: 5px; font-size: .88rem; }
.woocommerce-MyAccount-content fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}
.woocommerce-MyAccount-content fieldset legend { font-weight: 700; padding: 0 8px; font-size: .95rem; }

/* orders table actions */
.woocommerce-MyAccount-content table.shop_table .button { padding: 8px 14px; font-size: .82rem; margin: 2px 4px 2px 0; }
.woocommerce-MyAccount-content table.shop_table .button.view { background: #fff; color: var(--navy); border: 1px solid var(--line-d); }
.woocommerce-MyAccount-content table.shop_table .button.view:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.woocommerce-MyAccount-content table.shop_table .button.cancel { background: #fff; color: var(--err); border: 1px solid #E5C8C0; }
.woocommerce-MyAccount-content table.shop_table .button.cancel:hover { background: var(--err); color: #fff; border-color: var(--err); }
.woocommerce-orders-table__cell-order-number a { font-weight: 800; }

/* order status chips */
.qh-status {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  background: var(--alt);
  color: var(--soft);
  border: 1px solid var(--line);
}
.qh-status--pending    { background: #FBF3DE; color: #8A6116; border-color: #EBD9AC; }
.qh-status--processing { background: #E7F0FA; color: #1F5C99; border-color: #C4DCF2; }
.qh-status--on-hold    { background: #F3EDE3; color: #7A5C2E; border-color: #E4D5BB; }
.qh-status--completed  { background: #EBF3EC; color: #177245; border-color: #C8DCCC; }
.qh-status--cancelled  { background: #F2F2F0; color: #6B7076; border-color: #DDDFDC; }
.qh-status--refunded   { background: #F0EAF6; color: #6B4A9E; border-color: #DCCEEE; }
.qh-status--failed     { background: #FAECEC; color: #A03D2E; border-color: #EAC5C5; }

/* dashboard quick cards */
.qh-dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.qh-dash-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.qh-dash-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.qh-dash-card i {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--alt);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.qh-dash-card i svg { width: 21px; height: 21px; }
.qh-dash-card b { display: block; font-size: 1rem; margin-bottom: 4px; }
.qh-dash-card span { font-size: .85rem; color: var(--soft); line-height: 1.5; }
@media (max-width: 820px) { .qh-dash-grid { grid-template-columns: 1fr; } }

/* Woo smallscreen CSS hides tbody th — brings back the order number on mobile */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number,
  .woocommerce-page table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number {
    display: block !important;
    text-align: right;
    padding: 10px 9px;
    border-bottom: 1px solid var(--line) !important;
    background: var(--alt);
  }
  .woocommerce table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number::before {
    content: attr(data-title) ': ';
    float: left;
    font-weight: 700;
  }
}

/* account forms readable width */
.woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
.woocommerce-MyAccount-content form.edit-account { max-width: 620px; }
.woocommerce-MyAccount-content .woocommerce-address-fields { max-width: 620px; }

@media (max-width: 820px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr 1fr; }
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 18px; }
}

/* ========================================================================
   Prose pages / Contact
   ===================================================================== */
.page-hero { background: var(--alt); border-bottom: 1px solid var(--line); padding: 42px 0 36px; text-align: center; }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page-hero p { color: var(--soft); margin: 10px auto 0; max-width: 48em; }
.page-hero .kicker { margin-bottom: 6px; }
.page-hero .help-updated { font-size: .84rem; color: var(--soft); margin-top: 8px; }

/* Help-center layout for policy/info pages */
.help-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 84px;
}
.help-nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.help-nav-box, .help-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.help-nav-box > b, .help-card > b {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}
.help-nav-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.help-nav-box a {
  display: block;
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
}
.help-nav-box a:hover { background: var(--alt); color: var(--navy); }
.help-nav-box a.current { background: var(--navy); color: #fff; }
.help-card p { font-size: .85rem; color: var(--soft); margin: 0 0 10px; }
.help-card .help-mail { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; word-break: break-all; }
.help-card .help-addr { display: block; font-size: .84rem; color: var(--soft); line-height: 1.55; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-d); }
.help-card .help-addr:hover { color: var(--navy); }

.help-body { max-width: none; margin: 0; padding: 0; min-width: 0; }
.help-body > h2:first-child { margin-top: 0; }
.help-body h2 {
  font-size: 1.4rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-top: 1.7em;
}
.help-body h3 { color: var(--navy); }
.help-body ul li::marker { color: var(--red); }
.help-body a { color: var(--link); }

@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  .help-nav { position: static; }
  .help-nav-box ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .help-nav-box a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem; }
  .help-nav-box a.current { border-color: var(--navy); }
  .help-card { display: none; }
}
.page-prose { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.page-prose h2 { margin-top: 1.5em; font-size: 1.45rem; }
.page-prose h2:first-child { margin-top: 0; }
.page-prose h3 { margin-top: 1.3em; font-size: 1.08rem; font-weight: 700; }
.page-prose ul { padding-left: 1.3em; }
.page-prose li { margin-bottom: .45em; }
.page-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-prose th { background: var(--alt); text-align: left; }
.page-prose th, .page-prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.page-prose tr:last-child td { border-bottom: none; }
.page-prose a { font-weight: 700; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 80px; align-items: start; }
.contact-info, .contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-info h2, .contact-form h2 { font-size: 1.35rem; }
.contact-line { display: flex; gap: 13px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line svg { width: 21px; height: 21px; color: var(--navy); flex: none; margin-top: 3px; }
.contact-line b { display: block; font-size: .95rem; }
.contact-line span, .contact-line a { font-size: .92rem; color: var(--soft); }
.contact-line a { color: var(--link); font-weight: 700; }
.contact-form .form-row { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 6px; }
.form-notice { border-radius: var(--radius); padding: 13px 17px; margin-bottom: 16px; font-weight: 700; }
.form-notice.ok { background: #EBF3EC; border: 1px solid #C4DCC8; color: var(--ok); }
.form-notice.err { background: #FAECEC; border: 1px solid #EAC5C5; color: var(--err); }

/* ========================================================================
   Footer — dark navy
   ===================================================================== */
.site-footer { background: var(--navy-d); color: #A9B6BF; border-top: none; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 54px 24px 40px;
}
.site-footer .f-brand { font-weight: 800; font-size: 1.55rem; color: #fff; letter-spacing: -.02em; }
.site-footer .f-brand em { font-style: normal; color: #F0565F; }
.site-footer .f-brand--light { display: inline-block; margin-bottom: 6px; }
.site-footer .f-brand--light img { height: 72px; width: auto; display: block; }
.site-footer .f-brand--mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.site-footer .f-mark {
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex: none;
}
.site-footer .f-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .f-word { color: #fff; font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; }
.site-footer .f-word em { font-style: normal; color: #F0565F; }
.site-footer p { font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #A9B6BF; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.f-addr { font-style: normal; font-size: .92rem; line-height: 1.7; }
.f-addr a { color: #8FC1F0; font-weight: 700; }
.f-addr a.f-map { color: #A9B6BF; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #4A5B66; }
.f-addr a.f-map:hover { color: #fff; text-decoration-color: #fff; }
.f-social { display: flex; gap: 9px; margin-top: 18px; }
.f-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #3C4E5A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C6D1D9;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.f-social a:hover { background: #fff; color: var(--navy-d); border-color: #fff; }
.f-social svg { width: 18px; height: 18px; }
.f-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f-apps a { display: block; transition: opacity .15s ease, transform .15s ease; }
.f-apps a:hover { opacity: .85; transform: translateY(-1px); }
.f-apps svg { display: block; width: 142px; height: 42px; }
.footer-bottom { border-top: 1px solid #33454F; background: #16222A; }
.footer-bottom-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 15px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .83rem;
  color: #7E8C96;
}
.pay-badges { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pay-badges svg { display: block; width: 44px; height: 28px; border-radius: 4px; }
@media (max-width: 820px) {
  .footer-bottom-inner { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
}

/* Sitewide trust bar (above footer, non-home pages) */
.trustbar { background: #fff; border-top: 1px solid var(--line); }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.trustbar-inner > div { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--soft); justify-content: center; }
.trustbar-inner svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.trustbar-inner b { color: var(--ink); }
@media (max-width: 820px) { .trustbar-inner { grid-template-columns: 1fr 1fr; gap: 14px 20px; } .trustbar-inner > div { justify-content: flex-start; } }
@media (max-width: 600px) {
  .trustbar-inner { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; padding-bottom: 16px; }
  .trustbar-inner > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .8rem;
    line-height: 1.45;
    align-items: flex-start;
    gap: 8px;
  }
  .trustbar-inner svg { width: 17px; height: 17px; margin-top: 2px; }
}

/* Checkout security note */
.checkout-trust {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #F2F6F3;
  border: 1px solid #D4E2D7;
  border-radius: var(--radius);
  font-size: .84rem;
  color: #2F5540;
  line-height: 1.45;
}
.checkout-trust svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ok); }

/* ========================================================================
   Slide-in cart drawer
   ===================================================================== */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 94vw);
  background: #fff;
  z-index: 96;
  transform: translateX(105%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 50px rgba(20, 26, 31, .2);
}
.cart-drawer.open { transform: none; }
.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 1.05rem;
}
#qh-cart-close { background: none; border: none; color: var(--soft); cursor: pointer; padding: 4px; display: inline-flex; }
#qh-cart-close:hover { color: var(--ink); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 4px 20px 16px; }
.cart-drawer-note {
  padding: 10px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--soft);
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-drawer-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 28, .5);
  z-index: 92;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

/* Mini-cart widget inside the drawer */
.cart-drawer .widget_shopping_cart_content ul.product_list_widget { list-style: none; margin: 0; padding: 0; }
.cart-drawer ul.product_list_widget li.mini_cart_item {
  display: block;
  position: relative;
  min-height: 92px;
  padding: 14px 28px 14px 78px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.cart-drawer ul.product_list_widget li.mini_cart_item a:not(.remove_from_cart_button) {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}
.cart-drawer ul.product_list_widget li.mini_cart_item a:not(.remove_from_cart_button):hover { color: var(--link); }
.cart-drawer ul.product_list_widget li.mini_cart_item img {
  position: absolute;
  left: 0;
  top: 14px;
  width: 64px !important;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  float: none !important;
  margin: 0 !important;
}
.cart-drawer ul.product_list_widget li.mini_cart_item .quantity { display: block; margin-top: 5px; color: var(--soft); font-size: .88rem; font-weight: 600; }
.cart-drawer a.remove_from_cart_button {
  position: absolute !important;
  right: 0; top: 14px;
  width: 22px; height: 22px;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  color: var(--err) !important;
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-drawer a.remove_from_cart_button:hover { background: var(--err); color: #fff !important; }
.cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 6px;
  font-weight: 800;
  border-bottom: none;
  margin: 0;
}
.cart-drawer .woocommerce-mini-cart__buttons {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}
.cart-drawer .woocommerce-mini-cart__buttons a { width: 100%; margin: 0; text-align: center; }
.cart-drawer .woocommerce-mini-cart__buttons a.checkout { background: var(--navy); border-color: var(--navy); color: #fff; }
.cart-drawer .woocommerce-mini-cart__buttons a.checkout:hover { background: var(--navy-d); }
.cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout) { background: #fff; color: var(--ink); border: 1px solid var(--line-d); }
.cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout):hover { background: var(--alt); }
.cart-drawer .woocommerce-mini-cart__empty-message { padding: 48px 0; text-align: center; color: var(--soft); }

/* Cookie consent bar */
.cookie-bar {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 79; /* under nav drawer (85) & cart drawer (96) so a drawer covers it */
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(34, 39, 44, .22);
  padding: 18px 20px;
}
.cookie-bar[hidden] { display: none; }
.cookie-text b { display: block; font-size: .95rem; margin-bottom: 4px; }
.cookie-text p { font-size: .86rem; color: var(--soft); margin: 0 0 12px; line-height: 1.5; }
.cookie-text a { font-weight: 700; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { padding: 9px 18px; font-size: .86rem; }
@media (max-width: 820px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 72px; max-width: none; }
}

/* Back to top */
#qh-backtop {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 70;
  padding: 0;
}
#qh-backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#qh-backtop:hover { background: var(--red); border-color: var(--red); }
#qh-backtop svg { width: 20px; height: 20px; }

/* Mobile bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  /* clear the fixed bottom-nav incl. iPhone home-indicator safe area */
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  #qh-backtop { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(34, 39, 44, .07);
    z-index: 65;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--soft);
    font-family: var(--font-body);
    font-size: .66rem;
    font-weight: 700;
    padding: 4px 0 2px;
    cursor: pointer;
    position: relative;
  }
  .bottom-nav a:hover, .bottom-nav a.active, .bottom-nav button:hover { color: var(--navy); background: none; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .cart-count { top: -2px; right: calc(50% - 18px); }
}

/* 404 */
.error-404 { text-align: center; padding: 90px 24px; }
.error-404 h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }

/* ========================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento-feature { min-height: 360px; }
  .props { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 36px 30px; }
  .hero-grid, .hero-dark .hero-grid { grid-template-columns: 1fr; gap: 34px; padding-top: 40px; padding-bottom: 44px; }
  .mast-search { display: none; }
  #qh-search-toggle { display: inline-flex; }
  .masthead { grid-template-columns: auto 1fr auto; }
  .banner { padding: 34px 30px; grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  /* off-canvas drawer */
  .navbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--navy);
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 85;
    overflow-y: auto;
    border-top: none;
  }
  .navbar.open { transform: translateX(0); box-shadow: 12px 0 40px rgba(0, 0, 0, .3); }
  .drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
  #qh-nav-close { background: none; border: none; color: #DCE4EA; cursor: pointer; padding: 4px; display: inline-flex; }
  #qh-nav-close:hover { color: #fff; }
  .main-nav { flex: 1; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px; }
  .main-nav a {
    display: block;
    padding: 13px 14px;
    border-radius: 6px;
    border-bottom: none;
    color: #DCE4EA;
    font-size: 1rem;
  }
  .main-nav a:hover, .main-nav .current-menu-item > a { background: rgba(255, 255, 255, .09); color: #fff; border-bottom: none; }
  .drawer-foot {
    display: grid;
    gap: 4px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .82rem;
    color: #9FB0BC;
  }
  .drawer-foot a { color: #8FC1F0; font-weight: 700; }
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 28, .5);
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .p-grid, .bento-cards { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; }
}
@media (max-width: 540px) {
  .dept-grid { grid-template-columns: 1fr; }
  .dept-tile { min-height: 150px; }
  .dept-img { width: 116px; height: 116px; }
  .props { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { width: 100%; }
  .hero-chip { max-width: 250px; }
  .masthead { padding: 12px 14px 10px; gap: 8px; }
  .header-tools { gap: 0; }
  .tool-link { width: 36px; height: 36px; padding: 0; }
  .tool-link svg { width: 19px; height: 19px; }
  .tool-label { display: none; }
  .cart-count { top: -5px; right: -6px; }
  .nav-toggle { padding: 7px 9px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main-nav ul { padding: 6px 10px; }
  .topbar { font-size: .78rem; padding: 8px 12px; }
  .topbar .tb-extra { display: none; }
  .brand { font-size: 1.45rem; }
}
