/* The desktop nav on the pages Django renders itself (blog, search), set to the
 * Figma nav frames (Website 2026, "Nav" section, drawn at 1920) so it matches
 * the Vue navbar in frontend/src/components/Navbar. The markup and class names
 * stay Webflow's: webflow.js, the head fragment's hover rules and the extension
 * scripts find the dropdowns and icons by them.
 *
 * From 1280px, where the full nav fits; below that the Webflow layout's smaller
 * type keeps it on one row. Everything is scoped to the desktop row (.d-flex),
 * not the mobile menu. */
@media screen and (min-width: 1280px) {
  /* 24px gutters at every width. The head fragment pulls the right one in to
   * 12px between 1440 and 1919px, with !important. */
  .navbar.w-nav {
    padding-right: 24px !important;
  }

  /* 32px from the logo to the first label and between labels. Each item is
   * 20px + 22px line + 19.5px, which with the bar's 0.5px hairline makes
   * Figma's 62px bar. */
  .navbar .d-flex .brand-logo {
    padding-right: 16px;
  }

  .navbar .d-flex > .nav-menu-left .nav-link {
    padding: 20px 16px 19.5px;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-tp {
    padding: 0 16px;
  }

  .navbar .d-flex > .nav-menu-left .w-dropdown-toggle {
    padding: 20px 0 19.5px;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-toggle-content {
    font-family: "DM Mono", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.56px;
    text-transform: uppercase;
  }

  /* An open menu's label stays underlined while the pointer is in its panel. */
  .navbar .d-flex > .nav-menu-left .nav-link:hover .dropdown-toggle-content,
  .navbar .d-flex > .nav-menu-left .dropdown-tp:hover .dropdown-toggle-content {
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  /* Icons in Figma's slots, 8px apart: store and cart in 24px boxes, the heart
   * in its own 19px. The PNGs are cropped to their glyphs, so each is sized to
   * the Figma glyph (store 17.73px wide, cart 19.31px tall, heart 19px wide). */
  .navbar .d-flex > .nav-menu-right {
    gap: 8px;
  }

  .navbar .d-flex > .nav-menu-right .user-header-block,
  .navbar .d-flex > .nav-menu-right .cart-header-block,
  .navbar .d-flex > .nav-menu-right .wishlist-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .navbar .d-flex > .nav-menu-right .user-header-block .wishlist-icon {
    width: 17.73px;
  }

  .navbar .d-flex > .nav-menu-right .cart-header-block {
    justify-content: flex-start;
    padding-left: 1.22px;
  }

  .navbar .d-flex > .nav-menu-right .cart-header-block .wishlist-icon {
    width: 19.31px;
  }

  .navbar .d-flex > .nav-menu-right .wishlist-block {
    width: 19px;
  }

  .navbar .d-flex > .nav-menu-right .wishlist-block .wishlist-icon {
    width: 19px;
  }

  /* The CTA is 219 x 38: 8px / 16px insets measured from the outside of the
   * 1px outline, the label in the CTA style, then 4px and the 13px arrow
   * 16px from the right edge. */
  .navbar .d-flex > .nav-menu-right .home-hero-button {
    padding: 7px 32px 7px 15px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.56px;
    background-position: right 15px center;
  }

  /* The panel: 304px under the bar, with its own 0.5px top hairline drawn over
   * the bar's so it meets the labels. A gap there would drop the hover on
   * Retina screens and close the menu. */
  .navbar .d-flex > .nav-menu-left .dropdown-list {
    top: 61.5px;
    left: 0;
    width: 100%;
    height: 304.5px;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-top: 0.5px solid #22211F;
    border-bottom: 0.5px solid #22211F;
    background-color: #FCFAF4;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-grid {
    display: grid;
    grid-template-columns: 1018fr 902fr;
    align-items: stretch;
    height: 100%;
    padding: 0;
    border: 0;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-caption {
    display: block;
    width: auto;
    height: auto;
    padding: 24px;
    border: 0;
    border-right: 1px solid #22211F;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-caption.dropdown-product-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding: 0;
    border-right: 0;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-product-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: auto;
    padding: 24px;
    border: 0;
    border-right: 1px solid #22211F;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-heading {
    width: auto;
    padding: 0;
    border: 0;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-h4 {
    margin: 0;
    font-family: "DM Mono", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.56px;
    text-transform: uppercase;
    color: #22211F;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-link-block {
    width: auto;
    padding: 0;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-link {
    display: block;
    padding: 0;
    font-family: "Host Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.42px;
    color: #22211F;
    text-decoration: none;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-link:hover {
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
  }

  /* Hovering a link greys the others in its own column only. The site script
   * marks every other link on the page `inactive-menu`, which would grey the
   * neighbouring column too, so that class is neutralised here. */
  .navbar .d-flex > .nav-menu-left .dropdown-link.inactive-menu {
    color: #22211F;
  }

  .navbar .d-flex > .nav-menu-left .dopdown-list-link-block:hover .dropdown-link:not(:hover) {
    color: #AAA59B;
  }

  .navbar .d-flex > .nav-menu-left .dropdown-heading-block {
    width: auto;
    min-width: 0;
    padding: 24px;
    container-type: inline-size;
  }

  /* 56px in an 854px box at 1920, sized to its box so it keeps Figma's
   * two-line break ("...the best / merch, ...") at every width. */
  .navbar .d-flex > .nav-menu-left .dropdown-heading {
    margin: 0;
    font-family: "Host Grotesk", sans-serif;
    font-size: calc(100cqi * 56 / 854);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #22211F;
  }
}
