/* ===========================
   Pool Catalog — [mova_pool_catalog]
   =========================== */

/* --- Layout principal --- */
.mova-pc-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* --- Sidebar filtres --- */
.mova-pc-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 135px;
  padding: 25px;
  border: 1px solid #e5e5e5;
  background: #fff;
}

.mova-pc-sidebar-title {
  font-family: "AcuminPro", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1a4759;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

.mova-pc-sidebar-title:not(:first-child) {
  margin-top: 20px;
}

/* --- Checkboxes --- */
.mova-pc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mova-pc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "AcuminPro", sans-serif;
  font-size: 0.875rem;
  color: #333;
  transition: color 0.2s;
}

.mova-pc-checkbox:hover {
  color: #1a4759;
}

.mova-pc-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1a4759;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Contenu principal --- */
.mova-pc-main {
  flex: 1;
  min-width: 0;
}

.mova-pc-count {
  font-family: "AcuminPro", sans-serif;
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 15px 0;
}

/* --- Grille de cartes --- */
.mova-pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Carte --- */
.mova-pc-card {
  /* background: #f1f5f7; */
  background: white;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}

.mova-pc-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.183);
}

.mova-pc-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mova-pc-card-img img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform: scale(1.25) translateY(-20px);
}

.mova-pc-card:hover .mova-pc-card-img img {
  /* transform: scale(1.03); */
  transform: scale(1.3) translateY(-20px);
}

.mova-pc-card:hover .mova-pc-card-body {
  background: #1a4759;
  color: #fff;
}

.mova-pc-card-placeholder {
  width: 60px;
  height: 60px;
  background: #c5cdd3;
  border-radius: 4px;
}

.mova-pc-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
  padding-left: 1rem;
  padding-right: 1rem;
  gap: 10px;
  background: #1a475936;
  color: #1a4759;
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 85%;
  transition: background 0.2s ease;
}

.mova-pc-card-info {
  min-width: 0;
}

.mova-pc-card-title {
  font-family: "AcuminPro", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mova-pc-badge-signature {
  font-family: "AcuminPro", sans-serif;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600 !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9c6d61;
  line-height: 1.4;
}

.mova-pc-card-subtitle {
  font-family: "AcuminPro", sans-serif;
  font-size: 0.8rem;
  color: inherit;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mova-pc-card-arrow {
  flex-shrink: 0;
  color: inherit;
  display: flex;
  align-items: center;
}

/* --- Bouton Charger plus --- */
.mova-pc-load-more-wrap {
  text-align: center;
  margin-top: 30px;
}

.mova-pc-load-more {
  font-family: "AcuminPro", sans-serif;
  font-size: 0.9rem;
  font-weight: 600 !important;
  color: inherit;
  background: #ffffff00;
  border: 1px solid #1a4759;
  border-radius: 0;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mova-pc-load-more:hover {
  background: #1a4759;
  color: #fff;
}

/* --- Bouton toggle filtres (masqué en desktop) --- */
.mova-pc-filter-toggle {
  display: none;
}

/* --- Skeleton loader --- */
.mova-pc-skeleton {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
}

.mova-pc-skeleton .mova-pc-card-img {
  background: #e9edf0;
}

.mova-pc-skeleton .mova-pc-card-body {
  background: #d6dce0;
}

.mova-pc-skeleton .mova-pc-skel-line {
  height: 12px;
  border-radius: 4px;
  background: #c0c8ce;
}

.mova-pc-skeleton .mova-pc-skel-line--short {
  width: 50%;
  height: 10px;
  margin-top: 6px;
}

.mova-pc-skeleton .mova-pc-skel-line--title {
  width: 70%;
}

.mova-pc-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: mova-skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes mova-skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.mova-pc-error {
  text-align: center;
  color: #b00;
  font-family: "AcuminPro", sans-serif;
  font-size: 0.9rem;
  padding: 40px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .mova-pc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mova-pc-container {
    flex-direction: column;
    align-items: center;
  }

  .mova-pc-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
  }

  .mova-pc-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: none;
    font-family: "AcuminPro", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #1a4759;
    cursor: pointer;
  }

  .mova-pc-filter-toggle:hover,
  .mova-pc-filter-toggle.open,
  .mova-pc-filter-toggle:focus {
    background: #ffffff00;
    color: #1a4759;
  }

  .mova-pc-filter-toggle svg {
    transition: transform 0.3s ease;
  }

  .mova-pc-filter-toggle.open svg {
    transform: rotate(180deg);
  }

  .mova-pc-sidebar-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 20px;
  }

  .mova-pc-sidebar-content.open {
    max-height: 600px;
    padding: 0 20px 20px;
  }

  .mova-pc-grid {
    grid-template-columns: 1fr;
  }
}
