/* ============================================================================
   ARMEDANGELS — base.css (clean-room reconstruction)
   Reset + type scale + buttons + container + header/footer chrome.
   Color comes from the --color-background / --color-foreground RGB triples
   emitted by color-schemes.liquid; tokens come from css-variables.liquid.
   ============================================================================ */

/* ---- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-body--family);
  font-weight: var(--font-body--weight);
  font-size: 1.6rem;
  line-height: 1.3;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
  border-radius: var(--style-border-radius-inputs);
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgb(var(--focus-ring-color));
}

main {
  flex: 1 0 auto;
}

/* ---- Type scale ---------------------------------------------------------- */
/* DISPLAY family = Jost 800 (Futura Extra Black substitute), uppercase + tight.
   BODY family    = Inconsolata 400/500. */

.display-hero {
  font-family: var(--font-display--family);
  font-weight: 800;
  font-size: 6.4rem;
  line-height: 0.85;          /* 54.4 / 64 */
  letter-spacing: -0.26rem;
  text-transform: uppercase;
}

.display-2 {
  font-family: var(--font-display--family);
  font-weight: 800;
  font-size: 4.8rem;
  line-height: 0.85;          /* 40.8 / 48 */
  letter-spacing: -0.19rem;
  text-transform: uppercase;
}

.display-label {
  font-family: var(--font-body--family);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
}

.h1 {
  font-family: var(--font-display--family);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 0.85;          /* 27.2 / 32 */
  letter-spacing: -0.13rem;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-body--family);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
}

.body {
  font-family: var(--font-body--family);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;           /* 20.8 / 16 */
}

.button {
  font-family: var(--font-body--family);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
}

.caption {
  font-family: var(--font-body--family);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0.1rem;
}

.text-muted {
  color: rgb(var(--color-muted));
}

/* ---- Buttons ------------------------------------------------------------- */
/* Sharp rectangles — 0 radius, no shadow. */

.button--solid,
.button--ghost,
.button--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-family: var(--font-body--family);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.button--solid {
  min-height: var(--button-height);
  padding: 0 var(--spacing-2xl);
  background-color: #000;
  color: #fff;
  border: 1px solid #000;
  transition: background-color var(--duration-default) var(--easing-default),
    color var(--duration-default) var(--easing-default);
}

.button--solid:hover {
  background-color: #fff;
  color: #000;
}

.button--ghost {
  min-height: var(--button-height);
  padding: 0 var(--spacing-xl);
  background-color: transparent;
  /* Outline button adapts to its scheme: white on the dark image banners /
     hero panels (scheme-2 fg = #fff), dark on a light sand band (scheme-84
     fg = #121212) — instead of hardcoded white that vanishes on light. */
  color: rgb(var(--color-foreground));
  border: 1px solid rgb(var(--color-foreground));
  transition: background-color var(--duration-default) var(--easing-default),
    color var(--duration-default) var(--easing-default);
}

.button--ghost:hover {
  background-color: rgb(var(--color-foreground));
  color: rgb(var(--color-background));
}

.button--text {
  padding: 0;
  background: none;
  border: none;
  color: rgb(var(--color-foreground));
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.button--text .button__arrow {
  width: 1.4rem;
  height: 1.4rem;
}

/* ---- Container / layout -------------------------------------------------- */
.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.full-bleed {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Hairline section divider — 2px tall. */
.section-divider {
  width: 100%;
  height: var(--divider-height);
  border: 0;
  background-color: rgb(var(--color-hairline));
}

/* ---- Carousel (scroll-snap track) --------------------------------------- */
.carousel {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel__card {
  flex: 0 0 auto;
  width: 341px;
  scroll-snap-align: start;
}

/* ============================================================================
   HEADER — 3-zone sticky bar (scheme-1, white)
   left text nav | CENTER wordmark | right search + 3 icon buttons.
   Collapses to a compact mark + hamburger under 1024px.
   ============================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 53px;
  padding-inline: var(--spacing-md);
  gap: var(--spacing-md);
}

/* LEFT — text nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  justify-self: start;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__menu-item {
  display: flex;
  align-items: center;
}

.header__nav-link {
  font-family: var(--font-body--family);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
  color: rgb(var(--color-foreground));
  white-space: nowrap;
}

/* MEGA-MENU — full-width white panel pinned under the header, opens on hover.
   Each level-1 child renders as a column (bold head + link list). CSS-only:
   shown on :hover and :focus-within, no JS. */
.header__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background-color: rgb(var(--color-background));
  border-top: 1px solid rgb(var(--color-hairline));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
  pointer-events: none;
}

.header__menu-item--has-panel:hover > .header__mega,
.header__menu-item--has-panel:focus-within > .header__mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header__mega-inner {
  display: flex;
  gap: var(--spacing-2xl, 4rem);
  align-items: flex-start;
  padding-block: var(--spacing-xl);
  padding-inline: var(--spacing-md);
}

.header__mega-cols {
  display: flex;
  flex: 1 1 auto;
  gap: var(--spacing-2xl, 4rem);
  flex-wrap: wrap;
}

.header__mega-col {
  min-width: 14rem;
}

.header__mega-col-head {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display--family);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgb(var(--color-foreground));
}

.header__mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.header__mega-link {
  font-family: var(--font-body--family);
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgb(var(--color-foreground));
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.header__mega-col-head:hover,
.header__mega-link:hover,
.header__mega-link:focus-visible {
  border-bottom-color: rgb(var(--color-foreground));
}

/* Promo image tiles on the right of the panel. */
.header__mega-promo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  width: 18rem;
  color: rgb(var(--color-foreground));
  text-decoration: none;
}

.header__mega-promo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.header__mega-promo-caption {
  font-family: var(--font-body--family);
  font-size: 1.3rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgb(var(--color-muted));
}

/* CENTER — wordmark */
.header__logo {
  justify-self: center;
}

.header__wordmark {
  font-family: var(--font-display--family);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.08rem;
  text-transform: uppercase;
  line-height: 1;
  color: rgb(var(--color-foreground));
  white-space: nowrap;
}

/* RIGHT — search + icons */
.header__utils {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  justify-self: end;
}

.header__search {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  width: 200px;
  height: 31px;
  padding-inline: var(--spacing-sm);
  border: 1px solid rgb(var(--color-hairline));
  border-radius: 0;
}

.header__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  outline: none;
}

.header__search button {
  display: inline-flex;
  padding: 0;
}

.header__icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--color-foreground));
}

.header__icon svg {
  width: 16px;
  height: 16px;
}

.header__cart-count {
  position: absolute;
  top: -0.6rem;
  left: 100%;
  font-size: 1rem;
  line-height: 1;
}

/* Compact mark + hamburger, hidden on desktop */
.header__compact-mark,
.header__hamburger {
  display: none;
}

@media (max-width: 1023.98px) {
  .header__nav,
  .header__search {
    display: none;
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .header__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
  }

  .header__compact-mark {
    display: inline-flex;
    width: 60px;
    justify-content: center;
  }

  .header__wordmark--full {
    display: none;
  }
}

/* ============================================================================
   ANNOUNCEMENT BAR — slim promo strip above the header (scheme-1)
   ============================================================================ */
.announcement-bar {
  --slide-height: 2.5rem;        /* 40px when 1rem = 16px; visual strip height */
  width: 100%;
  overflow: hidden;
  /* Measured original: light/neutral bar, dark #121212 text. Pin it here so an
     inherited dark scheme (e.g. scheme-2 from the header group) can't flip it. */
  background-color: #ffffff;
  color: #121212;
}

.announcement-bar__track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: var(--spacing-md);
}

.announcement-bar__slide {
  font-family: var(--font-body--family);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.announcement-bar__link {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* ============================================================================
   FOOTER — 3-column info band on scheme-84 (#F4F3EE)
   ============================================================================ */
.footer {
  width: 100%;
  background-color: rgb(var(--color-background));
  color: rgb(var(--color-foreground));
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  max-width: var(--page-width);
  margin-inline: auto;
  padding: var(--spacing-3xl) var(--spacing-md);
}

.footer__col-heading {
  font-family: var(--font-body--family);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer__link {
  font-size: 1.6rem;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__social,
.footer__payment {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer__social svg,
.footer__payment svg {
  width: 24px;
  height: 24px;
}

.footer__newsletter-input {
  display: flex;
  margin-top: var(--spacing-md);
  max-width: 360px;
}

.footer__newsletter-input input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding-inline: var(--spacing-md);
  border: 1px solid rgb(var(--color-hairline));
  background-color: transparent;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-md);
  max-width: var(--page-width);
  margin-inline: auto;
  padding: var(--spacing-md);
  border-top: 2px solid rgb(var(--color-hairline));
  font-size: 1.2rem;
}

.footer__legal-spacer {
  margin-left: auto;
}

@media (max-width: 749.98px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}
