:root {
  --font-site: "Almendra", Georgia, "Times New Roman", serif;
  --paper: #fffaf2;
  --cream: #f4eadc;
  --mist: #e7efea;
  --pine: #173b31;
  --pine-2: #245244;
  --oxblood: #92383b;
  --amber: #d89a43;
  --ink: #201c18;
  --muted: #766b61;
  --line: rgba(32, 28, 24, 0.14);
  --shadow: 0 18px 50px rgba(29, 24, 19, 0.16);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-site);
}

body.cart-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(32, 28, 24, 0.1);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.icon-button path,
.search-field path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #4f463d;
  font-size: 0.94rem;
}

.main-nav a {
  padding: 10px 0;
}

.main-nav a:hover {
  color: var(--pine);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--pine);
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
}

.auth-button:hover {
  color: var(--oxblood);
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.icon-button:hover {
  border-color: rgba(23, 59, 49, 0.4);
  background: var(--mist);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--oxblood);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero {
  min-height: 74svh;
  max-height: 790px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(19, 24, 23, 0.92), rgba(19, 24, 23, 0.62) 38%, rgba(19, 24, 23, 0.1) 76%),
    url("assets/hero-drowsy-bear-inn.png") center / cover no-repeat;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 68px;
  color: #fff8ed;
}

.eyebrow {
  margin: 0 0 13px;
  color: #f0c173;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--oxblood);
}

.hero h1,
.section-head h2,
.bundle-copy h2,
.cart-header h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.02;
}

.hero h1 {
  max-width: 620px;
  font-size: 4.65rem;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 248, 237, 0.86);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--amber);
  color: #251914;
}

.button.primary:hover {
  background: #efb35d;
}

.button.ghost {
  border-color: rgba(255, 248, 237, 0.38);
  color: #fff8ed;
  background: rgba(255, 248, 237, 0.08);
}

.button.light {
  background: #f6d89b;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 248, 237, 0.24);
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.08);
  color: rgba(255, 248, 237, 0.86);
  font-size: 0.9rem;
}

.promo-slider-section {
  padding: 28px 0 18px;
  background: linear-gradient(180deg, #efe1cd 0%, var(--paper) 100%);
}

.promo-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pine);
  box-shadow: var(--shadow);
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 520ms ease;
}

.promo-slide {
  position: relative;
  min-width: 100%;
  min-height: 330px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.promo-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 24, 21, 0.9), rgba(18, 24, 21, 0.54) 46%, rgba(18, 24, 21, 0.1));
}

.promo-slide img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-slide:nth-child(2) img {
  object-fit: contain;
  padding: 22px 10% 18px 50%;
  background: radial-gradient(circle at 72% 52%, rgba(216, 154, 67, 0.4), rgba(23, 59, 49, 0.95) 54%);
}

.promo-slide:nth-child(3) img {
  object-position: 78% 58%;
}

.promo-slide-copy {
  width: min(520px, calc(100% - 136px));
  padding: 44px 70px;
  color: #fff8ed;
}

.promo-slide-copy h2 {
  max-width: 500px;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.promo-slide-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 14px 0 22px;
  color: rgba(255, 248, 237, 0.84);
  font-size: 1.05rem;
  line-height: 1.5;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 237, 0.3);
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.14);
  color: #fff8ed;
  transform: translateY(-50%);
}

.slider-arrow:hover {
  background: rgba(255, 248, 237, 0.26);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 248, 237, 0.72);
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.slider-dot.active,
.slider-dot:hover {
  background: #fff8ed;
}

.shop-section,
.experience-section {
  padding: 62px 0;
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.section-head h2,
.bundle-copy h2 {
  font-size: 2.45rem;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px 0 42px;
  outline: none;
  background: #fffdf8;
}

.search-field input:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(23, 59, 49, 0.12);
}

.filter-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-tab {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fffdf8;
  color: #51483f;
  font-weight: 800;
  white-space: nowrap;
}

.filter-tab.active,
.filter-tab:hover {
  border-color: var(--pine);
  background: var(--pine);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgba(32, 28, 24, 0.08);
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transform: scale(var(--zoom, 1));
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 900;
}

.product-body {
  min-height: 224px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.product-body p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--pine);
}

.add-button {
  min-width: 118px;
}

.bundle-section {
  overflow: hidden;
  padding: 72px 0;
  background: var(--pine);
  color: #fff8ed;
}

.bundle-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.bundle-copy p {
  max-width: 540px;
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.65;
}

.bundle-visual {
  height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 237, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bundle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 58%;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 22px;
}

.step-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--pine);
  font-weight: 900;
}

.step-card h3 {
  margin: 18px 0 8px;
  font-size: 1.12rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 38;
  border: 0;
  background: rgba(20, 18, 16, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(430px, 100%);
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  box-shadow: -28px 0 70px rgba(20, 18, 16, 0.28);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

body.cart-open .cart-panel {
  transform: translateX(0);
}

body.cart-open .cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.6rem;
}

.cart-items {
  overflow-y: auto;
  padding: 18px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
}

.quantity-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 900;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--oxblood);
  font-weight: 800;
}

.cart-line-price {
  font-weight: 900;
  color: var(--pine);
  white-space: nowrap;
}

.cart-empty {
  align-self: center;
  padding: 36px 32px;
  text-align: center;
}

.cart-empty h3 {
  margin: 0 0 8px;
}

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

.cart-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.cart-total strong {
  color: var(--pine);
  font-size: 1.35rem;
}

.checkout-button {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff8ed;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #f2e6d5;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
  color: var(--pine);
}

@media (max-width: 940px) {
  .header-inner {
    min-height: 66px;
  }

  .brand {
    min-width: auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 70svh;
    background-position: 58% center;
  }

  .hero-inner {
    padding: 58px 0 52px;
  }

  .hero h1 {
    max-width: 500px;
    font-size: 3.35rem;
  }

  .hero-copy {
    max-width: 500px;
    font-size: 1.02rem;
  }

  .promo-slide {
    min-height: 300px;
  }

  .promo-slide-copy {
    width: min(500px, calc(100% - 108px));
    padding: 34px 58px;
  }

  .promo-slide-copy h2 {
    font-size: 2rem;
  }

  .section-head,
  .catalog-tools,
  .bundle-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .product-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 7px;
  }

  .auth-button {
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 68svh;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 7px;
  }

  .hero-proof span {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .promo-slider-section {
    padding: 18px 0 10px;
  }

  .promo-slide {
    min-height: 390px;
    align-items: flex-end;
  }

  .promo-slide::before {
    background: linear-gradient(180deg, rgba(18, 24, 21, 0.12), rgba(18, 24, 21, 0.9) 62%);
  }

  .promo-slide:nth-child(2) img {
    padding: 22px 16% 170px;
    background: radial-gradient(circle at 50% 34%, rgba(216, 154, 67, 0.42), rgba(23, 59, 49, 0.95) 58%);
  }

  .promo-slide-copy {
    width: 100%;
    padding: 30px 46px 58px;
  }

  .promo-slide-copy h2 {
    font-size: 1.75rem;
  }

  .promo-slide-copy p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .shop-section,
  .experience-section,
  .bundle-section {
    padding: 46px 0;
  }

  .section-head h2,
  .bundle-copy h2 {
    font-size: 2rem;
  }

  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .product-body {
    min-height: auto;
  }

  .bundle-visual {
    height: 260px;
  }

  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
