/*
Theme Name: WATTS Outdoors
Theme URI: https://wattsoutdoors.net/
Author: WATTS Outdoors
Description: WooCommerce storefront locked to the live wattsoutdoors.net homepage (style + redesign cascade). One site with the marketing brand.
Version: 2.1.1
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: watts-outdoors
Tags: e-commerce, woocommerce, custom-menu, custom-logo
*/

/* === Live cascade tokens (style.css then redesign.css) === */
:root {
  --dark: #061b2c;
  --deep: #03121e;
  --lime: #e4b95f;
  --white: #f5f5f1;
  --muted: #b0bdc6;
  --stroke: #ffffff26;
  --red: #ca2031;
  --accent: #ed3c4f;
  --cta-hover: #e12e41;
  --hero-soft: #e0e7da;
  --font: Manrope, Arial, sans-serif;
  --display: "Barlow Condensed", Impact, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.woocommerce a.button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 6px;
}

::selection {
  background: var(--lime);
  color: var(--dark);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Progress (marketing parity) */
.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: var(--red);
  z-index: 30;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
}

/* ===== Nav (live .nav) ===== */
.nav {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 4.7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--stroke);
}

.site-header.is-solid {
  position: sticky;
  background: color-mix(in srgb, var(--deep) 94%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

/* Live redesign: logo is rectangular contain, not circle */
.brand img {
  width: 100px;
  height: auto;
  max-height: 67px;
  border-radius: 0;
  object-fit: contain;
}

.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  margin-top: 7px;
  font-weight: 600;
}

.nav nav,
.primary-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.nav nav > a,
.primary-nav a { transition: color 0.2s; }

.nav nav > a:hover,
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--lime); }

.nav-contact {
  border: 1px solid #ffffff60;
  padding: 12px 22px;
}

.plus {
  display: inline-block;
  margin-left: 24px;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.3s;
}

.nav-contact:hover .plus,
.button:hover .plus,
.text-link:hover .plus { transform: rotate(90deg); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--stroke);
  padding: 12px;
  flex-direction: column;
  gap: 6px;
  color: white;
  width: 44px;
  height: 44px;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  height: 1px;
  width: 18px;
  background: white;
  display: block;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-link {
  border: 1px solid #ffffff60;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
}

.cart-link:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ===== Hero (live) ===== */
.hero {
  min-height: 950px;
  height: 100svh;
  max-height: 1200px;
  position: relative;
  overflow: hidden;
  background: #163533;
}

.hero-landscape {
  position: absolute;
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 46%;
  top: -7%;
  filter: saturate(0.45) brightness(0.75);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #03121ef0, #03121e99 60%, #03121e35),
    linear-gradient(0deg, #03121eda, transparent 70%);
}

.hero-grid { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 185px 7% 110px;
  width: 100%;
  max-width: 1600px;
  margin: auto;
  color: var(--white);
}

.hero h1,
.hero .title-line,
.hero .title-line > span {
  color: var(--white);
}

.hero .title-line.accent,
.hero .title-line.accent > span {
  color: var(--accent);
}

.hero .title-line.outline,
.hero .title-line.outline > span {
  color: transparent;
  -webkit-text-stroke: 1.3px var(--white);
}

.eyebrow,
.hero-intro {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tiny-cross {
  color: var(--lime);
  font-size: 24px;
}

.line {
  height: 1px;
  background: #ffffff60;
  width: 70px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(80px, 9.8vw, 157px);
  letter-spacing: -0.018em;
  line-height: 0.92;
  font-weight: 800;
  margin: 30px 0;
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.title-line > span {
  display: block;
  animation: gentle-enter 0.8s ease both;
}

.title-line:nth-child(2) > span { animation-delay: 0.1s; }
.title-line:nth-child(3) > span { animation-delay: 0.2s; }
.title-line:nth-child(4) > span { animation-delay: 0.3s; }

.accent { color: var(--accent); }

.outline {
  -webkit-text-stroke: 1.3px var(--white);
  color: transparent;
}

.dealer-label {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--lime);
  margin: 0 0 22px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 65px;
}

.hero-bottom p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--hero-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 19px 26px;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s, color 0.2s;
}

.lime {
  background: var(--red);
  color: #fff;
}

.lime:hover {
  background: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
}

.button.ghost,
.btn-ghost {
  border: 1px solid #ffffff60;
  background: transparent;
  color: var(--white);
}

.button.ghost:hover,
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.hero-side {
  position: absolute;
  right: 32px;
  top: 48%;
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 7%;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 2px;
  font-size: 11px;
}

.scroll-wheel {
  width: 17px;
  height: 28px;
  border: 1px solid #ffffff80;
  border-radius: 12px;
  position: relative;
}

.scroll-wheel::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  background: var(--lime);
  left: 6px;
  top: 6px;
  animation: scroll 2s infinite;
}

.hero-index {
  position: absolute;
  right: 7%;
  bottom: 35px;
  font-size: 11px;
  letter-spacing: 2px;
}

/* Values strip (live redesign) */
.values-strip {
  display: flex;
  justify-content: space-between;
  padding: 27px 7%;
  background: var(--white);
  color: var(--dark);
  font: 700 clamp(19px, 2.7vw, 40px) / 1.1 var(--display);
  gap: 20px;
  border-bottom: 5px solid var(--red);
}

.values-strip > span + span {
  border-left: 1px solid #061b2c30;
  padding-left: 30px;
}

/* Sections */
.section,
.site-main {
  padding: 110px 7%;
  max-width: 1600px;
  margin: 0 auto;
}

.site-main { width: 100%; }

.section-label {
  display: flex;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stroke);
  font-size: 12px;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 65px;
  gap: 1rem;
}

.section-label span:first-child { color: var(--lime); }

h2,
.page-title,
.woocommerce-products-header__title,
h1.entry-title {
  font: 700 clamp(54px, 6.4vw, 105px) / 0.96 var(--display);
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

h2 em,
.page-title em { font-style: normal; color: var(--red); }

.text-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--lime);
  margin-top: 12px;
  font-size: 14px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}

.category-strip a {
  border: 1px solid var(--stroke);
  padding: 1rem 1.1rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-strip a:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.trust-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--stroke);
}

.trust-band p { color: var(--muted); max-width: 42ch; }

.logo-panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--stroke);
  transform: rotate(2deg);
  background: var(--deep);
}

.logo-panel img { width: 100%; background: #fff; }

.empty-shop {
  border: 1px solid var(--stroke);
  padding: 2.5rem;
  background: #102c42;
}

.empty-shop p { color: var(--muted); max-width: 48ch; }

/* Compact page heroes (cart/checkout/account/shop) */
.page-hero {
  position: relative;
  min-height: min(42vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #163533;
}

.page-hero .hero-landscape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  top: 0;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.7);
}

.page-hero .hero-content {
  padding: 140px 7% 60px;
}

.page-hero h1 {
  font-size: clamp(54px, 8vw, 110px);
  margin: 16px 0 0;
}

/* Footer (live) */
.site-footer,
footer.site-footer {
  background: var(--deep);
  padding: 55px 4.7% 25px;
  overflow: hidden;
  margin-top: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font: 800 clamp(28px, 5vw, 48px) / 1 var(--display);
  letter-spacing: -0.02em;
  color: var(--lime);
}

.footer-brand img {
  width: 130px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--stroke);
  padding-top: 25px;
  margin-top: 40px;
  font-size: 11px;
  color: var(--muted);
}

.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--lime); }

/* Reveal */
.reveal {
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-motion .reveal:not(.visible) {
  opacity: 0;
  translate: 0 35px;
}

.js-motion .reveal.visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes gentle-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ===== WooCommerce (same tokens) ===== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--stroke);
  padding: 0 0 1.25rem;
  background: transparent;
  transition: border-color 0.25s, transform 0.25s;
}

.woocommerce ul.products li.product:hover {
  border-color: color-mix(in srgb, var(--lime) 50%, transparent);
  transform: translateY(-3px);
}

.woocommerce ul.products li.product a img {
  margin: 0 0 1rem;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--deep);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  padding: 0 1rem;
  margin: 0 0 0.35rem;
  color: var(--white);
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: 0 1rem;
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.button.alt,
.woocommerce a.button.alt {
  background: var(--red) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  padding: 0.85rem 1.2rem !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover {
  background: var(--cta-hover) !important;
  color: #fff !important;
}

.woocommerce span.onsale {
  background: var(--red);
  color: #fff;
  border-radius: 0;
  font-weight: 800;
}

.woocommerce div.product .product_title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--lime); font-size: 1.35rem; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--red);
  background: var(--deep);
  color: var(--white);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page .input-text {
  background: var(--deep);
  border: 1px solid var(--stroke);
  color: var(--white);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
}

.woocommerce-breadcrumb { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.woocommerce-breadcrumb a { color: var(--lime); }

/* Strip stock Woo chrome that breaks brand */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.woocommerce-products-header,
.woocommerce-products-header__title {
  display: none !important;
}

.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before,
.cart-empty::before,
.woocommerce-cart-form::before {
  content: none !important;
  display: none !important;
}

.watts-empty-cart {
  border: 1px solid var(--stroke);
  background: #102c42;
  padding: 2.5rem 7%;
  max-width: 720px;
}

.watts-empty-cart h2 {
  font-size: clamp(42px, 6vw, 72px);
  margin: 0.5rem 0 1rem;
}

.watts-empty-cart p {
  color: var(--muted);
  max-width: 40ch;
}

.watts-empty-cart .return-to-shop { margin-top: 1.75rem; }

/* Woo empty-cart block icon (if block cart ever returns) */
.wc-block-cart__empty-cart__title::before,
.with-empty-cart-icon::before,
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title::before {
  content: none !important;
  display: none !important;
}

.return-to-shop .button {
  background: var(--red) !important;
  color: #fff !important;
}

.woocommerce ul.products li.product img.woocommerce-placeholder,
.woocommerce div.product img.woocommerce-placeholder,
.woocommerce-product-gallery img.woocommerce-placeholder {
  object-fit: cover;
  filter: saturate(0.45) brightness(0.72);
}

.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-MyAccount-content,
.cart-collaterals,
.woocommerce-cart-form__contents {
  color: var(--white);
}

.woocommerce table.shop_table {
  border: 1px solid var(--stroke);
  background: transparent;
  width: 100%;
}

/* Cart thumbs stay in their cell. Placeholder used to ship at 800×600 and paint over the product name. */
.woocommerce table.cart td.product-remove,
.woocommerce table.cart th.product-remove {
  width: 40px;
}

.woocommerce table.cart td.product-thumbnail,
.woocommerce table.cart th.product-thumbnail {
  width: 112px;
}

.woocommerce table.cart td.product-thumbnail a,
.woocommerce table.cart td.product-thumbnail img,
.woocommerce-checkout-review-order-table .product-name img {
  display: block;
  width: 96px;
  max-width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--deep);
}

.woocommerce table.cart td.product-name a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--stroke);
  color: var(--white);
}

.entry-content a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Single product grid */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: start;
}

.woocommerce div.product .woocommerce-product-gallery,
.woocommerce div.product .summary { width: 100% !important; float: none !important; }

@media (max-width: 900px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .hero { min-height: 800px; }
  .hero h1 { font-size: clamp(80px, 12vw, 130px); }
  .trust-band { gap: 5%; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 75px; }
  .nav { padding: 18px 6%; }
  .brand { font-size: 20px; }
  .brand img { width: 75px; max-height: 50px; height: auto; border-radius: 0; }
  .brand small { font-size: 10px; }

  .menu-toggle { display: flex; }

  .nav-shell {
    display: none;
    position: absolute;
    top: 83px;
    left: 0;
    right: 0;
    background: var(--deep);
    padding: 25px 6%;
    border-bottom: 1px solid var(--stroke);
  }

  .nav-shell.is-open { display: block; }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
  }

  .hero { min-height: 800px; max-height: 1000px; }
  .hero-content { padding: 160px 6% 120px; }
  .hero h1 { font-size: clamp(72px, 18vw, 120px); margin: 30px 0 35px; }
  .hero-intro { font-size: 10px; letter-spacing: 1.5px; gap: 10px; }
  .hero-intro .line { width: 25px; }
  .hero-bottom { display: block; }
  .hero-bottom p { font-size: 14px; margin-bottom: 25px; }
  .hero-side { display: none; }
  .scroll-cue { left: 6%; font-size: 10px; bottom: 25px; }
  .hero-index { font-size: 9px; right: 6%; bottom: 31px; max-width: 125px; text-align: right; line-height: 1.8; }

  .values-strip {
    padding: 22px 6%;
    gap: 10px;
    font-size: 19px;
    flex-direction: column;
  }

  .values-strip > span + span {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #061b2c30;
    padding-top: 10px;
  }

  .section,
  .site-main { padding: 75px 6%; }

  .section-label {
    font-size: 10px;
    margin-bottom: 40px;
    align-items: start;
  }

  h2,
  .page-title { font-size: clamp(48px, 12vw, 76px); }

  .trust-band { grid-template-columns: 1fr; gap: 50px; }
  .button { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-motion .reveal:not(.visible) {
    opacity: 1;
    translate: none;
  }
  .hero-landscape { transform: none !important; }
}
