/* ─── Curated Catalogue Component ───────────────────────────────────────────
   Mirrors the visual design of clientlib-sleek-unitsandaccessories.
   Root class: .cmp-curated-catalogue
   ─────────────────────────────────────────────────────────────────────────── */

.cmp-curated-catalogue {
  position: relative;
  padding: 40px 0 40px 0;
  padding-right: 0;
  font-family: Archivo;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue {
    padding: 0;
  }
}

/* ─── Inner container (JS applies padding-left for alignment) ─────────────── */
.cmp-curated-catalogue__inner {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__inner {
    gap: 20px;
  }
}

/* ─── Section title ──────────────────────────────────────────────────────── */
.cmp-curated-catalogue__title {
  font-size: 32px;
  font-weight: 500;
  color: #232426;
  margin: 0;
  line-height: 101%;
  font-family: Archivo, Arial, Helvetica, sans-serif;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__title {
    font-size: 24px;
    text-align: center;
    padding: 0 20px;
  }
}

/* ─── Body: tabs (left) + panels (right) ─────────────────────────────────── */
.cmp-curated-catalogue__body {
  display: flex;
  gap: 30px;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__body {
    flex-direction: column;
    padding: 0 20px;
    padding-right: 0;
    row-gap: 18px;
  }
}

/* ─── Tab list (left column) ─────────────────────────────────────────────── */
.cmp-curated-catalogue__tablist {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 20%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__tablist {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
    overflow-x: scroll;
    padding-right: 20px;
  }

  .cmp-curated-catalogue__tablist::-webkit-scrollbar {
    display: none;
  }
}

/* ─── Individual tab ─────────────────────────────────────────────────────── */
.cmp-curated-catalogue__tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #8c8e90;
  padding: 20px;
  white-space: nowrap;
  cursor: pointer;
  line-height: 101%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  transition: color 0.2s ease;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__tab {
    font-size: 14px;
    border: 1.5px solid #e6e6e8;
    border-radius: 44px;
    padding: 9px 16px;
    font-weight: 500;
    color: #74798a;
  }
}

.cmp-curated-catalogue__tab--active {
  border-color: #e6e7eb;
  border-radius: 12px;
  color: #232426;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__tab--active {
    background: #e6e6e8;
    border-radius: 44px;
    box-shadow: none;
  }
}

/* Latest tab star icon */
.cmp-curated-catalogue__tab-icon {
  flex-shrink: 0;
  max-height: 18px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ─── Panels (right area) ────────────────────────────────────────────────── */
.cmp-curated-catalogue__panels {
  width: 80%;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__panels {
    width: 100%;
  }
}

/* ─── Single panel ───────────────────────────────────────────────────────── */
.cmp-curated-catalogue__panel {
  display: none;
}

.cmp-curated-catalogue__panel--active {
  display: block;
}

/* ─── Horizontal card scroll strip ──────────────────────────────────────── */
.cmp-curated-catalogue__cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.cmp-curated-catalogue__cards::-webkit-scrollbar {
  display: none;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__cards {
    gap: 0;
  }
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.cmp-curated-catalogue__card {
  min-width: 325px;
  width: 325px;
  flex-shrink: 0;
  flex-direction: column;
  display: flex;
  gap: 10px;
}

@media (max-width: 650px) {
  .cmp-curated-catalogue__card {
    min-width: 304px;
    width: 304px;
    margin-right: 10px;
    border: 1px solid #cacbcc;
    border-radius: 12px;
    padding: 6px;
  }
}

.cmp-curated-catalogue__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Card image ─────────────────────────────────────────────────────────── */
.cmp-curated-catalogue__card-image {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .cmp-curated-catalogue__card-image {
    min-height: auto;
    max-height: 356px;
  }
}

.cmp-curated-catalogue__card-image-wrap {
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

.cmp-curated-catalogue__card-image-wrap img {
  width: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  display: block;
}

.cmp-curated-catalogue__card-image-wrap img:hover {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .cmp-curated-catalogue__card-image-wrap img {
    min-height: 356px;
  }
}

/* Logo image overlay (authorable, same for all cards) */
.cmp-curated-catalogue__card-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  max-height: 28px;
  width: auto;
  pointer-events: none;
  object-fit: contain;
}

/* ─── Card content ───────────────────────────────────────────────────────── */
.cmp-curated-catalogue__card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 767px) {
  .cmp-curated-catalogue__card-content {
    padding: 0 10px 5px;
    min-height: 71px;
    gap: 12px;
  }
}

.cmp-curated-catalogue__card-title {
  font-size: 20px;
  font-weight: 600;
  color: #232426;
  font-family: Archivo;
}

@media (max-width: 767px) {
  .cmp-curated-catalogue__card-title {
    font-size: 18px;
    font-weight: 500;
    color: #141517;
  }
}

.cmp-curated-catalogue__card-description {
  font-size: 14px;
  font-weight: 400;
  color: #75787b;
}

@media (max-width: 767px) {
  .cmp-curated-catalogue__card-description {
    font-size: 12px;
    color: #6b6767;
  }
}

/* ─── Download catalogue link ────────────────────────────────────────────── */
.cmp-curated-catalogue__download-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: Archivo;
  text-decoration: none;
}

/* ─── Prev / Next button wrapper (injected by JS) ────────────────────────── */
.cmp-curated-catalogue .cc-carousel-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 40px;
  position: absolute;
  right: 0;
  top: 22px;
}

.cmp-curated-catalogue .cc-prev-btn,
.cmp-curated-catalogue .cc-next-btn {
  width: 64px;
  height: 64px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.cmp-curated-catalogue .cc-prev-btn:hover,
.cmp-curated-catalogue .cc-next-btn:hover {
  background: #f4f4f5;
  border-color: #bbbbbe;
}

/* Last card trailing margin so it isn't clipped */
.cmp-curated-catalogue__cards > .cmp-curated-catalogue__card:last-child {
  margin-right: 16px;
}

/* ─── Responsive: hide arrows on mobile ──────────────────────────────────── */
@media (max-width: 767px) {
  .cmp-curated-catalogue .cc-carousel-btn-wrapper {
    display: none !important;
  }
}
