/* 00-foundation.css */
:root {
  --rp-white: #fff;
  --rp-ink: #161213;
  --rp-muted: #756b6b;
  --rp-line: rgba(22, 18, 19, .11);
  --rp-line-soft: rgba(22, 18, 19, .07);
  --rp-accent: #8f1d2c;
  --rp-soft: #f7f4f2;
  --rp-container: 1180px;
  --rp-header-h: 72px;
  --rp-radius: 34px;
  --rp-ease: cubic-bezier(.2, .8, .2, 1);
  --rp-shadow: 0 22px 70px rgba(22, 18, 19, .14);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--rp-white);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--rp-white);
  color: var(--rp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: geometricPrecision;
}

body.is-menu-open,
body.is-cart-open { overflow: hidden; }

[x-cloak] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(143, 29, 44, .16); }

.rp-container {
  width: min(100% - 32px, var(--rp-container));
  margin-inline: auto;
}

.rp-page {
  padding-top: calc(var(--rp-header-h) + 26px);
  min-height: 64vh;
  background: var(--rp-white);
}

.rp-kicker,
.rp-eyebrow {
  display: inline-flex;
  color: var(--rp-accent);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rp-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .32s var(--rp-ease), opacity .22s ease;
}

.rp-header--overlay,
.rp-header--scrolled,
.rp-header--overlay.rp-header--scrolled {
  background: transparent;
  border-bottom-color: transparent;
}

.rp-header--hidden { transform: translateY(-100%); }

.rp-nav {
  min-height: var(--rp-header-h);
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rp-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.rp-brand img {
  width: 158px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}

.rp-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.rp-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .22s var(--rp-ease), background .22s ease;
}

.rp-icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(22, 18, 19, .045);
}

.rp-cart-count {
  position: absolute;
  top: 7px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rp-accent);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
}

.rp-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: transform .24s var(--rp-ease), background .24s ease, color .24s ease, border-color .24s ease;
}

.rp-btn:hover { transform: translateY(-1px); }
.rp-btn-primary { background: var(--rp-ink); color: #fff; }
.rp-btn-primary:hover { background: #000; }
.rp-btn-soft { background: var(--rp-soft); color: var(--rp-ink); border: 1px solid var(--rp-line-soft); }
.rp-btn-full { width: 100%; }

.rp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--rp-ink);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.rp-text-link svg {
  width: 18px;
  height: 18px;
  transition: transform .22s var(--rp-ease);
}

.rp-text-link:hover svg { transform: translateX(3px); }


.rp-cart-count.is-empty {
  display: none;
}

.rp-cart-count--flash {
  animation: rpCartCountFlash 1.65s ease forwards;
}

@keyframes rpCartCountFlash {
  0% {
    background: var(--rp-accent);
    transform: scale(1);
  }
  18% {
    background: #f4c542;
    color: #2a2110;
    transform: scale(1.18);
  }
  72% {
    background: #f4c542;
    color: #2a2110;
    transform: scale(1.08);
  }
  100% {
    background: var(--rp-accent);
    color: #fff;
    transform: scale(1);
  }
}
