/* Nautica Home category hero v6 */
.category-hero-shell {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--nautica-category-hero-header, 154px));
  min-height: 520px;
  background: #e9e9e9;
  overflow: hidden;
  overscroll-behavior: contain;
}
.category-hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e7e7e7;
}
.category-hero__media,
.category-hero__slide,
.category-hero__shade,
.category-hero__hitarea { position: absolute; inset: 0; }
.category-hero__slide {
  opacity: 0;
  background-color: #dedede;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: var(--category-cms-desktop, none);
  transform: scale(1.015);
  transition: opacity .62s ease, transform 1.25s ease;
  z-index: 0;
}
.category-hero__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.category-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.category-hero__slide.cms-disabled { display: none; }

.category-hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.03) 45%, rgba(0,0,0,.26) 100%);
}
/* No center label: missing CMS imagery remains a clean neutral field. */
.category-hero__slide::after { content: none !important; }
.category-hero__shade {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5,18,32,.45) 0%, rgba(5,18,32,.18) 38%, rgba(5,18,32,.20) 62%, rgba(5,18,32,.55) 100%);
}
.category-hero__hitarea {
  z-index: 3;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.category-hero__controls {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: clamp(34px, 5.2vh, 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  pointer-events: none;
}
.category-hero__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 58px);
  width: 100%;
  pointer-events: auto;
}
.category-hero__tab {
  position: relative;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.66);
  padding: 0 0 9px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease;
}
.category-hero__tab::before,
.category-hero__tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform-origin: left center;
}
.category-hero__tab::before { background: rgba(255,255,255,.24); }
.category-hero__tab::after {
  background: rgba(255,255,255,.96);
  transform: scaleX(0);
}
.category-hero__tab:hover { color: #fff; }
.category-hero__tab.is-active { color: #fff; }
.category-hero__tab.is-active::after {
  animation: nauticaHeroProgress var(--nautica-hero-duration, 6s) linear forwards;
}
@keyframes nauticaHeroProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Hero header mode: utility bar stays navy; brand + main navigation float over the media. */
.site-header.is-hero-mode,
.site-header.is-hero-mode.is-scrolled {
  background: transparent !important;
  box-shadow: none !important;
}
.site-header.is-hero-mode .brand-bar,
.site-header.is-hero-mode > .main-nav {
  background: transparent !important;
  border-color: transparent !important;
}
.site-header.is-hero-mode .brand-logo--dark { opacity: 0 !important; }
.site-header.is-hero-mode .brand-logo--light { opacity: 1 !important; }
.site-header.is-hero-mode .header-action,
.site-header.is-hero-mode .nav-link,
.site-header.is-hero-mode.is-scrolled .nav-link,
.site-header.is-hero-mode .nav-item.is-active .nav-link,
.site-header.is-hero-mode .nav-item:hover .nav-link,
.site-header.is-hero-mode .nav-item:focus-within .nav-link {
  color: #fff !important;
}
.site-header.is-hero-mode .nav-item::after,
.site-header.is-hero-mode .nav-item.is-active::after,
.site-header.is-hero-mode .nav-item:hover::after,
.site-header.is-hero-mode .nav-item:focus-within::after {
  background: #fff !important;
}
.site-header.is-hero-mode .menu-toggle span,
.site-header.is-hero-mode.is-scrolled .menu-toggle span {
  background: #fff !important;
}
/* Pull the hero under the transparent brand/navigation area while leaving the utility bar intact. */
.site-header.is-hero-mode + main .category-hero-shell {
  margin-top: -120px;
  height: calc(100svh - var(--nautica-category-hero-header, 160px) + 120px);
}

@media (max-width: 760px) {
  .category-hero-shell {
    min-height: 520px;
    height: calc(100svh - var(--nautica-category-hero-header, 96px));
  }
  .site-header.is-hero-mode + main .category-hero-shell {
    margin-top: -62px;
    height: calc(100svh - var(--nautica-category-hero-header, 96px) + 62px);
  }
  .category-hero__slide { background-image: var(--category-cms-mobile, var(--category-cms-desktop, none)); }
  .category-hero__controls { bottom: 24px; padding: 0 16px; }
  .category-hero__menu {
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 12px 2px;
  }
  .category-hero__menu::-webkit-scrollbar { display:none; }
  .category-hero__tab { flex: 0 0 auto; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-hero__slide { transition: none; transform: none; }
  .category-hero__tab.is-active::after { animation: none; transform: scaleX(1); }
}

/* v7: hero navigation polish */
/* Home must not look selected while the hero is active; all nav links share the same white treatment. */
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link,
.site-header.is-hero-mode.is-scrolled .main-nav .nav-item:first-child .nav-link {
  color: #fff !important;
  font-weight: 400 !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child::after,
.site-header.is-hero-mode.is-scrolled .main-nav .nav-item:first-child::after {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child:hover::after,
.site-header.is-hero-mode .main-nav .nav-item:first-child:focus-within::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* Only the active hero category displays its timing line. */
.category-hero__tab::before {
  opacity: 0;
}
.category-hero__tab.is-active::before {
  opacity: 1;
}

/* v8: exact hero navigation state */
.site-header.is-hero-mode .main-nav .nav-item:first-child,
.site-header.is-hero-mode .main-nav .nav-item:first-child.is-active {
  color: #fff !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link,
.site-header.is-hero-mode .main-nav .nav-item:first-child.is-active .nav-link,
.site-header.is-hero-mode.is-scrolled .main-nav .nav-item:first-child .nav-link,
.site-header.is-hero-mode.is-scrolled .main-nav .nav-item:first-child.is-active .nav-link {
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child::after,
.site-header.is-hero-mode .main-nav .nav-item:first-child.is-active::after {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child:hover::after,
.site-header.is-hero-mode .main-nav .nav-item:first-child:focus-within::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* Keep both brand assets in the exact same layout box. */
.site-header .brand {
  position: relative;
  width: 144px;
  height: 38px;
  display: block;
}
.site-header .brand .brand-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 144px !important;
  height: 38px !important;
  object-fit: contain;
  object-position: left top;
}


/* v9: force every hero navigation state, including Home visited/current, to pure white */
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:link,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:visited,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:hover,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:focus,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:active {
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child::after {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child:hover::after,
.site-header.is-hero-mode .main-nav .nav-item:first-child:focus-within::after {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

/* v10: Home must render exactly like the other white hero links. */
.site-header.is-hero-mode .main-nav .nav-item:first-child,
.site-header.is-hero-mode .main-nav .nav-item:first-child.is-active {
  opacity: 1 !important;
}
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:link,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:visited,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:hover,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:focus,
.site-header.is-hero-mode .main-nav .nav-item:first-child .nav-link:active,
.site-header.is-hero-mode .main-nav .nav-item:first-child.is-active .nav-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* v12: right-side category rail. The former horizontal control is turned 90deg
   and stacked on the right, preserving the active progress indicator. */
.category-hero__controls {
  left: auto;
  right: clamp(10px, 1.6vw, 24px);
  top: 50%;
  bottom: auto;
  width: 96px;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.category-hero__menu {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vh, 28px);
  overflow: visible;
  padding: 0;
}
.category-hero__tab {
  box-sizing: border-box;
  width: 96px;
  min-width: 96px;
  padding: 0 0 8px;
  text-align: center;
  transform: rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  /* On mobile the hero must occupy the complete available landing viewport
     when the intro hands control over to the page. */
  .category-hero-shell {
    height: calc(100dvh - var(--nautica-category-hero-header, 96px));
    min-height: 0;
  }
  .site-header.is-hero-mode + main .category-hero-shell {
    height: calc(100dvh - var(--nautica-category-hero-header, 96px) + 62px);
  }
  .category-hero__controls {
    right: 2px;
    top: 50%;
    bottom: auto;
    width: 76px;
    padding: 0;
    transform: translateY(-50%);
  }
  .category-hero__menu {
    width: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    overflow: visible;
    padding: 0;
  }
  .category-hero__tab {
    width: 76px;
    min-width: 76px;
    font-size: 9px;
    padding-bottom: 7px;
    transform: rotate(90deg);
  }
}

/* v13: desktop returns to the original horizontal category menu.
   The 90-degree right-side rail is mobile-only and follows the approved mockup. */
@media (min-width: 761px) {
  .category-hero__controls {
    left: 0;
    right: 0;
    top: auto;
    bottom: clamp(34px, 5.2vh, 58px);
    width: auto;
    padding: 0 28px;
    transform: none;
  }
  .category-hero__menu {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 4vw, 58px);
    overflow: visible;
    padding: 0;
  }
  .category-hero__tab {
    width: auto;
    min-width: 0;
    padding: 0 0 9px;
    text-align: center;
    transform: none;
  }
}

@media (max-width: 760px) {
  /* Approved mobile layout: a compact vertical rail on the far right.
     DOM order is reversed visually so ILUMINACION is at the top and INTERIOR at the bottom. */
  .category-hero__controls {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    width: 58px;
    padding: 0;
    transform: translateY(-50%);
  }
  .category-hero__menu {
    width: 58px;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3.6vh, 34px);
    overflow: visible;
    padding: 0;
  }
  .category-hero__tab {
    width: 78px;
    min-width: 78px;
    padding: 0 0 7px;
    font-size: 10px;
    letter-spacing: .11em;
    text-align: center;
    transform: rotate(-90deg);
    transform-origin: center;
  }
}

/* v14: mobile category rail spacing fix.
   Rotated labels need real vertical room because transforms do not affect flex layout sizing. */
@media (max-width: 760px) {
  .category-hero__controls {
    right: 2px;
    top: 50%;
    height: min(68dvh, 560px);
    min-height: 420px;
    width: 62px;
    transform: translateY(-50%);
  }
  .category-hero__menu {
    width: 62px;
    height: 100%;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 8px 0;
    overflow: visible;
  }
  .category-hero__tab {
    flex: 0 0 auto;
    width: 108px;
    min-width: 108px;
    height: 18px;
    padding: 0 0 6px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .11em;
    text-align: center;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .category-hero__controls {
    height: 78dvh;
    min-height: 390px;
  }
  .category-hero__tab {
    width: 96px;
    min-width: 96px;
    font-size: 9px;
  }
}

/* v15: adaptive mobile category rail.
   Keeps the rotated labels compact and inside the viewport on short/small phones. */
@media (max-width: 760px) {
  .category-hero__controls {
    right: 2px;
    top: 50%;
    width: 56px;
    height: clamp(300px, 56dvh, 430px);
    min-height: 0;
    max-height: calc(100dvh - 170px);
    transform: translateY(-50%);
  }

  .category-hero__menu {
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    place-items: center;
    width: 56px;
    height: 100%;
    padding: 4px 0;
    gap: 0;
  }

  .category-hero__tab {
    width: clamp(66px, 9.5dvh, 84px);
    min-width: 0;
    height: 16px;
    padding: 0 0 5px;
    font-size: clamp(8px, 1.12dvh, 9.5px);
    line-height: 1;
    letter-spacing: .09em;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
  }
}

@media (max-width: 760px) and (max-height: 680px) {
  .category-hero__controls {
    height: min(58dvh, 360px);
    max-height: calc(100dvh - 145px);
  }
  .category-hero__tab {
    width: clamp(60px, 9.2dvh, 70px);
    font-size: 8px;
    letter-spacing: .07em;
  }
}

/* v16: mobile-only left category rail test.
   Desktop remains unchanged; on mobile mirror the adaptive rail to the left
   so it does not compete with the floating WhatsApp control. */
@media (max-width: 760px) {
  .category-hero__controls {
    left: 2px;
    right: auto;
  }
}
