/**
 * Janachowska Concept Store — Components CSS
 * Additional styles that supplement style.css
 */

/* ========================================
   SWIPER OVERRIDES
   ======================================== */
.jcs-hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ========================================
   CONTACT FORM AJAX HANDLER
   ======================================== */
#jcs-contact-form .form-success,
#jcs-contact-form-mobile .form-success {
  color: #166534;
}

#jcs-contact-form .form-error,
#jcs-contact-form-mobile .form-error {
  color: #991b1b;
}

/* ========================================
   BOOKING FORM SELECT STYLING
   ======================================== */
.jcs-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ========================================
   SCROLL-TO-TOP BUTTON (optional)
   ======================================== */
.jcs-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--jcs-gold);
  color: var(--jcs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 40;
}

.jcs-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   SINGLE COLLECTION PAGE
   ======================================== */
.jcs-single-collection-hero {
  width: 100%;
  aspect-ratio: 1640 / 760;
  object-fit: cover;
}

.jcs-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .jcs-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .jcs-product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
}

.jcs-product-card {
  overflow: hidden;
}

.jcs-product-card img {
  width: 100%;
  aspect-ratio: 240 / 400;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.jcs-product-card:hover img {
  transform: scale(1.05);
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jcs-animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
