/* ==========================================================================
   WordPress-specific additions on top of the original HTML styles.
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip: auto;
  color: #fff;
  background: #111;
  border-radius: 6px;
  text-decoration: none;
}

/* Product card links */
a.product-thumb {
  display: block;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover,
.product-title a:focus-visible {
  text-decoration: underline;
}

/* Products archive grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-grid .product-card {
  min-height: 0;
}

@media (max-width: 991.98px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Products archive: search, loading state, Load More */
.product-search {
  position: relative;
  flex: 0 1 340px;
  width: 100%;
}

.product-search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  opacity: 0.55;
  transform: translateY(-50%);
  pointer-events: none;
}

.product-search-input {
  width: 100%;
  height: 50px;
  padding: 10px 18px 10px 48px;
  font: inherit;
  font-size: 16px;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.product-search-input:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.product-results {
  position: relative;
  transition: opacity 0.2s ease;
}

.catalog.is-loading .product-results {
  pointer-events: none;
  opacity: 0.45;
}

.product-results .empty-note {
  margin: 0 0 40px;
}

.load-more-wrap {
  text-align: center;
}

.load-more-btn {
  min-width: 200px;
}

.load-more-btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

@media (max-width: 767.98px) {
  .product-search {
    flex-basis: 100%;
  }
}

/* Image + Text block: image on the right */
@media (min-width: 992px) {
  .about-grid-reverse .about-media {
    order: 2;
  }
}

/* Rich text / default page content */
.container-narrow {
  max-width: 960px;
}

.entry-content > * + * {
  margin-top: 1em;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content a {
  text-decoration: underline;
}

.page-default .section-title {
  margin-bottom: 30px;
}

.post-list {
  display: grid;
  gap: 30px;
}

.post-item-title a {
  color: inherit;
}

/* Pagination */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination .page-numbers {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pagination .page-numbers.current {
  color: var(--white);
  background-color: var(--black);
}

/* FAQ question wrapper: lock the h3 look so any SEO heading tag renders the same. */
.faq-heading {
  font-size: 18.72px;
  font-weight: 700;
  line-height: 1.2;
}

/* ==========================================================================
   Page Header (inner pages) — same look as the home hero, shorter
   ========================================================================== */

.page-header {
  padding: 100px 0 90px;
  color: var(--white);
  background-color: var(--black);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
}

.page-header-inner {
  max-width: 900px;
}

.page-header.is-center .page-header-inner {
  margin: 0 auto;
  text-align: center;
}

.page-header .tag {
  margin-bottom: 20px;
}

.page-header-title {
  max-width: none;
}

.page-header.is-center .page-header-title,
.page-header.is-center .page-header-text {
  margin-right: auto;
  margin-left: auto;
}

.page-header-text {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
}

.page-header .btn-group-row {
  margin-top: 30px;
}

.page-header-meta {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs {
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-header.is-center .breadcrumbs ol {
  justify-content: center;
}

.breadcrumbs li + li::before {
  margin-right: 8px;
  content: "/";
  opacity: 0.5;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.stat-card {
  height: 100%;
  padding: 30px 20px;
  text-align: center;
  background-color: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.04);
}

.bg-gray .stat-card {
  background-color: var(--white);
}

.stat-number {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-accent);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.1;
}

.stat-label {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.stat-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.tag-outline {
  margin-bottom: 20px;
  background-color: transparent;
  border: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  margin-bottom: 16px;
}

.contact-text {
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-muted);
}

.contact-details {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background-color: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bg-gray .contact-detail {
  background-color: var(--white);
}

.contact-detail-icon {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--black);
  border-radius: 50%;
}

.contact-detail-icon img {
  width: 22px;
  height: 22px;
  filter: invert(1);
}

.contact-detail-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-detail-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
  text-decoration: none;
  word-break: break-word;
}

a.contact-detail-value:hover,
a.contact-detail-value:focus-visible {
  text-decoration: underline;
}

.contact-form-card {
  padding: 40px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.contact-form-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-form-text {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.form-field .req {
  color: #c62828;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  background-color: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field select {
  padding-right: 44px;
  appearance: none;
  background-image: url("../icons/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background-color: var(--white);
  border-color: var(--black);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-field [aria-invalid="true"] {
  border-color: #c62828;
}

.form-error {
  margin: 6px 0 0;
  font-size: 14px;
  color: #c62828;
}

.form-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px 12px;
  align-items: start;
}

.form-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--black);
}

.form-check label {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-check label a {
  color: var(--black);
  text-decoration: underline;
}

.form-check .form-error {
  grid-column: 2;
  margin: 0;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit {
  justify-self: start;
}

.contact-submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.form-notice {
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: var(--radius);
}

.form-notice.is-success {
  color: #1b5e20;
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.form-notice.is-error {
  color: #b71c1c;
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
}

/* ==========================================================================
   Legal / Long text
   ========================================================================== */

.legal-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.legal-grid.no-toc {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.legal-toc {
  position: sticky;
  top: 30px;
}

.admin-bar .legal-toc {
  top: 62px;
}

.legal-toc-card {
  padding: 24px;
  background-color: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.bg-gray .legal-toc-card {
  background-color: var(--white);
}

.legal-toc-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-toc-list {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.legal-toc-list a {
  display: block;
  padding: 6px 10px;
  margin: 0 -10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-toc-list a:hover,
.legal-toc-list a:focus-visible,
.legal-toc-list a.is-active {
  color: var(--black);
  background-color: rgba(0, 0, 0, 0.06);
}

.legal-toc-list a.is-active {
  font-weight: 600;
}

.legal-body {
  max-width: 860px;
}

.legal-title {
  margin-bottom: 24px;
}

.legal-intro {
  padding-bottom: 30px;
  margin-bottom: 30px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-section + .legal-section {
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.legal-section-title {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-num {
  font-family: var(--font-accent);
  font-weight: 400;
}

.legal .entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal .entry-content ul,
.legal .entry-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal .entry-content li + li {
  margin-top: 6px;
}

.legal .entry-content strong {
  color: var(--black);
}

/* ==========================================================================
   New blocks — responsive
   ========================================================================== */

@media (max-width: 1199.98px) {
  .contact-grid,
  .legal-grid {
    gap: 40px;
  }

  .legal-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .page-header {
    padding: 70px 0 60px;
  }

  .contact-grid,
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 50px 0 45px;
  }

  .contact-form-card {
    padding: 24px;
  }

  .contact-submit {
    width: 100%;
  }

  .legal-section-title {
    font-size: 22px;
  }
}

/* ==========================================================================
   Horizontal overflow fixes
   ========================================================================== */

/* Keep absolutely positioned children (screen-reader labels, play icons...) inside
   their card, so they are clipped by the slider instead of widening the page. */
.product-card,
.testimonial-card,
.video-card {
  position: relative;
}

/* Visually hidden text must never push the layout. */
.screen-reader-text:not(:focus) {
  top: 0;
  left: 0;
}


/* Footer: between 992px and 1199px the brand column left too little room for the
   link columns + CTA button, so stack the brand above the columns earlier. */
@media (max-width: 1199.98px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

/* Safety net: nothing can create a sideways page scroll (clip keeps sticky elements working). */
body {
  overflow-x: clip;
}

/* YouTube popup player
   ========================================================================== */
.yt-modal-open,
.yt-modal-open body {
  overflow: hidden;
}

.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yt-modal[hidden] {
  display: none;
}

.yt-modal.is-open {
  opacity: 1;
}

.yt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.yt-modal-dialog {
  position: relative;
  width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9));
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.yt-modal.is-open .yt-modal-dialog {
  transform: none;
}

.yt-modal-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid var(--white);
  border-radius: 24px;
}

.yt-modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-modal-close {
  position: absolute;
  top: -56px;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--black);
  cursor: pointer;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.yt-modal-close:hover {
  transform: rotate(90deg);
}

.yt-modal-close:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .yt-modal {
    padding: 16px;
  }

  .yt-modal-frame {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yt-modal,
  .yt-modal-dialog,
  .yt-modal-close {
    transition: none;
  }
}

/* ==========================================================================
   Video carousel (YouTube) – 2/3/4 per row, swipe on small screens
   ========================================================================== */
.videos-carousel {
  --video-gap: 24px;
}

.videos-head {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.videos-head .section-title {
  margin: 0;
  color: #131313;
}

.videos-subtitle {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
}

.videos-nav {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.videos-nav-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--black);
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.videos-nav-btn.is-next svg {
  transform: scaleX(-1);
}

.videos-nav-btn:hover:not(:disabled) {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.videos-nav-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.videos-nav-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

/* Room around the cards so the hover lift and shadow are not clipped by the scroller. */
.videos-track {
  display: flex;
  gap: var(--video-gap);
  padding: 8px 6px 28px;
  margin: -8px -6px -28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-padding-inline: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.videos-track::-webkit-scrollbar {
  display: none;
}

.video-card {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - var(--video-gap) * (var(--video-cols, 3) - 1)) / var(--video-cols, 3));
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
}

.video-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.video-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 14px;
}

.video-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35));
  transition: opacity 0.25s ease;
}

.video-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding-left: 3px;
  color: var(--black);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.video-card:hover .video-play {
  color: var(--white);
  background: #ff0033;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 8px 8px;
}

.video-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #131313;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.video-meta svg {
  flex-shrink: 0;
}

.videos-dots {
  margin-top: 28px;
}

/* Everything fits in view: hide the controls. */
.videos-carousel.is-static .videos-nav,
.videos-carousel.is-static .videos-dots {
  display: none;
}

@media (max-width: 991.98px) {
  .videos-carousel {
    --video-cols: 2 !important;
    --video-gap: 20px;
  }
}

@media (max-width: 767.98px) {
  .videos-head {
    margin-bottom: 24px;
  }

  .videos-nav {
    display: none;
  }

  .videos-subtitle {
    font-size: 16px;
  }

  /* One card plus a peek of the next one, so it reads as swipeable. */
  .video-card {
    flex-basis: 84%;
  }

  .video-play {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-card,
  .video-thumb,
  .video-play {
    transition: none;
  }

  .video-card:hover,
  .video-card:hover .video-thumb {
    transform: none;
  }
}

/* Buttons that follow a list (lists have no bottom margin) */
ul + .btn-group-row,
ol + .btn-group-row,
ul + .btn,
ol + .btn {
  margin-top: 30px;
}

/* ==========================================================================
   Slider options (Slider tab on every slider block)
   ========================================================================== */

/* Videos: columns come from a data attribute (no inline style) */
.videos-carousel[data-video-cols="2"] {
  --video-cols: 2;
}

.videos-carousel[data-video-cols="3"] {
  --video-cols: 3;
}

.videos-carousel[data-video-cols="4"] {
  --video-cols: 4;
}

/* Cards visible on desktop (all tracks use a 30px gap) */
@media (min-width: 1200px) {
  [data-per-view="1"] [data-slider-track] > * {
    flex: 0 0 100%;
  }

  [data-per-view="2"] [data-slider-track] > * {
    flex: 0 0 calc((100% - 30px) / 2);
  }

  [data-per-view="3"] [data-slider-track] > * {
    flex: 0 0 calc((100% - 60px) / 3);
  }

  [data-per-view="4"] [data-slider-track] > * {
    flex: 0 0 calc((100% - 90px) / 4);
  }
}

/* Drag with the mouse */
[data-drag="1"]:not(.is-static) [data-slider-track] {
  cursor: grab;
}

[data-slider].is-dragging [data-slider-track] {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

[data-slider].is-dragging [data-slider-track] > * {
  pointer-events: none;
}

/* Dots: hidden when everything fits, readable on black */
[data-slider].is-static [data-slider-dots],
[data-slider].is-static + [data-slider-dots] {
  display: none;
}

.is-dark .slider-dot {
  background-color: rgba(255, 255, 255, 0.3);
}

.is-dark .slider-dot.active {
  background-color: var(--white);
}

/* Dots under a product slider: sit between the cards and the "View all" button */
.product-slider + .slider-dots {
  margin-top: -10px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Sticky offer bar / sticky header (Theme Settings → Header → Sticky)
   ========================================================================== */

body {
  /* space taken by the WordPress admin bar when logged in */
  --sticky-base: var(--wp-admin--admin-bar--height, 0px);
}

/* on small phones the admin bar scrolls away with the page */
@media screen and (max-width: 600px) {
  body {
    --sticky-base: 0px;
  }
}

.has-sticky-offer .offer-bar {
  position: sticky;
  top: var(--sticky-base);
  z-index: 60;
}

.has-sticky-header .site-header {
  position: sticky;
  top: var(--sticky-base);
  z-index: 50;
}

/* both on: the header sits right under the offer bar (height measured in main.js) */
.has-sticky-offer.has-sticky-header .site-header {
  top: calc(var(--sticky-base) + var(--offer-h, 0px));
}

/* soft shadow once the page has scrolled under the bars */
.has-sticky-header .site-header.is-stuck,
.has-sticky-offer:not(.has-sticky-header) .offer-bar.is-stuck {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* a tall mobile menu scrolls inside itself instead of running off screen */
@media (max-width: 991.98px) {
  .has-sticky-header .header-nav.is-open .header-nav-inner {
    max-height: calc(100dvh - var(--sticky-base) - var(--offer-h, 0px) - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ==========================================================================
   Back to top button (Theme Settings → Header → Sticky)
   ========================================================================== */

.back-to-top {
  --progress: 0;
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--white);
  background-color: var(--black);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  visibility: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, background-color 0.2s ease;
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s, background-color 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background-color: var(--dark-hover);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ring that fills as the page is scrolled */
.back-to-top-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.back-to-top-track,
.back-to-top-progress {
  fill: none;
  stroke-width: 2.5;
}

.back-to-top-track {
  stroke: rgba(255, 255, 255, 0.18);
}

.back-to-top-progress {
  stroke: var(--white);
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress));
  stroke-linecap: round;
}

.back-to-top-arrow {
  position: relative;
  transition: transform 0.2s ease;
}

.back-to-top:hover .back-to-top-arrow {
  transform: translateY(-2px);
}

/* keep clear of the search panel and video popup */
.has-search-open .back-to-top,
.yt-modal-open .back-to-top {
  visibility: hidden;
  opacity: 0;
}

@media (max-width: 767.98px) {
  .back-to-top {
    bottom: 18px;
    width: 46px;
    height: 46px;
  }

  .back-to-top-ring {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top.is-visible,
  .back-to-top-arrow {
    transition: none;
  }
}

/* ==========================================================================
   Products archive: search + "Sort by" side by side
   ========================================================================== */

/* search + sort stay side by side; on narrower screens the pair moves under the heading */
.catalog-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.catalog-tools .product-search {
  flex: 0 0 260px;
}

.product-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 50px;
  padding: 0 0 0 16px;
  background-color: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.product-sort:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.product-sort-label {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.product-sort-select {
  height: 100%;
  padding: 0 40px 0 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  background: transparent url("../icons/chevron-down.svg") no-repeat right 14px center / 18px;
  border: 0;
  border-radius: var(--radius);
  outline: 0;
  appearance: none;
}

/* black section chosen for the archive */
.is-dark .product-sort {
  border-color: var(--white);
}

/* tablets / small laptops: search + sort get their own row under the category buttons */
@media (max-width: 1199.98px) {
  .catalog-tools {
    flex-basis: 100%;
  }
}

@media (max-width: 767.98px) {
  .catalog-tools {
    flex-wrap: wrap;
  }

  .catalog-tools .product-search,
  .product-sort {
    flex: 1 1 100%;
  }

  .product-sort-select {
    flex: 1;
  }
}

/* ==========================================================================
   Custom dropdown (select[data-custom-select]), used by "Sort by"
   ========================================================================== */

/* the real select stays for the value, out of sight */
.cs-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.product-sort-label {
  cursor: pointer;
}

.cs-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 0 14px 0 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  outline: 0;
}

.cs-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cs-wrap.is-open .cs-chevron {
  transform: rotate(180deg);
}

.cs-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: -1px;
  z-index: 40;
  min-width: calc(100% + 2px);
  padding: 6px;
  margin: 0;
  list-style: none;
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  outline: 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
  transform-origin: top right;
  animation: cs-open 0.16s ease-out;
}

@keyframes cs-open {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.cs-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--black);
  white-space: nowrap;
  cursor: pointer;
  border-radius: 9px;
  transition: background-color 0.12s ease;
}

.cs-option.is-active {
  background-color: var(--gray-bg);
}

.cs-option[aria-selected="true"] {
  font-weight: 600;
}

.cs-check {
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cs-option[aria-selected="true"] .cs-check {
  opacity: 1;
  transform: none;
}

/* black archive background: the closed box text stays readable */
.is-dark .cs-trigger,
.is-dark .product-sort-label {
  color: var(--white);
}

.is-dark .product-sort {
  background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .cs-menu {
    animation: none;
  }

  .cs-chevron,
  .cs-check {
    transition: none;
  }
}
