/* ======================================
   CATALOGUE LAYOUT
   ====================================== */

.catalogue-page {
  min-height: 100vh;
  background: #10100f;
  color: #f1eee7;
}

.catalogue-container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.catalogue-intro {
  padding: clamp(4rem, 9vw, 8rem) 0 3rem;
}

.catalogue-intro .eyebrow {
  letter-spacing: 0.18em;
}

.catalogue-intro h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.catalogue-intro > p:last-child {
  max-width: 560px;
  line-height: 1.8;
  opacity: 0.7;
}

/* ======================================
   SEARCH BAR
   ====================================== */

.catalogue-search {
  position: relative;
  margin: 0 0 1.5rem;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  min-height: 66px;
  border: 1px solid #41413b;
  background: #191917;
  transition: border-color 0.25s ease;
}

.search-wrapper:focus-within {
  border-color: #d4c8a8;
}

.search-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  opacity: 0.7;
}

#product-search {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

#product-search::placeholder {
  color: #99978f;
}

.search-clear {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.65;
}

.search-clear:hover {
  opacity: 1;
}

.search-help {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ======================================
   LIVE ANNOUNCEMENT BAR
   ====================================== */

.live-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 1.25rem;
  margin-bottom: 4rem;
  overflow: hidden;
  border: 1px solid #35352f;
  background: #191917;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9c99a;
  box-shadow: 0 0 12px rgba(185, 201, 154, 0.35);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.live-divider {
  width: 1px;
  align-self: stretch;
  background: #41413b;
}

.live-message-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.live-message {
  display: block;
  line-height: 1.6;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.live-message.changing {
  opacity: 0;
  transform: translateY(10px);
}

.live-message strong {
  font-weight: 600;
}

.live-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.live-control {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #41413b;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.live-control:hover {
  background: #2b2b26;
  border-color: #8c897c;
}

.live-counter {
  min-width: 40px;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.65;
}

/* ======================================
   CATALOGUE HEADING
   ====================================== */

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

.catalogue-heading h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.catalogue-count {
  padding-bottom: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.65;
  white-space: nowrap;
}

/* ======================================
   EXPANDABLE PRODUCT ROWS
   ====================================== */

.category-list {
  border-top: 1px solid #41413b;
}

.category-row {
  border-bottom: 1px solid #41413b;
}

.category-trigger {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) auto 25px;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.75rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.category-number {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.category-title h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}

.category-title p {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.6;
}

.category-count {
  font-size: 0.8rem;
  opacity: 0.6;
  white-space: nowrap;
}

.category-chevron {
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.category-trigger[aria-expanded="true"] .category-chevron {
  transform: rotate(180deg);
}

.category-trigger:hover .category-title h3 {
  color: #d4c8a8;
}

.category-trigger:focus-visible,
.live-control:focus-visible,
.search-clear:focus-visible {
  outline: 2px solid #d4c8a8;
  outline-offset: 4px;
}

/* ======================================
   EXPANDING CONTENT
   ====================================== */

.category-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.category-content.open {
  grid-template-rows: 1fr;
}

.category-content-inner {
  min-height: 0;
  overflow: hidden;
}

.category-content.open .category-content-inner {
  padding-bottom: 2.5rem;
}

.category-description {
  max-width: 650px;
  margin: 0 0 1.75rem;
  line-height: 1.8;
  font-size: 0.9rem;
  opacity: 0.65;
}

/* ======================================
   PRODUCT CARDS
   ====================================== */

.catalogue-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.catalogue-product {
  min-width: 0;
}

.catalogue-product[hidden] {
  display: none !important;
}

.catalogue-product-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1c19;
  border: 1px solid #30302b;
  color: #ded8c8;
  text-decoration: none;
}

.catalogue-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.catalogue-product-image:hover::after {
  border-color: #777365;
}

.catalogue-product-symbol {
  font-family: Georgia, serif;
  font-size: clamp(5rem, 10vw, 9rem);
  color: rgba(220, 215, 197, 0.13);
  transition: transform 0.5s ease;
}

.catalogue-product-image:hover .catalogue-product-symbol {
  transform: scale(1.1) rotate(-8deg);
}

.catalogue-product-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.catalogue-product-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.catalogue-product-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.catalogue-product-details h4 {
  margin: 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.catalogue-product-details h4 a {
  color: inherit;
  text-decoration: none;
}

.catalogue-product-details h4 a:hover {
  color: #d4c8a8;
}

.catalogue-product-category {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
}

.catalogue-product-price {
  font-size: 0.95rem;
  white-space: nowrap;
}

.catalogue-product-description {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.6;
}

.no-products {
  padding: 2rem 0;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.65;
}

/* ======================================
   NO SEARCH RESULTS
   ====================================== */

.search-empty {
  padding: 4rem 1rem;
  border-bottom: 1px solid #41413b;
  text-align: center;
}

.search-empty h3 {
  font-size: 1.5rem;
}

.search-empty p {
  opacity: 0.65;
  line-height: 1.7;
}

.search-empty button {
  margin-top: 1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid #777365;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.search-empty button:hover {
  background: #292923;
}

/* ======================================
   BOTTOM INFORMATION
   ====================================== */

.catalogue-footer-note {
  padding: 5rem 0;
  text-align: center;
}

.catalogue-footer-note h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.05em;
}

.catalogue-footer-note p {
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.65;
}

/* ======================================
   RESPONSIVE LAYOUT
   ====================================== */

@media (max-width: 760px) {
  .catalogue-container {
    width: 92%;
  }

  .live-bar {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
    margin-bottom: 3rem;
  }

  .live-indicator {
    font-size: 0.65rem;
  }

  .live-divider {
    display: none;
  }

  .live-message-window {
    flex-basis: 100%;
    order: 3;
  }

  .live-controls {
    margin-left: auto;
  }

  .category-trigger {
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    gap: 0.75rem;
    padding: 1.4rem 0;
  }

  .category-count {
    display: none;
  }

  .category-title p {
    font-size: 0.78rem;
  }

  .catalogue-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.85rem;
  }

  .catalogue-product-details {
    flex-direction: column;
    gap: 0.25rem;
  }

  .catalogue-product-symbol {
    font-size: 6rem;
  }
}

@media (max-width: 420px) {
  .catalogue-products {
    grid-template-columns: 1fr;
  }

  .catalogue-product-image {
    aspect-ratio: 5 / 4;
  }

  .catalogue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }

  .live-message,
  .category-content,
  .category-chevron,
  .catalogue-product-symbol,
  .catalogue-product-image::after {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
