/* ----------------------------------------- COLLECTIONS ----------------------------------------- */
.collections {
  background-color: var(--bg);
  margin: 10px;
  padding: 10px 10px 20px 10px;
  border-radius: 40px;
}

.collections .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary);
  padding: 8px 15px;
  margin-bottom: -10px;
}

.collections .header h2 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 0;
}

.header h2.brush-full {
  display: inline-block;
  padding: 0 20px;
  background: #d1ebe9;
  border-radius: 0;
  transform: rotate(-1deg);
}


.collections .header a {
  color: var(--secondary);
  font-size: 1rem;
  transition: background-color 0.3s ease;
  margin-bottom: -28px;
}

.collections .header a:hover {
  text-decoration: underline;
}

.collections .collection-cards {
  display: flex;
  gap: 20px;
  overflow: hidden; /* Ensure container clips overflow */
  position: relative; /* Added for absolute positioning of arrows */
  perspective: 1200px;
}

.collections .collection-cards > svg {
    position: absolute;
    top: 55%;
    transform: translateY(-40%);
    z-index: 100;
    cursor: pointer;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    padding: 8px; /* Add some clickable area/background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 40px !important; /* Force size including padding */
    height: 40px !important;
}

.collections .collection-cards > svg:first-child {
    left: 10px;
}

.collections .collection-cards > svg:last-child {
    right: 10px;
}

/* Ensure the cards container takes remaining space and allows scrolling */
.collections .collection-cards .cards {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0 0 30px 0;
  transform-style: preserve-3d;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - 100px);
}

.collections .collection-cards .cards::-webkit-scrollbar {
  display: none;
}

.collections .collection-cards .cards .card {
  flex: 0 0 280px;
  min-width: 280px;
  scroll-snap-align: center;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.collections .collection-cards .collection-thumbnail  {
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 445px;
  flex: 0 0 250px;
  cursor: pointer;
}

.collections .collection-cards .collection-thumbnail img {
  max-height: 443px;
  border-radius: 8px;
}

/* ---------------------------------- Our Promec ---------------------------------- */
.our-promec {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 10px 10px;
  align-items: stretch;
}

.our-promec > div {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.our-promec img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.our-promec h2 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.our-promec p {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* ----------------------------------------- Static Images ----------------------------------------- */
.static-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.static-container img {
  aspect-ratio: 2 / 2;
  max-width: 200px;
  height: auto;

}

@media (max-width: 768px) {
  .collections{
    padding: 0;
  }

  .collections h2 {
    font-size: 1rem;
  }

  .header h2.brush-full {
    display: inline-block;
    padding: 0 5px;
    background: #d1ebe9;
    border-radius: 0;
    transform: rotate(-1deg);
    font-size: 1rem;
  }

  .collections .header {
    padding: 0;
  }

  .collections .header a {
    margin-bottom: -10px;
  }

  .static-container img {
    aspect-ratio: 2 / 2;
    max-width: 300px;
    height: auto;
}

}
