/* =========================================
   LACCITUDE — Catalogue page styles
   ========================================= */

/* Page hero */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: rgba(10,10,10,.80);
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--grey);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--grey); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 1rem;
}
.page-title em { font-style: italic; font-family: var(--font-serif); color: var(--brand); }
.page-subtitle { font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 520px; }

/* Catalogue toolbar */
.catalogue-section { padding: 0 0 5rem; background: rgba(12,12,12,.82); }
.catalogue-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-full);
}

.filter-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey-lt);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab:hover { color: var(--white); border-color: rgba(255,255,255,0.1); }
.filter-tab.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.sort-select-wrap select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 0.45rem 2rem 0.45rem 1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
}

/* Sections par catégorie */
.cat-section {
  margin-bottom: 4rem;
}
.cat-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.cat-soon {
  padding: 2rem;
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: var(--r-md);
  color: rgba(255,255,255,.4);
  font-size: .9rem;
  text-align: center;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

/* Product card */
.product-card {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,0.15);
}
.product-card[data-hidden] { display: none; }

.product-img-wrap {
  position: relative; overflow: hidden;
  height: 130px;
}
/* Basket image */
.product-img-wrap .img-basket {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform var(--t-slow), filter var(--t-slow);
}
.product-card:hover .product-img-wrap .img-basket {
  transform: scale(1.06);
  filter: brightness(1);
}

/* Lace detail thumbnail — small inset bottom-right */
.lace-detail-btn {
  position: absolute;
  bottom: 0.4rem; right: 0.4rem;
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
  cursor: pointer;
  background: #0a0a0a;
  padding: 0;
  z-index: 3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lace-detail-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(0,0,0,0.7);
}
.lace-detail-btn .lace-thumb {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  transition: none !important;
}
.lace-detail-icon {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--brand);
  border-radius: 50%;
  width: 12px; height: 12px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}

/* Lightbox */
.lace-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}
.lace-lightbox.open { opacity: 1; visibility: visible; }
.lace-lightbox .lightbox-img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  cursor: default;
  opacity: 1 !important;
  transition: none !important;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.product-actions {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t-mid);
}
.product-card:hover .product-actions { opacity: 1; }

.btn-wishlist {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.btn-wishlist:hover { background: var(--brand); color: white; }

.product-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.product-badge.new { background: var(--brand); color: white; }
.product-badge.bestseller { background: var(--brand-2); color: var(--black); }
.product-badge.limited { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }

.product-info { padding: .6rem .75rem .75rem; }
.product-cat {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 0.2rem;
}
.product-name {
  font-size: .82rem; font-weight: 700;
  margin-bottom: 0.3rem;
  transition: color var(--t-fast);
  line-height: 1.2;
}
.product-card:hover .product-name { color: var(--brand); }

.product-handmade {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.product-price {
  font-size: .88rem; font-weight: 700;
  display: block;
}

.size-select {
  margin-top: .5rem;
  width: 100%;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .35rem .5rem;
  font-size: .78rem;
  cursor: pointer;
}
.size-select:focus { outline: 2px solid var(--brand); }

/* Load more */
.catalogue-more {
  text-align: center;
  margin-top: 3rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.25rem;
}
.more-text { font-size: 0.8rem; color: var(--grey); }
.btn--load-more { min-width: 220px; }

/* Custom CTA section */
.custom-cta { background: rgba(10,10,10,.88); }
.custom-cta-inner {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(78,205,196,0.05));
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--r-lg);
}
.custom-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.custom-cta-inner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  .catalogue-toolbar { border-radius: var(--r-md); padding: 1rem; }
  .filter-tabs { gap: 0.25rem; }
  .filter-tab { font-size: 0.72rem; padding: 0.4rem 0.75rem; }
}
