/* =========================================================================
   STORE DESIGN SYSTEM
   Layered over gogetcards.css (the inherited base). This file redefines
   the tokens, so every inherited page (cart, checkout, account, policy
   pages) takes the new palette and type without being rewritten, then
   styles the components that were rebuilt: announcement bar, header and
   mega-menu, footer, product card, collection filters and product page.

   Palette: warm paper surfaces, deep slate for structure, one copper
   action colour. Type: Manrope for text and interface, Fraunces for
   display headlines. Contrast: text tokens clear WCAG AA on both the
   paper and white surfaces; copper on white is 6.4:1.
   ========================================================================= */

:root {
  --color-bg:           #F7F5F0;
  --color-bg-elevated:  #FFFFFF;
  --color-bg-card:      #FFFFFF;
  --color-bg-input:     #FFFFFF;
  --color-bg-muted:     #EFECE5;
  --color-bg-photo:     #F3F1EB;
  --color-border:       #D3CEC3;
  --color-border-light: #E5E1D8;

  --color-primary:      #1C2B33;
  --color-primary-text: #1C2B33;
  --color-primary-dark: #111B21;
  --color-primary-glow: rgba(28, 43, 51, 0.16);
  --color-heading:      #1C2B33;

  --color-accent:       #9E4423;
  --color-accent-dark:  #7E3418;
  --color-accent-glow:  rgba(158, 68, 35, 0.22);
  --color-accent-soft:  #F6E9E1;

  --color-cyan:         #2D5B78;
  --color-cyan-glow:    rgba(45, 91, 120, 0.18);
  --color-gold:         #8A5A12;
  --color-green:        #2F6B4F;
  --color-red:          #B42318;

  --color-text:         #1E2427;
  --color-text-muted:   #4C5458;
  --color-text-faint:   #5E666A;
  --color-white:        #FFFFFF;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-image: 12px;

  --shadow-card:  0 12px 32px rgba(28, 43, 51, 0.08), 0 1px 2px rgba(28, 43, 51, 0.06);
  --shadow-pop:   0 24px 48px rgba(28, 43, 51, 0.14), 0 2px 6px rgba(28, 43, 51, 0.06);
  --shadow-vault: 0 1px 2px rgba(28, 43, 51, 0.06);
}

body { font-family: var(--font-body); letter-spacing: -0.003em; }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
::selection { background: var(--color-accent-soft); color: var(--color-primary); }
.container { max-width: 1320px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 700; letter-spacing: 0; }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn-accent { background: var(--color-primary); }
.btn-ghost { background: var(--color-white); border: 1px solid var(--color-border); color: var(--color-primary); }
.btn-ghost:hover { border-color: var(--color-primary); background: var(--color-white); color: var(--color-primary); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

/* ── Announcement bar ──────────────────────────────────── */
.ab { background: var(--color-primary); color: #E4E0D7; font-size: 0.8rem; font-weight: 500; }
.ab__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 36px; }
.ab__item--sub::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #9FA8AC; margin-right: 1.5rem; vertical-align: middle; }
.ab__help { margin-left: auto; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.ab__help:hover { color: #fff; text-decoration-color: #fff; }
@media (max-width: 760px) {
  .ab__item--sub { display: none; }
  .ab__inner { justify-content: space-between; font-size: 0.76rem; }
}

/* ── Header ────────────────────────────────────────────── */
.sh { position: sticky; top: 0; z-index: 100; background: var(--color-white); border-bottom: 1px solid var(--color-border-light); }
.sh.site-header--scrolled { box-shadow: 0 6px 20px rgba(28, 43, 51, 0.08); }
.sh__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; min-height: 74px; }
.sh__logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-primary); text-decoration: none; }
.sh__mark { display: inline-flex; color: var(--color-primary); }
.sh__name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.sh__search { position: relative; max-width: 640px; width: 100%; justify-self: center; }
.sh__search input { width: 100%; height: 48px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); padding: 0 7.5rem 0 2.9rem; font: inherit; font-size: 0.95rem; color: var(--color-text); transition: border-color .15s, background .15s, box-shadow .15s; }
.sh__search input::placeholder { color: var(--color-text-faint); }
.sh__search input:focus { outline: none; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px var(--color-primary-glow); }
.sh__search-icon { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--color-text-faint); pointer-events: none; }
.sh__search-btn { position: absolute; right: 5px; top: 5px; height: 38px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--color-primary); color: #fff; font: 700 0.86rem var(--font-heading); cursor: pointer; }
.sh__search-btn:hover { background: var(--color-primary-dark); }
.sh__actions { display: flex; align-items: center; gap: 0.25rem; }
.sh__action { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-md); border: 0; background: none; color: var(--color-primary); font: 600 0.9rem var(--font-heading); text-decoration: none; cursor: pointer; }
.sh__action:hover { background: var(--color-bg-muted); color: var(--color-primary); }
.sh__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sh__burger { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: var(--radius-md); flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.sh__burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--color-primary); transition: transform .2s, opacity .2s; }
.sh__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sh__burger.open span:nth-child(2) { opacity: 0; }
.sh__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Department bar and mega-menu */
.sh__nav-wrap { position: relative; border-top: 1px solid var(--color-border-light); }
.sh__nav { display: flex; align-items: stretch; justify-content: space-between; }
.sh__depts { display: flex; list-style: none; margin: 0 0 0 -0.85rem; }
.sh__dept { position: static; }
.sh__dept-link, .sh__all { display: inline-flex; align-items: center; gap: 0.35rem; height: 50px; padding: 0 0.85rem; font: 600 0.9rem var(--font-heading); color: var(--color-primary); text-decoration: none; white-space: nowrap; position: relative; }
.sh__dept-link svg { transition: transform .2s; color: var(--color-text-faint); }
.sh__dept-link::after, .sh__all::after { content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: -1px; height: 2px; background: var(--color-accent); transform: scaleX(0); transition: transform .2s; }
.sh__dept:hover .sh__dept-link::after, .sh__dept:focus-within .sh__dept-link::after, .sh__dept-link.is-active::after, .sh__all:hover::after, .sh__all.is-active::after { transform: scaleX(1); }
.sh__dept:hover .sh__dept-link svg, .sh__dept:focus-within .sh__dept-link svg { transform: rotate(180deg); }
.sh__dept-link:hover, .sh__all:hover { color: var(--color-primary); }
.sh__all { color: var(--color-accent); }
.sh__all:hover { color: var(--color-accent-dark); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--color-border-light); border-bottom: 1px solid var(--color-border-light); box-shadow: 0 24px 40px rgba(28, 43, 51, 0.10); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; z-index: 90; }
.sh__dept:hover .mega, .sh__dept:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.mega__inner { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(260px, 1.4fr); gap: 3rem; padding-top: 2rem; padding-bottom: 2.25rem; }
.mega__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: 0.85rem; }
.mega ul { list-style: none; }
.mega li a { display: block; padding: 0.32rem 0; color: var(--color-text); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.mega li a:hover { color: var(--color-accent); }
.mega__all { font-weight: 700 !important; color: var(--color-primary) !important; margin-top: 0.4rem; }
.mega__brands { columns: 2; column-gap: 2rem; }
.mega__feature { background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 1.5rem; }
.mega__desc { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; margin-bottom: 1rem; }
.mega__link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--color-accent); text-decoration: none; }
.mega__link:hover { color: var(--color-accent-dark); }

/* Mobile menu */
.mobile-nav { top: var(--mnav-top, 110px); background: #fff; }
.mobile-nav__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-faint); padding: 1.25rem 0.5rem 0.4rem; }
.mobile-nav__dept { border-bottom: 1px solid var(--color-border-light); }
.mobile-nav__dept summary { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 0.5rem; font: 700 1rem var(--font-heading); color: var(--color-primary); cursor: pointer; list-style: none; }
.mobile-nav__dept summary::-webkit-details-marker { display: none; }
.mobile-nav__dept[open] summary svg { transform: rotate(180deg); }
.mobile-nav__dept ul { list-style: none; padding: 0 0.5rem 0.9rem 1rem; }
.mobile-nav__dept li a { display: block; padding: 0.45rem 0; color: var(--color-text); text-decoration: none; }
.mobile-nav__search { position: relative; display: flex; margin-bottom: 0.25rem; }
.mobile-nav__search input { flex: 1; height: 46px; border: 1px solid var(--color-border); border-radius: 999px; padding: 0 3rem 0 1.1rem; font: inherit; background: var(--color-bg); }
.mobile-nav__search button { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; }
.header__backdrop { background: rgba(17, 27, 33, 0.45); }

@media (max-width: 1080px) {
  .sh__nav-wrap { display: none; }
  .sh__burger { display: inline-flex; }
  .sh__bar { grid-template-columns: auto 1fr auto; grid-template-areas: "logo . actions" "search search search"; gap: 0.25rem 1rem; padding: 0.6rem 0 0.75rem; min-height: 0; }
  .sh__logo { grid-area: logo; }
  .sh__actions { grid-area: actions; }
  .sh__search { grid-area: search; max-width: none; }
  .sh__search input { height: 44px; }
  .sh__search-btn { height: 34px; }
}
@media (max-width: 640px) {
  .sh__action-text { display: none; }
  .sh__action { padding: 0.55rem; }
  .sh__name { font-size: 1.2rem; }
  .sh__search input { padding-right: 1rem; }
  .sh__search-btn { display: none; }
}

/* ── Footer ────────────────────────────────────────────── */
.sf { background: var(--color-primary); color: #C3CACD; margin-top: 0; padding: 4rem 0 2rem; }
.sf a { color: #E8E5DF; text-decoration: none; }
.sf a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2.5rem; }
.sf__logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: #fff !important; }
.sf__mark { display: inline-flex; color: #fff; }
.sf__tagline { margin: 1rem 0 1.25rem; font-size: 0.92rem; line-height: 1.6; max-width: 34ch; }
.sf__facts { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.86rem; margin-bottom: 1.25rem; }
.sf__facts li::before { content: '✓'; color: #D9A47E; font-weight: 800; margin-right: 0.5rem; }
.sf__contact { font-size: 0.9rem; font-weight: 600; }
.sf__social { display: flex; gap: 1rem; margin-top: 0.9rem; font-size: 0.86rem; }
.sf__title { font-family: var(--font-heading); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.sf__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.sf__col a { font-size: 0.9rem; color: #C9CFD2; }
.sf__bottom { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.sf__legal { font-size: 0.8rem; line-height: 1.6; max-width: 760px; }
.sf__address { display: inline; font-style: normal; }
.sf__disclaimer { margin-top: 0.5rem; color: #9DA7AB; }
.sf .footer__payments { flex-shrink: 0; }
@media (max-width: 1024px) {
  .sf__grid { grid-template-columns: repeat(2, 1fr); }
  .sf__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .sf { padding-top: 3rem; }
  .sf__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .sf__bottom { flex-direction: column; }
}

/* ── Product card ──────────────────────────────────────── */
.pc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pc:hover { border-color: var(--color-border); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pc__img-wrap { position: relative; display: block; aspect-ratio: 1; margin: 0; border-radius: 0; background: var(--color-bg-photo); overflow: hidden; }
.pc__img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; mix-blend-mode: multiply; transition: transform .4s ease; }
.pc:hover .pc__img { transform: scale(1.03); }
.pc__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pc__flag { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.28rem 0.6rem; border-radius: 999px; background: var(--color-accent); color: #fff; font-size: 0.72rem; font-weight: 800; }
.pc__flag--quiet { background: #fff; color: var(--color-primary); border: 1px solid var(--color-border-light); }
.pc__body { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; padding: 1rem 1.05rem 1.1rem; }
.pc__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem; font-size: 0.72rem; min-height: 1.1em; }
.pc__brand { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.pc__model { color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.pc__title { font-family: var(--font-heading); font-size: 0.96rem; font-weight: 600; line-height: 1.38; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pc__title a { color: var(--color-text); text-decoration: none; }
.pc__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pc__specs { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.pc__specs li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__specs span { color: var(--color-text-faint); }
.pc__foot { margin-top: auto; padding-top: 0.7rem; }
.pc__pricing { display: flex; flex-direction: row; align-items: baseline; gap: 0.5rem; }
.pc__price { font-size: 1.22rem; font-weight: 800; color: var(--color-text); font-variant-numeric: tabular-nums; }
.pc__compare { font-size: 0.82rem; color: var(--color-text-faint); }
.pc__status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--color-text-muted); margin-top: 0.15rem; }
.pc__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-green); flex-shrink: 0; }
.pc__dot--pre { background: var(--color-cyan); }
.pc__dot--off { background: var(--color-text-faint); }
.pc__atc { position: relative; z-index: 2; margin-top: 0.75rem; }
.pc__btn { width: 100%; position: relative; z-index: 2; margin-top: 0.75rem; }
.pc__atc .pc__btn { margin-top: 0; }

/* Grids shared by the homepage and the collection page */
.grid-4, .hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1080px) { .grid-4, .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid-4, .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .pc__body { padding: 0.8rem 0.8rem 0.9rem; }
  .pc__img { padding: 0.8rem; }
  .pc__specs { display: none; }
  .pc__price { font-size: 1.08rem; }
}

/* ── Collection page ───────────────────────────────────── */
.col-page__header h1, .col-page__header .heading-section { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.col-guide { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 1.75rem 2rem; scroll-margin-top: 140px; }
.col-guide__title { font-family: var(--font-display); font-weight: 600; }
.col-filters__opt.is-on .col-filters__box { background: var(--color-primary); border-color: var(--color-primary); }
.col-chip { border-radius: 999px; }
@media (max-width: 1024px) {
  /* Filters become a full-width drawer-style panel above the grid. */
  .col-filters { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); }
  .col-filters[open] { box-shadow: var(--shadow-card); }
  .col-filters__summary { padding: 0.9rem 1.1rem; font-weight: 700; }
  .col-filters__body { padding: 0 1.1rem 1.1rem; }
}

/* ── Product page additions ────────────────────────────── */
.pp-fits { margin-top: 3rem; }
.pp-fits__list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 0.75rem; }
.pp-fits__list a, .pp-fits__list span { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; background: #fff; border: 1px solid var(--color-border-light); font-size: 0.86rem; font-weight: 600; color: var(--color-primary); text-decoration: none; }
.pp-fits__list a:hover { border-color: var(--color-primary); }
.pp-sec-h { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; }

/* Page headings site-wide pick up the display face */
.trust-page h1, .page-hero h1, .heading-section, .heading-hero { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

a.pp__trust-item { color: var(--color-text); text-decoration: none; }
a.pp__trust-item:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.pp__trust-item strong { font-weight: 700; }

/* Restricted products (config/restricted.js): requirements instead of Buy buttons. */
.pp__restricted { border: 1px solid var(--color-border, #DDD8CE); border-left: 4px solid var(--color-accent, #9E4423); border-radius: 10px; padding: 1rem 1.1rem; background: var(--color-surface, #fff); display: grid; gap: .55rem; }
.pp__restricted p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--color-text, #1C2B33); }
.pp__restricted-head { font: 700 .95rem var(--font-heading); }
.pp__restricted .btn { margin-top: .35rem; }
.brand-badge--hvac-refrigeration { background: #2F5D6E; }
.col-notice { border-left: 4px solid var(--color-accent, #9E4423); padding-left: 1rem; }
/* Seven departments plus "Shop all" on narrower desktops. */
@media (min-width: 1081px) and (max-width: 1340px) {
  .sh__dept-link, .sh__all { padding: 0 0.6rem; font-size: 0.86rem; }
  .sh__dept-link::after, .sh__all::after { left: 0.6rem; right: 0.6rem; }
  .sh__depts { margin-left: -0.6rem; }
}
/* Restricted products are not sold here: no quantity, purchase limit,
   shipping/returns/checkout promises or "Buying from" panel. */
.pp--restricted .pp__qty-wrap, .pp--restricted .pp__trust-grid, .pp--restricted .pp__col--trust { display: none; }
.pp__restricted--note { margin-bottom: 0.75rem; }
