/* Women landing page shell and adaptive source header. */

.farfetch-catalog-page .women-landing-page {
  margin: 0;
  max-width: none;
  overflow-x: clip;
  padding: 0;
  width: 100%;
}

.farfetch-catalog-page .women-landing-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
}

.farfetch-catalog-page .women-landing-content > .women-product-row,
.farfetch-catalog-page .women-landing-content > .women-landing-dynamic-ads,
.farfetch-catalog-page .women-landing-content > .women-landing-trending,
.farfetch-catalog-page .women-landing-content > .women-landing-brands {
  flex: 0 0 auto;
  width: calc(100% - 32px);
}

/* The captured catalogue has no general entrance/reveal treatment. The
 * shared retail runtime adds .ff-load-image to every image, so opt this route
 * out for editorial and brand artwork. Product-card images keep their own
 * extracted 300ms opacity transition in mobile-women-landing-products.css. */
html.ff-motion-capable .farfetch-catalog-page .women-landing-page [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

html.ff-motion-capable .farfetch-catalog-page .women-landing-page img.ff-load-image:not(.women-product-card__image) {
  opacity: 1;
  transition: none;
}

@media (max-width: 820px) {
  .farfetch-catalog-page .women-landing-promo-bar {
    align-items: center;
    background: #e6e6e6;
    color: #222;
    font-size: 13px;
    height: 30px;
    line-height: 17.0001px;
    padding: 6px 16px;
  }

  .farfetch-catalog-page .site-header {
    animation: none;
    background: #fff;
    position: sticky;
    top: 0;
    transition: transform 200ms ease-in-out;
    z-index: 200;
  }

  .farfetch-catalog-page .women-landing-promo-link {
    color: #222;
    display: inline;
    text-decoration: underline;
  }

  .farfetch-catalog-page .women-landing-promo-copy {
    display: flow-root;
    font-size: 13px;
    line-height: 17.0001px;
    width: 100%;
  }

  .farfetch-catalog-page .site-header .header-primary {
    display: block;
    height: 68px;
    padding: 0;
    position: relative;
  }

  .farfetch-catalog-page .site-header .header-primary::before {
    content: none;
  }

  .farfetch-catalog-page .site-header .header-secondary,
  .farfetch-catalog-page .site-header .department-nav {
    display: none;
  }

  .farfetch-catalog-page .site-header .site-logo {
    height: 16px;
    left: 50%;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 124px;
  }

  .farfetch-catalog-page .site-header .site-logo-mark {
    height: 16px;
    width: 124px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions,
  .farfetch-catalog-page .site-header .header-actions {
    align-items: center;
    display: flex;
    height: 44px;
    position: absolute;
    top: 12px;
    width: 88px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions {
    left: 12px;
  }

  body.farfetch-catalog-page .site-header .header-actions {
    right: 12px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-icon-button,
  .farfetch-catalog-page .site-header .header-actions .icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    color: #222;
    display: flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: background-color 300ms cubic-bezier(0, 0, 0, 1), border-color 300ms cubic-bezier(0, 0, 0, 1), opacity 300ms cubic-bezier(0, 0, 0, 1), color 300ms cubic-bezier(0, 0, 0, 1);
    width: 44px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-icon-button:hover,
  .farfetch-catalog-page .site-header .header-actions .icon-button:hover {
    background: #f5f5f5;
  }

  .farfetch-catalog-page .site-header .compact-mobile-icon-button:focus-visible,
  .farfetch-catalog-page .site-header .header-actions .icon-button:focus-visible {
    background: transparent;
    outline: 2px solid #101010;
    outline-offset: -2px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-icon-button svg,
  .farfetch-catalog-page .site-header .header-actions .icon-button svg {
    display: block;
    fill: currentColor;
    height: 24px;
    stroke: none;
    width: 24px;
  }
}

@media (max-width: 600px) {
  .farfetch-catalog-page .women-landing-promo-bar {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .farfetch-catalog-page .site-header .header-primary {
    height: 44px;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions,
  .farfetch-catalog-page .site-header .header-actions {
    top: 0;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions {
    left: 4px;
  }

  body.farfetch-catalog-page .site-header .header-actions {
    right: 4px;
  }
}

/* The current commerce header keeps all four account controls visible on the
 * women landing. Match the shared shell's specificity so that source state is
 * not overridden by the legacy compact-header rule. */
@media (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .header-actions .region-button,
  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .header-actions .account-button {
    display: flex !important;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .compact-mobile-actions {
    top: 12px !important;
  }
}

@media (min-width: 601px) {
  .farfetch-catalog-page .women-landing-promo-bar {
    background: #e6e6e6;
    color: #222;
    justify-content: center;
  }

  .farfetch-catalog-page .women-landing-promo-link {
    color: #222;
    font-size: 13px;
    line-height: 17.0001px;
  }

  .farfetch-catalog-page .women-landing-promo-copy {
    text-align: center;
  }

  .farfetch-catalog-page .women-landing-content > .women-product-row,
  .farfetch-catalog-page .women-landing-content > .women-landing-dynamic-ads,
  .farfetch-catalog-page .women-landing-content > .women-landing-trending,
  .farfetch-catalog-page .women-landing-content > .women-landing-brands {
    width: calc(100% - 48px);
  }
}

@media (min-width: 821px) {
  /* The full retail navigation remains fixed after the promotion bar scrolls
   * away, matching the live women landing's native sticky header. */
  .farfetch-catalog-page .site-header {
    position: sticky;
    top: 0;
    z-index: 200;
  }

  /* 30px promotion bar + 68px primary row + 56px category row. */
  .farfetch-catalog-page .site-header .header-secondary {
    height: 56px;
  }
}

/* The catalogue uses the full retail shell on narrow screens: a 44px
 * primary row with the department picker and four account actions, followed
 * by the 56px horizontally-scrolling category/search row. */
@media (max-width: 600px) {
  .farfetch-catalog-page .site-header .header-primary {
    height: 44px !important;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions {
    display: none !important;
  }

  .farfetch-catalog-page .site-header .department-nav {
    align-items: center;
    display: flex !important;
    height: 44px;
    left: 4px;
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .farfetch-catalog-page .site-header .department-nav a {
    display: none !important;
  }

  .farfetch-catalog-page .site-header .welcome-department-picker {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: #222;
    display: flex;
    font: inherit;
    font-size: 15px;
    gap: 8px;
    height: 44px;
    justify-content: flex-start;
    line-height: 20px;
    margin: 0;
    padding: 0 12px;
    width: 158.4375px;
  }

  .farfetch-catalog-page .site-header .welcome-department-picker span {
    font-size: 16px;
    line-height: 20px;
  }

  .farfetch-catalog-page .site-header .header-actions {
    display: flex !important;
    height: 44px;
    right: 4px !important;
    top: 0;
    width: 176px !important;
  }

  .farfetch-catalog-page .site-header .header-actions .region-button,
  .farfetch-catalog-page .site-header .header-actions .account-button {
    display: flex !important;
  }

  .farfetch-catalog-page .site-header .header-secondary {
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    display: flex !important;
    height: 56px !important;
    min-height: 56px;
    overflow: hidden;
    padding: 0 16px;
  }

  .farfetch-catalog-page .site-header .header-secondary > .mobile-menu-button,
  .farfetch-catalog-page .site-header .header-secondary > .mobile-new-in {
    display: none !important;
  }

  .farfetch-catalog-page .site-header .header-secondary > .category-nav {
    align-items: center;
    display: flex !important;
    flex: 0 0 88px;
    gap: 24px;
    height: 56px;
    margin: 0;
    max-width: 88px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  .farfetch-catalog-page .site-header .header-secondary > .category-nav::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  .farfetch-catalog-page .site-header .header-secondary > .category-nav a {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 20px;
  }

  .farfetch-catalog-page .site-header .header-secondary > .header-search {
    border-bottom: 1px solid #727272;
    display: flex !important;
    flex: 1 1 auto;
    height: 44px;
    margin: 0;
    min-width: 0;
  }

  .farfetch-catalog-page .site-header .header-secondary > .header-search input {
    display: block !important;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  .farfetch-catalog-page .site-header .header-primary {
    height: 68px !important;
  }

  .farfetch-catalog-page .site-header .compact-mobile-actions {
    display: none !important;
  }

  .farfetch-catalog-page .site-header .department-nav {
    align-items: center;
    display: flex !important;
    height: 68px;
    left: 16px;
    position: absolute;
    top: 0;
    z-index: 2;
  }

  .farfetch-catalog-page .site-header .department-nav a {
    display: none !important;
  }

  .farfetch-catalog-page .site-header .welcome-department-picker {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
  }

  .farfetch-catalog-page .site-header .header-actions {
    display: flex !important;
    height: 44px;
    right: 16px !important;
    top: 12px;
    width: 176px !important;
  }

  .farfetch-catalog-page .site-header .header-actions .region-button,
  .farfetch-catalog-page .site-header .header-actions .account-button {
    display: flex !important;
  }

  .farfetch-catalog-page .site-header .header-secondary {
    display: flex !important;
    height: 56px !important;
    min-height: 56px;
  }
}

/* The live women landing only exposes the promo bar and primary retail row.
 * Its category/search rail belongs to catalogue result pages, not New in. */
@media (max-width: 820px) {
  .farfetch-catalog-page .site-header .header-secondary {
    border-bottom: 0 !important;
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
}

/* The settled catalogue header has the compact source action set: menu and
 * search on the left, centered wordmark, wishlist and bag on the right. */
@media (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .compact-mobile-actions {
    display: flex !important;
    gap: 0 !important;
    left: 12px !important;
    position: absolute !important;
    top: 0 !important;
    width: 88px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .department-nav,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions .region-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions .account-button {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions {
    display: flex !important;
    gap: 0 !important;
    right: 12px !important;
    width: 88px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions > .icon-button {
    display: flex !important;
    flex: 0 0 44px !important;
    height: 44px !important;
    width: 44px !important;
  }
}

@media (max-width: 600px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .compact-mobile-actions {
    left: 4px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions {
    right: 4px !important;
  }
}

/* The source switches its shell between phone and tablet: phone has only the
 * 44px retail row, while 768px retains an empty 56px secondary rail below the
 * 68px primary row. The rail is structural in this live state, so preserve
 * its measured height without rendering an incorrect local category/search UI. */
@media (min-width: 601px) and (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-primary {
    height: 68px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary {
    display: block !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > * {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .compact-mobile-actions {
    top: 12px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions {
    top: 12px !important;
  }
}

/* The current source uses its compact two-action cluster on phones. The
 * tablet retains the full commerce cluster below, so keep this correction
 * strictly within the phone breakpoint. */
@media (max-width: 600px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .compact-mobile-actions {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .department-nav {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    left: 4px !important;
    position: absolute !important;
    top: 0 !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .department-nav a {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .welcome-department-picker {
    display: flex !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .header-actions {
    right: 4px !important;
    top: 0 !important;
    width: 88px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .header-actions .region-button,
  body.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page.farfetch-catalog-page .retail-site-header.retail-site-header .header-actions .account-button {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary {
    align-items: center !important;
    border-bottom: 1px solid #e6e6e6 !important;
    display: flex !important;
    height: 56px !important;
    min-height: 56px !important;
    overflow: hidden !important;
    padding: 0 4px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .mobile-menu-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .mobile-new-in {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 76px !important;
    gap: 24px !important;
    height: 44px !important;
    margin: 0 !important;
    max-width: 76px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .category-nav .sale-link {
    order: -1;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .header-search {
    display: flex !important;
    flex: 1 1 auto !important;
    height: 44px !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .header-search input {
    display: block !important;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary {
    align-items: center !important;
    border-bottom: 1px solid #e6e6e6 !important;
    display: flex !important;
    overflow: hidden !important;
    padding: 0 12px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .header-search {
    display: flex !important;
  }
}

/* The 768px source keeps the desktop-style commerce rail: department picker
 * and four actions in the 68px primary row, then horizontal categories and
 * the search field in the 56px row.  These route-specific rules intentionally
 * follow the retired compact-menu layers above. */
@media (min-width: 601px) and (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-primary {
    display: block !important;
    height: 68px !important;
    padding: 0 !important;
    position: relative !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-primary::before {
    content: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .compact-mobile-actions {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .department-nav {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    left: 24px !important;
    position: absolute !important;
    top: 12px !important;
    width: 282px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .department-nav a {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .welcome-department-picker {
    align-items: center !important;
    display: flex !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    gap: 8px !important;
    height: 44px !important;
    padding: 0 5px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions {
    display: flex !important;
    height: 44px !important;
    right: 24px !important;
    top: 12px !important;
    width: 176px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions .region-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions .account-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-actions > .icon-button {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 44px !important;
    height: 44px !important;
    justify-content: center !important;
    width: 44px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-account-loader {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary {
    align-items: center !important;
    border-bottom: 0 !important;
    border-top: 0 !important;
    display: flex !important;
    height: 56px !important;
    min-height: 56px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .mobile-menu-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .mobile-new-in {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav {
    align-items: center !important;
    background: transparent !important;
    display: flex !important;
    flex: none !important;
    flex-direction: row !important;
    gap: 24px !important;
    height: 44px !important;
    inset: auto !important;
    left: 24px !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    top: 6px !important;
    white-space: nowrap !important;
    width: 426px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav a {
    display: block !important;
    flex: 0 0 auto !important;
    font-size: 15px !important;
    line-height: 20px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav a:nth-child(n + 7) {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav::after {
    content: '›';
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 300;
    line-height: 20px;
    margin-left: 2px;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .category-nav .sale-link {
    order: -1 !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .header-search {
    display: flex !important;
    flex: 0 0 270px !important;
    height: 44px !important;
    margin: 0 !important;
    min-width: 0 !important;
    position: absolute !important;
    right: 24px !important;
    top: 6px !important;
    width: 270px !important;
  }
}

/* The current phone source uses the compact five-control retail row.  This
 * intentionally supersedes the retired department-picker header without
 * affecting the wider, two-row commerce shell above. */
@media (max-width: 600px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .compact-mobile-actions {
    align-items: center !important;
    display: flex !important;
    height: 44px !important;
    left: 4px !important;
    position: absolute !important;
    top: 0 !important;
    width: 88px !important;
    z-index: 2 !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .compact-mobile-icon-button {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    display: flex !important;
    flex: 0 0 44px !important;
    height: 44px !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 44px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .compact-mobile-icon-button svg {
    fill: currentColor;
    height: 24px;
    width: 24px;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .department-nav {
    display: none !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .site-logo {
    left: 50% !important;
    top: 14px !important;
    transform: translateX(-50%) !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .header-actions {
    right: 4px !important;
    top: 0 !important;
    width: 88px !important;
  }

  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .header-actions .region-button,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header:has(~ main.women-landing-page) .header-actions .account-button {
    display: none !important;
  }
}

@media (min-width: 601px) and (max-width: 820px) {
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .category-nav,
  body.farfetch-catalog-page.farfetch-catalog-page .retail-site-header .header-secondary > .header-search {
    top: 0 !important;
  }
}
