/* ============================================================================
   SÓKARINA COLLECTION PAGE STYLES
   High-end fashion collection showcase
   ============================================================================ */

/* ===== BASE STYLES ===== */
.collection-page {
  font-family: 'Forum', serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== COLLECTION HERO ===== */
.collection-hero {
  background: #f8f8f8;
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.collection-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 100;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #000;
}

.hero-subtitle {
  font-size: 0.8rem;
  color: #666;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #333;
  font-weight: 200;
  line-height: 1.8;
  letter-spacing: 0.02em;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== COLLECTION NAVIGATION ===== */
.collection-nav {
  background: #fff;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0 2rem;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #666;
  font-family: 'Forum', serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-btn:hover,
.nav-btn.active {
  color: #000;
}

.nav-btn:hover::after,
.nav-btn.active::after {
  width: 100%;
}

/* ===== COLLECTION GRID ===== */
.collection-grid {
  padding: 4rem 2rem;
  background: #fff;
}

.grid-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
  padding: 0 2rem;
}

/* Ensure minimum 2 columns on larger screens */
@media (min-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 1200px;
  }
}

/* Ensure minimum 2 columns on medium screens */
@media (min-width: 800px) and (max-width: 1199px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 1000px;
  }
}

.collection-item {
  opacity: 1;
  transition: all 0.4s ease;
}

.collection-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.item-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #f8f8f8;
  margin-bottom: 1.5rem;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: grayscale(5%);
}

.item-image:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image:hover .item-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  padding: 1.5rem;
}

.overlay-content h3 {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.overlay-content p {
  font-size: 0.7rem;
  font-weight: 200;
  margin-bottom: 1rem;
  opacity: 0.8;
  line-height: 1.4;
}

.item-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}

.view-details-btn {
  background: transparent;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-family: 'Forum', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.5px;
}

.view-details-btn:hover {
  background: transparent;
  text-decoration-thickness: 1px;
  opacity: 0.8;
}

.add-to-cart-btn {
  background: transparent;
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.add-to-cart-btn ion-icon {
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: rgba(255,255,255,0.1);
}

.add-to-cart-btn:hover ion-icon {
  color: #fff;
}

.add-to-cart-btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.add-to-cart-btn.is-loading ion-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.add-to-wishlist-btn {
  background: transparent;
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.add-to-wishlist-btn ion-icon {
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}

.add-to-wishlist-btn:hover {
  background: rgba(255,255,255,0.1);
}

.add-to-wishlist-btn:hover ion-icon {
  color: #fff;
}

.add-to-wishlist-btn.is-active {
  background: rgba(231, 76, 60, 0.2);
}

.add-to-wishlist-btn.is-active ion-icon {
  color: #e74c3c;
}

.item-info {
  text-align: center;
}

.item-info h4 {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #000;
}

.item-description {
  font-size: 0.7rem;
  color: #666;
  font-weight: 200;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.item-price {
  font-size: 0.9rem;
  font-weight: 300;
  color: #000;
  letter-spacing: 0.05em;
}

/* ===== COLLECTION FOOTER ===== */
.collection-footer {
  background: #f8f8f8;
  padding: 6rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  text-align: left;
}

.footer-info h3,
.footer-cta h3 {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #000;
}

.footer-info p,
.footer-cta p {
  font-size: 0.9rem;
  color: #666;
  font-weight: 200;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.boutique-address {
  font-size: 0.8rem;
  color: #333;
  font-weight: 200;
  margin-bottom: 1rem;
}

.boutique-phone {
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.boutique-phone:hover {
  color: #666;
}

.book-appointment-btn {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 1rem 2rem;
  font-family: 'Forum', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.book-appointment-btn:hover {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
  .collection-hero {
    padding: 6rem 1.5rem;
  }
  
  .nav-container {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .nav-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
  
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .collection-hero {
    padding: 4rem 1rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .nav-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
  
  .collection-grid {
    padding: 2rem 1rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .overlay-content {
    padding: 1rem;
  }
  
  .overlay-content h3 {
    font-size: 0.8rem;
  }
  
  .overlay-content p {
    font-size: 0.65rem;
  }
  
  .item-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .view-details-btn,
  .add-to-wishlist-btn {
    width: 100%;
    padding: 0.8rem;
  }
  
  .add-to-wishlist-btn {
    width: 40px;
    height: 40px;
  }
}

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

/* Remove CSS animations to prevent conflicts with JavaScript */
/* .collection-item {
  animation: fadeInUp 0.6s ease forwards;
}

.collection-item:nth-child(2) {
  animation-delay: 0.1s;
}

.collection-item:nth-child(3) {
  animation-delay: 0.2s;
}

.collection-item:nth-child(4) {
  animation-delay: 0.3s;
}

.collection-item:nth-child(5) {
  animation-delay: 0.4s;
}

.collection-item:nth-child(6) {
  animation-delay: 0.5s;
} */
