:root {
  --bg: #0c1016;
  --bg-soft: #171c24;
  --card: #171e29;
  --gold: #d8b26a;
  --gold-soft: #b99354;
  --text: #e8ebf0;
  --muted: #aeb5c2;
  --border: #2a3344;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, sans-serif;
  background: radial-gradient(circle at top, #1c2434 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(216, 178, 106, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(138, 157, 193, 0.1), transparent 25%);
  z-index: -1;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .nav-wrap {
  position: relative;
}

.top-strip,
.nav-wrap,
.section,
.site-footer,
.grid-banners {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.45rem 0;
}

.top-strip a {
  color: var(--gold);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 0;
  gap: 0.6rem;
}

.header-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
  min-width: 0;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cart-link:hover {
  border-color: rgba(216, 178, 106, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.cart-icon {
  display: flex;
  color: var(--muted);
}

.cart-link:hover .cart-icon {
  color: var(--text);
}

.cart-count-wrap {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-radius: 999px;
  padding: 0.15rem 0.4rem;
  line-height: 1.2;
}

.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  justify-self: start;
}

.logo-image {
  justify-self: center;
  display: inline-flex;
  align-items: center;
}

.logo-image img {
  display: block;
  height: 78px;
  width: auto;
  max-width: min(500px, 66vw);
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.menu-btn {
  display: none;
  background: none;
  border: 0;
  gap: 0.2rem;
  padding: 0.2rem;
}

.menu-btn span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #fff;
}

.hero {
  overflow: hidden;
  min-height: 72vh;
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -80px 120px rgba(0, 0, 0, 0.28);
  position: relative;
}

.hero-track {
  display: flex;
  width: 300%;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.55rem;
  align-items: center;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.hero-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

.hero-slide {
  flex: 0 0 33.333333%;
  min-width: 0;
  min-height: 72vh;
  padding: 6rem 1.4rem;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.52), rgba(8, 10, 14, 0.1));
}

.hero-slide > * {
  position: relative;
  z-index: 1;
}

.hero-slide[aria-hidden="true"] a {
  pointer-events: none;
}

.hero-slide:nth-child(1) {
  background:
    linear-gradient(120deg, rgba(16, 25, 40, 0.62) 10%, rgba(75, 56, 30, 0.48) 90%),
    url("assets/fabric-basic.png") center/cover no-repeat;
}

.hero-slide:nth-child(2) {
  background:
    linear-gradient(120deg, rgba(18, 20, 28, 0.62) 10%, rgba(67, 58, 42, 0.46) 90%),
    url("assets/fabric-premium.png") center/cover no-repeat;
}

.hero-slide:nth-child(3) {
  background:
    linear-gradient(120deg, rgba(25, 21, 18, 0.58) 10%, rgba(98, 75, 44, 0.5) 90%),
    url("assets/Ottoman%20Black.png") center/cover no-repeat;
}

.overline,
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #f4d49a;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
  margin: 0.25rem 0 1rem;
}

h1,
h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.btn {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border-radius: 999px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: #1d2230;
}

.btn-dark {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #111;
}

.btn-ottoman {
  color: #f6ead2;
  background: linear-gradient(
    145deg,
    rgba(28, 24, 18, 0.82) 0%,
    rgba(18, 16, 14, 0.92) 100%
  );
  border: 1px solid rgba(216, 178, 106, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 200, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
}

.btn-ottoman:hover {
  border-color: rgba(236, 204, 140, 0.95);
  background: linear-gradient(
    145deg,
    rgba(42, 36, 26, 0.9) 0%,
    rgba(22, 20, 16, 0.95) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 210, 0.18),
    0 0 24px rgba(216, 178, 106, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

.grid-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3.25rem auto;
}

.banner-card {
  padding: 1.6rem;
  background: linear-gradient(145deg, #1b212c, #141a23);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.banner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 178, 106, 0.5);
}

.banner-card p {
  color: var(--muted);
}

.banner-card a {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.82rem;
}

.section {
  margin: 4.5rem auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-head-main {
  flex: 1 1 min(100%, 32rem);
  min-width: min(100%, 18rem);
}

.section-head-main .eyebrow {
  margin: 0 0 0.65rem;
}

.section-head-main h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  max-width: 18ch;
}

.section-head-main h2.headline-one-line {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.82rem, 0.55rem + 1.85vw, 2.75rem);
  letter-spacing: 0.005em;
}

.section-head-cta {
  flex-shrink: 0;
  align-self: flex-end;
}

@media (max-width: 640px) {
  .section-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }

  .section-head-main h2 {
    max-width: none;
  }

  .section-head-main h2.headline-one-line {
    font-size: clamp(0.7rem, 0.4rem + 2.1vw, 2.75rem);
  }

  .section-head-cta {
    align-self: flex-start;
    margin-top: 0.25rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(29, 37, 51, 0.95), rgba(20, 27, 37, 0.92));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.btn-cart {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

button.btn-cart.btn {
  border-radius: 8px;
  text-transform: uppercase;
}

.btn-cart:hover {
  border-color: rgba(216, 178, 106, 0.45);
  background: rgba(216, 178, 106, 0.12);
}

.btn-cart.is-added {
  border-color: rgba(216, 178, 106, 0.7);
  background: rgba(216, 178, 106, 0.2);
}

a.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.product-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 178, 106, 0.46);
}

.product-card p,
.product-card span {
  margin: 0.2rem 0;
  color: var(--muted);
}

.tier-points {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
  color: #c9d0dc;
  font-size: 0.82rem;
}

.tier-basic .product-image {
  box-shadow: inset 0 0 60px rgba(25, 37, 58, 0.2);
}

.tier-premium .product-image {
  box-shadow: inset 0 0 70px rgba(52, 42, 24, 0.18);
}

.tier-ottoman {
  border-color: rgba(216, 178, 106, 0.5);
  background:
    linear-gradient(180deg, rgba(38, 34, 28, 0.95), rgba(24, 25, 30, 0.94)),
    linear-gradient(160deg, rgba(255, 230, 180, 0.12), transparent 55%);
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.33);
}

.tier-ottoman:hover {
  transform: translateY(-11px);
}

.product-image {
  height: 260px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.image-one {
  background-image:
    linear-gradient(140deg, rgba(37, 50, 71, 0.28) 8%, rgba(113, 142, 179, 0.2) 92%),
    url("assets/fabric-basic.png");
}

.image-two {
  background-image:
    linear-gradient(140deg, rgba(68, 57, 40, 0.25) 8%, rgba(178, 148, 96, 0.24) 92%),
    url("assets/fabric-premium.png");
}

.image-three {
  background-image:
    linear-gradient(140deg, rgba(88, 68, 40, 0.26) 8%, rgba(207, 173, 108, 0.26) 92%),
    url("assets/Ottoman%20Black.png");
}

.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.split article,
.services,
.newsletter-inner {
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.96), rgba(17, 24, 34, 0.9));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
}

.editorial-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  border-radius: 16px;
  padding: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.editorial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 14, 0.88), rgba(7, 10, 14, 0.18));
}

.editorial-overlay {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

.editorial-overlay h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin: 0.35rem 0 0.85rem;
  max-width: 19ch;
}

.editorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 178, 106, 0.48);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.editorial-art {
  background-image:
    linear-gradient(140deg, rgba(20, 25, 37, 0.2), rgba(216, 178, 106, 0.08)),
    url("assets/fabric-premium.png");
}

.editorial-consult {
  background-image:
    linear-gradient(140deg, rgba(20, 25, 37, 0.15), rgba(142, 153, 182, 0.14)),
    url("assets/fabric-basic.png");
}

.editorial-house {
  background-image:
    linear-gradient(140deg, rgba(26, 21, 17, 0.18), rgba(216, 178, 106, 0.12)),
    url("assets/fabric-ottoman.png");
}

.tier-spec-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.05rem 1rem;
  background:
    linear-gradient(160deg, rgba(25, 31, 42, 0.95), rgba(17, 24, 34, 0.92)),
    radial-gradient(circle at top right, rgba(216, 178, 106, 0.09), transparent 46%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tier-spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 178, 106, 0.52);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.tier-spec-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 85%;
  background: radial-gradient(circle, rgba(216, 178, 106, 0.2), transparent 60%);
  pointer-events: none;
}

.spec-tier {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8c1ce;
}

.tier-spec-card h3 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.spec-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.6rem;
}

.spec-list span {
  color: var(--muted);
  font-size: 0.84rem;
  padding-right: 0.9rem;
  letter-spacing: 0.01em;
}

.spec-list strong {
  color: #f6e6c3;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-align: right;
  white-space: nowrap;
  min-width: 8ch;
  font-variant-numeric: tabular-nums;
}

.spec-product-grid {
  margin-top: 1rem;
}

.spec-product-card {
  min-height: 285px;
  padding: 1.05rem 1rem 1.1rem;
  justify-content: space-between;
}

.spec-product-card h3 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.spec-product-ottoman {
  border-color: rgba(216, 178, 106, 0.56);
  background:
    linear-gradient(180deg, rgba(38, 34, 28, 0.95), rgba(24, 25, 30, 0.94)),
    linear-gradient(160deg, rgba(255, 230, 180, 0.12), transparent 55%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.33),
    inset 0 1px 0 rgba(255, 236, 200, 0.08);
}

.spec-product-ottoman:hover {
  border-color: rgba(236, 204, 140, 0.9);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(216, 178, 106, 0.16);
}

.spec-product-ottoman .spec-tier {
  color: #e6c78e;
}

.spec-product-ottoman .spec-list strong {
  color: #f6e6c3;
}

.text-link {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services > h2 {
  margin-bottom: 1.05rem;
}

.service-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 0.95rem;
  background:
    linear-gradient(160deg, rgba(19, 25, 35, 0.88), rgba(15, 21, 30, 0.8)),
    radial-gradient(circle at top right, rgba(216, 178, 106, 0.08), transparent 42%);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 178, 106, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.service-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #f0d6a1;
  margin-bottom: 0.7rem;
  background:
    linear-gradient(145deg, rgba(216, 178, 106, 0.22), rgba(216, 178, 106, 0.08)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(216, 178, 106, 0.32);
}

.service-card h3 {
  margin: 0.15rem 0 0.5rem;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
}

.service-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.newsletter form {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1 1 220px;
  background: #0e131b;
  color: #fff;
  border: 1px solid #364053;
  padding: 0.82rem;
  border-radius: 8px;
}

.newsletter input:focus {
  outline: none;
  border-color: rgba(216, 178, 106, 0.8);
  box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.15);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 4.5rem;
  padding: 2rem 0 1.1rem;
}

.site-footer h3 {
  margin-bottom: 0.65rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.copyright {
  grid-column: 1 / -1;
  text-align: center;
  color: #8f99ab;
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    transition-duration: 0.01ms;
  }
}

.category-page {
  padding-top: 0.35rem;
}

.breadcrumb {
  width: min(100% - 2rem, var(--max));
  margin: 1.15rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb a:hover {
  color: var(--text);
}

.category-header {
  width: min(100% - 2rem, var(--max));
  margin: 1.35rem auto 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.category-header h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
}

.category-lead {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.category-tier-links {
  margin-top: 0.75rem;
}

.tier-link-sep {
  color: var(--muted);
  margin: 0 0.5rem;
}

.category-toolbar {
  width: min(100% - 2rem, var(--max));
  margin: 1.1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.toolbar-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.toolbar-btn,
.toolbar-select {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
}

.toolbar-btn:disabled,
.toolbar-select:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.catalog-grid {
  margin-top: 1.5rem;
  margin-bottom: 4rem;
}

.cart-page .section {
  margin-top: 1.5rem;
}

.cart-empty {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 4rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.5), rgba(17, 24, 34, 0.4));
}

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

.cart-layout {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr min(320px, 100%);
  gap: 1.5rem;
  align-items: start;
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "info qty total"
    "info remove remove";
  gap: 0.5rem 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.85), rgba(17, 24, 34, 0.82));
  align-items: center;
}

.cart-line-info {
  grid-area: info;
}

.cart-line-name {
  margin: 0 0 0.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.cart-line-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-line-unit {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-line-qty {
  grid-area: qty;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.qty-btn:hover {
  border-color: rgba(216, 178, 106, 0.5);
}

.qty-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.cart-line-total {
  grid-area: total;
  margin: 0;
  font-weight: 600;
  color: var(--gold);
}

.cart-line-remove {
  grid-area: remove;
  justify-self: end;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-line-remove:hover {
  color: var(--text);
}

.cart-aside {
  position: sticky;
  top: 5.5rem;
}

.cart-summary-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.96), rgba(17, 24, 34, 0.92));
}

.cart-summary-title {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.cart-summary-row strong {
  color: var(--text);
  font-size: 1.1rem;
}

.cart-summary-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.cart-continue {
  display: block;
  text-align: center;
}

.checkout-layout {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 4rem;
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: 1.75rem;
  align-items: start;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-fieldset {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.4rem;
  margin: 0;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.5), rgba(17, 24, 34, 0.45));
}

.checkout-fieldset:disabled {
  opacity: 0.55;
}

.checkout-legend {
  padding: 0 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0e131b;
  color: var(--text);
}

.form-input:focus {
  outline: none;
  border-color: rgba(216, 178, 106, 0.65);
}

.form-textarea {
  resize: vertical;
  min-height: 4rem;
}

.checkout-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkout-line span:last-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

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

.cart-summary-row--total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.success-panel {
  width: min(100% - 2rem, 520px);
  margin: 4rem auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.96), rgba(17, 24, 34, 0.9));
}

.success-panel h1 {
  margin-top: 0;
}

.success-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.compare-toolbar {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.compare-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.compare-selectors {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-selector-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.95), rgba(17, 24, 34, 0.9));
}

.compare-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c1ce;
}

.compare-select {
  font-family: inherit;
  font-size: 0.9rem;
  background: #0f141c;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.58rem 0.65rem;
}

.compare-current {
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-size: 0.84rem;
}

.compare-brand-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 0.9rem;
  background: linear-gradient(160deg, rgba(25, 31, 42, 0.95), rgba(17, 24, 34, 0.9));
}

.compare-brand-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8c1ce;
}

.compare-brand-card h2 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.compare-brand-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.compare-table-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.compare-table-title {
  margin: 0 0 0.8rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #131922;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.72rem 0.78rem;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: #1a212d;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-table tbody th {
  font-size: 0.84rem;
  color: #dde3ee;
  width: 20%;
}

.compare-table td {
  color: var(--muted);
  font-size: 0.84rem;
}

.compare-footnote {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .grid-banners,
  .product-grid,
  .catalog-grid,
  .split,
  .service-grid,
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .spec-product-grid {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .tier-ottoman {
    transform: translateY(0);
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-aside {
    position: static;
  }

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

  .compare-selectors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
  }

  .main-nav {
    position: absolute;
    inset: 100% 1rem auto 1rem;
    background: #0e131b;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    z-index: 1001;
  }

  .header-right {
    justify-self: end;
    min-width: auto;
  }

  .nav-tools {
    margin-left: auto;
  }

  .logo-image img {
    height: 60px;
    max-width: 82vw;
  }

  .logo-text {
    font-size: 1.65rem;
  }

  .main-nav.open {
    display: flex;
  }

  .top-strip {
    display: none;
  }

  .hero-slide {
    min-height: 66vh;
  }

  .grid-banners,
  .product-grid,
  .catalog-grid,
  .split,
  .service-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .spec-product-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-aside {
    position: static;
  }

  .cart-line {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info info"
      "qty total"
      "remove remove";
  }

  .cart-line-qty {
    justify-self: start;
  }

  .cart-line-total {
    justify-self: end;
  }

  .cart-line-remove {
    justify-self: start;
  }

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