:root {
  /* RUGS DEPOT brand palette — deep teal + warm tan + cream paper */
  --paper: #faf5ea;
  --paper-2: #efe5d2;
  --panel: #fffdf7;
  --ink: #0e3b47;
  --muted: #5f6f73;
  --line: #ddd2bb;
  --line-dark: #c0b193;
  --bronze: #b0824a;
  --gold: #c4a57a;
  --teal: #3f8e96;
  --teal-deep: #1f5d63;
  --coffee: #143946;
  --black: #0a2730;
  --white: #ffffff;
  --focus: #3f8e96;
  --shadow: 0 22px 56px rgba(14, 59, 71, 0.12);
  --shadow-warm: 0 26px 64px rgba(176, 130, 74, 0.16);
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --top-offset: 144px;
  --ease-luxe: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-thread: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(63, 142, 150, 0.16), transparent 60%),
    radial-gradient(900px 600px at 90% 8%, rgba(196, 165, 122, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(14, 59, 71, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper), #f6efde 60%, var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(14, 59, 71, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 59, 71, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 90%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'><defs><pattern id='p' width='160' height='160' patternUnits='userSpaceOnUse'><g fill='none' stroke='rgba(63,142,150,0.07)' stroke-width='1'><path d='M80 8 L96 64 L152 80 L96 96 L80 152 L64 96 L8 80 L64 64 Z'/><circle cx='80' cy='80' r='28'/></g></pattern></defs><rect width='100%25' height='100%25' fill='url(%23p)'/></svg>");
  background-size: 480px 480px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
          mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.section-pad {
  padding: 84px clamp(18px, 4vw, 64px);
}

.button,
button.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 20px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  border-color: var(--line-dark);
  background: rgba(255, 253, 248, 0.72);
}

.button.primary:hover {
  background: var(--bronze);
  border-color: var(--bronze);
}

.button.secondary:hover {
  background: var(--paper-2);
  border-color: var(--bronze);
}

.commerce-topbar,
.promise-bar,
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 50;
}

.commerce-topbar {
  top: 0;
  min-height: 32px;
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 7px 16px;
  background: var(--black);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promise-bar {
  top: 32px;
  min-height: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(16px);
}

.promise-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  color: var(--coffee);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.promise-bar span:last-child {
  border-right: 0;
}

.scroll-progress {
  position: fixed;
  top: 68px;
  left: 0;
  z-index: 70;
  width: 0;
  height: 2px;
  background: var(--bronze);
}

.cursor-light {
  position: fixed;
  z-index: 1;
  width: 360px;
  height: 360px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(141, 104, 61, 0.14), transparent 68%);
  transition: opacity 180ms ease;
}

body.has-pointer .cursor-light {
  opacity: 1;
}

.site-header {
  top: 68px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(222, 213, 200, 0.82);
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(24, 20, 16, 0.08);
  background: rgba(251, 248, 241, 0.97);
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  transition: transform 480ms var(--ease-luxe);
}

.brand:hover .brand-mark {
  transform: rotate(72deg) scale(1.06);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: logoReveal 900ms ease both;
  filter: drop-shadow(0 4px 10px rgba(14, 59, 71, 0.18));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy > span {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-bottom: 1px solid transparent;
  color: var(--coffee);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  border-color: var(--bronze);
  color: var(--black);
}

.nav .nav-whatsapp {
  margin-left: 8px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.76);
}

.language-switcher {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.language-switcher summary {
  min-width: 112px;
  cursor: pointer;
  list-style: none;
  padding: 10px 28px 10px 12px;
  color: var(--coffee);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 190px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 22px 45px rgba(22, 18, 12, 0.14);
}

.language-menu a {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.language-menu a.is-active,
.language-menu a:hover {
  background: var(--black);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  display: block;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 160ms ease;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: calc(100vh - var(--top-offset));
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.3fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  padding-top: calc(var(--top-offset) + 56px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1,
.section-heading h2,
.product-copy h1,
.contact-card h2,
.catalog-card strong {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-copy h1 {
  margin: 0 0 26px;
  font-size: clamp(4.2rem, 9vw, 8.8rem);
}

.hero-lede {
  max-width: 440px;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.hero-text {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.hero-mini span {
  padding: 0 14px 0 0;
  border-right: 1px solid var(--line-dark);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-mini span:last-child {
  border-right: 0;
}

.hero-stage {
  position: relative;
  min-height: min(690px, 72vh);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(16, 16, 14, 0.72));
}

.slide-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: var(--paper);
}

.slide-caption span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slide-caption strong {
  max-width: 520px;
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1.03;
}

.slide-caption p {
  max-width: 420px;
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.96rem;
  line-height: 1.5;
}

.hero-slide.is-active img {
  animation: heroImageDrift 7200ms ease-out both;
}

.hero-slide.is-active .slide-caption span,
.hero-slide.is-active .slide-caption strong,
.hero-slide.is-active .slide-caption p {
  animation: editorialRise 760ms ease both;
}

.hero-slide.is-active .slide-caption strong {
  animation-delay: 90ms;
}

.hero-slide.is-active .slide-caption p {
  animation-delay: 180ms;
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes editorialRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-controls button {
  width: 32px;
  height: 3px;
  border: 0;
  background: rgba(255, 253, 248, 0.42);
  cursor: pointer;
}

.slider-controls button.is-active {
  background: var(--paper);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.proof-strip div {
  padding: 28px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin-bottom: 34px;
}

.section-number,
.micro-label,
.breadcrumb,
.collection-card-content span,
.product-card-row,
.product-card-meta,
.result-count,
.catalog-card span {
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.intro .section-heading {
  display: block;
  margin: 0;
}

.intro-text {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
}

.market-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--coffee);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 18px 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  white-space: nowrap;
}

.filter-bar,
.category-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
.category-rail a,
.category-rail button {
  min-height: 40px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 253, 248, 0.74);
  padding: 10px 15px;
  color: var(--coffee);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter:hover,
.filter.is-active,
.category-rail a:hover,
.category-rail button:hover {
  background: var(--black);
  color: var(--paper);
  transform: translateY(-1px);
}

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

.collection-card,
.catalog-collection-card,
.design-card,
.catalog-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.collection-card:hover,
.catalog-collection-card:hover,
.design-card:hover,
.catalog-card:hover,
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--bronze);
  box-shadow: 0 16px 32px rgba(28, 22, 17, 0.08);
}

.collection-card a,
.collection-card button {
  width: 100%;
  display: grid;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-card-content {
  padding: 18px;
}

.collection-card-content h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.collection-card-content p {
  margin: 0;
  color: var(--muted);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spec-row span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  background: var(--paper);
  color: var(--coffee);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.design-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.design-card {
  display: grid;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.design-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.design-card div {
  padding: 12px;
}

.design-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.design-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.production {
  background: var(--coffee);
  color: var(--paper);
}

.production .section-number,
.production .section-heading h2 {
  color: var(--paper);
}

.production-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.video-panel,
.production-photos {
  border: 1px solid rgba(251, 248, 241, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.video-panel video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-panel div {
  padding: 22px;
}

.video-panel h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.video-panel p {
  margin: 0;
  color: rgba(251, 248, 241, 0.74);
}

.production-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.production-photos img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.trade,
.journey,
.catalogs,
.contact,
.collections,
.designs,
.related-section,
.product-info,
.detail-layout {
  border-bottom: 1px solid var(--line);
}

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

.trade-card,
.catalog-card,
.address-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  padding: 24px;
}

.trade-card h3,
.address-grid span {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
}

.trade-card p,
.address-grid p {
  margin: 0;
  color: var(--muted);
}

.catalog-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-card strong {
  margin-top: 34px;
  font-size: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(24px, 4vw, 46px);
}

.contact-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 4vw, 4.6rem);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form label:has(textarea),
.lead-form button,
.form-note {
  grid-column: 1 / -1;
}

.lead-form span {
  color: var(--coffee);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.catalog-tools input,
.catalog-tools select {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 13px 14px;
}

.lead-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.lead-form .checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--bronze);
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 64px);
  background: var(--black);
  color: var(--paper);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  border-bottom: 1px solid rgba(251, 248, 241, 0.4);
}

.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: calc(var(--top-offset) + 62px);
  padding-bottom: 48px;
  text-align: center;
}

.page-hero h1 {
  max-width: 920px;
  margin: 16px auto 18px;
  font-size: clamp(3.6rem, 7vw, 7.2rem);
}

.page-hero p:not(.breadcrumb) {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.breadcrumb {
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

.shop-page-hero {
  border-bottom: 1px solid var(--line);
}

.shop-page-hero .category-rail {
  justify-content: center;
  margin-top: 28px;
}

.catalog-browser {
  padding-top: 0;
}

.catalog-tools {
  position: sticky;
  top: var(--top-offset);
  z-index: 25;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 0.9fr 0.85fr auto;
  gap: 10px;
  align-items: end;
  margin: 0 calc(clamp(18px, 4vw, 64px) * -1) 28px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(18px);
}

.catalog-tools label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.catalog-tools span {
  color: var(--coffee);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.catalog-tools input,
.catalog-tools select {
  min-height: 44px;
  padding: 10px 12px;
  appearance: none;
}

.catalog-tools .compact-action {
  min-height: 44px;
  padding-inline: 18px;
}

.listing-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.listing-summary p {
  margin: 0;
}

.result-count {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

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

.product-card {
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card[hidden] {
  display: none;
}

.product-card-link {
  display: grid;
  height: 100%;
  color: inherit;
}

.product-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 360ms ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.035);
}

.card-badge,
.quick-view {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--coffee);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-view {
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 14, 0.86);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.product-card:hover .quick-view,
.product-card:focus-within .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.shop-card-copy,
.product-card-copy {
  display: grid;
  gap: 9px;
  padding: 14px 2px 0;
}

.product-card-row,
.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--bronze);
}

.product-card-row span,
.product-card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.06;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-card-meta {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: calc(var(--top-offset) + 64px);
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  margin: 16px 0 18px;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.detail-hero p:not(.breadcrumb) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.detail-hero figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 34px;
}

.detail-layout h2,
.product-info h2,
.related-section h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.detail-specs {
  display: grid;
  border-top: 1px solid var(--line);
}

.detail-specs div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-specs dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-specs dd {
  margin: 0;
  color: var(--ink);
}

.product-detail.pdp-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
  padding-top: calc(var(--top-offset) + 38px);
  border-bottom: 1px solid var(--line);
}

.pdp-gallery {
  min-width: 0;
}

.pdp-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pdp-media-tile {
  position: relative;
  min-height: 0;
  border: 0;
  padding: 0;
  background: var(--paper-2);
  cursor: zoom-in;
  overflow: hidden;
}

.pdp-media-tile:first-child {
  grid-row: span 2;
}

.pdp-media-tile img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 280ms ease, filter 280ms ease;
}

.pdp-media-tile:hover img {
  transform: scale(1.025);
  filter: saturate(1.03);
}

.mobile-main-image {
  display: none;
}

.thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-strip button {
  flex: 0 0 76px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0;
  cursor: pointer;
}

.thumb-strip img {
  width: 76px;
  height: 104px;
  object-fit: cover;
}

.pdp-buybox {
  position: sticky;
  top: calc(var(--top-offset) + 22px);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.pdp-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 18px 0 16px;
}

.pdp-status-row > span:last-child {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.45rem, 4vw, 4.5rem);
}

.product-summary {
  max-height: 8.7em;
  overflow: hidden;
  color: var(--muted);
}

.pdp-option-block {
  margin: 26px 0;
}

.pdp-option-block h2 {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.size-pills span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: var(--white);
  color: var(--coffee);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.quote-button {
  flex: 1 1 210px;
}

.pdp-accordions {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.pdp-accordions details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.pdp-accordions summary {
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pdp-accordions .detail-specs {
  margin-top: 14px;
}

.product-info {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

.rich-text {
  color: var(--muted);
  font-size: 1rem;
}

.rich-text p:first-child {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--paper-2);
  color: var(--coffee);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 0.9rem;
}

.image-dialog {
  width: min(1120px, calc(100vw - 28px));
  border: 1px solid rgba(255, 253, 248, 0.35);
  background: var(--black);
  color: var(--paper);
  padding: 18px;
}

.image-dialog::backdrop {
  background: rgba(16, 16, 14, 0.76);
  backdrop-filter: blur(8px);
}

.image-dialog img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #0b0b0a;
}

.image-dialog p {
  margin: 12px 0 0;
  color: rgba(251, 248, 241, 0.76);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(251, 248, 241, 0.38);
  background: rgba(16, 16, 14, 0.82);
  color: var(--paper);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 540ms ease, transform 540ms ease;
}

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

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1180px) {
  :root {
    --top-offset: 136px;
  }

  .promise-bar {
    min-height: 32px;
  }

  .site-header {
    min-height: 68px;
  }

  .hero,
  .product-detail.pdp-detail,
  .detail-hero,
  .detail-layout,
  .product-info,
  .contact-card,
  .production-layout,
  .intro {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 560px;
  }

  .catalog-tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-tools .wide {
    grid-column: span 2;
  }

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

  .design-rail,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pdp-buybox {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --top-offset: 118px;
  }

  .commerce-topbar {
    gap: 12px;
    justify-content: space-between;
    font-size: 0.62rem;
  }

  .commerce-topbar span:last-child {
    display: none;
  }

  .promise-bar {
    grid-template-columns: 1fr;
  }

  .promise-bar span {
    display: none;
  }

  .promise-bar span:first-child {
    display: flex;
  }

  .scroll-progress {
    top: 64px;
  }

  .site-header {
    top: 64px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--top-offset);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 40px rgba(28, 22, 17, 0.12);
  }

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

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

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

  .nav .nav-whatsapp {
    margin: 14px 0 0;
    justify-content: center;
    text-align: center;
  }

  .section-pad {
    padding: 54px 16px;
  }

  .hero,
  .page-hero,
  .detail-hero,
  .product-detail.pdp-detail {
    padding-top: calc(var(--top-offset) + 32px);
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-stage {
    min-height: 460px;
  }

  .proof-strip,
  .trade-grid,
  .catalog-layout,
  .address-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .catalog-tools {
    position: static;
    grid-template-columns: 1fr;
    margin: 0 0 24px;
    padding: 14px;
    border: 1px solid var(--line);
  }

  .catalog-tools .wide {
    grid-column: auto;
  }

  .listing-summary {
    display: block;
  }

  .product-grid,
  .collection-grid,
  .generated-collection-grid,
  .design-rail,
  .compact-grid,
  .production-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdp-media-grid {
    grid-template-columns: 1fr;
  }

  .pdp-media-tile:first-child {
    grid-row: span 1;
  }

  .pdp-media-tile:nth-child(n + 5) {
    display: none;
  }

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

  .product-info {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .product-info > * {
    min-width: 0;
  }

  .lead-form label:has(textarea),
  .lead-form button,
  .form-note {
    grid-column: auto;
  }
}

.design-story-section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.design-story {
  columns: 2 360px;
  column-gap: clamp(28px, 5vw, 72px);
}

.design-story p {
  break-inside: avoid;
  margin: 0 0 1.15rem;
  color: var(--coffee);
  line-height: 1.82;
}

@media (max-width: 560px) {
  .product-grid,
  .collection-grid,
  .generated-collection-grid,
  .design-rail,
  .compact-grid,
  .production-photos {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-mini,
  .category-rail {
    flex-direction: column;
  }

  .hero-actions .button,
  .category-rail a,
  .category-rail button {
    width: 100%;
  }

  .product-card-media img {
    aspect-ratio: 4 / 5;
  }

  .detail-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pdp-buybox {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mockup-faithful B2B catalog refinements */
:root {
  --paper: #fffdf9;
  --paper-2: #f7f2ea;
  --panel: #ffffff;
  --line: #ddd1c3;
  --line-dark: #c9b9a8;
  --top-offset: 150px;
}

body {
  background: #fffdf9;
}

body::before {
  opacity: 0.12;
}

.commerce-topbar {
  min-height: 28px;
  padding: 6px 28px;
  gap: 12px;
  background: #050505;
  color: #fff;
  font-size: 0.66rem;
}

.commerce-topbar span {
  padding-inline: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.commerce-topbar span:last-child {
  margin-left: auto;
  border-right: 0;
}

.promise-bar {
  top: 28px;
  min-height: 46px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.promise-bar span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 12px;
  font-size: 0.66rem;
  color: var(--black);
}

.promise-bar b {
  font-weight: 850;
}

.promise-bar small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.scroll-progress {
  top: 74px;
}

.site-header {
  top: 74px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 230px 1fr;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 1px 0 rgba(221, 209, 195, 0.75);
}

.brand-mark {
  width: 72px;
  height: 52px;
  background: transparent;
}

.brand-mark img {
  object-fit: contain;
}

.brand-copy > span {
  font-size: 1.42rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav {
  justify-self: end;
}

.nav a {
  font-size: 0.72rem;
  color: #191714;
}

.selection-nav {
  min-height: 38px;
  border: 1px solid var(--line-dark);
  background: #fff;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-nav span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  background: #050505;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
}

.nav .nav-whatsapp {
  border-color: #050505;
  border-radius: 10px;
  background: #050505;
  color: #fff;
}

.shop-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1.28fr);
  align-items: stretch;
  margin-top: var(--top-offset);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(90deg, #fffdf9 0%, #fffaf3 48%, #eee5da 100%);
}

.shop-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 58px) clamp(24px, 4vw, 58px);
}

.shop-hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5.5vw, 5.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.shop-hero p {
  max-width: 560px;
  margin: 0;
  color: #393631;
  font-size: 1.05rem;
}

.shop-hero figure {
  margin: 0;
  position: relative;
}

.shop-hero figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fffdf9, rgba(255, 253, 249, 0.08) 42%, transparent);
  z-index: 1;
}

.shop-hero img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.browse-band {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.browse-band > span {
  flex: 0 0 auto;
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.browse-band .category-rail {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.category-rail a,
.category-rail button {
  border-radius: 999px;
  background: #fff;
  color: #2d2924;
  font-size: 0.68rem;
  white-space: nowrap;
}

.category-rail a:hover,
.category-rail button:hover {
  background: #050505;
  color: #fff;
}

.catalog-browser {
  padding-top: 20px;
  background: #fffdf9;
}

.catalog-tools {
  top: var(--top-offset);
  margin-bottom: 18px;
  background: #fff;
}

.catalog-tools input,
.catalog-tools select {
  border-radius: 4px;
  background: #fff;
}

.listing-summary {
  margin-bottom: 16px;
  padding-inline: 2px;
}

.product-grid {
  gap: 22px;
}

.product-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
}

.product-card:hover {
  transform: none;
  box-shadow: 0 16px 40px rgba(20, 17, 14, 0.08);
}

.wishlist-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.08rem;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease;
}

.wishlist-button:hover {
  transform: scale(1.08);
  background: #050505;
  color: #fff;
}

.product-card-media {
  margin: 10px 10px 0;
}

.product-card-media img {
  aspect-ratio: 3 / 4.08;
}

.quick-view {
  left: 22px;
  right: 22px;
  bottom: 16px;
  min-height: 34px;
  border-radius: 3px;
  background: rgba(5, 5, 5, 0.9);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
  font-size: 0.63rem;
}

.shop-card-copy,
.product-card-copy {
  padding: 12px 16px 14px;
}

.product-card-row {
  display: block;
  color: var(--bronze);
  font-size: 0.62rem;
}

.product-card h3 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.product-card p {
  color: #5b554e;
  font-size: 0.82rem;
}

.product-card-meta {
  display: none;
}

.card-size-note {
  color: #6b5e50;
  font-size: 0.78rem;
}

.product-detail.pdp-detail {
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  padding-top: calc(var(--top-offset) + 34px);
  background: #fffdf9;
}

.pdp-media-grid {
  gap: 14px;
}

.pdp-media-tile {
  border: 1px solid var(--line);
  background: #f6f0e8;
}

.pdp-media-tile:first-child {
  grid-row: span 1;
}

.pdp-media-tile img {
  aspect-ratio: 1 / 1.28;
}

.pdp-buybox {
  border: 0;
  border-left: 1px solid var(--line);
  box-shadow: none;
  background: transparent;
  padding-top: 4px;
}

.product-copy h1 {
  font-size: clamp(3rem, 4.8vw, 5.2rem);
}

.pdp-status-row {
  margin-top: 8px;
}

.product-summary {
  display: none;
}

.option-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.option-heading span {
  color: var(--muted);
  font-size: 0.72rem;
}

.design-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 228px;
  overflow: auto;
  padding-right: 3px;
}

.design-swatch {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 4px;
  background: #fff;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.design-swatch.is-current,
.design-swatch:hover {
  border-color: #050505;
  box-shadow: inset 0 0 0 1px #050505;
}

.design-swatch img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.design-swatch span {
  overflow: hidden;
  color: #3d3831;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.size-pills {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.size-choice {
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  padding: 7px 6px;
  color: #1d1a16;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.size-choice.is-selected,
.size-choice:hover {
  background: #050505;
  border-color: #050505;
  color: #fff;
  transform: translateY(-1px);
}

.size-choice .size-graphic {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  filter: saturate(0.86) contrast(1.02);
  mix-blend-mode: multiply;
}

.size-choice:hover .size-graphic,
.size-choice.is-selected .size-graphic {
  filter: invert(1) grayscale(1) contrast(1.35);
  mix-blend-mode: screen;
}

.size-shape {
  width: calc(28px * var(--ratio, 0.67));
  min-width: 16px;
  max-width: 34px;
  height: 22px;
  display: block;
  border: 1px solid currentColor;
  background: linear-gradient(135deg, transparent 48%, currentColor 49%, currentColor 51%, transparent 52%);
}

.custom-shape {
  width: 28px;
  border-style: dashed;
}

.size-choice span:last-child {
  min-height: auto;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 750;
}

[dir="rtl"] body {
  font-family: "Inter", "Tahoma", "Arial", sans-serif;
}

[dir="rtl"] .product-card,
[dir="rtl"] .collection-card,
[dir="rtl"] .site-footer,
[dir="rtl"] .pdp-buybox,
[dir="rtl"] .page-hero {
  text-align: right;
}

[dir="rtl"] th,
[dir="rtl"] td {
  text-align: right;
}

/* Homepage navigation and footer expansion */
.home-taxonomy {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.home-taxonomy.compact-band,
.buyer-advantages {
  background: var(--paper-2);
}

.section-kicker {
  width: min(760px, 100%);
  margin: -20px 0 28px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-nav-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-nav-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-nav-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-dark);
  box-shadow: 0 20px 45px rgba(28, 22, 17, 0.11);
}

.home-nav-card figure {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eee5da;
}

.home-nav-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-nav-card:hover img {
  transform: scale(1.045);
}

.home-nav-card div {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
}

.home-nav-card span,
.process-card span,
.site-footer span {
  color: var(--bronze);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-nav-card strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1;
}

.home-nav-card p,
.process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.color-grid .home-nav-card figure {
  aspect-ratio: 5 / 3;
}

.collection-nav-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-process {
  border-top: 1px solid var(--line);
  background: #17130f;
  color: var(--paper);
}

.order-process .section-heading h2,
.order-process .process-card h3 {
  color: var(--paper);
}

.order-process .section-kicker,
.order-process .process-card p {
  color: rgba(255, 253, 248, 0.7);
}

.process-card {
  min-height: 225px;
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid rgba(191, 161, 121, 0.35);
  background: rgba(255, 253, 248, 0.055);
  padding: clamp(20px, 3vw, 30px);
}

.buyer-advantages .process-card {
  border-color: var(--line);
  background: var(--panel);
}

.process-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 1.05;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.9fr);
  gap: clamp(28px, 6vw, 78px);
  border-top: 1px solid var(--line);
  background: #17130f;
  color: var(--paper);
  padding: clamp(42px, 7vw, 78px) clamp(18px, 5vw, 72px);
}

.footer-brand strong {
  display: block;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.6rem);
  font-weight: 500;
}

.footer-brand p,
.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
  line-height: 1.7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-columns nav,
.footer-columns div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--paper);
}

@media (max-width: 1180px) {
  .home-nav-grid,
  .process-grid,
  .collection-nav-grid,
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .language-switcher {
    margin-top: 10px;
  }

  .language-switcher summary {
    width: 100%;
  }

  .language-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .section-kicker {
    margin-top: 0;
  }

  .home-nav-grid,
  .process-grid,
  .collection-nav-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.size-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.button.dark {
  background: #050505;
  color: #fff;
}

.pdp-accordions summary {
  display: flex;
  justify-content: space-between;
}

.pdp-accordions summary::after {
  content: "+";
  font-size: 1rem;
}

.product-info {
  background: #fffdf9;
}

.selection-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(440px, 92vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border-left: 1px solid var(--line);
  background: #fffdf9;
  box-shadow: -24px 0 70px rgba(16, 16, 14, 0.16);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

body.selection-open .selection-drawer {
  transform: translateX(0);
}

.selection-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(5, 5, 5, 0.24);
}

body.selection-open .selection-backdrop {
  display: block;
}

.selection-drawer-header,
.selection-actions {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.selection-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.selection-drawer-header span {
  color: var(--bronze);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.selection-drawer-header strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.selection-drawer-header button,
.selection-item button {
  border: 1px solid var(--line-dark);
  background: #fff;
  cursor: pointer;
  padding: 8px 10px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selection-items {
  overflow: auto;
  padding: 12px 20px;
}

.selection-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.selection-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  background: var(--paper-2);
}

.selection-item strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

.selection-item span,
.selection-item small,
.empty-selection,
.selection-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.selection-actions {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.selection-note {
  margin: 0;
  padding: 0 20px 20px;
}

.buyer-desk {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(153, 110, 65, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(153, 110, 65, 0.06), rgba(255, 253, 248, 0));
  background-size: 72px 100%, auto;
}

.buyer-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.buyer-desk-card {
  min-height: 260px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.92);
}

.buyer-desk-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.buyer-desk-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.buyer-desk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.journal-hero {
  border-bottom: 1px solid var(--line);
}

.journal-cover {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(28, 27, 25, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 92px 100%;
}

.journal-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 32px;
  align-items: end;
  padding: 28px 0 34px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.journal-masthead span,
.journal-briefing > p,
.magazine-card span,
.article-sidebar span,
.related-reading p {
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-masthead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.86;
}

.journal-masthead p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.journal-front {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.journal-feature,
.journal-briefing {
  background: var(--paper);
}

.journal-feature a {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(260px, 0.64fr);
  min-height: 520px;
  color: inherit;
  text-decoration: none;
}

.journal-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-feature span,
.journal-feature h2,
.journal-feature p {
  grid-column: 2;
  margin-left: 34px;
  margin-right: 34px;
}

.journal-feature span {
  align-self: end;
  margin-top: auto;
  margin-bottom: 18px;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-feature h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.92;
}

.journal-feature p {
  align-self: start;
  margin-top: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.journal-briefing {
  padding: 26px;
}

.journal-briefing a,
.related-reading a {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.journal-briefing a strong,
.related-reading a strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.08;
}

.journal-briefing small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.journal-categories {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.category-paper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}

.category-paper a {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.category-paper span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.category-paper strong {
  color: var(--bronze);
  font-size: 0.78rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.magazine-card {
  background: var(--paper);
}

.magazine-card a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.magazine-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 380ms ease, filter 380ms ease;
}

.magazine-card a:hover img {
  transform: scale(1.025);
  filter: saturate(1);
}

.magazine-card span,
.magazine-card h2,
.magazine-card p {
  margin-right: 22px;
  margin-left: 22px;
}

.magazine-card span {
  margin-top: 22px;
}

.magazine-card h2 {
  margin-top: 14px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
}

.magazine-card p {
  margin-top: 0;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.56;
}

.journal-index .section-heading {
  margin-bottom: 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.blog-card {
  background: var(--paper);
}

.blog-card a {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.blog-card a:hover {
  background: #fbf6ee;
  transform: translateY(-2px);
}

.blog-card span,
.journal-article header span,
.article-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
}

.blog-card h2 {
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.02;
}

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

.journal-article {
  max-width: 980px;
  margin: 0 auto;
}

.journal-article.magazine-article {
  max-width: 1240px;
}

.journal-article header,
.article-masthead {
  padding: 52px 0 34px;
  border-bottom: 1px solid var(--line);
}

.journal-article h1 {
  max-width: 880px;
  margin: 18px 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.94;
}

.journal-article header p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.article-photo {
  margin: 28px 0 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.article-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-photo figcaption {
  margin: 0;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.article-body {
  columns: 2 320px;
  column-gap: 54px;
  padding: 42px 0;
  font-family: var(--serif);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
}

.article-layout .article-body {
  columns: 2 330px;
}

.article-sidebar {
  position: sticky;
  top: calc(var(--top-offset) + 24px);
  display: grid;
  gap: 14px;
  margin-top: 42px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.article-sidebar p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.related-reading {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.article-body p {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  font-size: 1.18rem;
  line-height: 1.72;
}

.article-body p:first-child::first-letter {
  float: left;
  padding: 0.1em 0.12em 0 0;
  font-size: 4.8rem;
  line-height: 0.72;
  color: var(--ink);
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

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

  .shop-hero,
  .product-detail.pdp-detail {
    grid-template-columns: 1fr;
  }

  .pdp-buybox {
    border-left: 0;
  }

  .size-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .journal-front,
  .journal-feature a,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .journal-feature a {
    min-height: auto;
  }

  .journal-feature img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .journal-feature span,
  .journal-feature h2,
  .journal-feature p {
    grid-column: 1;
  }

  .article-sidebar {
    position: static;
    margin-top: 0;
  }

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

@media (max-width: 820px) {
  :root {
    --top-offset: 104px;
  }

  .commerce-topbar span:nth-child(2),
  .commerce-topbar span:nth-child(3) {
    display: none;
  }

  .promise-bar {
    top: 28px;
    min-height: 30px;
    grid-template-columns: 1fr;
  }

  .promise-bar span:first-child {
    display: grid;
  }

  .promise-bar small {
    display: none;
  }

  .scroll-progress {
    top: 58px;
  }

  .site-header {
    top: 58px;
  }

  .shop-hero {
    margin-top: var(--top-offset);
  }

  .browse-band {
    display: grid;
    gap: 12px;
  }

  .product-card-media img {
    aspect-ratio: 3 / 3.8;
  }

  .design-swatch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .size-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .journal-masthead {
    grid-template-columns: 1fr;
  }

  .buyer-desk-grid,
  .category-paper,
  .magazine-grid {
    grid-template-columns: 1fr;
  }

  .buyer-desk-card {
    min-height: 210px;
  }

  .journal-feature h2 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .article-body,
  .article-layout .article-body {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .shop-hero-copy {
    padding: 30px 16px;
  }

  .shop-hero h1 {
    font-size: 3.3rem;
  }

  .shop-hero figure {
    min-height: 190px;
  }

  .design-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .blog-card a {
    min-height: 190px;
  }

  .selection-item {
    grid-template-columns: 54px 1fr;
  }

  .selection-item button {
    grid-column: 2;
    justify-self: start;
  }
}

/* ============================================================
   RUGS DEPOT — Brand-refresh additions
   Google Fonts + display upgrade + animation/decoration layer
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Selection + scrollbar accent */
::selection { background: var(--teal); color: var(--paper); }
::-moz-selection { background: var(--teal); color: var(--paper); }

/* Refined link underline on body copy */
main a:not(.button):not(.brand):not(.nav a):not(.language-menu a) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 320ms var(--ease-luxe), color 220ms ease;
}
main a:not(.button):not(.brand):not(.nav a):not(.language-menu a):hover {
  background-size: 100% 1px;
  color: var(--teal-deep);
}

/* Slider dots get a refined ring */
.slider-controls button {
  border-radius: 999px;
  height: 4px;
  width: 22px;
  transition: width 320ms var(--ease-luxe), background 220ms ease;
}
.slider-controls button.is-active {
  width: 44px;
  background: var(--gold);
}

/* Marquee colour upgrade with teal accent dots */
.market-marquee {
  background: linear-gradient(90deg, var(--coffee), var(--teal-deep) 50%, var(--coffee));
  position: relative;
}
.market-marquee::before,
.market-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.market-marquee::before { left: 0; background: linear-gradient(90deg, var(--coffee), transparent); }
.market-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--coffee), transparent); }
.marquee-track span { color: var(--paper); }
.marquee-track span::after {
  content: "✦";
  margin-left: 36px;
  color: var(--gold);
  font-size: 0.7em;
  vertical-align: middle;
}

/* Promise bar — subtle teal text */
.promise-bar { background: rgba(250, 245, 234, 0.92); }
.promise-bar span { color: var(--ink); }
.promise-bar span b { color: var(--teal-deep); }

/* Topbar — teal-tinted */
.commerce-topbar {
  background: linear-gradient(90deg, var(--coffee), var(--teal-deep));
}

/* Buttons upgraded — primary fills with teal, secondary tan */
.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 100%);
  transform: translateY(101%);
  transition: transform 480ms var(--ease-luxe);
  z-index: -1;
}
.button.primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.button.primary:hover::before { transform: translateY(0); }
.button.secondary { border-color: var(--gold); color: var(--ink); }
.button.secondary:hover { background: var(--gold); color: var(--paper); border-color: var(--gold); }

/* Headlines — Playfair display */
.hero-copy h1,
.page-hero h1,
.detail-hero h1,
.section-heading h2,
.product-copy h1,
.contact-card h2,
.catalog-card strong,
.collection-card-content h3,
.design-card strong,
.trade-card h3,
.video-panel h3,
.detail-layout h2,
.product-info h2,
.related-section h2 {
  font-family: var(--display);
  letter-spacing: -0.005em;
}

/* Section-heading gets a hairline + small caps eyebrow */
.section-heading { position: relative; }
.section-number,
.micro-label,
.breadcrumb,
.collection-card-content span,
.product-card-row,
.product-card-meta,
.result-count,
.catalog-card span {
  color: var(--bronze);
  position: relative;
}
.section-heading .section-number::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
}

/* Hero copy — subtle character-stagger reveal hook */
.hero-copy h1 .char,
.page-hero h1 .char,
.detail-hero h1 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
}
.hero-copy h1.is-revealed .char,
.page-hero h1.is-revealed .char,
.detail-hero h1.is-revealed .char {
  opacity: 1;
  transform: translateY(0) rotate(0);
  transition: opacity 600ms var(--ease-luxe), transform 700ms var(--ease-luxe);
  transition-delay: calc(20ms * var(--char-index, 0));
}

/* Hero stage — softer frame, layered glow, mandala corner accent */
.hero-stage {
  border: 1px solid rgba(192, 177, 147, 0.5);
  border-radius: 4px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(63, 142, 150, 0.08) inset;
  background: var(--coffee);
}
.hero-stage::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -60px;
  z-index: 3;
  pointer-events: none;
  background-image: url("/assets/img/rugsdepot-logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
  animation: mandalaSlowSpin 64s linear infinite;
}
@keyframes mandalaSlowSpin {
  to { transform: rotate(360deg); }
}

/* Proof strip — teal accent numbers */
.proof-strip { background: rgba(255, 253, 247, 0.85); }
.proof-strip strong {
  color: var(--teal-deep);
  background: linear-gradient(180deg, var(--teal-deep), var(--ink));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.proof-strip div { position: relative; }
.proof-strip div::after {
  content: "";
  position: absolute; left: 28px; bottom: 18px;
  width: 32px; height: 2px; background: var(--gold);
  opacity: 0; transform: translateY(8px);
  transition: opacity 360ms var(--ease-luxe), transform 360ms var(--ease-luxe);
}
.proof-strip div.is-visible::after { opacity: 1; transform: translateY(0); }

/* Cards — warm hover lift, gold border */
.collection-card,
.catalog-collection-card,
.design-card,
.catalog-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.86);
  transition: transform 360ms var(--ease-luxe), border-color 220ms ease, box-shadow 360ms var(--ease-luxe);
}
.collection-card:hover,
.catalog-collection-card:hover,
.design-card:hover,
.catalog-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-warm);
}
.collection-card img,
.design-card img,
.catalog-card img,
.product-card-media img {
  transition: transform 700ms var(--ease-luxe), filter 480ms ease;
}
.collection-card:hover img,
.design-card:hover img,
.product-card:hover .product-card-media img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

/* Cursor light — teal glow */
.cursor-light {
  background: radial-gradient(circle, rgba(63, 142, 150, 0.22), transparent 68%);
  width: 420px; height: 420px;
  mix-blend-mode: multiply;
}

/* Scroll progress — gold */
.scroll-progress { background: linear-gradient(90deg, var(--gold), var(--teal)); height: 3px; }

/* Production section — deep teal with woven texture */
.production {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(63, 142, 150, 0.45), transparent 60%),
    linear-gradient(180deg, var(--coffee), #0a2730);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.production::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><path d='M0 40 L80 40 M40 0 L40 80 M0 0 L80 80 M80 0 L0 80' stroke='rgba(196,165,122,0.06)' stroke-width='1'/></svg>");
  background-size: 80px 80px;
  opacity: 0.6;
}
.production .section-heading h2,
.production .section-number { color: var(--paper); }

/* Site footer — teal-deep with gold dividers */
.site-footer {
  background: linear-gradient(180deg, var(--coffee), var(--black));
  border-top: 3px solid var(--gold);
}
.site-footer a { border-bottom-color: rgba(196, 165, 122, 0.5); }
.site-footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* Reveal-on-scroll base */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 800ms var(--ease-luxe), transform 800ms var(--ease-luxe);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-left.is-visible,
.reveal.reveal-right.is-visible { transform: translateX(0); }

/* Stagger children helper */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease-luxe), transform 720ms var(--ease-luxe);
  transition-delay: calc(70ms * var(--i, 0));
}
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic button hover - applied by JS */
.button[data-magnetic] {
  will-change: transform;
  transition: transform 240ms var(--ease-luxe), background 240ms ease, color 240ms ease, border-color 240ms ease;
}

/* Tilt card */
.tilt-card { transform-style: preserve-3d; transition: transform 320ms var(--ease-luxe); }

/* Parallax media drift */
[data-parallax] { will-change: transform; }

/* Sparkle accent ornament */
.ornament {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 0.78rem; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 700;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
  min-width: 28px;
}

/* Filter pill upgrade */
.filter, .category-rail a, .category-rail button {
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  border-color: var(--line);
  transition: background 240ms ease, color 240ms ease, transform 240ms var(--ease-luxe), border-color 240ms ease;
}
.filter:hover, .filter.is-active,
.category-rail a:hover, .category-rail button:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Form inputs — refined focus */
.lead-form input,
.lead-form select,
.lead-form textarea,
.catalog-tools input,
.catalog-tools select {
  border-color: var(--line-dark);
  background: var(--white);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
  outline: 0;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63, 142, 150, 0.18);
}

/* WhatsApp nav pill — green-teal */
.nav .nav-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  border-color: transparent;
}
.nav .nav-whatsapp:hover { background: linear-gradient(135deg, #128C7E, #075E54); color: #fff; }

/* Page hero ornament hairline */
.page-hero { position: relative; }
.page-hero::after {
  content: "";
  display: block;
  width: 64px; height: 2px;
  background: var(--gold);
  margin: 30px auto 0;
}

/* Catalog tools sticky bar — warmer paper */
.catalog-tools {
  background: rgba(250, 245, 234, 0.96);
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Selection drawer pop-in */
.selection-drawer { transition: transform 480ms var(--ease-luxe); }

/* Detail hero — mandala watermark behind image */
.detail-hero figure { position: relative; }
.detail-hero figure::before {
  content: "";
  position: absolute; inset: -20px;
  background-image: url("/assets/img/rugsdepot-logo.svg");
  background-size: 60% auto;
  background-position: 90% -10%;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
  animation: mandalaSlowSpin 96s linear infinite reverse;
}

/* Subtle entrance for header brand on first load */
.brand { animation: brandFadeIn 700ms var(--ease-luxe) both; }
@keyframes brandFadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Logo reveal keyframes (matches original token) */
@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.8) rotate(-45deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.reveal-left, .reveal.reveal-right,
  .stagger > *, .tilt-card, [data-parallax] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-stage::before, .detail-hero figure::before { animation: none; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   RUGS DEPOT — Opening intro overlay
   Plays once per session. Honors prefers-reduced-motion.
   ============================================================ */

.rd-intro {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 600px at 50% 50%, rgba(63, 142, 150, 0.6), transparent 70%),
    linear-gradient(180deg, #143946, #0a2730 70%, #061a22);
  color: var(--paper);
  opacity: 1;
  will-change: transform, opacity, clip-path;
  pointer-events: auto;
  overflow: hidden;
}
.rd-intro::before, .rd-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(196, 165, 122, 0.25);
  border-radius: 999px;
  pointer-events: none;
}
.rd-intro::before {
  width: 720px; height: 720px;
  animation: rdRingPulse 2200ms var(--ease-luxe) both;
}
.rd-intro::after {
  width: 1100px; height: 1100px;
  border-color: rgba(63, 142, 150, 0.18);
  animation: rdRingPulse 2400ms 120ms var(--ease-luxe) both;
}
.rd-intro__stage {
  position: relative;
  display: grid;
  place-items: center;
  gap: 28px;
  width: min(560px, 86vw);
  text-align: center;
}
.rd-intro__mark {
  width: clamp(180px, 28vw, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}
.rd-intro__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  animation: rdMarkBloom 1300ms 100ms var(--ease-luxe) forwards;
}
.rd-intro__word {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.rd-intro__word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(6deg);
  animation: rdWordRise 880ms var(--ease-luxe) forwards;
}
.rd-intro__word span:nth-child(1) { animation-delay: 800ms; }
.rd-intro__word span:nth-child(2) { animation-delay: 920ms; }
.rd-intro__tagline {
  display: block;
  opacity: 0;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 253, 247, 0.7);
  animation: rdFadeUp 700ms 1500ms var(--ease-luxe) forwards;
}
.rd-intro__tagline strong { color: var(--gold); font-weight: 700; }
.rd-intro__progress {
  position: absolute; bottom: 8%;
  left: 50%; transform: translateX(-50%);
  width: 220px; height: 1px;
  background: rgba(255, 253, 247, 0.18);
  overflow: hidden;
}
.rd-intro__progress::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: 0 50%;
  animation: rdProgress 2200ms 80ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.rd-intro--leaving {
  animation: rdCurtainOut 1100ms var(--ease-luxe) forwards;
}

@keyframes rdMarkBloom {
  0%   { opacity: 0; transform: scale(0.4) rotate(-90deg); }
  60%  { opacity: 1; transform: scale(1.05) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes rdWordRise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes rdFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rdRingPulse {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes rdProgress {
  to { transform: scaleX(1); }
}
@keyframes rdCurtainOut {
  0%   { opacity: 1; clip-path: circle(150% at 50% 50%); }
  60%  { opacity: 1; }
  100% { opacity: 0; clip-path: circle(0% at 50% 50%); pointer-events: none; }
}

body.rd-intro-active { overflow: hidden; }
body.rd-intro-active .site-header,
body.rd-intro-active .commerce-topbar,
body.rd-intro-active .promise-bar,
body.rd-intro-active main,
body.rd-intro-active .site-footer { opacity: 0; }
body.rd-intro-done .site-header,
body.rd-intro-done .commerce-topbar,
body.rd-intro-done .promise-bar,
body.rd-intro-done main,
body.rd-intro-done .site-footer {
  opacity: 1;
  animation: rdPageFadeIn 700ms var(--ease-luxe) both;
}
@keyframes rdPageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rd-intro { display: none !important; }
}

/* ============================================================
   RUGS DEPOT — Creative homepage hero
   ============================================================ */

.hero-creative {
  position: relative;
  min-height: calc(100vh - var(--top-offset));
  display: grid;
  grid-template-columns: 1fr;
  padding: calc(var(--top-offset) + 8px) clamp(18px, 4vw, 64px) 64px;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

/* Ambient layered background */
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1600ms var(--ease-luxe);
}
.hero-bg-slide.is-active { opacity: 1; }
.hero-bg-slide img {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transform: scale(1.08);
  transition: transform 12s linear;
}
.hero-bg-slide.is-active img { transform: scale(1.18) translate(-1.5%, -1%); }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(250, 245, 234, 0.86) 0%, rgba(250, 245, 234, 0.6) 40%, rgba(20, 57, 70, 0.42) 100%),
    radial-gradient(900px 600px at 80% 0%, rgba(63, 142, 150, 0.2), transparent 60%);
}

/* Floating mandala motif */
.hero-mandala {
  position: absolute;
  right: -12%; top: -8%;
  width: clamp(360px, 60vw, 820px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  animation: heroMandalaSpin 80s linear infinite;
}
.hero-mandala--small {
  right: auto; left: -8%; top: auto; bottom: -10%;
  width: clamp(220px, 32vw, 420px);
  opacity: 0.06;
  animation-duration: 110s;
  animation-direction: reverse;
}
@keyframes heroMandalaSpin { to { transform: rotate(360deg); } }

/* Topline marquee */
.hero-marquee {
  position: absolute;
  top: var(--top-offset);
  left: 0; right: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(192, 177, 147, 0.4);
  border-bottom: 1px solid rgba(192, 177, 147, 0.4);
  overflow: hidden;
  z-index: 2;
  background: rgba(250, 245, 234, 0.5);
  backdrop-filter: blur(8px);
}
.hero-marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: heroMarquee 42s linear infinite;
  color: var(--coffee);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}
.hero-marquee-track span {
  display: inline-flex; align-items: center; gap: 64px;
}
.hero-marquee-track em {
  color: var(--gold);
  font-style: normal;
  font-size: 0.85em;
}
@keyframes heroMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Layered, asymmetric headline area */
.hero-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-content: end;
  padding-top: 84px;
  z-index: 3;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: start;
  padding: 9px 14px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(192, 177, 147, 0.55);
  border-radius: 999px;
  color: var(--teal-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  width: max-content;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(63, 142, 150, 0.6);
  animation: pulseDot 1800ms var(--ease-luxe) infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(63, 142, 150, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(63, 142, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 142, 150, 0); }
}

.hero-display {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.018em;
  color: var(--coffee);
  max-width: 14ch;
}
.hero-display .line { display: block; overflow: hidden; }
.hero-display .line .inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroLineRise 1100ms var(--ease-luxe) forwards;
}
.hero-display .line:nth-child(1) .inner { animation-delay: 200ms; }
.hero-display .line:nth-child(2) .inner { animation-delay: 320ms; }
.hero-display .line:nth-child(3) .inner { animation-delay: 440ms; }
.hero-display .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-deep);
  position: relative;
  white-space: nowrap;
}
.hero-display .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.08em;
  height: 0.18em;
  background: var(--gold);
  opacity: 0.45;
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: heroUnderlineDraw 900ms 1100ms var(--ease-luxe) forwards;
}
.hero-display .swatch {
  display: inline-block;
  width: 0.85em; height: 0.85em;
  margin: 0 0.1em -0.06em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: inset 0 0 0 2px var(--paper), 0 6px 18px rgba(0,0,0,0.18);
  animation: heroSwatchSpin 14s linear infinite;
  vertical-align: baseline;
}
@keyframes heroLineRise {
  to { transform: translateY(0); opacity: 1; }
}
@keyframes heroUnderlineDraw {
  to { transform: scaleX(1); }
}
@keyframes heroSwatchSpin {
  to { transform: rotate(360deg); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: end;
  gap: 28px;
  margin-top: 6px;
}
.hero-lead {
  margin: 0;
  max-width: 56ch;
  color: var(--coffee);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  animation: heroLineRise 900ms 900ms var(--ease-luxe) forwards;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; transform: translateY(16px);
  animation: heroLineRise 900ms 1100ms var(--ease-luxe) forwards;
}

/* Slider rail at bottom */
.hero-rail {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
}
.hero-rail-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 16px;
  overflow: visible;
}
.hero-rail-thumb {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-align: left;
  color: var(--paper);
  font-family: var(--display);
  transition: transform 480ms var(--ease-luxe), box-shadow 360ms ease;
  outline: 1px solid rgba(192, 177, 147, 0.45);
  outline-offset: -1px;
}
.hero-rail-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-luxe), filter 360ms ease;
  filter: saturate(0.85);
}
.hero-rail-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 57, 70, 0.05), rgba(20, 57, 70, 0.78));
  transition: opacity 320ms ease;
}
.hero-rail-thumb .thumb-num {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 800;
  color: rgba(255, 253, 247, 0.86);
}
.hero-rail-thumb .thumb-label {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  z-index: 2;
  font-size: clamp(0.96rem, 1.2vw, 1.2rem);
  line-height: 1.05;
  font-weight: 500;
}
.hero-rail-thumb.is-active {
  outline-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(14, 59, 71, 0.28);
}
.hero-rail-thumb.is-active img { transform: scale(1.06); filter: saturate(1.05); }
.hero-rail-thumb.is-active::after {
  background: linear-gradient(180deg, transparent 30%, rgba(14, 59, 71, 0.5));
}
.hero-rail-thumb:hover img { transform: scale(1.04); }

.hero-rail-meta {
  display: grid; gap: 8px;
  text-align: right;
  min-width: 220px;
}
.hero-rail-meta .now-showing {
  color: var(--bronze);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
}
.hero-rail-meta .now-title {
  font-family: var(--display);
  font-weight: 500;
  color: var(--coffee);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
}
.hero-rail-meta .now-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 32ch;
  justify-self: end;
}

/* Hidden semantic slides for screen readers */
.hero-creative .visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Scroll-cue */
.hero-scroll-cue {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  bottom: 24px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--coffee);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
  z-index: 3;
}
.hero-scroll-cue .line {
  width: 40px; height: 1px;
  background: var(--coffee);
  position: relative; overflow: hidden;
}
.hero-scroll-cue .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollCueRun 1800ms infinite var(--ease-luxe);
}
@keyframes scrollCueRun {
  to { transform: translateX(100%); }
}

@media (max-width: 880px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-rail { grid-template-columns: 1fr; }
  .hero-rail-meta { text-align: left; min-width: 0; }
  .hero-rail-meta .now-desc { justify-self: start; }
  .hero-rail-thumbs { grid-auto-columns: minmax(120px, 1fr); }
  .hero-mandala { opacity: 0.06; }
}

/* ============================================================
   RUGS DEPOT — Hero video mode + interactive controls
   ============================================================ */

.hero-video-mode .hero-bg-slide video {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.86);
  transform: scale(1.04);
  transition: transform 12s linear;
}
.hero-video-mode .hero-bg-slide.is-active video { transform: scale(1.12); }

.hero-rail-thumb .thumb-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-luxe), filter 360ms ease;
  filter: saturate(0.82) brightness(0.86);
  pointer-events: none;
}
.hero-rail-thumb.is-active .thumb-video { filter: saturate(1.05) brightness(1); transform: scale(1.04); }
.hero-rail-thumb:hover .thumb-video { transform: scale(1.04); }

/* Floating control cluster — top-right of the hero */
.hero-video-controls {
  position: absolute;
  top: calc(var(--top-offset) + 64px);
  right: clamp(18px, 4vw, 64px);
  z-index: 4;
  display: inline-grid;
  grid-template-columns: auto auto 220px auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(20, 57, 70, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(196, 165, 122, 0.4);
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--sans);
  box-shadow: 0 18px 42px rgba(14, 59, 71, 0.25);
  animation: heroLineRise 800ms 1400ms var(--ease-luxe) both;
}
.hvc-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 253, 247, 0.18);
  background: rgba(255, 253, 247, 0.06);
  color: var(--paper);
  cursor: pointer;
  border-radius: 50%;
  transition: background 200ms ease, transform 240ms var(--ease-luxe), border-color 200ms ease;
}
.hvc-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--coffee); transform: scale(1.05); }
.hvc-icon { width: 16px; height: 16px; fill: currentColor; pointer-events: none; }
.hvc-play .hvc-icon-play  { display: none; }
.hvc-play.is-paused .hvc-icon-pause { display: none; }
.hvc-play.is-paused .hvc-icon-play  { display: block; }
.hvc-mute .hvc-icon-sound { display: none; }
.hvc-mute.is-on .hvc-icon-sound  { display: block; }
.hvc-mute.is-on .hvc-icon-muted  { display: none; }

.hvc-progress {
  position: relative;
  height: 4px;
  background: rgba(255, 253, 247, 0.18);
  border-radius: 999px;
  overflow: hidden;
  min-width: 160px;
}
.hvc-progress span {
  position: absolute; inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 120ms linear;
}
.hvc-time {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 253, 247, 0.9);
  min-width: 44px;
  text-align: right;
}

/* Small subtle "now playing" dot on the active thumb */
.hero-rail-thumb.is-active::before {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 165, 122, 0.7);
  animation: pulseDot 1800ms var(--ease-luxe) infinite;
  z-index: 3;
}

@media (max-width: 880px) {
  .hero-video-controls {
    top: auto;
    bottom: 18px;
    right: 50%;
    transform: translateX(50%);
    grid-template-columns: auto auto 140px auto;
    padding: 8px 12px;
    gap: 10px;
  }
  .hero-scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-mode .hero-bg-slide video { transform: none !important; }
  .hero-rail-thumb .thumb-video { display: none; }
}


/* ============================================================
   RUGS DEPOT — Journal magazine redesign
   Restyles existing .journal-* classes without HTML churn.
   ============================================================ */

/* Soft paper backdrop just for the journal */
body:has(.journal-cover) {
  background:
    radial-gradient(900px 600px at 0% 0%, rgba(63, 142, 150, 0.10), transparent 55%),
    radial-gradient(900px 600px at 100% 5%, rgba(196, 165, 122, 0.16), transparent 55%),
    linear-gradient(180deg, #faf5ea, #f4ead4 60%, #faf5ea);
}

/* Editorial pre-masthead band */
.journal-cover {
  position: relative;
  padding-top: calc(var(--top-offset) + 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.journal-cover::before {
  content: "RUGS DEPOT JOURNAL · ISSUE NO. 01 · GAZIANTEP, TURKIYE";
  position: absolute;
  top: calc(var(--top-offset) + 18px);
  left: clamp(18px, 4vw, 64px);
  right: clamp(18px, 4vw, 64px);
  z-index: 2;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  color: var(--coffee);
  text-transform: uppercase;
}
.journal-cover::after {
  content: "";
  position: absolute;
  right: -10%; top: -10%;
  width: clamp(360px, 50vw, 720px);
  aspect-ratio: 1 / 1;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/img/rugsdepot-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  animation: mandalaSlowSpin 120s linear infinite;
}

/* Masthead — oversized serif title */
.journal-masthead {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 1180px;
  margin: 28px auto 56px;
  padding: 0 clamp(18px, 4vw, 0);
  text-align: center;
  z-index: 1;
}
.journal-masthead > span {
  display: inline-block;
  align-self: center;
  padding: 6px 14px;
  background: rgba(255, 253, 247, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 auto;
}
.journal-masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--coffee);
  text-transform: none;
}
.journal-masthead h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  margin: 28px auto 0;
}
.journal-masthead p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--coffee);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.45;
}

/* Front-page layout — magazine cover */
.journal-front {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1320px;
  margin: 0 auto;
}
.journal-feature {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 480ms var(--ease-luxe), box-shadow 480ms var(--ease-luxe);
}
.journal-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}
.journal-feature a {
  display: grid;
  grid-template-rows: minmax(280px, 56vh) auto;
  height: 100%;
  color: inherit;
}
.journal-feature img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-luxe);
}
.journal-feature:hover img { transform: scale(1.04); }
.journal-feature > a > *:not(img) { padding: 0 clamp(20px, 3vw, 40px); }
.journal-feature span {
  display: inline-flex;
  align-self: start;
  margin-top: 24px;
  padding: 6px 12px;
  background: var(--coffee);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.journal-feature h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.012em;
  margin: 18px 0 14px;
  color: var(--coffee);
}
.journal-feature p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
}
.journal-feature p::first-letter {
  font-family: var(--display);
  font-size: 3.2em;
  line-height: 0.85;
  font-weight: 600;
  float: left;
  margin: 0.08em 10px 0 0;
  color: var(--teal-deep);
}

/* Editor's briefing sidebar */
.journal-briefing {
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
  align-content: start;
  position: relative;
}
.journal-briefing::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.journal-briefing > p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.journal-briefing a {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  color: inherit;
  transition: transform 240ms var(--ease-luxe);
}
.journal-briefing a:hover { transform: translateX(4px); }
.journal-briefing a:last-of-type { border-bottom: 0; padding-bottom: 0; }
.journal-briefing a span {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.journal-briefing a strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.18;
  color: var(--coffee);
}
.journal-briefing a small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--sans);
}
.journal-briefing a:hover strong { color: var(--teal-deep); }

/* Categories — chip rail */
.journal-categories {
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.category-paper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}
.category-paper a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.85);
  color: var(--coffee);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, transform 240ms var(--ease-luxe);
}
.category-paper a:hover {
  background: var(--coffee);
  color: var(--paper);
  border-color: var(--coffee);
  transform: translateY(-2px);
}
.category-paper a strong {
  display: inline-flex;
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--coffee);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.category-paper a:hover strong { background: var(--paper); color: var(--coffee); }

/* Chapter sections */
.journal-section {
  padding: 72px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.journal-section + .journal-section { border-top: 0; }
.journal-section > h2,
.journal-section > .section-heading h2 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin: 0 auto 44px;
  max-width: 1320px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--coffee);
}
.journal-section > h2::after {
  content: attr(id);
  align-self: end;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--bronze);
  text-transform: uppercase;
}

/* Article grid for the per-category sections */
.journal-grid,
.journal-section ul,
.journal-section > div:not(.section-heading) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 36px);
  max-width: 1320px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.journal-card,
.journal-grid > a,
.journal-section ul li,
.journal-section ul li a,
.journal-section > div:not(.section-heading) > a,
.journal-section > div:not(.section-heading) > article {
  display: grid;
  gap: 14px;
  color: inherit;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid var(--line);
  padding: 0 0 22px;
  transition: transform 360ms var(--ease-luxe), border-color 220ms ease, box-shadow 360ms var(--ease-luxe);
  overflow: hidden;
}
.journal-card:hover,
.journal-grid > a:hover,
.journal-section ul li a:hover,
.journal-section > div:not(.section-heading) > a:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-warm);
}
.journal-card img,
.journal-grid > a img,
.journal-section ul img,
.journal-section > div:not(.section-heading) img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 800ms var(--ease-luxe);
}
.journal-card:hover img,
.journal-grid > a:hover img,
.journal-section > div:not(.section-heading) > a:hover img { transform: scale(1.05); }

.journal-card > *:not(img),
.journal-grid > a > *:not(img),
.journal-section ul li a > *:not(img),
.journal-section > div:not(.section-heading) > a > *:not(img),
.journal-section > div:not(.section-heading) > article > *:not(img) {
  padding-left: 18px;
  padding-right: 18px;
}

.journal-card span,
.journal-grid > a span,
.journal-section > div:not(.section-heading) span {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 16px;
}
.journal-card strong,
.journal-card h3,
.journal-grid > a strong,
.journal-grid > a h3,
.journal-section > div:not(.section-heading) strong,
.journal-section > div:not(.section-heading) h3 {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--coffee);
  margin: 0;
  background-image: linear-gradient(var(--coffee), var(--coffee));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 360ms var(--ease-luxe);
  display: inline;
}
.journal-card:hover strong,
.journal-grid > a:hover strong,
.journal-section > div:not(.section-heading) > a:hover strong {
  background-size: 100% 1px;
}
.journal-card p,
.journal-card small,
.journal-grid > a p,
.journal-grid > a small,
.journal-section > div:not(.section-heading) p,
.journal-section > div:not(.section-heading) small {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Reveal-from-bottom on scroll for cards */
.journal-section > div:not(.section-heading) > a,
.journal-section > div:not(.section-heading) > article,
.journal-grid > a {
  opacity: 0;
  transform: translateY(22px);
}
.journal-section.is-in-view > div:not(.section-heading) > a,
.journal-section.is-in-view > div:not(.section-heading) > article,
.journal-section.is-in-view .journal-grid > a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-luxe), transform 700ms var(--ease-luxe);
}
.journal-section.is-in-view > div:not(.section-heading) > a:nth-child(2),
.journal-section.is-in-view > div:not(.section-heading) > article:nth-child(2),
.journal-section.is-in-view .journal-grid > a:nth-child(2) { transition-delay: 80ms; }
.journal-section.is-in-view > div:not(.section-heading) > a:nth-child(3),
.journal-section.is-in-view > div:not(.section-heading) > article:nth-child(3),
.journal-section.is-in-view .journal-grid > a:nth-child(3) { transition-delay: 160ms; }
.journal-section.is-in-view > div:not(.section-heading) > a:nth-child(4),
.journal-section.is-in-view > div:not(.section-heading) > article:nth-child(4),
.journal-section.is-in-view .journal-grid > a:nth-child(4) { transition-delay: 240ms; }
.journal-section.is-in-view > div:not(.section-heading) > a:nth-child(5),
.journal-section.is-in-view > div:not(.section-heading) > article:nth-child(5),
.journal-section.is-in-view .journal-grid > a:nth-child(5) { transition-delay: 320ms; }
.journal-section.is-in-view > div:not(.section-heading) > a:nth-child(6),
.journal-section.is-in-view > div:not(.section-heading) > article:nth-child(6),
.journal-section.is-in-view .journal-grid > a:nth-child(6) { transition-delay: 400ms; }

@media (max-width: 980px) {
  .journal-front { grid-template-columns: 1fr; }
  .journal-grid,
  .journal-section ul,
  .journal-section > div:not(.section-heading) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .journal-grid,
  .journal-section ul,
  .journal-section > div:not(.section-heading) { grid-template-columns: 1fr; }
  .journal-cover::before { letter-spacing: 0.18em; font-size: 0.62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .journal-section > div:not(.section-heading) > a,
  .journal-section > div:not(.section-heading) > article,
  .journal-grid > a { opacity: 1; transform: none; }
  .journal-cover::after { animation: none; }
}

/* ============================================================
   RUGS DEPOT — B2B trade terms strip
   ============================================================ */

.trade-terms {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.6), rgba(239, 229, 210, 0.4));
}
.trade-terms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.trade-terms-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px 22px 22px;
  background: rgba(255, 253, 247, 0.86);
  border: 1px solid var(--line);
  transition: transform 360ms var(--ease-luxe), border-color 220ms ease, box-shadow 360ms var(--ease-luxe);
  overflow: hidden;
}
.trade-terms-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-warm);
}
.trade-terms-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 140px at 90% -20%, rgba(63, 142, 150, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 360ms ease;
  pointer-events: none;
}
.trade-terms-card:hover::after { opacity: 1; }
.tt-num {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--bronze);
}
.trade-terms-card strong {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--coffee);
  text-transform: uppercase;
}
.trade-terms-card .tt-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.005em;
}
.trade-terms-card .tt-value b {
  color: var(--coffee);
  font-weight: 700;
}
.trade-terms-card .tt-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.trade-terms-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

@media (max-width: 1180px) {
  .trade-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .trade-terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .trade-terms-grid { grid-template-columns: 1fr; }
  .trade-terms-cta .button { width: 100%; justify-content: center; }
}

/* ============================================================
   RUGS DEPOT — Mobile perf + a11y tweaks
   ============================================================ */
@media (max-width: 820px) {
  /* Reduce expensive ambient animations on small screens */
  .hero-mandala,
  .hero-mandala--small,
  .detail-hero figure::before,
  .journal-cover::after {
    animation-duration: 240s !important; /* effectively static */
  }
  .hero-creative {
    min-height: auto;
    padding-bottom: 32px;
  }
  .hero-marquee { font-size: 0.92rem; }
  .hero-display { font-size: clamp(2.6rem, 9vw, 4.6rem); }
}

/* Strong focus ring for keyboard nav */
.nav a:focus-visible,
.hero-rail-thumb:focus-visible,
.hvc-btn:focus-visible,
.trade-terms-card:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(63, 142, 150, 0.22);
}

/* Skip-to-content link (visually hidden until focused) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  padding: 10px 16px;
  background: var(--coffee);
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-radius: 4px;
  transition: top 180ms var(--ease-luxe);
}
.skip-link:focus { top: 12px; }

