*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  /* Keep layout width stable when short pages (wholesale/contact) hide the scrollbar */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--hf-ink);
  font-family: var(--hf-font-body);
  background: var(--hf-surface);
}

main {
  flex: 1 0 auto;
  background: var(--hf-paper);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--hf-ink);
  color: var(--hf-paper);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hf-paper);
  border-bottom: 1px solid #dddddd;
}

.site-header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  align-items: flex-start;
  justify-self: start;
}

.site-logo__script {
  font-family: var(--hf-font-script);
  font-weight: 400;
  color: #000;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.site-logo__fizz {
  font-family: var(--hf-font-fizz);
  font-weight: 400;
  color: var(--hf-red);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.15rem, 4vw, 3rem);
  margin-top: -0.35em;
}

.site-logo img {
  display: block;
  height: 100px;
  width: 178px;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  font-family: var(--hf-font-heading);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 20px;
  color: var(--hf-ink);
  padding: 0.25rem 0;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--hf-red);
}

.nav-maple {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-maple svg {
  width: 1.25em;
  height: 1.25em;
  color: var(--hf-canada-red);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-icon {
  appearance: none;
  border: none;
  background: transparent;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--hf-ink);
  border-radius: 50%;
  position: relative;
}

.header-icon:hover {
  background: color-mix(in srgb, var(--hf-ink) 6%, transparent);
}

.header-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--hf-red);
  color: #fff;
  font-family: var(--hf-font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count.is-visible {
  display: inline-flex;
}

.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0.85rem 1.25rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--hf-paper);
    border-bottom: 1px solid #dddddd;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid #eeeeee;
  }

  .site-logo img {
    height: 72px;
    width: auto;
  }
}

/* Footer ? match Shopify: social left, newsletter right */
.site-footer {
  position: relative;
  flex-shrink: 0;
  background: var(--hf-dark);
  color: var(--hf-paper);
  overflow: hidden;
  margin-top: auto;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: clamp(220px, 38%, 520px);
  height: min(85%, 680px);
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.site-footer::before {
  left: 0;
  background-image: url(../assets/shopify/bird-left.png);
  background-position: left bottom;
}

.site-footer::after {
  right: 0;
  background-image: url(../assets/shopify/bird-right.png);
  background-position: right bottom;
}

.site-footer__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.site-footer__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  align-items: start;
}

.site-footer__row--main {
  padding: 48px 0 36px;
}

.site-footer__row--bar {
  padding: 20px 0 24px;
  align-items: start;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__col--left {
  justify-self: stretch;
  text-align: left;
}

.site-footer__col--right {
  justify-self: stretch;
  text-align: left;
}

.site-footer__row--bar .site-footer__col--right {
  text-align: right;
}

.site-footer__social {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 24px 0 0;
}

.site-footer__social a {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--hf-paper);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.12s ease;
}

.site-footer__social a:hover {
  color: var(--hf-yellow);
  transform: scale(1.06);
}

.site-footer__social svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
  display: block;
}

.site-footer__newsletter {
  max-width: none;
  margin: 0;
  text-align: left;
  width: 100%;
}

.site-footer__newsletter-heading {
  margin: 0;
  padding: 11.2px 0;
  font-family: "Jost", var(--hf-font-heading), sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 26.4px;
}

.newsletter-form {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.newsletter-form__group {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border-bottom: none;
  box-shadow: rgb(255, 255, 255) 0px 1px 0px 0px;
  padding: 0;
  margin: 0 0 1.75px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  caret-color: #ffffff;
  font-family: "Lora", var(--hf-font-body), serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.newsletter-form__submit {
  appearance: none;
  border: none;
  background: transparent;
  color: #ffffff;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0;
}

.newsletter-form__submit:hover {
  color: var(--hf-yellow);
}

.newsletter-form__submit svg {
  width: 24px;
  height: 24px;
}

.site-footer__copyright {
  display: block;
  text-align: left;
}

.site-footer__copyright a,
.site-footer__policies-link {
  color: inherit;
  text-decoration: none;
}

.site-footer__copyright a:hover,
.site-footer__policies-link:hover {
  color: var(--hf-paper);
  text-decoration: underline;
}

.site-footer__policies-link {
  font-size: 0.75rem;
}

@media (max-width: 750px) {
  .site-footer::before,
  .site-footer::after {
    opacity: 0.25;
    width: 45%;
  }

  .site-footer__shell {
    padding: 0 1.25rem;
  }

  .site-footer__row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .site-footer__row--main {
    padding: 2.5rem 0 1.75rem;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__col--left,
  .site-footer__col--right,
  .site-footer__newsletter,
  .site-footer__copyright {
    text-align: center;
  }

  .site-footer__row--bar .site-footer__col--right {
    text-align: center;
  }
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--hf-paper);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid #eeeeee;
}

.cart-drawer__header h2 {
  margin: 0;
  font-family: var(--hf-font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
}

.cart-empty {
  text-align: center;
  padding: 2rem 0.5rem;
}

.cart-empty h3 {
  margin: 0 0 0.75rem;
  font-family: var(--hf-font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-empty p {
  margin: 0 0 1.5rem;
  color: var(--hf-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eeeeee;
}

.cart-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: color-mix(in srgb, var(--hf-yellow) 35%, var(--hf-paper));
}

.cart-item__title {
  margin: 0 0 0.25rem;
  font-family: var(--hf-font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.cart-item__price {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: var(--hf-radius-pill);
  overflow: hidden;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--hf-ink);
}

.qty-control input {
  width: 36px;
  border: none;
  text-align: center;
  font-family: var(--hf-font-heading);
  font-size: 0.95rem;
  background: transparent;
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--hf-muted);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--hf-font-body);
  font-size: 0.85rem;
}

.cart-drawer__footer {
  padding: 1.25rem;
  border-top: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--hf-font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-drawer__footer .hot-fizz-btn {
  width: 100%;
}

/* Checkout page — address first, then Square payment */
.checkout-page {
  padding: clamp(2rem, 4vw, 3.5rem) 1.25rem clamp(3rem, 6vw, 4.5rem);
  background: var(--hf-paper);
}

.checkout-page__inner {
  max-width: 980px;
  margin: 0 auto;
}

.checkout-page__loading,
.checkout-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-form__heading,
.checkout-summary__heading {
  margin: 0 0 0.5rem;
  font-family: var(--hf-font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-form__lede {
  margin: 0 0 1.5rem;
  color: var(--hf-muted);
  line-height: 1.5;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  font-family: var(--hf-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-field input,
.checkout-field select {
  padding: 0.7rem 0.8rem;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-family: var(--hf-font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
}

.checkout-delivery-hint {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--hf-muted);
}

.checkout-summary {
  position: sticky;
  top: 5.5rem;
  background: var(--hf-surface);
  border: 1px solid #eeeeee;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}

.checkout-summary__items {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}

.checkout-summary__items li,
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

.checkout-summary__row--total {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px solid #dddddd;
  font-family: var(--hf-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkout-summary__edit {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

@media (max-width: 800px) {
  .checkout-layout,
  .checkout-field-row {
    grid-template-columns: 1fr;
  }
}

.cart-drawer__footer .hot-fizz-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--hf-muted);
  text-align: center;
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(10, 10, 10, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 1rem;
}

.search-modal.is-open {
  display: flex;
}

.search-modal__panel {
  width: min(560px, 100%);
  background: var(--hf-paper);
  border-radius: var(--hf-radius-md);
  padding: 1.25rem;
  box-shadow: var(--hf-shadow);
}

.search-modal__panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--hf-font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.search-modal__panel input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid #dddddd;
  border-radius: var(--hf-radius-md);
  font-family: var(--hf-font-body);
  font-size: 1rem;
}

.search-results {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.search-results a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  text-decoration: none;
  border-bottom: 1px solid #eeeeee;
}

.search-results img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

/* Product page quantity (Shopify-like) */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: var(--hf-radius-pill);
  overflow: hidden;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
}

.quantity-selector input {
  width: 48px;
  border: none;
  text-align: center;
  font-family: var(--hf-font-heading);
  font-size: 1rem;
  background: transparent;
}

/*
 * Yellow heroes: one fixed band height (Find us / Contact / Wholesale / Our story).
 * Canada badge on About used a larger top margin and made that page taller.
 */
.hot-fizz-page-hero--yellow {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15.375rem; /* 246px — Our story */
  min-height: 15.375rem;
  max-height: 15.375rem;
  padding: 0 1.25rem;
}

.hot-fizz-page-hero__inner {
  width: 100%;
}

.hot-fizz-page-hero__title {
  margin-bottom: 0.65rem;
}

.hot-fizz-page-hero__subtitle {
  margin-bottom: 0;
}

.hot-fizz-page-hero .hot-fizz-canada-badge {
  margin: 0.65rem 0 0;
}

/* Match Find us spacing: room between yellow hero and form */
.hot-fizz-inquiry {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem clamp(3rem, 6vw, 4.5rem);
}

.success-banner {
  background: color-mix(in srgb, var(--hf-blue) 10%, var(--hf-paper));
  border: 1px solid color-mix(in srgb, var(--hf-blue) 35%, transparent);
  border-radius: var(--hf-radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 820px;
  text-align: center;
  font-family: var(--hf-font-body);
}

body.drawer-open {
  overflow: hidden;
}
