:root {
  --navy: #010d35;
  --blue: #0075ff;
  --orange: #fe951c;
}

img {
  max-width: 100%;
  height: auto;
}

.custom-navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(8, 24, 67, 0.08);
  padding: 18px 0;
  box-shadow: 0 10px 26px rgba(8, 24, 67, 0.06);
}

.custom-navbar .container,
.footer-section .container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.navbar-brand img {
  width: auto;
  height: 42px;
}

.navbar-toggler {
  border: 1px solid rgba(8, 24, 67, 0.12);
  border-radius: 8px;
}

.custom-navbar .fw-menu-toggle {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  color: #17213d;
}

html[data-theme="dark"] .custom-navbar .fw-menu-toggle {
  color: var(--fw-dark-text);
}

.fw-menu-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.fw-menu-icon::before,
.fw-menu-icon::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.fw-menu-icon::before {
  transform: translateY(-6px);
}

.fw-menu-icon::after {
  transform: translateY(6px);
}

.navbar-toggler[aria-expanded="true"] .fw-menu-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .fw-menu-icon::before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .fw-menu-icon::after {
  transform: rotate(-45deg);
}

.custom-navbar
  :is(
    .navbar-brand,
    .navbar-toggler,
    .nav-link,
    .nav-icon,
    .btn-user-trigger
  ):focus-visible {
  outline: 2px solid #398dfa;
  outline-offset: 3px;
  box-shadow: none;
}

.nav-link {
  position: relative;
  font-weight: 650;
  color: #17213d !important;
  font-size: 0.94rem;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.active-link {
  color: var(--blue) !important;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:hover::after,
.active-link::after {
  transform: scaleX(1);
}

.nav-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(8, 24, 67, 0.12);
  border-radius: 8px;
  color: #17213d;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.apparel-zoom-controls:not([hidden]) {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.apparel-zoom-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #5e9fdf;
  border-radius: 9px;
  background: #10233b;
  color: #fff;
  cursor: pointer;
}

.apparel-zoom-controls button:enabled:hover {
  background: #174e87;
}

.apparel-zoom-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.apparel-zoom-controls button:disabled {
  opacity: 0.65;
  cursor: default;
}

.apparel-zoom-controls svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.nav-icon i,
.nav-icon i::before {
  display: block;
  line-height: 1;
}

.nav-icon:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.custom-navbar .container > .nav-icon + .nav-icon {
  margin-left: 12px;
}

nav.custom-navbar .container .fw-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px !important;
}

.custom-navbar .fw-nav-actions > .fw-cart-button {
  margin-inline-start: 0;
}

.mobile-page-title {
  font-weight: 750;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.user-dropdown-wrapper {
  position: relative;
}

.btn-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #6c63ff, #ff6584);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 9999;
  animation: dropFadeIn 0.18s ease;
}

.user-dropdown-menu.show {
  display: block;
}

@keyframes dropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drop-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.drop-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c63ff, #ff6584);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.drop-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-user-email {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-section {
  padding: 6px;
  background: #fff;
}

.drop-section + .drop-section {
  border-top: 1px solid #f0f0f0;
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}

.drop-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.drop-item.danger {
  color: #ef4444;
}

.drop-item.danger:hover {
  background: rgba(239, 68, 68, 0.07);
}

.drop-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.footer-section {
  background: linear-gradient(135deg, #010d35 0%, #08245d 100%) !important;
  color: #fff;
  padding: 76px 0 28px;
}

.footer-title {
  font-weight: 850;
  margin-bottom: 14px;
}

.footer-subtitle {
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
}

.footer-subtitle::after {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--orange);
  position: absolute;
  left: 0;
  bottom: -8px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 991px) {
  :is(.coaching-navbar, .compact-navbar) > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 6px;
    padding-inline: 0;
  }

  :is(.coaching-navbar, .compact-navbar) > .container > .d-flex {
    gap: 6px !important;
  }

  :is(.coaching-navbar, .compact-navbar) > .container > .d-flex:first-child {
    grid-column: 1;
    grid-row: 1;
    flex: 1;
    min-width: 0;
  }

  :is(.coaching-navbar, .compact-navbar) > .container > .d-flex:last-child {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
  }

  :is(.coaching-navbar, .compact-navbar) .navbar-collapse {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 1;
    flex-basis: 100%;
  }

  :is(.coaching-navbar, .compact-navbar) .navbar-brand {
    flex-shrink: 0;
  }

  :is(.coaching-navbar, .compact-navbar) .navbar-brand img {
    height: 32px;
  }

  :is(.coaching-navbar, .compact-navbar) .fw-menu-toggle {
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
  }

  :is(.coaching-navbar, .compact-navbar) .nav-icon {
    width: 36px;
    height: 40px;
    flex: 0 0 36px;
  }

  :is(.coaching-navbar, .compact-navbar) .mobile-page-title {
    min-width: 0;
    overflow: hidden;
    font-size: 0.875rem;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .custom-navbar {
    padding: 16px 0;
  }

  .recap-navbar > .container {
    column-gap: 6px;
    padding-inline: 0;
  }

  .recap-navbar > .container > .d-flex {
    gap: 6px !important;
  }

  .recap-navbar > .container > .d-flex:first-child {
    flex: 1;
    min-width: 0;
  }

  .recap-navbar .navbar-collapse {
    order: 1;
  }

  .recap-navbar .navbar-brand img {
    height: 34px;
  }

  .recap-navbar .mobile-page-title {
    overflow: hidden;
    font-size: 0.875rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 10px 4px 4px;
    border-top: 1px solid rgba(8, 24, 67, 0.08);
  }

  .custom-navbar .navbar-nav {
    gap: 3px !important;
  }

  .custom-navbar .navbar-nav .nav-link {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 9px;
    transform: none;
  }

  .custom-navbar .navbar-nav :is(.active-link, .nav-link:focus-visible) {
    background: rgb(57 141 250 / 13%);
  }

  .nav-link::after {
    display: none;
  }
}

@media (min-width: 992px) {
  .custom-navbar.navbar-expand-lg .fw-menu-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fw-menu-icon::before,
  .fw-menu-icon::after,
  .custom-navbar .nav-link,
  .custom-navbar .nav-link::after,
  .custom-navbar .nav-icon {
    transition: none;
  }

  .custom-navbar .nav-link:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  body .reveal-left,
  body .reveal-right {
    transform: none;
  }
}

@media (max-width: 420px) {
  .custom-navbar .container,
  .footer-section .container {
    width: min(100% - 24px, 1180px);
  }
}
