:root {
  --navy: #07162b;
  --navy-soft: #0d2037;
  --ink: #0a1426;
  --muted: #596171;
  --stone: #f3f0eb;
  --ivory: #fbfaf7;
  --white: #ffffff;
  --sand: #d9cbbb;
  --line: #e6e1da;
  --font-sans: "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

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

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

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
}

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

.announcement {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  min-height: 92px;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid rgba(7, 22, 43, 0.08);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.98);
  box-shadow: 0 12px 32px rgba(7, 22, 43, 0.08);
}

.brand {
  display: inline-flex;
  width: min(18vw, 178px);
  min-width: 128px;
  align-items: center;
}

.brand img {
  width: 100%;
  mix-blend-mode: multiply;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.15rem);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.header-actions button,
.menu-toggle {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.header-actions svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cart-count {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.cart-count.has-items {
  display: grid;
}

.menu-toggle {
  display: none;
  justify-self: end;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(480px, 47vw, 610px);
  overflow: hidden;
  background: var(--stone);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.78) 32%, rgba(251, 250, 247, 0.1) 62%),
    linear-gradient(0deg, rgba(7, 22, 43, 0.08), rgba(7, 22, 43, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(58rem, 92vw);
  align-self: center;
  padding: clamp(2rem, 7vw, 7rem) clamp(1.5rem, 8vw, 7rem);
}

.hero h1 {
  margin: 0 0 1.35rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(3.25rem, 5.6vw, 5.55rem);
  font-weight: 400;
  line-height: 1.02;
}

.hero p {
  max-width: 31rem;
  margin: 0 0 2.1rem;
  color: #192335;
  font-size: clamp(1.08rem, 2.1vw, 1.38rem);
  line-height: 1.58;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy-soft);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.promise-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 2.4rem clamp(1.5rem, 5vw, 5rem);
  background: var(--stone);
}

.promise-bar article {
  display: grid;
  justify-items: center;
  text-align: center;
}

.promise-bar svg {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.promise-bar h2,
.care-strip h2 {
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promise-bar p,
.care-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.category-section {
  padding: clamp(3rem, 7vw, 5.6rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--white);
}

.section-heading {
  margin-bottom: clamp(1.8rem, 4vw, 2.7rem);
  text-align: center;
}

.section-heading h2,
.collection-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.category-card a {
  display: grid;
  justify-items: center;
  text-align: center;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: cover;
  background: var(--stone);
  transition: transform 240ms ease, filter 240ms ease;
}

.category-card span {
  margin-top: 1.35rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-card small {
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

#bedding,
#pillows,
#toppers,
#bath,
#about,
#collections {
  scroll-margin-top: 150px;
}

.category-card a:hover img,
.category-card a:focus-visible img {
  filter: saturate(0.95) contrast(1.03);
  transform: translateY(-3px);
}

.difference-section {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(360px, 1fr);
  background: var(--stone);
}

.difference-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center;
}

.difference-copy {
  display: grid;
  align-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.difference-copy h2 {
  max-width: 34rem;
  margin: 0 0 1.35rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
}

.difference-copy > p:not(.eyebrow) {
  max-width: 33rem;
  margin: 0 0 1.9rem;
  color: #283244;
  font-size: 1.03rem;
  line-height: 1.68;
}

.care-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 1.8rem clamp(1.5rem, 4vw, 4rem);
  color: var(--white);
  background: var(--navy);
}

.care-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: min(100%, 440px);
  gap: 1.05rem;
}

.care-strip svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.care-strip p {
  color: rgba(255, 255, 255, 0.78);
}

.collection-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.9fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 7vw, 6rem);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.collection-section h2 {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: none;
}

.collection-copy p {
  margin: 0 0 1.5rem;
  color: #313b4d;
  font-size: 1.03rem;
  line-height: 1.7;
}

.page-hero {
  display: grid;
  justify-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 7vw, 6rem);
  text-align: center;
  background: var(--stone);
}

.compact-page-hero {
  padding-block: clamp(3.4rem, 7vw, 5.4rem);
}

.page-hero h1 {
  max-width: 58rem;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.page-hero p:not(.eyebrow) {
  max-width: 44rem;
  margin: 1.3rem 0 0;
  color: #2d3748;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4.5rem);
  background: var(--white);
}

.shop-filter {
  align-self: start;
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.shop-filter a,
.shop-filter span {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.shop-filter a {
  color: var(--ink);
}

.shop-filter .is-active {
  color: var(--navy);
}

.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.shop-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.shop-heading p,
.shop-heading span {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-card {
  background: var(--ivory);
  border: 1px solid var(--line);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  background: var(--stone);
}

.product-card-copy {
  padding: 1.15rem;
}

.product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.product-card-copy p:not(.eyebrow) {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.product-card strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
  background: var(--white);
}

.product-media {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 0.9rem;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  background: var(--stone);
}

.product-info h1 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.7rem);
  font-weight: 400;
  line-height: 1;
}

.product-price {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.product-lede {
  max-width: 42rem;
  margin: 1.4rem 0 2rem;
  color: #2d3748;
  font-size: 1.08rem;
  line-height: 1.72;
}

.product-form {
  display: grid;
  gap: 1.3rem;
}

.product-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-form legend,
.quantity-field {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.variant-options label {
  cursor: pointer;
}

.variant-options input {
  position: absolute;
  opacity: 0;
}

.variant-options span {
  display: grid;
  gap: 0.25rem;
  min-height: 84px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  transition: border-color 180ms ease, background 180ms ease;
}

.variant-options input:checked + span {
  border-color: var(--navy);
  background: var(--white);
}

.variant-options strong {
  color: var(--navy);
  text-transform: uppercase;
}

.variant-options small {
  color: var(--muted);
  line-height: 1.45;
}

.quantity-field {
  display: grid;
  gap: 0.65rem;
}

.quantity-field select {
  min-height: 48px;
  width: 120px;
  padding: 0 0.8rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
}

.product-add {
  width: 100%;
}

.product-status {
  min-height: 1.5rem;
  margin: -0.55rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-confidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: #273244;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-confidence span {
  display: grid;
  min-height: 58px;
  align-items: center;
  padding: 0.75rem;
  text-align: center;
  background: var(--ivory);
}

.trust-points li {
  padding-left: 1rem;
  background:
    radial-gradient(circle at 0.2rem 0.62rem, var(--navy) 0 0.16rem, transparent 0.18rem);
}

.product-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-policy-links a {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.product-accordions {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.product-accordions details {
  border-bottom: 1px solid var(--line);
}

.product-accordions summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.product-accordions p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.spec-list dl {
  display: grid;
  gap: 0;
  margin: 0 0 1rem;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.spec-list div:first-child {
  border-top: 0;
}

.spec-list dt {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pillow-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  color: var(--white);
  background: var(--navy);
}

.pillow-experience-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.pillow-experience-copy {
  display: grid;
  align-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}

.pillow-experience-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.pillow-experience-copy h2 {
  max-width: 42rem;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
}

.pillow-experience-copy > p {
  max-width: 42rem;
  margin: 1.4rem 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
  line-height: 1.74;
}

.experience-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.experience-notes article {
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  background: rgba(255, 255, 255, 0.06);
}

.experience-notes span {
  display: block;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.experience-notes h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.experience-notes p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.93rem;
  line-height: 1.58;
}

.comparison-section,
.faq-section {
  padding: clamp(3rem, 7vw, 5.2rem) clamp(1.25rem, 5vw, 4.5rem);
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.comparison-section h2,
.faq-section h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 400;
  line-height: 1.04;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.comparison-grid article {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--white);
}

.comparison-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 1rem;
  text-transform: uppercase;
}

.comparison-grid p,
.faq-list p {
  margin: 0;
  color: #354052;
  line-height: 1.65;
}

.product-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.product-support article {
  padding: clamp(2rem, 4vw, 3.4rem);
  background: var(--stone);
}

.product-support h2 {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 1rem;
  text-transform: uppercase;
}

.product-support p {
  margin: 0;
  color: #354052;
  line-height: 1.6;
}

.faq-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.faq-list {
  width: min(900px, 100%);
  margin-top: 2rem;
  text-align: left;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 1.2rem 0;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.faq-list p {
  padding-bottom: 1.2rem;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4.5rem);
  background: var(--white);
}

.cart-items {
  display: grid;
  gap: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.cart-line img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
}

.cart-line h2 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.cart-line p:not(.eyebrow) {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.cart-line label {
  display: grid;
  gap: 0.35rem;
  max-width: 120px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cart-line select {
  min-height: 42px;
  padding: 0 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.cart-line button {
  margin-top: 0.8rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.cart-line > strong {
  color: var(--navy);
  white-space: nowrap;
}

.cart-summary {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--stone);
  border: 1px solid var(--line);
}

.cart-summary h2,
.empty-cart h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cart-note,
.checkout-message,
.empty-cart p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trust-points {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #273244;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.cart-continue {
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.empty-cart {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ivory);
  border: 1px solid var(--line);
}

body.mini-cart-open {
  overflow: hidden;
}

.mini-cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(7, 22, 43, 0.36);
  border: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.mini-cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 31;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100vw, 460px);
  color: var(--ink);
  background: var(--ivory);
  box-shadow: -28px 0 54px rgba(7, 22, 43, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 0s linear 220ms;
}

body.mini-cart-open .mini-cart-backdrop {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

body.mini-cart-open .mini-cart-drawer {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.mini-cart-header h2,
.mini-cart-empty h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
}

.mini-cart-close {
  position: relative;
  width: 42px;
  height: 42px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.mini-cart-close span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
}

.mini-cart-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mini-cart-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mini-cart-items {
  display: grid;
  align-content: start;
  gap: 1px;
  overflow: auto;
  background: var(--line);
}

.mini-cart-line {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--ivory);
}

.mini-cart-line img {
  width: 94px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--stone);
}

.mini-cart-line h3 {
  margin: 0 0 0.3rem;
  color: var(--navy);
  font-size: 1rem;
  text-transform: uppercase;
}

.mini-cart-line p:not(.eyebrow) {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.mini-cart-line label {
  display: grid;
  gap: 0.35rem;
  max-width: 104px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-cart-line select {
  min-height: 38px;
  padding: 0 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.mini-cart-line button {
  margin-top: 0.7rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

.mini-cart-line > strong {
  color: var(--navy);
  white-space: nowrap;
}

.mini-cart-summary {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.4rem 1.4rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.mini-cart-empty {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--ivory);
}

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

.checkout-result {
  display: grid;
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
  background: var(--ivory);
}

.checkout-result img {
  width: 170px;
  margin-bottom: 2rem;
  mix-blend-mode: multiply;
}

.checkout-result h1 {
  max-width: 44rem;
  margin: 0;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 1.02;
}

.checkout-result p:not(.eyebrow) {
  max-width: 36rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

.policy-page {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 820px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 6vw, 5rem);
  background: var(--white);
}

.policy-nav {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.policy-nav a {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.policy-nav a[aria-current="page"] {
  color: var(--navy);
}

.policy-content {
  color: #1f293b;
}

.policy-content h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.policy-content h2 {
  margin: 2.2rem 0 0.7rem;
  color: var(--navy);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.policy-content p,
.policy-content li {
  color: #384355;
  font-size: 1rem;
  line-height: 1.72;
}

.policy-content ul {
  padding-left: 1.2rem;
}

.policy-meta {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-callout {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--stone);
  border-left: 3px solid var(--navy);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto minmax(280px, 410px);
  gap: 2rem;
  align-items: center;
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  color: var(--ink);
  background: var(--white);
}

.site-footer img {
  width: 156px;
  mix-blend-mode: multiply;
}

.site-footer p {
  max-width: 24rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer-abn {
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.newsletter label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.newsletter div {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.newsletter input {
  min-width: 0;
  min-height: 48px;
  padding: 0 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.newsletter button {
  min-height: 48px;
  padding: 0 1.1rem;
  color: var(--white);
  background: var(--navy);
  border: 0;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    position: fixed;
    inset: 134px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 0.75rem 1.5rem 1.5rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(7, 22, 43, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

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

  .header-actions {
    gap: 0.2rem;
  }

  .hero {
    min-height: 560px;
  }

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

  .shop-layout,
  .product-detail,
  .pillow-experience,
  .comparison-section,
  .cart-layout,
  .policy-page {
    grid-template-columns: 1fr;
  }

  .product-media,
  .cart-summary,
  .policy-nav {
    position: static;
  }

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

  .difference-section {
    grid-template-columns: 1fr;
  }

  .difference-image img {
    min-height: 380px;
  }

  .pillow-experience-image img {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .announcement {
    min-height: 36px;
    padding: 0 1rem;
    font-size: 0.72rem;
  }

  .site-header {
    min-height: 76px;
    padding: 0 1rem;
  }

  .primary-nav {
    inset: 112px 0 auto 0;
  }

  .brand {
    min-width: 118px;
  }

  .header-actions button {
    width: 34px;
    height: 34px;
  }

  .header-actions button:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 600px;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.94) 0%, rgba(251, 250, 247, 0.84) 45%, rgba(251, 250, 247, 0.18) 100%),
      linear-gradient(90deg, rgba(251, 250, 247, 0.88), rgba(251, 250, 247, 0.06));
  }

  .hero-content {
    align-self: start;
    padding: 3rem 1.25rem 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .promise-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .category-section {
    padding-inline: 1rem;
  }

  .category-grid {
    gap: 1.3rem 0.8rem;
  }

  .category-card img {
    aspect-ratio: 1 / 0.96;
  }

  .category-card span {
    min-height: 2.4rem;
    margin-top: 0.9rem;
    display: grid;
    place-items: center;
    font-size: 0.86rem;
  }

  .care-strip {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.25rem;
  }

  .collection-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .shop-heading,
  .product-confidence,
  .experience-notes,
  .product-support {
    grid-template-columns: 1fr;
  }

  .shop-heading {
    display: grid;
  }
}

@media (max-width: 460px) {
  .hero {
    min-height: 590px;
  }

  .hero p {
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .variant-options,
  .comparison-grid,
  .cart-line {
    grid-template-columns: 1fr;
  }

  .spec-list div,
  .mini-cart-line {
    grid-template-columns: 1fr;
  }

  .mini-cart-line img {
    width: 100%;
  }

  .cart-line img {
    width: 100%;
  }

  .newsletter div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
