/* Know the Product — warm Bohemian/Japandi catalog page */

/* ── Reset / base ─────────────────────────────────────── */
* {
  box-sizing: border-box;
}

/* ── Body ─────────────────────────────────────────────── */
.catalog-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Raleway", sans-serif;
  color: #3d2b1f;
  background: #f5ede0;
  overflow-x: clip;
}

/* ── Tab navigation bar ───────────────────────────────── */
.cat-tabs {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(245, 237, 224, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(101, 67, 33, 0.12);
  flex-wrap: wrap;
}

.cat-tab {
  padding: 0.38rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(101, 67, 33, 0.2);
  background: transparent;
  color: #6e4e3a;
  font-family: "Raleway", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.cat-tab:hover {
  background: rgba(139, 90, 43, 0.1);
  border-color: rgba(139, 90, 43, 0.35);
  color: #8b5a2b;
}

.cat-tab.active {
  background: #8b5a2b;
  border-color: #8b5a2b;
  color: #f5ede0;
  box-shadow: 0 4px 14px rgba(139, 90, 43, 0.28);
}

/* ── Side dot navigation ──────────────────────────────── */
.cat-dot-nav {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: auto;
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(139, 90, 43, 0.45);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.cat-dot:hover {
  background: rgba(139, 90, 43, 0.35);
  border-color: #8b5a2b;
}

.cat-dot.active {
  background: #8b5a2b;
  border-color: #8b5a2b;
  transform: scale(1.35);
}

/* ── Main content area ────────────────────────────────── */
.cat-main {
  padding-top: 68px;
}

/* ── Catalog sections ─────────────────────────────────── */
.cat-section {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.cat-section--alt {
  flex-direction: row-reverse;
  background: rgba(220, 200, 175, 0.2);
}

/* ── Visual column (sticky) ───────────────────────────── */
.cat-visual-col {
  width: 50%;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Giant ghost number backdrop */
.cat-bg-num {
  display: none;
}

/* Floating product image */
@keyframes catFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

.cat-product-img {
  position: relative;
  z-index: 1;
  width: min(72%, 420px);
  max-height: 62vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(61, 43, 31, 0.18));
  animation: catFloat 5s ease-in-out infinite;
}

/* ── Info column ──────────────────────────────────────── */
.cat-info-col {
  flex: 1;
  padding: 5rem 4.5rem 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  min-height: 100vh;
}

.cat-section--alt .cat-info-col {
  padding: 5rem 3rem 5rem 4.5rem;
}

/* ── Product label (small kicker) ────────────────────── */
.cat-product-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b5a2b;
}

/* ── Product name ─────────────────────────────────────── */
.cat-product-name {
  margin: 1.4rem 0 0.6rem;
  font-family: "Golden", serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  color: #3d2b1f;
  letter-spacing: -0.01em;
}

/* ── Product tagline ──────────────────────────────────── */
.cat-product-tagline {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: #6e4e3a;
  max-width: 44ch;
}

/* ── Specs grid ───────────────────────────────────────── */
.cat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(101, 67, 33, 0.15);
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
}

.cat-spec {
  padding: 0.85rem 1rem;
  border-right: 1px solid rgba(101, 67, 33, 0.12);
  border-bottom: 1px solid rgba(101, 67, 33, 0.12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cat-spec:nth-child(even) {
  border-right: none;
}

.cat-spec:nth-last-child(-n+2) {
  border-bottom: none;
}

.cat-spec.visible {
  opacity: 1;
  transform: translateY(0);
}

.spec-key {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #8b5a2b;
  margin-bottom: 0.22rem;
}

.spec-val {
  display: block;
  font-family: "Golden", serif;
  font-size: 1.3rem;
  color: #3d2b1f;
  line-height: 1.2;
}

/* ── Product description ──────────────────────────────── */
.cat-product-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #6e4e3a;
  max-width: 52ch;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.cat-product-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tags ─────────────────────────────────────────────── */
.cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-tag {
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 90, 43, 0.3);
  background: rgba(139, 90, 43, 0.08);
  color: #8b5a2b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cat-tag:hover {
  background: rgba(139, 90, 43, 0.16);
  border-color: rgba(139, 90, 43, 0.5);
}

/* ── CTA button inside section ────────────────────────── */
.cat-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.75rem;
  border-radius: 999px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: #44030F;
  color: #f5ede0;
  border: 1px solid #44030F;
  box-shadow: 0 6px 20px rgba(68, 3, 15, 0.25);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.cat-cta:hover {
  background: #5e0418;
  border-color: #5e0418;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(68, 3, 15, 0.3);
}

/* ── Section divider accent ───────────────────────────── */
.cat-section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 90, 43, 0.2) 25%,
    rgba(196, 133, 58, 0.35) 50%,
    rgba(139, 90, 43, 0.2) 75%,
    transparent
  );
  margin: 0;
}

/* ── Scroll animations (JS adds .visible) ─────────────── */
.cat-anim-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.cat-anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile: ≤ 860px ──────────────────────────────────── */
@media (max-width: 860px) {
  .cat-section {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  .cat-section--alt {
    flex-direction: column;
  }

  .cat-visual-col {
    width: 100%;
    position: relative;
    top: auto;
    height: clamp(380px, 60vw, 540px);
    align-self: auto;
    overflow: visible;
    padding: 1.5rem 0;
  }

  .cat-product-img {
    height: calc(100% - 3rem);
    width: auto;
    max-width: min(65%, 280px);
    max-height: none;
    animation: catFloat 5s ease-in-out infinite;
  }

  .cat-bg-num {
    font-size: clamp(5rem, 22vw, 10rem);
  }

  .cat-info-col {
    padding: 2rem 1.25rem 3rem;
    gap: 1.5rem;
    min-height: auto;
  }

  .cat-section--alt .cat-info-col {
    padding: 2rem 1.25rem 3rem;
  }

  .cat-product-name {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
  }

  .cat-specs {
    max-width: 100%;
  }

  .cat-tabs {
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
  }

  .cat-tab {
    font-size: 0.74rem;
    padding: 0.3rem 0.75rem;
  }

  .cat-dot-nav {
    right: 0.5rem;
  }
}

@media (max-width: 540px) {
  .cat-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0.6rem;
  }

  .cat-tabs::-webkit-scrollbar {
    display: none;
  }

  .cat-visual-col {
    height: clamp(320px, 75vw, 460px);
  }

  .cat-product-img {
    max-width: min(55%, 220px);
  }

  .cat-info-col {
    padding: 1.5rem 1rem 2.5rem;
  }

  .cat-product-name {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .cat-specs {
    grid-template-columns: 1fr 1fr;
  }

  .spec-val {
    font-size: 1.1rem;
  }

  .cat-dot-nav {
    display: none;
  }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cat-product-img {
    animation: none;
  }

  .cat-spec,
  .cat-product-desc,
  .cat-anim-fade {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Kit note ─────────────────────────────────────────── */
.cat-kit-note {
  background: #f5ede0;
  padding: 4rem 6%;
  text-align: center;
}
.cat-kit-inner {
  max-width: 640px;
  margin: 0 auto;
  border: 2px solid #44030F;
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
}
.cat-kit-note h3 {
  font-family: "Golden", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #44030F;
  margin: 0 0 1rem;
}
.cat-kit-note p {
  color: #6e4e3a;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}
.cat-kit-sub {
  font-size: 0.9rem !important;
  color: #6e4e3a !important;
  margin-bottom: 1.5rem !important;
}

/* Prominent "Contact Us" CTA inside kit note */
.cat-kit-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.85rem 2.8rem;
  background: #44030F;
  color: #f5ede0;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  border: 2px solid #44030F;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  box-shadow: 0 4px 18px rgba(68, 3, 15, 0.22);
}
.cat-kit-cta:hover {
  background: transparent;
  color: #44030F;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(68, 3, 15, 0.18);
}
.cat-img-placeholder {
  width: 68%;
  max-width: 380px;
  aspect-ratio: 1;
  background: rgba(139,90,43,0.08);
  border: 2px dashed rgba(139,90,43,0.25);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cat-img-placeholder span {
  font-family: "Golden", serif;
  font-size: 3rem;
  color: rgba(139,90,43,0.3);
}
.cat-img-placeholder small {
  font-size: 0.75rem;
  color: rgba(139,90,43,0.4);
  letter-spacing: 0.08em;
}

/* ── Spaces section ─────────────────────────────────────────── */
.cat-spaces-section {
  background: #f5ede0;
}

.cat-spaces-intro {
  background: #3d2b1f;
  padding: 5rem 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.cat-spaces-kicker {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c49a;
}

.cat-spaces-title {
  font-family: "Golden", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  color: #e8c49a;
  margin: 0;
  line-height: 1.05;
}

.cat-spaces-sub {
  color: rgba(245,237,224,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 44ch;
}

.cat-spaces-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-self: end;
  justify-content: flex-end;
}

.cat-space-tag {
  background: rgba(232,196,154,0.12);
  border: 1px solid rgba(232,196,154,0.25);
  color: #e8c49a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.cat-space-tag:hover {
  background: rgba(232,196,154,0.28);
  border-color: rgba(232,196,154,0.6);
  color: #f5ede0;
}

/* ── Space blocks (reuse split-block pattern) ─────────── */
.cat-space-block {
  position: relative;
  padding: 0 0 5rem;
  overflow: hidden;
}

.cat-space-block--alt .csb-above { text-align: right; }
.cat-space-block--alt .csb-on    { right: auto; left: 6%; text-align: left; }
.cat-space-block--alt .csb-sub   { margin-left: auto; text-align: right; }

.csb-above {
  font-family: "Golden", serif;
  font-size: clamp(3.5rem, 10vw, 10rem);
  color: #3d2b1f;
  line-height: 0.88;
  margin: 0;
  padding: 2.5rem 6% 0;
  display: block;
  position: relative;
  z-index: 2;
}

.csb-image-wrap {
  position: relative;
  width: 100%;
  height: clamp(480px, 78vh, 860px);
  overflow: hidden;
  margin-top: -0.12em;
  display: flex;
  gap: 3px;
}

.csb-img {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.cat-space-block:hover .csb-img { transform: scale(1.025); }

.csb-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,43,31,0.08) 0%, transparent 40%, rgba(61,43,31,0.35) 100%);
  pointer-events: none;
}

.csb-on {
  position: absolute;
  bottom: 1.2rem;
  right: 6%;
  font-family: "Golden", serif;
  font-size: clamp(3rem, 9vw, 9rem);
  color: rgba(255,255,255,0.93);
  margin: 0;
  line-height: 0.88;
  text-align: right;
  text-shadow: 0 3px 24px rgba(0,0,0,0.45);
  z-index: 2;
}

.csb-sub {
  font-size: 1.15rem;
  color: #6e4e3a;
  padding: 1.4rem 6% 0;
  margin: 0;
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Star Products grid ─────────────────────────────────── */
.cat-star-section {
  background: #ede0cc;
  padding: 5rem 5%;
}

.cat-star-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cat-star-title {
  font-family: "Golden", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #3d2b1f;
  margin: 0 0 3rem;
  text-align: center;
}

.cat-star-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-star-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: rgba(245,237,224,0.7);
  border: 1px solid rgba(139,90,43,0.15);
  border-radius: 1rem;
  padding: 2rem 1rem 1.5rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.cat-star-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(101,67,33,0.18);
}

.cat-star-card img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(101,67,33,0.18));
}

.cat-star-card h3 {
  font-family: "Golden", serif;
  font-size: 1.25rem;
  color: #3d2b1f;
  margin: 0;
  text-align: center;
}

/* ── Bottom CTA strip ───────────────────────────────────── */
.cat-cta-strip {
  background: #3d2b1f;
  padding: 5rem 6%;
  text-align: center;
}

.cat-cta-strip h2 {
  font-family: "Golden", serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  color: #e8c49a;
  margin: 0 0 1rem;
}

.cat-cta-strip p {
  color: rgba(245,237,224,0.65);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cat-cta-btn {
  display: inline-block;
  background: #e8c49a;
  color: #3d2b1f;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cat-cta-btn:hover {
  background: #f5ede0;
  transform: translateY(-2px);
}

/* ── Mobile responsive for new sections ─────────────────── */
@media (max-width: 700px) {
  .cat-spaces-intro {
    grid-template-columns: 1fr;
  }
  .cat-spaces-tags {
    justify-content: flex-start;
  }
  .cat-star-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
