/* =============================================================================
   POINT BREAK SOLUTION — Layout (Header · Footer · Hero Slider · Shop)
   ============================================================================= */

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-h);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}
.logo .mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo .word { display: flex; flex-direction: column; line-height: 1.02; }
.logo .word .b {
  font-size: var(--text-md);
  font-weight: var(--fw-extrabold);
  color: var(--brand-navy);
  letter-spacing: var(--tracking-tight);
}
.logo .word .s {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-500);
}

/* Main nav */
.header-nav {
  display: flex;
  align-items: center;
  margin-left: var(--space-2);
}
/* The <ul> wp_nav_menu outputs */
.header-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Strip <li> bullets and make them flex items */
.header-nav__list li {
  list-style: none;
  display: flex;
  align-items: center;
}
.header-nav__list a,
.header-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.header-nav__list a:hover,
.header-nav a:hover { color: var(--brand-navy); background: var(--grey-100); }
.header-nav__list .current-menu-item > a,
.header-nav__list .current_page_item > a,
.header-nav a.current-menu-item,
.header-nav a.current_page_item {
  color: var(--brand-navy);
  font-weight: var(--fw-semibold);
}

/* Search */
.header-search { flex: 1; max-width: 460px; margin-inline: auto; }

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  flex-shrink: 0;
}

.burger { display: none; }

/* ---- HERO SLIDER ---- */
.hero-slider {
  position: relative;
  outline: none;
  padding-bottom: var(--space-7);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: 1px solid var(--grey-200);
}
.hs-viewport { overflow: hidden; }
.hs-track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease-out);
  will-change: transform;
}
.hs-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.hs-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding-block: var(--space-10);
}
.hs-copy { max-width: 540px; }
.hs-copy h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.03em;
  margin-top: var(--space-3);
  overflow-wrap: break-word;   /* break long unspaced titles instead of overflowing */
}
.hs-price {
  font-size: var(--text-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--brand-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hs-price-was {
  font-size: var(--text-xl);
  color: var(--grey-400);
  text-decoration: line-through;
  margin-left: var(--space-3);
}
.hs-cta { display: flex; gap: var(--space-3); margin-top: var(--space-7); flex-wrap: wrap; }
.hs-stats { display: flex; gap: var(--space-7); margin-top: var(--space-8); }
.hs-stats .stat .n {
  font-size: var(--text-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--brand-navy);
}
.hs-stats .stat .l { font-size: var(--text-sm); color: var(--grey-500); }

/* Slide hidden text fade */
.hs-slide[aria-hidden="true"] .hs-copy > * { opacity: 0.001; }
.hs-slide .hs-copy > * { transition: opacity var(--dur) var(--ease); }

/* Hero image */
.hs-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hs-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hs-visual .hs-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--grey-300);
}

/* Float badges on visual */
.hs-badge {
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hs-badge.tl { top: var(--space-5); left: var(--space-5); }
.hs-badge.br { bottom: var(--space-5); right: var(--space-5); }
.hs-badge .ic {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}
.hs-badge .t1 { font-size: var(--text-sm); font-weight: var(--fw-bold); color: var(--brand-navy); }
.hs-badge .t2 { font-size: var(--text-xs); color: var(--grey-500); }

/* Arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--grey-200);
  color: var(--brand-navy);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  z-index: 5;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.hs-arrow:hover { background: var(--brand-navy); color: #fff; box-shadow: var(--shadow-lg); }
.hs-arrow.prev { left: var(--space-5); }
.hs-arrow.next { right: var(--space-5); }
.hs-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.hs-arrow.next:hover { transform: translateY(-50%) translateX(2px); }

/* Dots + counter */
.hs-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.hs-dots { display: flex; gap: var(--space-2); }
.hs-dot {
  width: 36px; height: 4px;
  border-radius: 99px;
  background: var(--grey-200);
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.hs-dot:hover { background: var(--grey-300); }
.hs-dot.active { background: var(--grey-200); }
.hs-dot-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--t-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hs-dot.active .hs-dot-fill { animation: hsFill 6000ms linear forwards; }
@keyframes hsFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hs-counter {
  font-size: var(--text-sm);
  color: var(--grey-500);
  font-weight: var(--fw-bold);
}

@media (prefers-reduced-motion: reduce) {
  .hs-dot.active .hs-dot-fill { animation: none; transform: scaleX(1); }
  .hs-track { transition: none; }
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--grey-200);
  padding-block: var(--space-10) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
}
.footer-col h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-500);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-base); color: var(--grey-700); text-decoration: none; }
.footer-col a:hover { color: var(--brand-navy); }
.footer-about p {
  font-size: var(--text-base);
  color: var(--grey-500);
  margin-top: var(--space-4);
  max-width: 320px;
  line-height: var(--lh-normal);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--grey-200);
  font-size: var(--text-sm);
  color: var(--grey-500);
  flex-wrap: wrap;
}

/* ---- SHOP LAYOUT ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-block: var(--space-8);
}
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filter-group { margin-bottom: var(--space-6); }
.filter-group h4 {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-navy);
  margin-bottom: var(--space-3);
}
.filter-list { display: flex; flex-direction: column; gap: var(--space-2); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--grey-200);
  gap: var(--space-3);
}
.shop-toolbar .count {
  font-size: var(--text-sm);
  color: var(--grey-500);
}
.shop-toolbar .count b { color: var(--brand-navy); }

/* Page head (shop / archive) */
.page-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--grey-200);
  padding-block: var(--space-6);
}
.page-head h1 { font-size: var(--text-3xl); margin-top: var(--space-3); }
.page-head .page-head-meta { font-size: var(--text-base); color: var(--grey-500); margin-top: var(--space-2); }

/* ════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   1280 · 1024 · 900 · 768 · 480 · 360
   ════════════════════════════════════════════ */

/* ── 1280px — large tablets / small laptops ── */
@media (max-width: 1280px) {
  .product-grid.cols-5 { grid-template-columns: repeat(4, 1fr); }
}

/* ── 1024px — tablets landscape ── */
@media (max-width: 1024px) {
  .shop-layout     { grid-template-columns: 220px 1fr; gap: var(--space-6); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .product-grid    { grid-template-columns: repeat(3, 1fr); }
  .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid        { grid-template-columns: repeat(3, 1fr); }
  .hs-copy h1      { font-size: var(--text-4xl); }
}

/* ── 900px — tablets portrait ── */
@media (max-width: 900px) {
  .hs-arrow        { width: 42px; height: 42px; }
  .hs-arrow.prev   { left: var(--space-3); }
  .hs-arrow.next   { right: var(--space-3); }
  .hs-inner        { padding-block: var(--space-7) var(--space-5); }
  .newsletter      { padding: var(--space-8); }
}

/* ── 768px — mobile landscape / tablet portrait ── */
@media (max-width: 768px) {

  /* Header */
  .header-search   { display: none; }
  .header-nav      { display: none; }
  .burger          { display: flex; }

  /* Hero — promote the copy's children into the grid so the product image can
     sit between the price and the CTA (order rules below). Row spacing still
     comes from each text row's own margin-top, so the grid gap is 0. */
  /* Top padding matches the container's side gutter (--space-5) so the hero
     content sits evenly inset from top, left and right. */
  .hs-inner        { grid-template-columns: 1fr; gap: 0; padding-block: var(--space-5); }
  .hs-copy         { display: contents; }
  /* Full container width so the image lines up with the title / price / CTAs.
     Flat on mobile — no rounded corners, no drop-shadow. */
  .hs-visual       { order: 1; width: 100%; margin-top: var(--space-4); box-shadow: none; border-radius: 0; }
  .hs-copy > .hs-cta   { order: 2; }
  .hs-copy > .hs-stats { order: 3; }
  .hs-copy h1      { font-size: var(--text-3xl); }
  .hs-price        { font-size: var(--text-2xl); }
  .hs-counter      { display: none; }
  .hs-controls     { justify-content: center; }
  .hs-stats        { gap: var(--space-5); }
  .hs-cta          { gap: var(--space-3); margin-top: var(--space-4); }
  .hs-cta .btn     { flex: 1; justify-content: center; }
  /* Hide slider arrows on mobile — they sit over the stacked hero content */
  .hs-arrow        { display: none; }

  /* Shop */
  .shop-layout     { grid-template-columns: 1fr; padding-block: var(--space-5); }
  .shop-sidebar    { position: static; display: none; }
  .shop-sidebar.is-open { display: flex; }   /* flex keeps sf-block column layout */
  .shop-filter-toggle  { display: inline-flex; }

  /* Products */
  .product-grid    { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }

  /* Categories */
  .cat-grid        { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .cat-card        { min-height: 140px; }

  /* Trust strip */
  .trust-strip     { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  /* Newsletter */
  .newsletter      { grid-template-columns: 1fr; padding: var(--space-8); gap: var(--space-6); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  /* Footer */
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .footer-bottom .pay-icons { justify-content: center; }

  /* Page hero */
  .page-hero       { padding-block: var(--space-6) var(--space-5); }
  .page-hero__title { font-size: var(--text-2xl); }

  /* Entry content */
  .entry-content h2 { font-size: var(--text-xl); }
  .entry-content h3 { font-size: var(--text-lg); }
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Info cards */
  .info-cards      { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

  /* Contact */
  .contact-grid    { grid-template-columns: 1fr; }

  /* Jobs */
  .job-card        { flex-direction: column; align-items: flex-start; }
  .job-card .btn   { width: 100%; }

  /* Track form */
  .track-form      { max-width: 100%; padding: var(--space-6); }

  /* Shop toolbar on mobile */
  .shop-toolbar    { flex-wrap: wrap; gap: var(--space-2); }
  .shop-toolbar .woocommerce-result-count { order: 2; width: 100%; text-align: center; }
}

/* ── 480px — phones ── */
@media (max-width: 480px) {
  .container       { padding-inline: var(--space-4); }

  /* Products */
  .product-grid    { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .product-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }

  /* Categories */
  .cat-grid        { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }

  /* Trust strip */
  .trust-strip     { grid-template-columns: 1fr; }
  .trust-item      { padding-block: var(--space-3); }

  /* Newsletter */
  .newsletter      { padding: var(--space-6); border-radius: var(--radius-lg); }

  /* Footer */
  .footer-grid     { grid-template-columns: 1fr; gap: var(--space-5); }

  /* Hero — keep CTAs side by side (full-width stacked looked heavy) */
  .hs-cta          { flex-wrap: nowrap; }
  .hs-cta .btn     { flex: 1; min-width: 0; padding-inline: var(--space-3); }
  .hs-cta .btn svg { display: none; }
  .hs-stats        { flex-wrap: wrap; gap: var(--space-4); }
  /* Keep top padding equal to the narrower side gutter (--space-4) at phone sizes */
  .hs-inner        { padding-top: var(--space-4); }

  /* Shop toolbar */
  .shop-toolbar    { flex-direction: column; align-items: stretch; }
  .shop-toolbar .woocommerce-ordering { width: 100%; }
  .shop-toolbar .woocommerce-ordering select { width: 100%; }
  .shop-filter-toggle { width: 100%; justify-content: center; }

  /* Info cards */
  .info-cards      { grid-template-columns: 1fr 1fr; }

  /* Page hero */
  .page-hero__title { font-size: var(--text-xl); }

  /* Product card body */
  .product-card .pc-body { padding: var(--space-3); }
  .product-card .pc-title { font-size: var(--text-sm); }

  /* Section spacing */
  .section         { padding-block: var(--space-8); }
  .section--sm     { padding-block: var(--space-6); }
}

/* ── 360px — very small phones ── */
@media (max-width: 360px) {
  .product-grid,
  .product-grid.cols-5 { grid-template-columns: 1fr; }
  .cat-grid        { grid-template-columns: 1fr; }
  .info-cards      { grid-template-columns: 1fr; }
  .trust-strip     { grid-template-columns: 1fr; }
  .hs-copy h1      { font-size: var(--text-2xl); }
}
