/*
Theme Name: Ironhide Tractor & Equipment
Description: Dealer theme for Ironhide Tractor & Equipment
Version: 1.0
*/

:root {
  --primary: #b5121b;
  --primary-dark: #8e0e15;
  --dark: #1f1f1f;
  --dark-2: #2b2b2b;
  --text: #4a4a4a;
  --heading: #1f1f1f;
  --muted: #8a8a8a;
  --border: #e3e3e3;
  --bg-gray: #f4f4f4;
  --white: #fff;
  --green: #2e7d32;
  --orange: #e67e22;
  --radius: 3px;
  --container: 1240px;
  --font: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
  text-transform: uppercase;
  letter-spacing: .3px;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-secondary { background: #fff; color: var(--dark); border-color: #cfcfcf; }
.btn-secondary:hover { border-color: var(--dark); color: var(--dark); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover { background: #fff; color: var(--dark); }
.btn-disabled { background: #eee; color: #999; border-color: #eee; cursor: default; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- top bar ---------- */
.top-bar { background: var(--dark); color: #bbb; font-size: 13px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.top-bar a, .top-bar span { color: #ccc; display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: #fff; }
.top-bar-left, .top-bar-right { display: flex; gap: 22px; align-items: center; }
.top-bar .ico { color: var(--primary); }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--dark); }
.site-logo img { height: 64px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.menu-item { position: relative; }
.menu-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 30px 15px;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--dark);
}
.menu-item > a:hover, .menu-item.current > a { color: var(--primary); }
.caret {
  display: inline-block; width: 0; height: 0; margin-left: 3px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform .2s;
}
.has-sub:hover .caret { transform: rotate(180deg); }

/* Inventory dropdown: two-column panel */
.sub-menu {
  position: absolute; top: calc(100% + 3px); left: -20px; width: 480px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 50;
}
/* invisible bridge over the header border so the menu stays open while moving the mouse down */
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 3px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu-list { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.sub-menu-list a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 2px;
  color: var(--dark); font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s;
}
.sm-icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: #f5eded; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.sub-menu-list a:hover { background: #f7f7f7; color: var(--primary); }
.sub-menu-list a:hover .sm-icon { background: var(--primary); color: #fff; }
.sub-menu-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: var(--bg-gray); border-top: 1px solid var(--border);
}
.sub-menu-footer a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 14px; color: var(--dark);
}
.sub-menu-footer a:hover { color: var(--primary); }
.sub-menu-footer .sm-deals { color: var(--primary); display: inline-flex; align-items: center; gap: 5px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--dark); cursor: pointer; padding: 6px; }

/* ---------- page title bar ---------- */
.breadcrumb-bar { background: var(--bg-gray); border-bottom: 1px solid var(--border); padding: 11px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: #bbb; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--dark-2); color: #ccc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.trade-section {
  position: relative;
  background: linear-gradient(90deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 55%, rgba(20,20,20,.6) 100%),
              url('../img/tractors-row.jpg') center 55%/cover no-repeat;
  padding: 90px 0;
}
.trade-section p { color: #ddd; }
.trade-section .visit-box { background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }
.section-heading { text-align: center; margin-bottom: 38px; }
.section-heading h2 { position: relative; padding-bottom: 14px; margin-bottom: 12px; }
.section-heading h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 60px; height: 3px; background: var(--primary); transform: translateX(-50%); }
.section-heading p { color: var(--muted); margin: 0; }
.section-heading.with-link { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; gap: 20px; flex-wrap: wrap; }
.section-heading.with-link h2::after { left: 0; transform: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: #2a2a2a url('../img/hero.jpg') center 75%/cover no-repeat;
  color: #fff;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.2) 100%); }
.hero-inner { position: relative; padding-top: 70px; padding-bottom: 110px; max-width: var(--container); width: 100%; }

.hero h1 { color: #fff; font-size: 52px; max-width: 720px; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero p { font-size: 18px; max-width: 600px; color: #e6e6e6; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- quick search ---------- */
.quick-search { margin-top: -50px; position: relative; z-index: 5; }
.quick-search-form {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
  border-top: 4px solid var(--primary);
  padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 14px; align-items: center;
}
.qs-title { font-family: var(--font-head); font-size: 19px; text-transform: uppercase; color: var(--dark); display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.qs-title .ico { color: var(--primary); }

/* ---------- forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit; font-size: 14px;
  color: var(--dark);
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}
select::-ms-expand { display: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181,18,27,.12); }
input[readonly] { background: #f7f7f7; color: #666; }
textarea { resize: vertical; }
.form-row { display: flex; gap: 14px; }
.form-row > .form-group { flex: 1; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 5px; }
.req { color: var(--primary); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: var(--green); background: #edf7ee; border-left: 3px solid var(--green); padding: 10px 12px; }
.form-msg.err { color: var(--primary); background: #fdeeee; border-left: 3px solid var(--primary); padding: 10px 12px; }
.alert { padding: 12px 15px; margin-bottom: 16px; border-left: 4px solid; font-size: 14px; }
.alert-success { background: #edf7ee; border-color: var(--green); color: #1d5e20; }
.alert-error { background: #fdeeee; border-color: var(--primary); color: var(--primary-dark); }
.alert-info { background: #f2f6fa; border-color: #5b7a99; color: #34495e; }

/* ---------- categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 16px; background: #fff;
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.category-box:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.category-icon { width: 64px; height: 64px; border-radius: 50%; background: #f6f0f0; color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.category-box:hover .category-icon { background: var(--primary); color: #fff; }
.category-name { font-family: var(--font-head); text-transform: uppercase; font-size: 17px; color: var(--dark); }
.category-count { font-size: 13px; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { text-align: center; padding: 10px; }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 16px; border: 2px solid var(--primary); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 14px; color: #666; }

.visit-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); padding: 30px; }
.visit-box p { display: flex; gap: 10px; align-items: flex-start; }
.visit-box .ico, .sidebar-widget p .ico { color: var(--primary); margin-top: 4px; }
.hours { display: flex; gap: 10px; }

/* ---------- inventory layout (showroom) ---------- */
.showroom { padding-top: 30px; }
.showroom-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.showroom-filters { min-width: 0; }
.filters-toggle { display: none; }
.filter-block { background: #fff; border: 1px solid var(--border); margin-bottom: -1px; }
.filter-block-flat { padding: 14px 16px; }
.filter-block-header {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left;
}
.filter-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; text-transform: uppercase; letter-spacing: .4px; color: var(--dark); font-weight: 500; }
.filter-name .ico { color: var(--primary); }
.filter-tools { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.filter-tools .ico { transition: transform .2s; }
.filter-block.collapsed .filter-tools .ico { transform: rotate(-90deg); }
.filter-block.collapsed .filter-body { display: none; }
.filter-clear { font-size: 12px; color: var(--primary); display: none; text-transform: uppercase; font-weight: 600; }
.filter-block.is-active .filter-clear { display: inline; }
.filter-body { padding: 0 16px 16px; }

.toggle-row { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.switch { position: relative; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch-slider { position: absolute; inset: 0; background: #ccc; border-radius: 22px; transition: .2s; }
.switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }

.filter-search { position: relative; }
.filter-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-search input { padding-left: 34px; }

/* Dual range slider: track is inset by the thumb radius (9px) so the fill lines up with the thumb centres */
.range { position: relative; padding: 4px 0 0; }
.range-track { position: relative; height: 4px; margin: 13px 9px 0; background: #e3e3e3; border-radius: 4px; }
.range-fill { position: absolute; top: 0; height: 100%; background: var(--primary); border-radius: 4px; }
.range input[type=range] {
  position: absolute; left: 0; right: 0; top: 6px; width: 100%; height: 22px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none; outline: none;
}
.range input[type=range]::-webkit-slider-runnable-track { height: 22px; background: none; border: 0; }
.range input[type=range]::-moz-range-track { height: 22px; background: none; border: 0; }
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary), 0 2px 5px rgba(0,0,0,.25);
  cursor: grab; transition: transform .15s;
}
.range input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary), 0 2px 5px rgba(0,0,0,.25);
  cursor: grab;
}
.range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--primary), 0 0 0 5px rgba(181,18,27,.2); }
.range-values { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.range-values span {
  flex: 1; text-align: center;
  padding: 6px 8px; font-size: 13px; font-weight: 600; color: var(--dark);
  background: var(--bg-gray); border: 1px solid var(--border); border-radius: var(--radius);
}
.range-values::before { content: '\2013'; order: 1; color: var(--muted); }
.range-values .rv-to { order: 2; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.check input { position: absolute; opacity: 0; }
.check-box { width: 16px; height: 16px; border: 1px solid #bbb; border-radius: 2px; flex-shrink: 0; position: relative; background: #fff; }
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-box::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check-box { outline: 2px solid var(--primary); outline-offset: 2px; }
.check-label { flex: 1; color: var(--text); }
.check-count { color: var(--muted); font-size: 12px; }
#reset-filters { margin-top: 16px; }

.results-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--bg-gray); border: 1px solid var(--border); margin-bottom: 22px; font-size: 14px;
}
.sort-by { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--dark); white-space: nowrap; }
.sort-by select { width: auto; min-width: 200px; padding-top: 7px; padding-bottom: 7px; }
.no-results { text-align: center; padding: 50px 20px; border: 1px dashed #ccc; }
.load-more-wrap { text-align: center; margin-top: 30px; }

/* ---------- listing cards ---------- */
.listing-grid { display: grid; gap: 24px; }
.listing-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.listing-card {
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.listing-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.listing-card-header { padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f0; }

.listing-title { font-size: 17px; margin: 2px 0 0; color: var(--dark); line-height: 1.3; }
.listing-card-header a:hover .listing-title { color: var(--primary); }
.listing-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.listing-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .listing-image img { transform: scale(1.04); }
.ribbon {
  position: absolute; top: 14px; left: 0;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 12px;
}
.ribbon-sold { background: var(--dark); }
.ribbon-pending { background: var(--orange); }
.badge-new { position: absolute; top: 14px; right: 14px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; letter-spacing: .5px; }
.listing-details { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.listing-price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.price-badge { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.special-price { font-family: var(--font-head); font-size: 23px; font-weight: 600; color: var(--dark); line-height: 1.1; }
.price-badge.is-deal .special-price { color: var(--primary); }
.regular-price { font-size: 14px; color: var(--muted); text-decoration: line-through; }

.listing-specs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; color: #555; }
.listing-specs li { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-specs .ico { color: var(--muted); }
.listing-buttons { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.listing-buttons .btn { padding: 9px 10px; font-size: 14px; }

/* ---------- single listing ---------- */
.listing-single { padding-top: 30px; }
.single-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.gallery { margin-bottom: 26px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 60px; border: 0; background: rgba(0,0,0,.45); color: #fff;
  font-size: 38px; line-height: 1; cursor: pointer;
}
.gallery-nav:hover { background: var(--primary); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 2px; }
.gallery-main img { cursor: zoom-in; }
.gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gallery-zoom:hover { background: var(--primary); }

/* thumbnail carousel */
.thumb-carousel { position: relative; margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.gallery-thumbs {
  flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: 0 0 calc((100% - 40px) / 6); scroll-snap-align: start;
  padding: 0; border: 2px solid transparent; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; opacity: .65;
}
.tc-arrow {
  flex: 0 0 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--dark);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, opacity .15s;
}
.tc-arrow:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; }
.tc-arrow:disabled { opacity: .35; cursor: default; }
.tc-prev .ico { transform: rotate(90deg); }
.tc-next .ico { transform: rotate(-90deg); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,.94);
  display: flex; align-items: center; justify-content: center; padding: 50px 70px;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); user-select: none; }
.lb-close {
  position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; opacity: .8;
}
.lb-close:hover { opacity: 1; color: var(--primary); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 70px; border: 0;
  background: rgba(255,255,255,.08); color: #fff; font-size: 44px; line-height: 1; cursor: pointer;
}
.lb-nav:hover { background: var(--primary); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ddd; font-size: 14px; letter-spacing: 1px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--primary); opacity: 1; }
.content-box { background: #fff; border: 1px solid var(--border); padding: 26px 28px; margin-bottom: 26px; }
.box-title { font-size: 20px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--border); position: relative; }
.box-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--primary); }

.single-sidebar { min-width: 0; }
.sidebar-box { background: #fff; border: 1px solid var(--border); padding: 22px 24px; margin-bottom: 24px; }
.sidebar-box .widget-title { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--border); position: relative; }
.sidebar-box .widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--primary); }

.contact-seller { border-top: 4px solid var(--primary); scroll-margin-top: 20px; }
.contact-seller .form-row { gap: 10px; }
.contact-seller textarea { font-size: 13.5px; }
.sold-note { background: var(--bg-gray); padding: 10px 12px; font-weight: 600; color: var(--dark); margin: 6px 0 0; }
.price-box { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--primary); padding: 24px; margin-bottom: 24px; }
.price-box .btn { margin-top: 10px; }
.single-title { font-size: 25px; margin: 4px 0 14px; }
.price-badge.large .special-price { font-size: 34px; }
.price-badge.large .regular-price { font-size: 17px; }
.save-tag { flex-basis: 100%; font-size: 13px; color: var(--green); font-weight: 700; text-transform: uppercase; }

.sidebar-widget { background: var(--bg-gray); border: 1px solid var(--border); padding: 22px 24px; margin-bottom: 24px; font-size: 14px; }
.sidebar-widget p { display: flex; gap: 9px; }
.widget-title { font-size: 17px; margin-bottom: 14px; }
.similar-heading { margin-top: 40px; }

/* ---------- contact / content pages ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { color: var(--primary); margin-top: 4px; }
.hours-table { width: 100%; font-size: 14px; border-collapse: collapse; }
.hours-table th, .hours-table td { text-align: left; padding: 7px 0; border-bottom: 1px solid #e4e4e4; }
.hours-table td { text-align: right; }
.map-wrap { margin-top: 10px; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 19px; margin-top: 1.4em; }
.check-bullets { list-style: none; padding: 0; margin: 0 0 1em; }
.check-bullets li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.check-bullets .ico { color: var(--green); }
.calc-result { background: var(--bg-gray); padding: 16px; font-size: 16px; border-left: 4px solid var(--primary); margin: 6px 0 10px; }
.calc-result strong { font-family: var(--font-head); font-size: 26px; color: var(--primary); margin-left: 6px; }

.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.about-photo::before { content: ''; position: absolute; left: -14px; bottom: -14px; width: 45%; height: 55%; background: var(--primary); z-index: -1; }
.about-intro { position: relative; z-index: 0; }

/* homepage about */
.home-about-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
.home-about-photo { position: relative; z-index: 0; }
.home-about-photo img { width: 100%; height: 540px; object-fit: cover; object-position: center 35%; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.home-about-photo::after { content: ''; position: absolute; right: -14px; top: -14px; width: 50%; height: 40%; border: 4px solid var(--primary); z-index: -1; }
.kicker { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.home-about .check-bullets { margin-bottom: 26px; }

/* ---------- CTA + footer ---------- */

.site-footer { background: #181818; color: #a8a8a8; font-size: 14px; }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 60px; padding-bottom: 46px; }
.site-footer .widget-title { color: #fff; font-size: 17px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #333; position: relative; }
.site-footer .widget-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--primary); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer a { color: #a8a8a8; }
.site-footer a:hover { color: #fff; }
.site-footer .widget > ul:not(.contact-list) li a::before { content: '\203A'; color: var(--primary); margin-right: 8px; font-weight: 700; }
.site-footer .contact-list li { border-color: #2a2a2a; }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { background: #111; padding: 16px 0; font-size: 13px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  border-radius: 2px; opacity: 0; visibility: hidden; transition: .3s; z-index: 90;
}
.back-to-top .ico { transform: rotate(180deg); }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--dark); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px; border-top: 4px solid var(--primary); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: #999; }
.modal-close:hover { color: var(--dark); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
body.modal-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .listing-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
  .menu-item > a { padding: 30px 10px; font-size: 15px; }
  .hide-md { display: none !important; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,.1); padding-bottom: 16px;
  }
  .main-nav.open { display: flex; }
  .menu { flex-direction: column; }
  .menu-item > a { padding: 13px 20px; border-bottom: 1px solid #f0f0f0; }
  .menu-item.current > a { box-shadow: inset 3px 0 0 var(--primary); }
  .menu-item.has-sub > a { justify-content: space-between; }
  .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; background: #fafafa; }
  .sub-menu::before { display: none; }
  .has-sub.open .sub-menu { display: block; }
  .has-sub.open .caret { transform: rotate(180deg); }
  .sub-menu-list { grid-template-columns: 1fr; padding: 6px 12px; }
  .sub-menu-list a { padding: 6px 8px; }
  .sm-icon { width: 30px; height: 30px; }
  .sub-menu-footer { padding: 10px 20px; }
  .header-cta { margin: 16px 20px 0; }
  .header-inner { min-height: 72px; }
  .site-header { position: relative; }
  .showroom-layout, .single-layout, .contact-layout, .two-col { grid-template-columns: minmax(0, 1fr); }
  .home-about-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .home-about-photo img { height: 380px; }
  
  .showroom-filters { position: static; max-height: none; overflow: visible; }
  .filters-toggle {
    display: flex; width: 100%; align-items: center; gap: 8px; justify-content: center;
    padding: 12px; background: var(--dark); color: #fff; border: 0; font-family: var(--font-head);
    text-transform: uppercase; font-size: 16px; cursor: pointer; border-radius: var(--radius);
  }
  .filter-form { display: none; margin-top: 12px; }
  .showroom-filters.open .filter-form { display: block; }
  .single-sidebar { position: static; }
  .quick-search-form { grid-template-columns: 1fr 1fr; }
  .qs-title { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .top-bar-inner { justify-content: center; }
  .top-bar-right:empty { display: none; }
  .listing-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .features, .footer-widgets { grid-template-columns: 1fr; }
  .quick-search-form { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero-inner { padding: 50px 16px 90px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 46px 0; }
  .form-row { flex-direction: column; gap: 0; }
  
  .content-box { padding: 20px 18px; }
  .thumb { flex-basis: calc((100% - 24px) / 4); }
  .tc-arrow { display: none; }
  .lightbox { padding: 50px 8px; }
  .lb-nav { width: 40px; height: 56px; font-size: 34px; }
  
  
  
  .sort-by select { min-width: 0; }
  .results-bar { flex-direction: column; align-items: stretch; }
  .sort-by { justify-content: space-between; }
}

/* listing description lists */
.description h3 { font-size: 17px; margin: 1.4em 0 .6em; padding-left: 10px; border-left: 3px solid var(--primary); }
.description h3:first-child { margin-top: 0; }
.spec-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.spec-list li { position: relative; padding-left: 20px; font-size: 14px; }
.spec-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--primary); position: absolute; left: 0; top: 3px; }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }

/* compact specifications grid */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid #eee; border-left: 1px solid #eee; }
.spec-item { padding: 10px 14px; border-right: 1px solid #eee; border-bottom: 1px solid #eee; min-width: 0; }
.spec-item dt { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; margin: 0 0 2px; }
.spec-item dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
@media (max-width: 960px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }

/* single listing: price centred in an outlined box, three equal buttons */
.price-frame {
  justify-content: center; text-align: center; gap: 4px 10px;
  border: 2px solid #cfcfcf; border-radius: var(--radius); background: transparent;
  padding: 12px 14px; margin: 4px 0 14px;
}
.price-frame .save-tag { text-align: center; }
.price-box .btn { height: 48px; padding-top: 0; padding-bottom: 0; font-size: 15px; }

/* category machine icons (PNG used as a mask, coloured by currentColor) */
.eq-ico {
  display: inline-block; background: currentColor;
  -webkit-mask: var(--eq) center / contain no-repeat; mask: var(--eq) center / contain no-repeat;
}
@media (max-width: 640px) { .site-logo img { height: 50px; } }

/* category tiles */
.category-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.category-icon { width: 96px; height: 96px; }
.category-box-all .category-icon { background: var(--dark); color: #fff; }
.category-box-all:hover .category-icon { background: var(--primary); }
.sm-label { display: flex; flex-direction: column; line-height: 1.25; }
.sm-label small { font-weight: 400; font-size: 12px; color: var(--muted); }
.single-title { margin-top: 0; }
.listing-title { margin-top: 0; }

/* about page: photo + call box */
.call-box { display: grid; grid-template-columns: 1fr 1fr; background: var(--dark-2); overflow: hidden; border-bottom: 4px solid var(--primary); }
.call-box-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.call-box-content { padding: 48px 50px; color: #ccc; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.call-box-content h2 { color: #fff; font-size: 30px; }
.call-box-content p { font-size: 16px; margin-bottom: 18px; }
.call-box-hours { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #fff; font-weight: 600; }
.call-box-hours .ico { color: var(--primary); }
.call-box-btn { font-size: 18px; padding: 15px 30px; }
@media (max-width: 960px) {
  .call-box { grid-template-columns: minmax(0, 1fr); }
  .call-box-photo img { min-height: 240px; max-height: 300px; }
  .call-box-content { padding: 32px 24px; }
}
