/* =============================================
   COLLECTIONS SECTION — Sniper Brand
   ============================================= */

.collections-section {
  background: #0A0A0A;
  padding: 64px 0;
}

.collections-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.collections-header-row .section-title {
  margin-bottom: 0;
}

.collections-carousel-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collections-arrow-btn {
  width: 44px;
  height: 44px;
  background: #141414;
  border: 1px solid #2C2C2C;
  color: #FFFFFF;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.collections-arrow-btn:hover:not(:disabled) {
  background: #1F1F1F;
  border-color: #FF6B00;
  color: #FF6B00;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
}

.collections-arrow-btn:disabled {
  opacity: 0.22;
  cursor: default;
  border-color: #1E1E1E;
  color: #666666;
  box-shadow: none;
}

.collections-slider-wrapper {
  position: relative;
  width: 100%;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.collections-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333333 transparent;
}

.collections-grid::-webkit-scrollbar {
  height: 6px;
}

.collections-grid::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 3px;
}

.collections-grid::-webkit-scrollbar-thumb {
  background: #2C2C2C;
  border-radius: 3px;
}

.collections-grid::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

.collection-card {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  aspect-ratio: 3 / 4;
  background: #1A1A1A;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}

.collection-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.7);
}

.collection-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #111 0%, #1A1A1A 50%, #0D0D0D 100%);
}

.collection-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.collection-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.collection-desc {
  font-size: 12px;
  color: #cccccc;
  margin-bottom: 12px;
  line-height: 1.4;
}

.collection-link {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #FF6B00;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.collection-link::after {
  content: "→";
}

.collection-link:hover {
  color: #ffffff;
}

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

/* =============================================
   RESPONSIVE DESIGN (DESKTOP VS MOBILE)
   ============================================= */

/* TABLET (max-width: 1023px) */
@media (max-width: 1023px) {
  .collection-card {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    aspect-ratio: 16 / 10;
  }
}

/* MOBILE DISPOSITIVOS (max-width: 768px) */
@media (max-width: 768px) {
  .collections-section {
    padding: 24px 0;
  }

  .collections-header-row {
    margin-bottom: 12px;
  }

  .collections-arrow-btn {
    width: 34px;
    height: 34px;
  }

  .collection-card {
    flex: 0 0 200px;
    width: 200px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    border: 1px solid #222222;
  }

  .collection-img {
    filter: brightness(0.65);
  }

  .collection-info {
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 75%, transparent 100%);
  }

  .collection-name {
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 700;
  }

  .collection-desc {
    display: none; /* Keep mobile collection cards clean, avoiding blurry or crowded text */
  }

  .collection-link {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 440px) {
  .collection-card {
    flex: 0 0 190px;
    width: 190px;
    aspect-ratio: 16 / 10;
  }
}

/* ── Full Window Collection View (Ventana Completa) ────────────── */
.collection-full-window {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #0A0A0A;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.collection-full-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.collection-window-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px clamp(24px, 4.5vw, 64px) 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.collection-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #141414;
  border: 1px solid #303030;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.collection-back-btn:hover {
  background: #1F1F1F;
  border-color: #FF6B00;
  color: #FFFFFF;
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.25);
}

.collection-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collection-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 6px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.collection-cart-btn:hover {
  background: #1F1F1F;
  border-color: #FF6B00;
  color: #FF6B00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.3);
}

.collection-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #FF6B00;
  color: #0A0A0A;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.collection-win-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #141414;
  border: 1px solid #303030;
  border-radius: 6px;
  color: #999999;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.collection-win-close-btn:hover {
  background: #FF6B00;
  border-color: #FF6B00;
  color: #0A0A0A;
  transform: translateY(-2px);
}

.collection-window-hero {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  padding: 56px clamp(16px, 4vw, 64px) 44px;
  background-color: #111111;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #1E1E1E;
  overflow: hidden;
}

.collection-window-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.82) 65%, #0A0A0A 100%);
}

.collection-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.collection-breadcrumbs {
  font-family: 'Rajdhani', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FF6B00;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.05;
}

.collection-hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: #B5B5B5;
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 650px;
}

.collection-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.collection-meta-pill {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: #FF6B00;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.collection-window-main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 40px) 72px;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #1E1E1E;
}

.collection-count-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFF;
}

.collection-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.collection-empty-showcase {
  text-align: center;
  padding: 72px 24px;
  background: #0E0E0E;
  border: 1px dashed #242424;
  border-radius: 8px;
  color: #888;
  max-width: 680px;
  margin: 30px auto;
}

.collection-window-footer {
  background: #070707;
  border-top: 1px solid #1A1A1A;
  padding: 24px clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 1024px) {
  .collection-full-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .collection-window-topbar {
    height: 56px;
  }
  .collection-window-hero {
    min-height: 220px;
    padding: 32px 18px 24px;
  }
  .collection-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .collection-window-main {
    padding: 24px 14px 48px;
  }
}

@media (max-width: 480px) {
  .collection-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .collection-back-btn span.label-text {
    display: none;
  }
}
