/* ============================================================
   Forest Arb Supplies — main.css
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --forest-light:    #5B80A8;
  --forest-mid:      #3D5A80;
  --forest-dark:     #2D3E5F;
  --forest-nav:      #1E2D45;
  --forest-gradient: linear-gradient(135deg, #5B80A8 0%, #2D3E5F 100%);
  --black:    #1a1a1a;
  --mid:      #555;
  --light:    #f0f3f7;
  --white:    #fff;
  --border:   #d8e2ed;
  --red:      #C0392B;
  --radius:   4px;
  --container: 1280px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-mid); text-decoration: none; }
a:hover { color: var(--forest-light); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--forest-gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); color: var(--white); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border: 2px solid rgba(91,128,168,.5);
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--forest-light); background: rgba(91,128,168,.12); }

.btn-dark {
  display: inline-block;
  background: var(--forest-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s;
  text-decoration: none;
}
.btn-dark:hover { background: var(--forest-light); color: var(--white); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--forest-nav);
  color: #9bb0c8;
  font-size: 12px;
  padding: 7px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #9bb0c8; text-decoration: none; transition: color .15s; }
.top-bar a:hover { color: var(--white); }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-left svg, .top-bar-right svg { width: 13px; height: 13px; vertical-align: middle; margin-right: 4px; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--forest-mid);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(45,62,95,.1);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Logo */
.site-logo { flex-shrink: 0; text-decoration: none; display: block; }
.site-logo img { height: 68px; width: auto; display: block; }

/* Search */
.header-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: row-reverse;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.header-search:focus-within { border-color: var(--forest-mid); }
.header-search input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  background: var(--light);
  color: var(--black);
  appearance: none;
  -webkit-appearance: none;
}
.header-search button[type="submit"] {
  background: var(--forest-gradient);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  transition: opacity .2s;
  flex-shrink: 0;
}
.header-search button[type="submit"]:hover { opacity: .85; }

/* Header actions */
.header-actions { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--forest-dark);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color .15s;
  position: relative;
}
.header-action:hover { color: var(--forest-light); }
.header-action svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--forest-mid);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── PRIMARY NAV ── */
.primary-nav {
  background: var(--forest-nav);
  border-bottom: 3px solid var(--forest-light);
}
.primary-nav .container { display: flex; align-items: stretch; }
.primary-nav ul { list-style: none; display: flex; gap: 2px; padding: 0; margin: 0; }
.primary-nav ul li a {
  display: block;
  color: #c5d5e8;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 13px 14px;
  white-space: nowrap;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-menu-ancestor > a {
  color: var(--white);
  background: rgba(255,255,255,.07);
}
.primary-nav ul li.menu-item-sale > a { color: #7eb8e8; }
.primary-nav ul li.menu-item-sale > a:hover { background: var(--forest-light); color: var(--white); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--forest-nav);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  display: flex;
  align-items: center;
}
.hero-slide--active { opacity: 1; z-index: 1; }
.hero-slide--prev { opacity: 0; z-index: 0; }

/* Dark gradient overlay so text is always readable */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,32,52,.78) 0%,
    rgba(20,32,52,.45) 50%,
    rgba(20,32,52,.1) 100%
  );
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}
.hero-slide-content {
  max-width: 580px;
}
.hero-badge {
  display: inline-block;
  background: var(--forest-light);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-headline em {
  font-style: normal;
  color: #7eb8e8;
}
.hero-sub {
  color: #c5d8ec;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider nav buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,.3); border-color: var(--white); }
.slider-btn--prev { left: 20px; }
.slider-btn--next { right: 20px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.slider-dot--active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .hero-slider { height: 460px; }
  .hero-headline { font-size: 42px; }
  .hero-sub { font-size: 15px; }
  .slider-btn { width: 36px; height: 36px; font-size: 22px; }
  .hero-ctas { flex-direction: column; gap: 8px; }
  .hero-slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(20,32,52,.35) 0%,
      rgba(20,32,52,.55) 60%,
      rgba(20,32,52,.75) 100%
    );
  }
}
@media (max-width: 480px) {
  .hero-slider { height: 380px; }
  .hero-headline { font-size: 34px; }
  .slider-btn--prev { left: 8px; }
  .slider-btn--next { right: 8px; }
}

/* ── USP BAR ── */
.usp-bar { background: var(--forest-mid); }
.usp-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.usp-item svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; opacity: .8; flex-shrink: 0; }

/* ── SECTION HEADERS ── */
.section { padding: 52px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--forest-light);
  padding-bottom: 12px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--forest-dark);
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-mid);
  text-decoration: none;
  transition: color .15s;
}
.section-link:hover { color: var(--forest-light); }

.section-alt { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── CATEGORY GRID ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  justify-items: stretch;
}
.cat-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.cat-card:hover { border-color: var(--forest-light); box-shadow: 0 4px 16px rgba(45,62,95,.12); transform: translateY(-2px); }
.cat-card-img {
  height: 140px;
  background: var(--white) center/contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 36px;
  padding: 8px;
}
.cat-card-label {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.3;
}

/* ── PRODUCT GRID & CARDS ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* WooCommerce ul.products override — 3 columns, centred */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products,
body ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 960px !important;
  float: none !important;
}

/* Kill WooCommerce's own width/float on individual products */
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: span 1 !important;
}

/* First product should never span more than 1 column */
ul.products li.product:first-child,
.woocommerce ul.products li.product:first-child {
  grid-column: span 1 !important;
  width: 100% !important;
}

/* Centre the grid if fewer than 4 products in last row */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
  justify-items: stretch !important;
}

/* WooCommerce shop page wrapper — remove any padding/margin that shifts grid */
.woocommerce-page .woocommerce,
.woocommerce .woocommerce-notices-wrapper + ul.products,
.woocommerce .products {
  width: 100% !important;
  padding: 0 !important;
}

.product-card,
ul.products li.product {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  display: flex !important;
  flex-direction: column;
}
.product-card:hover,
ul.products li.product:hover { border-color: var(--forest-light); box-shadow: 0 4px 20px rgba(45,62,95,.12); }

.product-card-img {
  position: relative;
  height: 260px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-card-img img { height: 100%; width: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }

/* WooCommerce product image — force large display */
ul.products li.product a {
  display: block;
  overflow: hidden;
  background: var(--white);
}
ul.products li.product a img {
  height: 240px !important;
  width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-bottom: 1px solid var(--border);
  transition: transform .3s;
  display: block !important;
  padding: 8px;
  background: var(--white);
}
ul.products li.product:hover a img { transform: scale(1.04); }

/* WooCommerce thumbnail wrapper */
ul.products li.product .woocommerce-loop-product__link {
  display: block;
  overflow: hidden;
  background: var(--white);
}

/* Placeholder image when no product image set */
ul.products li.product .woocommerce-placeholder {
  height: 240px !important;
  width: 100% !important;
  object-fit: contain !important;
  padding: 40px;
  background: var(--light);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  z-index: 2;
}
.product-badge.badge-new { background: var(--forest-mid); }

.product-card-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 10px; font-weight: 700; color: var(--forest-mid); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

/* WooCommerce product name */
ul.products li.product .woocommerce-loop-product__title,
.product-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 8px;
  padding: 0;
}

.product-card-price { font-size: 17px; font-weight: 700; color: var(--forest-dark); margin-bottom: 10px; }

/* WooCommerce price */
ul.products li.product .price { font-size: 17px; font-weight: 700; color: var(--forest-dark); margin-bottom: 10px; }
ul.products li.product .price del { font-size: 13px; color: #aaa; }

.rating-stars { display: flex; gap: 2px; margin-bottom: 10px; }
.star-filled { color: var(--forest-light); font-size: 13px; }
.star-empty { color: #ddd; font-size: 13px; }

.btn-atc,
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  width: 100%;
  background: var(--forest-dark);
  color: var(--white) !important;
  border: none;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
  font-family: 'Barlow', sans-serif;
  text-align: center;
  text-decoration: none;
  display: block;
  margin-top: auto;
}
.btn-atc:hover,
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover { background: var(--forest-light); color: var(--white) !important; }

/* ── PROMO STRIP ── */
.promo-strip { background: var(--forest-nav); padding: 52px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card {
  border-radius: 8px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.promo-card.promo-sale { background: var(--forest-mid); border: 1px solid rgba(91,128,168,.4); }
.promo-card.promo-new  { background: rgba(91,128,168,.1); border: 1px solid rgba(91,128,168,.2); }
.promo-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.6); }
.promo-title { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; color: var(--white); line-height: 1; }
.promo-desc { font-size: 14px; color: #9bb0c8; max-width: 360px; }
.promo-cta { width: fit-content; margin-top: 4px; }
.promo-card.promo-sale .promo-cta { background: var(--white); color: var(--forest-dark); }
.promo-card.promo-sale .promo-cta:hover { background: var(--light); color: var(--forest-dark); }
.promo-icon { font-size: 80px; position: absolute; right: 24px; bottom: 16px; opacity: .1; line-height: 1; pointer-events: none; }

/* ── BRAND BAR ── */
.brands-bar { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.brands-label { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 20px; }
.brands-logos { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-dark);
  letter-spacing: 0.5px;
  transition: border-color .15s, color .15s;
}
.brand-pill:hover { border-color: var(--forest-light); color: var(--forest-light); }

/* ── ABOUT STRIP ── */
.about-strip { border-top: 1px solid var(--border); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 52px;
  align-items: center;
}
.about-since { font-size: 11px; font-weight: 700; color: var(--forest-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.about-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}
.about-text { font-size: 15px; color: var(--mid); line-height: 1.7; margin-bottom: 14px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--forest-dark);
}
.trust-badge svg { width: 13px; height: 13px; stroke: var(--forest-mid); fill: none; stroke-width: 2.5; flex-shrink: 0; }

/* ── FOOTER ── */
.site-footer { background: var(--forest-nav); color: #6e8dab; }
.footer-main { padding: 52px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(91,128,168,.12);
  margin-bottom: 24px;
}
.footer-logo-img { height: 56px; width: auto; margin-bottom: 12px; }
.footer-about { font-size: 13px; line-height: 1.7; margin-bottom: 18px; max-width: 280px; }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #c5d5e8; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: #6e8dab; text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 33px; height: 33px; border-radius: var(--radius);
  background: rgba(91,128,168,.1);
  border: 1px solid rgba(91,128,168,.18);
  display: flex; align-items: center; justify-content: center;
  color: #6e8dab; font-size: 12px; font-weight: 700;
  text-decoration: none; transition: background .2s, color .2s;
}
.social-link:hover { background: var(--forest-mid); color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: #4d6a88; text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--forest-mid) !important;
  border-radius: var(--radius);
}
.woocommerce-message::before { color: var(--forest-mid) !important; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--forest-dark) !important;
  color: var(--white) !important;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background .2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--forest-light) !important; }
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--forest-gradient) !important; }
.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus { border-color: var(--forest-mid) !important; outline: none; }

/* ── BREADCRUMBS ── */
.woocommerce-breadcrumb { font-size: 13px; color: var(--mid); padding: 12px 0; margin-bottom: 0 !important; }
.woocommerce-breadcrumb a { color: var(--forest-mid); }

/* ── NOTICES ── */
.woocommerce-store-notice { background: var(--forest-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid,
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 960px !important; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-links { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar .top-bar-right { display: none; }
  .primary-nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--forest-nav); z-index: 9999; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,.3); width: 100%; }
  .primary-nav ul.is-open { display: flex; }
  .primary-nav ul.is-open li { width: 100%; }
  .primary-nav ul.is-open li a { padding: 14px 20px; display: block; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-toggle { display: flex; }
  .primary-nav .container { justify-content: space-between; position: relative; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid,
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 100% !important; }
  .promo-grid { grid-template-columns: 1fr; }
  .usp-bar .container { flex-wrap: wrap; gap: 4px; }
  .usp-item { font-size: 11px; }
  .hero-headline { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid,
  ul.products { grid-template-columns: 1fr !important; max-width: 100% !important; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

/* ── SHOP PAGE LAYOUT FIX ── */
/* Remove WooCommerce's default left offset on shop pages */
.woocommerce-page .site-main .container,
.woocommerce .site-main .container {
  padding: 0 20px !important;
}

.woocommerce-page .woocommerce,
.woocommerce-page #content .woocommerce {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Force shop page to full width — no sidebar offset */
.woocommerce-page #primary,
.woocommerce #primary {
  width: 100% !important;
  float: none !important;
}

/* WooCommerce ordering/results bar */
.woocommerce-products-header,
.woocommerce-ordering,
.woocommerce-result-count {
  width: 100% !important;
  float: none !important;
  display: inline-block;
}

.woocommerce-ordering {
  float: right !important;
}

/* ── WOOCOMMERCE FIRST/LAST CLASS OVERRIDES ── */
/* WooCommerce adds .first and .last classes that break grid layout */
ul.products li.product.first,
ul.products li.product.last,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last,
.woocommerce-page ul.products li.product.first,
.woocommerce-page ul.products li.product.last {
  width: 100% !important;
  float: none !important;
  clear: none !important;
  grid-column: span 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── ABOUT PAGE ── */
.about-hero {
  background: var(--forest-nav);
  background-image: linear-gradient(135deg, #1a2840 0%, #2D3E5F 60%, #1a2840 100%);
  padding: 64px 0;
}
.about-hero-eyebrow {
  display: inline-block;
  background: var(--forest-light);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.about-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}
.about-hero-sub {
  color: #9bb0c8;
  font-size: 17px;
  max-width: 560px;
  line-height: 1.65;
}
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.about-body {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-stats-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--forest-dark);
  line-height: 1;
}
.about-stat-label { font-size: 13px; color: var(--mid); margin-top: 4px; }
.about-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
}
.about-feature:hover { border-color: var(--forest-light); box-shadow: 0 4px 16px rgba(45,62,95,.1); }
.about-feature-icon { font-size: 32px; margin-bottom: 14px; }
.about-feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--forest-dark);
  margin-bottom: 8px;
}
.about-feature-text { font-size: 14px; color: var(--mid); line-height: 1.65; }
.about-parent-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--forest-mid);
  border-radius: 8px;
  padding: 40px;
}

/* ── CONTACT PAGE ── */
.contact-hero {
  background: var(--forest-nav);
  background-image: linear-gradient(135deg, #1a2840 0%, #2D3E5F 60%, #1a2840 100%);
  padding: 52px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 52px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.form-row-two > * { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--forest-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  color: var(--black);
  background: var(--white);
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--forest-mid); }
.form-group textarea { resize: vertical; }
.required { color: var(--red); }
.contact-success {
  background: #eaf3de;
  border: 1px solid #639922;
  color: #3B6D11;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-error {
  background: #fcebeb;
  border: 1px solid #C0392B;
  color: #C0392B;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}
.contact-info-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-info-label { font-size: 11px; font-weight: 700; color: var(--forest-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-value { font-size: 14px; color: var(--black); line-height: 1.5; text-decoration: none; }
a.contact-info-value:hover { color: var(--forest-mid); }
.contact-trade-box {
  background: var(--forest-nav);
  border-radius: 8px;
  padding: 24px;
  color: var(--white);
}
.contact-trade-box p { color: #9bb0c8; }

/* Responsive — about & contact */
@media (max-width: 900px) {
  .about-two-col,
  .contact-grid,
  .about-features-grid { grid-template-columns: 1fr; }
  .about-stats-box { grid-template-columns: 1fr 1fr; }
  .about-hero-title { font-size: 40px; }
}
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .about-stats-box { grid-template-columns: 1fr; }
}

/* ── BRAND GRID ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.brand-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px 12px;
  text-align: center;
  text-decoration: none;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
}
.brand-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 16px rgba(45,62,95,.12);
  transform: translateY(-2px);
}
.brand-card-img {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card-img img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.brand-card-name-only {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--forest-dark);
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 8px 0;
}

@media (max-width: 1024px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .brand-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CATEGORY CAROUSEL ── */
.cat-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px;
  flex: 1;
  scroll-snap-type: x mandatory;
}
.cat-carousel::-webkit-scrollbar { display: none; }

.cat-carousel .cat-card {
  flex: 0 0 160px;
  min-width: 160px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.cat-carousel .cat-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 16px rgba(45,62,95,.12);
  transform: translateY(-2px);
}
.cat-carousel .cat-card-img {
  height: 130px;
  background: var(--white) center/contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  font-size: 36px;
  padding: 10px;
}
.cat-carousel .cat-card-label {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.3;
}
.cat-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--forest-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.cat-carousel-btn:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: var(--white);
}
.cat-carousel-btn--prev { order: -1; }
.cat-carousel-btn--next { order: 1; }

@media (max-width: 768px) {
  .cat-carousel .cat-card { flex: 0 0 130px; min-width: 130px; }
  .cat-carousel .cat-card-img { height: 100px; }
  .cat-carousel-btn { width: 32px; height: 32px; font-size: 18px; }
}

/* ── PRODUCT CAROUSEL ── */
.product-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 12px;
  flex: 1;
  scroll-snap-type: x mandatory;
}
.product-carousel::-webkit-scrollbar { display: none; }

.product-carousel .product-card,
.product-carousel article.product-card {
  flex: 0 0 240px;
  min-width: 240px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-carousel .product-card:hover,
.product-carousel article.product-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 20px rgba(45,62,95,.12);
}
.product-carousel .product-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--white);
}
.product-carousel .product-card-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 8px;
  background: var(--white);
  transition: transform .3s;
}
.product-carousel .product-card:hover .product-card-img img {
  transform: scale(1.03);
}

.product-carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--forest-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  align-self: center;
}
.product-carousel-btn:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  color: var(--white);
}

@media (max-width: 768px) {
  .product-carousel .product-card,
  .product-carousel article.product-card {
    flex: 0 0 200px;
    min-width: 200px;
  }
  .product-carousel .product-card-img,
  .product-carousel .product-card-img img { height: 160px; }
  .product-carousel-btn { width: 32px; height: 32px; font-size: 18px; }
}

@media (max-width: 480px) {
  .product-carousel .product-card,
  .product-carousel article.product-card {
    flex: 0 0 170px;
    min-width: 170px;
  }
}

/* ── MOBILE FIXES ── */
@media (max-width: 768px) {

  /* Hide search bar on mobile — too cramped */
  .header-search { display: none !important; }

  /* Product grid — 2 columns on mobile, not 3 */
  ul.products.columns-3,
  ul.products,
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  /* Product images — contain so full image shows */
  ul.products li.product a img,
  ul.products li.product a img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product a img {
    height: 160px !important;
    width: 100% !important;
    object-fit: contain !important;
    padding: 6px !important;
    background: #fff !important;
    display: block !important;
  }

  /* Product card info padding */
  ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    padding: 8px 8px 4px !important;
  }

  ul.products li.product .price {
    font-size: 14px !important;
    padding: 0 8px 6px !important;
    display: block;
  }

  ul.products li.product .button {
    font-size: 11px !important;
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  ul.products.columns-3,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  ul.products li.product a img {
    height: 130px !important;
  }
}

/* ── FIX ADD TO CART BUTTON ALIGNMENT ── */
/* Make all product cards same height within each row */
ul.products {
  align-items: stretch !important;
}

/* Each product card stretches to full row height */
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
}

/* Product info area grows to fill available space */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
  flex-grow: 0;
}

/* Price sits naturally */
ul.products li.product .price {
  flex-grow: 1;
  display: flex !important;
  align-items: flex-end;
  padding-bottom: 8px;
}

/* Add to Cart always pinned to bottom */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  margin-top: auto !important;
  display: block !important;
  width: 100% !important;
}

/* Inner content wrapper needs to flex too */
ul.products li.product > a,
ul.products li.product > .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto;
}

/* ── FICTITIOUS BRAND WORDMARK CARDS ── */
.brand-card--styled {
  padding: 0;
  overflow: hidden;
}
.brand-card-wordmark {
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
}
.brand-card-wordmark-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
}
.brand-card-wordmark-sub {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
}
.brand-card--styled .brand-card-name {
  padding: 8px 6px 10px;
  font-size: 10px;
  color: var(--mid);
}
