/* newage layout: announcement bar, header, search, mega menu, mobile drawer, footer */

/* announcement */
.announce { background: var(--dark); color: #F0EDEA; font-size: 14px; text-align: center; padding: 11px 16px; }
.announce b { color: #fff; font-weight: 600; }
.announce .dot { color: var(--coral); margin: 0 10px; }

/* header */
.hdr {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s ease;
}
.hdr.scrolled { box-shadow: 0 6px 26px rgba(32, 32, 32, .07); }
.hdr-in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.logo img { width: clamp(150px, 16vw, 208px); }

.search {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--offwhite); border: 1px solid var(--line); border-radius: 40px; padding: 0 20px;
  transition: border-color .25s ease, background .25s ease;
}
.search:focus-within { border-color: var(--orange); background: #fff; }
.search form { display: flex; align-items: center; gap: 10px; flex: 1; margin: 0; }
.search input {
  border: 0; background: transparent; flex: 1; min-width: 0; width: 100%; padding: 11px 0;
  font-family: var(--body); font-size: 16px; color: var(--charcoal); outline: none;
}
.search input::placeholder { color: #8a8a8a; }
.search input::-webkit-search-cancel-button { display: none; }
.search .icon { font-size: 17px; color: var(--grey); }
.search button { display: grid; place-items: center; background: none; border: 0; padding: 0; min-width: 28px; min-height: 28px; margin: -6px; color: var(--grey); }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: var(--z-mega);
  margin: 0; padding: 8px 0; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 26px 50px -26px rgba(32, 32, 32, .35);
  max-height: min(70vh, 460px); overflow-y: auto;
}
.search-results[hidden] { display: none; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 8px 18px; font-size: 15px; min-height: 44px; }
.search-results img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; background: var(--offwhite); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--offwhite); color: var(--orange-text); }

.hdr-acts { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.iconlink {
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal);
  transition: color .2s ease; background: none; border: 0; padding: 0;
}
.iconlink .icon { font-size: 21px; stroke-width: 1.6; }
.iconlink:hover { color: var(--orange); }
.cartdot {
  position: absolute; top: -5px; right: -8px; background: var(--orange-cta); color: #fff;
  font-size: 9.5px; font-weight: 700; font-style: normal; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; display: grid; place-items: center;
}
.cartdot:empty, .cartdot[data-count="0"] { display: none; }

/* primary nav */
.nav { border-top: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); height: 54px; scrollbar-width: none; }
.nav-in::-webkit-scrollbar { display: none; }
.nav a, .megabtn {
  font-size: 14px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; color: var(--charcoal); position: relative; padding: 4px 0;
}
.nav a::after, .megabtn::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--orange); transition: width .28s ease;
}
.nav a:hover::after, .nav a.on::after, .megabtn:hover::after, .megabtn[aria-expanded="true"]::after { width: 100%; }
.nav a.on, .megabtn[aria-expanded="true"] { color: var(--orange-text); }
.megabtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font-family: var(--body); }
.megabtn .icon { font-size: 11px; stroke-width: 2; transition: transform .25s ease; }
.megabtn[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* mega menu */
.mega {
  position: absolute; top: 100%; left: var(--pad); right: var(--pad); z-index: var(--z-mega); background: #fff;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 5px 5px;
  box-shadow: 0 26px 50px -26px rgba(32, 32, 32, .35);
  display: grid; grid-template-columns: 238px minmax(0, 1fr);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-rail { border-right: 1px solid var(--line); background: var(--offwhite); padding: 14px 0; border-radius: 0 0 0 5px; }
.mega-rail a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 11px 18px; font-size: 15.5px; font-weight: 600; letter-spacing: 0; text-transform: none;
  border-left: 3px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mega-rail a::after { display: none; }
.mega-rail a:hover, .mega-rail a[aria-selected="true"] { background: #fff; color: var(--orange-text); border-left-color: var(--orange); }
.mega-rail .icon { opacity: .45; font-size: 12px; }
.mega-panel { padding: 22px clamp(18px, 2vw, 28px); display: none; }
.mega-panel.on { display: block; }
.mega-cols { columns: 3; column-gap: clamp(18px, 2vw, 30px); }
.mega-grp { break-inside: avoid; margin: 0 0 18px; padding-right: 14px; }
.mega-grp .mega-h {
  font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-text); margin: 0 0 8px;
}
.mega-grp .mega-h a { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: 0; }
.mega-grp a { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #3b3937; padding: 3px 0; transition: color .18s ease; }
.mega-grp a::after { display: none; }
.mega-grp a:hover { color: var(--orange-text); }
.mega-brands { margin-top: 6px; }

/* mobile drawer */
.burger {
  display: none; align-items: center; gap: 9px; background: none; border: 0; padding: 6px 0;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal);
}
.burger .icon { font-size: 22px; stroke-width: 2; }
.mnav { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; overflow: hidden; }
.mnav:not(.open) { pointer-events: none; }
.mnav.open { visibility: visible; }
.mnav-scrim { position: absolute; inset: 0; background: rgba(20, 18, 17, .5); opacity: 0; transition: opacity .3s ease; }
.mnav.open .mnav-scrim { opacity: 1; }
.mnav-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88%, 380px); background: #fff;
  display: flex; flex-direction: column; transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.3, .7, .3, 1); box-shadow: 0 0 60px rgba(20, 18, 17, .4);
}
.mnav.open .mnav-panel { transform: none; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mnav-head img { width: 150px; }
.mnav-close { width: 44px; height: 44px; border: 0; background: var(--offwhite); border-radius: 50%; display: grid; place-items: center; color: var(--charcoal); }
.mnav-close .icon { font-size: 20px; stroke-width: 2; }
.mnav-search { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mnav-search form { display: flex; align-items: center; gap: 10px; background: var(--offwhite); border: 1px solid var(--line); border-radius: 40px; padding: 0 18px; }
.mnav-search input { border: 0; background: transparent; flex: 1; min-width: 0; padding: 12px 0; font-family: var(--body); font-size: 16px; outline: none; }
.mnav-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 20px; }
.mnav-body details { border-bottom: 1px solid var(--line); }
.mnav-body summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; font-size: 16.5px; font-weight: 600; color: var(--charcoal); min-height: 52px;
}
.mnav-body summary::-webkit-details-marker { display: none; }
.mnav-body summary .icon { transition: transform .25s ease; color: #8a837c; font-size: 14px; }
.mnav-body details[open] summary { color: var(--orange-text); }
.mnav-body details[open] summary .icon { transform: rotate(90deg); }
.mnav-sub { padding: 2px 18px 16px; display: grid; gap: 2px; }
.mnav-sub a { display: block; padding: 10px 12px; font-size: 16px; color: #3b3937; border-radius: 4px; min-height: 44px; }
.mnav-sub a:hover { background: var(--offwhite); color: var(--orange-text); }
.mnav-sub .all { color: var(--orange-text); font-weight: 600; }
.mnav-link { display: flex; align-items: center; padding: 15px 18px; font-size: 16.5px; font-weight: 600; color: var(--charcoal); border-bottom: 1px solid var(--line); min-height: 52px; }
.mnav-foot { border-top: 1px solid var(--line); padding: 16px 18px; display: grid; gap: 10px; font-size: 15px; color: #4e4c4a; background: var(--offwhite); }
.mnav-foot a { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.mnav-foot .icon { color: var(--orange); font-size: 17px; }
body.menu-open { overflow: hidden; }

/* footer */
.ftr { background: var(--charcoal); color: #C4BEB9; padding: var(--s-section) 0 0; margin-top: var(--s-section); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(26px, 3.5vw, 54px); }
.ftr h2 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { font-size: 15.5px; transition: color .2s ease; }
.ftr a:hover { color: var(--coral); }
.ftr .blurb { font-size: 15.5px; line-height: 1.65; max-width: 36ch; }
.ftr .mark img { width: 190px; margin-bottom: 14px; }
.addr { font-size: 15.5px; line-height: 1.72; font-style: normal; }
.addr b { color: #fff; font-weight: 600; }
.pay { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.pay span { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .13); border-radius: 3px; padding: 7px 12px; font-size: 12px; letter-spacing: .05em; color: #DAD5D1; }
.ftr-btm {
  margin-top: clamp(28px, 3vw, 42px); border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
.ftr-btm a { font-size: inherit; }

/* responsive */
@media (max-width: 1080px) {
  .mega { grid-template-columns: 212px minmax(0, 1fr); }
  .mega-cols { columns: 2; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
/* 860 to 1000px the nav row is wider than the page; scroll it in that band only (wider clips the mega panel) */
@media (max-width: 1000px) {
  .nav-in { overflow-x: auto; }
}
/* tablet: keep menu, logo, search and the three icons on one row */
@media (min-width: 761px) and (max-width: 1000px) {
  .hdr-in { flex-wrap: nowrap; gap: 14px; }
  .search { padding: 0 14px; }
  .hdr-acts { flex: none; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav { display: none; }
  .mega { display: none; }
}
@media (max-width: 760px) {
  .hdr-in { gap: 12px 14px; padding-top: 12px; padding-bottom: 12px; }
  .logo { flex: 1; }
  .logo img { width: 140px; }
  /* search stays on mobile: hiding it removes the fastest route to a product */
  .search { order: 3; flex-basis: 100%; }
  .announce { font-size: 12.5px; }
  .announce .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .ftr-grid { grid-template-columns: 1fr; }
  /* icon-only actions on phones; the text stays available to screen readers */
  .hdr-acts .label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr-acts { gap: 18px; }
}
