/* ═══════════════════════════════════════
   MOOD BOARD — "My Quote" Panel + Cards
═══════════════════════════════════════ */

/* ── Toggle Button (floating) ── */
.mood-toggle {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #002868;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,40,104,0.35);
  transition: all 0.3s ease;
}
.mood-toggle:hover {
  background: #001a44;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,40,104,0.45);
}
.mood-toggle.active { background: #c80f28; }
.mood-toggle svg { flex-shrink: 0; }
.mood-badge {
  display: none;
  align-items: center;
  justify-content: center;
  background: #c80f28;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-left: 2px;
}
.mood-toggle.active .mood-badge { background: #fff; color: #c80f28; }
.mood-badge.bump { animation: moodBump 0.35s ease; }
@keyframes moodBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ── Panel ── */
.mood-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  z-index: 350;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
}
.mood-panel.open { right: 0; }

.mood-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid #e8ecf0;
  background: #002868;
  color: #fff;
}
.mood-panel-header h3 {
  font-family: 'Bakbak One', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
  flex: 1;
}
.mood-panel-count {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}
.mood-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.mood-panel-close:hover { color: #fff; }

/* ── Body ── */
.mood-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mood-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}
.mood-empty p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.mood-empty strong { color: #002868; }

/* ── Grid of saved items ── */
.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mood-card {
  position: relative;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  transition: box-shadow 0.2s;
}
.mood-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.mood-card-img {
  width: 100%;
  height: 100px;
  overflow: hidden;
}
.mood-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mood-card-swatch {
  width: 100%;
  height: 100px;
}
.mood-card-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mood-card-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 600;
}
.mood-card-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.mood-card-code {
  font-size: 0.7rem;
  color: #64748b;
}
.mood-card-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mood-card:hover .mood-card-remove { opacity: 1; }

/* ── Footer ── */
.mood-panel-footer {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #e8ecf0;
  background: #f8fafc;
  flex-wrap: wrap;
}
.mood-btn-quote {
  flex: 1;
  background: #c80f28;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.mood-btn-quote:hover { background: #a00d20; }
.mood-btn-share {
  background: #002868;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.mood-btn-share:hover { background: #001a44; }
.mood-btn-clear {
  width: 100%;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}
.mood-btn-clear:hover { border-color: #c80f28; color: #c80f28; }

/* ═══════════════════════════════════════
   PRODUCT CARDS — used on all catalog pages
═══════════════════════════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.product-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-swatch {
  width: 100%;
  height: 200px;
}

.product-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card-name {
  font-family: 'Bakbak One', sans-serif;
  font-size: 1.05rem;
  color: #1e293b;
  margin-bottom: 4px;
}
.product-card-code {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 6px;
}
.product-card-desc {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: auto;
  padding-bottom: 14px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-add-project {
  flex: 1;
  background: #002868;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-add-project:hover { background: #001a44; }
.btn-add-project.added {
  background: #16a34a;
  pointer-events: none;
}

.btn-buy-now {
  background: #c80f28;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-buy-now:hover { background: #a00d20; }

/* ── Category filter bar ── */
.catalog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 0;
}
.filter-btn {
  background: #f0f5fa;
  border: 1px solid #e0e7ef;
  border-radius: 50px;
  padding: 8px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: #002868; color: #002868; }
.filter-btn.active {
  background: #002868;
  color: #fff;
  border-color: #002868;
}

/* ── Section headers ── */
.catalog-section {
  margin-bottom: 3rem;
}
.catalog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8ecf0;
}
.catalog-section-header h2 {
  font-family: 'Bakbak One', sans-serif;
  font-size: 1.5rem;
  color: #1e293b;
  margin: 0;
}
.catalog-section-header .section-count {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mood-toggle { display: none; } /* hidden on mobile — bottom bar has Project button */
  .mood-toggle-label { display: none; }
  .mood-panel { width: 100vw; max-width: 100vw; }
  .mood-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card-img { height: 150px; }
  .catalog-filters { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .mood-grid { grid-template-columns: 1fr; }
}
