/* ============================================================
   Menu: header
   Loaded from inc/misc.php
   ============================================================ */

/* ---------- Header navigation ---------- */

ul.header-nav.header-nav-main.nav.nav-left {
  justify-content: center;
  display: flex !important;
}

.nav > li > a {
  font-size: medium;
}



/* Top-level nav text */
#header .header-bottom-nav.nav > li > a {
  color: #3a3a3a;
  letter-spacing: .03em;
  position: relative;
}

/* Pink underline on hover / current section */
#header .header-bottom-nav.nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #e24585; /* swap for your exact logo pink */
  transform: scaleX(0);
  transition: transform .25s ease;
}

#header .header-bottom-nav.nav > li:hover > a::after,
#header .header-bottom-nav.nav > li.active > a::after,
#header .header-bottom-nav.nav > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* ---------- Dropdown tidy-up ---------- */

/* Dropdown column headings */
#header .nav-dropdown .nav-dropdown-col > a {
  color: #e6327a;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .1em;
  border-bottom: 0 !important;
  padding-bottom: 0;
  margin-bottom: 12px;
}

/* Short pink accent bar under the heading */
#header .nav-dropdown .nav-dropdown-col > a::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: #e6327a;
  margin-top: 8px;
}

/* Link hover: pink + small nudge (no layout shift) */
#header .nav-dropdown li:not(.nav-dropdown-col):not(.image-column) > a {
  transition: color .2s ease, transform .2s ease;
}

#header .nav-dropdown li:not(.nav-dropdown-col):not(.image-column) > a:hover {
  color: #e6327a;
  transform: translateX(4px);
}

/* View All as a mini call to action */
#header .nav-dropdown .menu-view-all > a::after {
  content: " ›";
}

/* ---------- NEW badge ---------- */

/* Top-level items: small tag sitting top-right */
#header .header-bottom-nav.nav > li.menu-new > a::before {
  content: "NEW";
  position: absolute;
  top: -6px;
  right: -16px;
  background: #e24585;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  padding: 3px 5px;
  border-radius: 20px;
}

/* Dropdown items: inline pill after the text */
#header .nav-dropdown li.menu-new > a::after {
  content: "NEW";
  display: inline-block;
  margin-left: 6px;
  background: #e24585;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 20px;
  vertical-align: middle;
}
#header .nav-dropdown li:not(.nav-dropdown-col) > a {
  border-bottom: 0 !important;
  padding-top: 7px;
  padding-bottom: 7px;
}
#header .nav-dropdown li.image-column img {
  width: 240px;
  height: 240px;        /* match roughly to your link column height */
  object-fit: cover;    /* crops instead of squashing */
  border-radius: 6px;
  display: block;
}
/* Photobooks Img Size */
#header li.menu-photobooks li.image-column img {
  height: 280px;
}

/* Prints Img Size */
#header li.menu-prints li.image-column img {
  height: 310px;
}

/* ---------- Image tile captions ---------- */

#header .nav-dropdown li.image-column > a {
  position: relative;
  display: block;
}

#header .nav-dropdown li.image-column > a::after {
  position: absolute;
  left: 0;
  right: 25px;     /* matches the right padding on the link */
  bottom: 10px;    /* matches the bottom padding on the link */
  padding: 40px 14px 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.6));
  border-radius: 0 0 6px 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: left;
}
}/* Gifts: image sits under the Finishing Touches column */
#header li.menu-gifts li.image-column {
  margin-top: 14px;
}

#header li.menu-gifts li.image-column img {
  width: 230px;
  height: 130px;
  object-fit: cover;
}

/* Text for each dropdown */
#header li.menu-photobooks li.image-column > a::after {
  content: "Shop Photobooks ›";
}
#header li.menu-photo-prints-boxes li.image-column > a::after {
  content: "Shop Prints Boxes ›";
}
#header li.menu-prints li.image-column > a::after {
  content: "Shop Vintage Prints ›";
}
#header li.menu-gifts li.image-column > a::after {
  content: "Shop Calendars ›";
}
#header .nav-dropdown li.image-column img {
  transition: filter .25s ease;
}
#header .nav-dropdown li.image-column > a:hover img {
  filter: brightness(.9);
}
#header li.menu-gifts li.image-column > a {
  display: inline-block;
}
/* ---------- Weddings dropdown ---------- */

/* Weddings: centre the dropdown under the menu item */
#header li.menu-weddings > .nav-dropdown {
  left: 50% !important;
  right: auto;
  transform: translateX(-50%);
}

#header li.menu-weddings li.image-column > a::after {
  content: "Get Inspired ›";
}
#header li.menu-weddings li.image-column {
  padding-left: 15px;
}

/* ---------- Mobile menu ---------- */

/* Sub-headings to match desktop */
#main-menu .sub-menu > li.menu-item-has-children > a {
  color: #e6327a;
  font-size: .75em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* View All */
#main-menu .menu-view-all > a {
  font-weight: 700;
  color: #3a3a3a;
}
#main-menu .menu-view-all > a::after {
  content: " ›";
}

/* Make sure image tiles never show on mobile */
#main-menu li.image-column {
  display: none !important;
}

#main-menu .menu-view-all > a::after {
  content: "›";
  margin-left: 4px;
}
/* Divider + spacing between sub-heading groups on mobile */
#main-menu .sub-menu > li.menu-item-has-children ~ li.menu-item-has-children {
  border-top: 1px solid #e5e5e5 !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
}
/* Gifts + Weddings: line above every heading, including the first */
#main-menu li.menu-weddings .sub-menu > li.menu-item-has-children,
#main-menu li.menu-gift .sub-menu > li.menu-item-has-children {
  border-top: 1px solid #e5e5e5 !important;
  padding-top: 12px !important;
}