/* Holiday Gift Ideas For Him - mobile first */
:root {
  --cream: #fbf7f1;
  --paper: #ffffff;
  --ink: #2a211c;
  --text: #43382f;
  --muted: #7a6d63;
  --line: #eadfd3;
  --pine: #1f4d3a;
  --pine-dark: #163a2b;
  --cranberry: #9e1b32;
  --gold: #c8a24a;
  --gold-soft: #f5ead0;
  --cta: #d32f2f;
  --cta-hover: #b71c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 33, 28, .06), 0 4px 14px rgba(42, 33, 28, .06);
  --shadow-lift: 0 2px 4px rgba(42, 33, 28, .08), 0 12px 28px rgba(42, 33, 28, .12);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-cta { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--cta); color: #fff; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-dark { display: inline-block; padding: 11px 20px; border: 0; border-radius: 10px; background: var(--pine); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn-dark:hover { background: var(--pine-dark); }
.btn-outline { padding: 11px 26px; border: 2px solid var(--pine); border-radius: 10px; background: transparent; color: var(--pine); font-weight: 600; cursor: pointer; }
.btn-outline:hover { background: var(--pine); color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.2px; }
.logo__mark { font-size: 24px; }
.logo em { font-style: normal; color: var(--cranberry); }
.search { order: 3; flex: 1 1 100%; display: flex; border: 1.5px solid var(--line); border-radius: 999px; background: var(--cream); overflow: hidden; }
.search:focus-within { border-color: var(--pine); background: #fff; }
.search input { flex: 1; min-width: 0; padding: 9px 16px; border: 0; background: transparent; outline: none; color: var(--ink); }
.search button { display: grid; place-items: center; padding: 0 16px; border: 0; background: var(--pine); color: #fff; cursor: pointer; }

.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 8px; border: 0; background: none; cursor: pointer; }
.hamburger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; }

.nav { display: none; background: var(--pine); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav--open { display: block; }
.nav__list { list-style: none; margin: 0 auto; padding: 0; }
.nav__item { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav__link { flex: 1; padding: 14px 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__toggle { width: 52px; border: 0; background: none; color: #fff; cursor: pointer; font-size: 20px; }
.nav__toggle::before { content: '+'; }
.nav__item.is-open > .nav__toggle::before { content: '\2212'; }
.mega { display: none; width: 100%; padding: 4px 16px 14px; background: var(--pine-dark); }
.nav__item.is-open > .mega { display: block; }
.mega h3 { margin: 10px 0 4px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: block; padding: 8px 0; color: #f1ece4; text-decoration: none; font-size: 15px; }
.mega a:hover { color: #fff; text-decoration: underline; }
.mega__all { font-weight: 600; color: var(--gold) !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(200, 162, 74, .28), transparent 42%), radial-gradient(circle at 10% 90%, rgba(31, 77, 58, .5), transparent 50%), linear-gradient(140deg, #7d1527 0%, var(--cranberry) 45%, #6b1322 100%); color: #fff; }
.hero__inner { padding-top: 40px; padding-bottom: 36px; text-align: center; }
.hero__eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.hero h1 { color: #fff; font-size: clamp(32px, 7vw, 56px); letter-spacing: -.5px; max-width: 760px; margin: 0 auto 14px; }
.hero__lead { max-width: 620px; margin: 0 auto 22px; font-size: 17px; color: rgba(255, 255, 255, .92); }
.hero__search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 18px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.hero__search input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 16px; }
.hero__search .btn-cta { width: auto; padding: 10px 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 8px 15px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: .15s; }
.chip:hover { background: #fff; color: var(--cranberry); border-color: #fff; }

/* ---------- Page head ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 0 20px; }
.page-head h1 { font-size: clamp(28px, 6vw, 44px); letter-spacing: -.4px; margin-bottom: 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '\203A'; margin-right: 6px; color: #b9aca0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cranberry); text-decoration: underline; }
.intro p, .lead { max-width: 820px; margin: 0 0 14px; font-size: 16.5px; color: var(--text); }
.intro a { color: var(--cranberry); font-weight: 600; }
.disclosure { display: flex; gap: 8px; max-width: 900px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--gold-soft); color: #5b4a2b; font-size: 13px; line-height: 1.5; }
.disclosure a { color: inherit; font-weight: 600; white-space: nowrap; }

/* ---------- Sections & tiles ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head a { color: var(--cranberry); font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.section-title { font-size: clamp(24px, 4.5vw, 32px); margin: 0 0 14px; }
.section-head .section-title { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; transition: .15s; }
.tile:hover { border-color: var(--pine); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile__icon { font-size: 24px; line-height: 1; margin-bottom: 6px; }
.tile__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.tile__count { font-size: 13px; color: var(--muted); }

/* ---------- Featured guide ---------- */
.feature { display: grid; gap: 18px; padding: 22px; border-radius: 20px; background: var(--pine); color: #fff; text-decoration: none; overflow: hidden; box-shadow: var(--shadow); }
.feature h2 { color: #fff; font-size: clamp(24px, 5vw, 34px); }
.feature p { margin: 0 0 18px; color: rgba(255, 255, 255, .88); }
.feature__eyebrow { margin-bottom: 6px !important; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; }
.feature .btn-dark { background: var(--gold); color: var(--ink); }
.feature:hover .btn-dark { background: #fff; }
.feature__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.feature__thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 6px; border-radius: 12px; background: #fff; }

/* ---------- Shop: filters + results ---------- */
.shop { display: block; }
.shop__filters { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: var(--paper); transform: translateX(-100%); transition: transform .22s ease; visibility: hidden; }
.filters-open .shop__filters { transform: none; visibility: visible; }
.filters-open { overflow: hidden; }
.shop__filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.shop__filters-head h2 { margin: 0; font-size: 22px; }
.shop__close { width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; }
.filters { flex: 1; overflow-y: auto; padding: 4px 16px 16px; }
.shop__filters-foot { padding: 12px 16px; border-top: 1px solid var(--line); }
.shop__filters-foot .btn-dark { width: 100%; }

/* Amazon-style filter lists */
.fgroup { margin: 0; padding: 14px 0 10px; border: 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.fgroup ul { clear: both; list-style: none; margin: 0; padding: 0; }
.fgroup label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14.5px; cursor: pointer; color: var(--text); }
.fgroup label:hover span { color: var(--cranberry); }
.fgroup input[type=radio] { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--pine); cursor: pointer; }
.fgroup input:checked + span { font-weight: 700; color: var(--ink); }
.fgroup.is-collapsed .fgroup__extra { display: none; }
.fgroup__toggle { margin-top: 4px; padding: 2px 0; border: 0; background: none; color: #0f6a8b; font-size: 14px; cursor: pointer; }
.fgroup__toggle::before { content: '\25BE  '; }
.fgroup:not(.is-collapsed) .fgroup__toggle::before { content: '\25B4  '; }
.fgroup__toggle:hover { color: var(--cranberry); text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.toolbar__count { margin: 0; color: var(--muted); }
.toolbar__count strong { color: var(--ink); }
.toolbar__clear { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--cranberry); font-weight: 600; text-decoration: underline; cursor: pointer; }
.empty .toolbar__clear { margin: 0; padding: 11px 20px; color: #fff; text-decoration: none; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.toolbar__filters { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #d5d9d9; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 5px rgba(213, 217, 217, .5); }

/* Amazon-style "Sort by" pill */
.sort { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 30px 0 11px; height: 34px; border: 1px solid #d5d9d9; border-radius: 8px; background: #f0f2f2; box-shadow: 0 2px 5px rgba(15, 17, 17, .15); font-size: 13px; color: #0f1111; cursor: pointer; }
.sort:hover { background: #e3e6e6; }
.sort span { white-space: nowrap; }
.sort select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-size: 13px; color: #0f1111; cursor: pointer; padding: 0; outline: none; }
.sort::after { content: ''; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid #555; border-bottom: 2px solid #555; transform: rotate(45deg); pointer-events: none; }
.sort:focus-within { outline: 3px solid #c8f3fa; border-color: #007185; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card__img { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 12px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
.card__badge { align-self: flex-start; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: #7a5b12; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card__title { margin: 0 0 6px; font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.35; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--cranberry); text-decoration: underline; }
.card__desc { flex: 1; margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.card .btn-cta { font-size: 14px; padding: 11px 10px; }

.empty { padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }
.empty p { margin: 0 0 14px; color: var(--muted); }
.more { margin-top: 24px; text-align: center; }

/* ---------- Related ---------- */
.related { display: grid; gap: 22px; }
.related h2 { font-size: 22px; }
.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.link-list a { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: 14px; color: var(--text); }
.link-list a:hover { border-color: var(--pine); color: var(--pine); }

/* ---------- Prose pages ---------- */
.prose { max-width: 780px; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 28px; }
.prose a { color: var(--cranberry); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; background: var(--ink); color: #cfc5bb; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 28px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin: 8px 0 0; max-width: 360px; }
.footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #e9e2da; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.logo--footer { color: #fff; }
.logo--footer em { color: var(--gold); }
.footer__legal { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid #4a3d34; font-size: 13px; color: #a89c90; }
.footer__legal p { margin: 0 0 8px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .card__body { padding: 14px 16px 16px; }
  .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  .footer__brand { grid-column: auto; }
  .related { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 120px; }
  .header__bar { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; gap: 24px; }
  .logo { font-size: 23px; }
  .logo__mark { font-size: 28px; }
  .search { order: 0; flex: 0 1 380px; margin-left: auto; }
  .hamburger { display: none; }

  .nav { display: block; max-height: none; overflow: visible; }
  .nav__list { display: flex; justify-content: center; gap: 2px; }
  .nav__item { position: relative; display: block; border: 0; }
  .nav__link { display: block; padding: 13px 18px; font-size: 15px; }
  .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { background: var(--pine-dark); }
  .has-menu > .nav__link::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
  .nav__toggle { display: none; }
  .mega { position: absolute; top: 100%; left: 0; display: flex; flex-wrap: wrap; gap: 0 28px; min-width: 250px; padding: 14px 22px 16px; border-radius: 0 0 14px 14px; background: var(--paper); box-shadow: var(--shadow-lift); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
  .mega--wide { width: 560px; }
  .mega--wide .mega__col:only-of-type ul { columns: 2; column-gap: 28px; }
  .nav__item:last-child .mega, .nav__item:nth-last-child(2) .mega { left: auto; right: 0; }
  .nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
  .mega__col { flex: 1; min-width: 180px; }
  .mega h3 { color: var(--cranberry); }
  .mega a { color: var(--text); padding: 6px 0; break-inside: avoid; }
  .mega a:hover { color: var(--cranberry); }
  .mega__all { flex-basis: 100%; margin-top: 8px; padding-top: 10px !important; border-top: 1px solid var(--line); color: var(--pine) !important; }

  .hero__inner { padding-top: 64px; padding-bottom: 56px; }
  .hero__lead { font-size: 19px; }
  .page-head { padding: 24px 0 26px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .feature { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 34px 40px; }

  .shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
  .shop__filters { position: sticky; top: calc(var(--header-h) + 16px); inset: auto; z-index: 1; max-height: calc(100vh - var(--header-h) - 32px); transform: none; visibility: visible; border: 1px solid var(--line); border-radius: var(--radius); transition: none; }
  .shop__filters-head { padding: 14px 18px 4px; border: 0; }
  .shop__filters-head h2 { font-size: 20px; }
  .shop__close, .shop__filters-foot, .toolbar__filters { display: none; }
  .filters { padding: 0 18px 12px; }
  .filters-open { overflow: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .card .btn-cta { width: 100%; }
}
