/* ═══════════════════════════════════════
   BOUTIQUE PAGE — Liquid Glass
   ═══════════════════════════════════════ */

/* Hero */
.boutique-hero {
  padding: 84px 0 52px;
  text-align: center;
  position: relative;
}
.boutique-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; right: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,197,160,0.3), rgba(125,213,230,0.25), transparent);
  transition: left 0.6s ease, right 0.6s ease;
}
.boutique-hero:hover::after { left: 10%; right: 10%; }
.boutique-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #fafaf8;
}
.boutique-hero p {
  color: rgba(255,255,255,0.42);
  font-size: 1rem;
  line-height: 1.6;
}

/* ═══ Category Tabs ═══ */
.category-tabs-section { padding: 0 0 20px; }
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
}
.cat-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.cat-tab svg { opacity: 0.5; transition: var(--transition); }
.cat-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.cat-tab:hover svg { opacity: 0.8; }
.cat-tab.active {
  color: #d4c5a0;
  background: rgba(212,197,160,0.07);
  border-color: rgba(212,197,160,0.22);
  box-shadow: 0 0 16px rgba(212,197,160,0.06);
}
.cat-tab.active svg { opacity: 1; color: #d4c5a0; }
.cat-tab-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  flex: 0 1 280px;
}
.cat-tab-search svg { flex-shrink: 0; opacity: 0.5; }
.cat-tab-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
}
.cat-tab-search input::placeholder { color: var(--text-muted); }
.cat-tab-search:focus-within {
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 0 12px rgba(255,255,255,0.04);
}

/* ═══ Sub-filter bar ═══ */
.sub-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* ═══ Sealed sub-categories ═══ */
.sealed-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sealed-cat-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.sealed-cat-btn:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.sealed-cat-btn.active {
  border-color: rgba(212,197,160,0.28);
  color: #d4c5a0;
  background: rgba(212,197,160,0.07);
  box-shadow: 0 0 12px rgba(212,197,160,0.06);
}

/* Section containers — glass panels */
.nouveautes-section,
.bestsellers-section,
.allcards-section {
  padding: 60px 0;
}

.glass-panel {
  background: rgba(10,10,14,0.72);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 4px 40px rgba(0,0,0,0.3);
}
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.glass-panel > * { position: relative; }

/* Scroll row wrapper */
.scroll-row-wrap {
  position: relative;
}

/* Scroll row */
.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 24px 20px;
  margin: -20px -24px -10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.scroll-row::-webkit-scrollbar { display: none; }

/* Scroll arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 20, 0.88);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 1;
}
.scroll-arrow:hover {
  border-color: rgba(212,197,160,0.5);
  background: rgba(212,197,160,0.08);
  color: #d4c5a0;
  box-shadow: 0 0 20px rgba(212,197,160,0.12), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-50%) scale(1.08);
}
.scroll-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.scroll-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}
.scroll-arrow-left {
  left: 4px;
}
.scroll-arrow-right {
  right: 4px;
}
.scroll-row .poke-card {
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Best sellers grid */
.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Filter bar — glass style */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(212,197,160,0.35);
  color: #d4c5a0;
  background: rgba(212,197,160,0.06);
  box-shadow: 0 0 12px rgba(212,197,160,0.08);
}

/* ═══ Custom Select — Liquid Glass ═══ */
.filter-select {
  display: none; /* hidden, replaced by custom dropdown */
}

.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  padding-right: 36px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  user-select: none;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  transition: var(--transition);
}

.custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: rgba(212,197,160,0.35);
  color: #d4c5a0;
  background: rgba(212,197,160,0.04);
  box-shadow: 0 0 16px rgba(212,197,160,0.08);
}

.custom-select-trigger:hover::after,
.custom-select.open .custom-select-trigger::after {
  border-top-color: #d4c5a0;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  max-height: 360px;
  overflow-y: auto;
  z-index: 500;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.custom-select-dropdown::-webkit-scrollbar { width: 4px; }
.custom-select-dropdown::-webkit-scrollbar-track { background: transparent; }
.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}

.custom-select.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.custom-select-option.selected {
  background: rgba(212,197,160,0.08);
  color: #d4c5a0;
  font-weight: 600;
}

.custom-select-option.selected::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d4c5a0;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(212,197,160,0.6);
}

/* Group labels dans le custom select */
.custom-select-group-label {
  padding: 8px 16px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.7;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
}
.custom-select-group-label:first-child {
  border-top: none;
  margin-top: 0;
}

/* Search input in custom select */
.custom-select-search {
  padding: 6px 6px 2px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(8px);
}
.custom-select-search-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.custom-select-search-input::placeholder {
  color: var(--text-muted);
}
.custom-select-search-input:focus {
  border-color: rgba(212,197,160,0.35);
  background: rgba(212,197,160,0.03);
  box-shadow: 0 0 12px rgba(212,197,160,0.08);
}
.custom-select-options {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.custom-select-options::-webkit-scrollbar { width: 4px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
}

/* All cards grid */
.allcards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Section dividers — glass line */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), rgba(255,255,255,0.04), transparent);
  margin: 20px 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .bestsellers-grid,
  .allcards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══ PRÉCOMMANDES ═══ */
.cat-tab-preorder { position: relative; }
.cat-tab-preorder.active {
  color: #a78bfa;
  background: rgba(167,139,250,0.07);
  border-color: rgba(167,139,250,0.22);
  box-shadow: 0 0 16px rgba(167,139,250,0.06);
}
.cat-tab-preorder.active svg { opacity: 1; color: #a78bfa; }
.preorder-tab-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #a78bfa;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.preorder-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(167,139,250,0.06);
  border: 1px solid rgba(167,139,250,0.18);
  color: #c4b5fd;
  font-size: 0.82rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.preorder-banner svg { flex-shrink: 0; color: #a78bfa; }

@media (max-width: 768px) {
  .bestsellers-grid,
  .allcards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .filter-bar { gap: 8px; padding: 12px 14px; }
  .boutique-hero h1 { font-size: 2.2rem; }
  .glass-panel { padding: 24px 20px; }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px !important;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { padding: 10px 16px; font-size: 0.8rem; flex-shrink: 0; }
  .cat-tab svg { display: none; }
  .cat-tab-search { flex-shrink: 0; min-width: 160px; }
  .sealed-cats { gap: 6px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sealed-cats::-webkit-scrollbar { display: none; }
  .sealed-cat-btn { padding: 8px 14px; font-size: 0.78rem; flex-shrink: 0; }
  .sub-filter-bar { gap: 8px; flex-wrap: wrap; }
  .custom-select-trigger { font-size: 0.78rem; padding: 8px 14px; padding-right: 30px; }
  .custom-select-trigger::after { right: 10px; }
  .custom-select-dropdown { min-width: 200px; }
}
@media (max-width: 480px) {
  .bestsellers-grid,
  .allcards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .boutique-hero { padding: 40px 0 24px; }
  .boutique-hero h1 { font-size: 1.8rem; }
  .boutique-hero p { font-size: 0.82rem; }
  .category-tabs { padding: 6px 10px !important; gap: 4px; }
  .cat-tab { padding: 8px 12px; font-size: 0.75rem; }
  .cat-tab-search { min-width: 140px; }
  .cat-tab-search input { font-size: 0.8rem; }
  .sub-filter-bar { gap: 6px; margin-bottom: 16px; }
  .custom-select-trigger { font-size: 0.72rem; padding: 7px 12px; padding-right: 26px; }
  .custom-select-trigger::after { right: 8px; border-left-width: 4px; border-right-width: 4px; border-top-width: 4px; }
  .custom-select-dropdown { min-width: 170px; max-height: 260px; }
  .custom-select-option { padding: 8px 12px; font-size: 0.78rem; }
  .glass-panel { padding: 18px 14px; }
  .sealed-cats { gap: 4px; }
  .sealed-cat-btn { padding: 7px 12px; font-size: 0.72rem; }
  .section-header h2 { font-size: 1.3rem; }
  .allcards-section { padding: 30px 0; }
  .nouveautes-section { padding: 30px 0; }
}

@media (max-width: 320px) {
  .allcards-grid { grid-template-columns: 1fr; }
  .cat-tab-search { min-width: 0; }
  .custom-select-trigger { font-size: 0.68rem; padding: 6px 10px; }
  .boutique-hero h1 { font-size: 1.4rem; }
}
