/*
 * Captain Greek premium logo treatment.
 * Current markup target:
 * .logo-top .nav-logo.text-hide > a.no-premium > img.img-fluid
 *
 * Goal:
 * - keep image at current 170x64 size
 * - remove harsh white-card feeling
 * - center logo naturally in header row
 * - avoid pushing the department menu/search row out of alignment
 */

.page-header .col-logo {
  position: relative;
}

/* The logo row should feel composed, not stretched. */
.page-header .col-logo .menu-logo {
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 78px !important;
  padding: 0 !important;
}

/* Override table-cell behavior from the theme. */
.page-header .logo-top,
.page-header .logo-top.d-table-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: 100% !important;
  vertical-align: middle !important;
}

/* New manually-updated logo wrapper. */
.page-header .logo-top .nav-logo,
.page-header .logo-top .nav-logo.text-hide {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  font-size: 0 !important;
}

/* Premium compact card around the transparent logo. */
.page-header .logo-top .nav-logo > a,
.page-header .logo-top .nav-logo > a.no-premium {
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  /*
   * Image is 170x64.
   * Card is intentionally only slightly larger so it does not stick out.
   */
  width: 188px !important;
  height: 72px !important;
  padding: 3px 8px !important;

  border-radius: 18px !important;
  overflow: hidden !important;
  text-decoration: none !important;

  /*
   * Much softer than a white background:
   * translucent ivory, champagne edge, very light depth.
   */
  background:
    radial-gradient(14rem 5rem at 18% -120%, rgba(216, 189, 123, .18), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(250, 246, 238, .16)) !important;

  border: 1px solid rgba(216, 189, 123, .20) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    0 7px 18px rgba(13, 22, 36, .045) !important;

  transform: translateZ(0);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease !important;
}

.page-header .logo-top .nav-logo > a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .20), transparent 50%),
    linear-gradient(90deg, transparent, rgba(216, 189, 123, .055), transparent);
  opacity: .72;
}

.page-header .logo-top .nav-logo > a::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 5px;
  left: 20px;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 189, 123, .38), transparent);
  opacity: .52;
}

/* Keep logo at current visual size. */
.page-header .logo-top .nav-logo > a img,
.page-header .logo-top .nav-logo > a img.img-fluid {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 170px !important;
  height: 64px !important;
  max-width: 170px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Hide the empty strong tag without affecting layout. */
.page-header .logo-top .nav-logo > a strong {
  display: none !important;
}

.page-header .logo-top .nav-logo > a:hover,
.page-header .logo-top .nav-logo > a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(216, 189, 123, .34) !important;
  background:
    radial-gradient(14rem 5rem at 18% -120%, rgba(216, 189, 123, .22), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(250, 246, 238, .20)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 10px 22px rgba(13, 22, 36, .065) !important;
  outline: none !important;
}

.page-header .logo-top .nav-logo > a:focus-visible {
  box-shadow:
    0 0 0 3px rgba(216, 189, 123, .20),
    inset 0 1px 0 rgba(255, 255, 255, .42),
    0 10px 22px rgba(13, 22, 36, .065) !important;
}

/*
 * Because the department menu sits below the logo inside the same left column,
 * keep the gap tight and intentional.
 */
.page-header .col-logo .mb-navigation.vertical-menu {
  margin-top: 2px !important;
}

/* Neutralize old logo-card rules if a previous stylesheet version targeted h1.logo. */
.page-header h1.logo,
.page-header h1.logo.text-hide,
.page-header h1.logo a.logo,
.page-header h1.logo a.logo.no-premium {
  min-width: 0;
  min-height: 0;
}

/* Tablet: keep the same image size unless the column gets too tight. */
@media (min-width: 768px) and (max-width: 1199px) {
  .page-header .col-logo .menu-logo {
    min-height: 76px !important;
  }

  .page-header .logo-top .nav-logo > a,
  .page-header .logo-top .nav-logo > a.no-premium {
    width: 184px !important;
    height: 70px !important;
    padding: 3px 7px !important;
    border-radius: 17px !important;
  }

  .page-header .logo-top .nav-logo > a::before {
    border-radius: 16px;
  }

  .page-header .logo-top .nav-logo > a img,
  .page-header .logo-top .nav-logo > a img.img-fluid {
    width: 170px !important;
    height: 64px !important;
    max-width: 170px !important;
    max-height: 64px !important;
  }
}

/* Mobile: preserve current branding, but make it share space with cart/account icons. */
@media (max-width: 767px) {
  .page-header .col-logo .menu-logo {
    min-height: 68px !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .page-header .logo-top,
  .page-header .logo-top.d-table-cell {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .page-header .logo-top .nav-logo > a,
  .page-header .logo-top .nav-logo > a.no-premium {
    width: 168px !important;
    height: 60px !important;
    padding: 2px 6px !important;
    border-radius: 16px !important;
  }

  .page-header .logo-top .nav-logo > a::before {
    border-radius: 15px;
  }

  .page-header .logo-top .nav-logo > a img,
  .page-header .logo-top .nav-logo > a img.img-fluid {
    width: 156px !important;
    height: auto !important;
    max-width: 156px !important;
    max-height: 56px !important;
  }

  .page-header .icon-top-mobile {
    flex: 0 0 auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-header .logo-top .nav-logo > a,
  .page-header .logo-top .nav-logo > a img {
    transition: none !important;
  }
}
