/* ═══════════════════════════════════════════════════════════════
   CasaFlow Products — Supplier Dashboard + Public Showroom
   Palette: gold #C9A84C · cream #FAF7F2 · dark #1A1A1A · mid #6B6B6B
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset / Base ── */
.cfp-wrap *, .cfsr-wrap *, .cfsr-modal * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SUPPLIER DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.cfp-wrap {
  display: flex;
  min-height: 100vh;
  background: #F5F3EF;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: #1A1A1A;
}

/* ── Sidebar ── */
.cfp-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1A1A1A;
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.cfp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.cfp-sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #E8C86D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  flex-shrink: 0;
}

.cfp-sidebar-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cfp-sidebar-role {
  font-size: 11px;
  color: #C9A84C;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cfp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.cfp-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: background .15s, color .15s;
  cursor: pointer;
}

.cfp-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cfp-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
}

.cfp-nav-item.active {
  background: rgba(201,168,76,0.15);
  color: #C9A84C;
}

.cfp-nav-badge {
  margin-left: auto;
  background: rgba(201,168,76,0.2);
  color: #C9A84C;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

/* ── Main ── */
.cfp-main {
  flex: 1;
  min-width: 0;
  padding: 32px;
  overflow-y: auto;
}

/* ── View head ── */
.cfp-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cfp-view-title {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
}

.cfp-view-sub {
  font-size: 13px;
  color: #6B6B6B;
  margin-top: 3px;
}

/* ── Buttons ── */
.cfp-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #C9A84C, #E8C86D);
  color: #1A1A1A;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}

.cfp-btn-gold:hover { opacity: .9; transform: translateY(-1px); }

.cfp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: transparent;
  color: #1A1A1A;
  font-size: 13.5px;
  font-weight: 500;
  border: 1.5px solid #D5D0C8;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.cfp-btn-outline:hover {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.05);
}

/* ── Toolbar ── */
.cfp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cfp-toolbar-filter-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #E0DAD0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B6B6B;
  flex-shrink: 0;
  transition: all .15s;
}
.cfp-toolbar-filter-btn:hover  { border-color: #C9A84C; color: #C9A84C; }
.cfp-toolbar-filter-btn.active { background: #1A1A1A; border-color: #1A1A1A; color: #fff; }
.cfp-toolbar-filter-btn svg    { width: 16px; height: 16px; }

.cfp-cat-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.cfp-cat-pills::-webkit-scrollbar { display: none; }

.cfp-cat-pill {
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid #E0DAD0;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6B;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: all .15s;
}
.cfp-cat-pill.active           { background: #1A1A1A; border-color: #1A1A1A; color: #fff; }
.cfp-cat-pill:not(.active):hover { border-color: #C9A84C; color: #2C2825; }

.cfp-toolbar-sep {
  width: 1px;
  height: 26px;
  background: #E0DAD0;
  flex-shrink: 0;
}

.cfp-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1px solid #E0DAD0;
  border-radius: 100px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #2C2825;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}
.cfp-toolbar-btn:hover { border-color: #C9A84C; color: #C9A84C; }
.cfp-toolbar-btn svg   { width: 14px; height: 14px; }

/* ── Status filter panel ── */
.cfp-status-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ── Status filter tabs (inside panel) ── */
.cfp-ftab {
  padding: 6px 14px;
  border: 1.5px solid #E0DAD0;
  background: #fff;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6B6B6B;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.cfp-ftab.active, .cfp-ftab:hover {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.08);
  color: #C9A84C;
}

/* ── Bulk Import ── */
.cfp-bulk-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cfp-bulk-info {
  background: #FAF8F5;
  border: 1px solid #E8E3DB;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.6;
}
.cfp-bulk-info strong { color: #2C2825; }
.cfp-bulk-dl { align-self: flex-start; margin-top: 4px; }

.cfp-bulk-drop {
  border: 2px dashed #E0DAD0;
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: #9B9690;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cfp-bulk-drop svg        { width: 40px; height: 40px; }
.cfp-bulk-drop p          { font-size: 14px; margin: 0; }
.cfp-bulk-drop:hover,
.cfp-bulk-drop.over       { border-color: #C9A84C; background: rgba(201,168,76,0.04); }
.cfp-bulk-browse          { color: #C9A84C; font-weight: 600; text-decoration: underline; cursor: pointer; }

.cfp-bulk-table-wrap {
  overflow-x: auto;
  border: 1px solid #E8E3DB;
  border-radius: 12px;
}
.cfp-bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cfp-bulk-table th,
.cfp-bulk-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #F0ECE6;
}
.cfp-bulk-table th {
  background: #FAF8F5;
  font-weight: 600;
  color: #6B6B6B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cfp-bulk-table tr:last-child td { border-bottom: none; }

.cfp-bulk-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cfp-bulk-progress-wrap {
  height: 6px;
  background: #F0ECE6;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.cfp-bulk-progress-bar {
  height: 100%;
  background: #C9A84C;
  border-radius: 100px;
  width: 0;
  transition: width .2s;
}
.cfp-bulk-progress-label {
  font-size: 12px;
  color: #9B9690;
  margin-top: 4px;
  display: block;
}

/* ── Product grid ── */
.cfp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cfp-loading-row {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #6B6B6B;
  font-size: 14px;
}

/* ── Product card ── */
.cfp-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

.cfp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.cfp-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #F0EDE8;
  display: block;
}

.cfp-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5BFB5;
}

.cfp-card-img-placeholder svg { width: 40px; height: 40px; }

.cfp-card-body {
  padding: 14px;
}

.cfp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cfp-card-cat {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6B6B6B;
  font-weight: 600;
}

.cfp-card-status {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
}

.cfp-card-status.pending  { background: #FFF8E6; color: #A07C20; }
.cfp-card-status.approved { background: #EDFAF3; color: #1B7A48; }
.cfp-card-status.rejected { background: #FFF0F0; color: #C0392B; }

.cfp-card-sku {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #8B6914;
  background: #FEF8E7;
  border: 1px solid #F0D98A;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 5px;
  font-family: monospace;
}

.cfp-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cfp-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
}

.cfp-card-price .currency {
  font-size: 11px;
  font-weight: 500;
  color: #6B6B6B;
  margin-right: 2px;
}

.cfp-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F0EDE8;
}

.cfp-card-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}

.cfp-card-btn:hover { opacity: .8; }
.cfp-card-btn.edit { background: #F5F3EF; color: #1A1A1A; }
.cfp-card-btn.delete { background: #FFF0F0; color: #C0392B; }

.cfp-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #C9A84C;
  color: #1A1A1A;
}

.cfp-card-badge.new_arrival    { background: #1A1A1A; color: #fff; }
.cfp-card-badge.limited_edition { background: #6B3E8E; color: #fff; }

/* ── Form ── */
.cfp-sku-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FEF8E7;
  border: 1px solid #F0D98A;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 18px;
}
.cfp-sku-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6B6B6B;
}
.cfp-sku-badge {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #7A5C10;
  letter-spacing: .1em;
}

.cfp-form-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.cfp-form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0EDE8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cfp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cfp-field { display: flex; flex-direction: column; gap: 6px; }
.cfp-col-2 { grid-column: span 2; }

.cfp-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #4A4A4A;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cfp-field label span {
  color: #C9A84C;
  margin-left: 2px;
}

.cfp-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E0DAD0;
  border-radius: 8px;
  font-size: 14px;
  color: #1A1A1A;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.cfp-input:focus {
  outline: none;
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

textarea.cfp-input { resize: vertical; min-height: 80px; }

.cfp-field-note {
  font-size: 11px;
  color: #9B9690;
}

/* Dimensions */
.cfp-dims {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cfp-dim-group {
  position: relative;
  flex: 1;
}

.cfp-dim-inp {
  padding-right: 24px;
}

.cfp-dim-label {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #9B9690;
  pointer-events: none;
}

.cfp-dim-sep {
  font-size: 14px;
  color: #9B9690;
  flex-shrink: 0;
}

.cfp-dim-unit {
  width: 70px;
  flex-shrink: 0;
}

/* Price */
.cfp-price-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cfp-currency {
  position: absolute;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #9B9690;
  letter-spacing: .03em;
  pointer-events: none;
}

.cfp-price-inp { padding-left: 42px; }

/* Image upload */
.cfp-image-upload-area {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/3;
  border: 2px dashed #E0DAD0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color .15s;
  background: #FAF8F5;
  margin-bottom: 20px;
}

.cfp-image-upload-area:hover { border-color: #C9A84C; }

.cfp-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9B9690;
  text-align: center;
  padding: 16px;
}

.cfp-image-placeholder svg { width: 36px; height: 36px; }
.cfp-image-placeholder p { font-size: 13px; font-weight: 600; color: #6B6B6B; }
.cfp-image-placeholder span { font-size: 11px; color: #9B9690; }

.cfp-image-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cfp-img-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: background .15s;
}

.cfp-img-remove:hover { background: rgba(192,57,43,0.85); }

/* Gallery */
.cfp-gallery-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B6B6B;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.cfp-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cfp-gallery-thumb {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cfp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cfp-gallery-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfp-gallery-add {
  width: 90px;
  height: 90px;
  border: 2px dashed #E0DAD0;
  border-radius: 8px;
  background: #FAF8F5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9B9690;
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
}

.cfp-gallery-add:hover { border-color: #C9A84C; color: #C9A84C; }
.cfp-gallery-add svg { width: 22px; height: 22px; }

/* Form actions */
.cfp-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 0 8px;
}

.cfp-form-note {
  text-align: right;
  font-size: 11.5px;
  color: #9B9690;
  margin-top: 6px;
}

/* Toast */
.cfp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1A1A1A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transform: translateY(0);
  transition: opacity .3s, transform .3s;
  max-width: 320px;
}

.cfp-toast.success { border-left: 3px solid #27ae60; }
.cfp-toast.error   { border-left: 3px solid #c0392b; }
.cfp-toast.info    { border-left: 3px solid #C9A84C; }
.cfp-toast.hide    { opacity: 0; transform: translateY(8px); }

/* Notice */
.cfp-notice {
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  color: #6B6B6B;
  font-size: 14px;
}

/* Empty state */
.cfp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: #9B9690;
}

.cfp-empty svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: .5; }
.cfp-empty h3 { font-size: 16px; font-weight: 600; color: #4A4A4A; margin-bottom: 6px; }
.cfp-empty p  { font-size: 13px; }

/* Admin moderate buttons */
.cfp-admin-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F0EDE8;
}

.cfp-admin-btn {
  flex: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cfp-admin-btn.approve { background: #EDFAF3; color: #1B7A48; }
.cfp-admin-btn.reject  { background: #FFF0F0; color: #C0392B; }
.cfp-admin-btn:hover   { opacity: .8; }

/* Responsive — dashboard */
@media (max-width: 900px) {
  .cfp-wrap { flex-direction: column; }

  .cfp-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 16px 0;
  }

  .cfp-sidebar-brand { padding-bottom: 16px; }

  .cfp-nav { flex-direction: row; overflow-x: auto; gap: 4px; }
  .cfp-nav-item { white-space: nowrap; }

  .cfp-main { padding: 16px; }
  .cfp-form-grid { grid-template-columns: 1fr; }
  .cfp-col-2 { grid-column: span 1; }
  .cfp-product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC SHOWROOM
   ═══════════════════════════════════════════════════════════════ */

.cfsr-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: #1A1A1A;
}

/* Header */
.cfsr-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid #E8E3DC;
  margin-bottom: 28px;
}

.cfsr-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cfsr-title {
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
}

.cfsr-subtitle {
  font-size: 14px;
  color: #6B6B6B;
  margin-top: 4px;
}

/* Search */
.cfsr-search-wrap {
  position: relative;
  width: 260px;
}

.cfsr-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9B9690;
  pointer-events: none;
}

.cfsr-search {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid #E0DAD0;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
  color: #1A1A1A;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.cfsr-search:focus {
  outline: none;
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

/* Category pills */
.cfsr-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cfsr-cat {
  padding: 7px 16px;
  border: 1.5px solid #E0DAD0;
  border-radius: 24px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6B6B6B;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.cfsr-cat.active, .cfsr-cat:hover {
  border-color: #C9A84C;
  background: #C9A84C;
  color: #1A1A1A;
}

/* Results bar */
.cfsr-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.cfsr-count {
  font-size: 13px;
  color: #6B6B6B;
}

.cfsr-sort-select {
  padding: 7px 12px;
  border: 1.5px solid #E0DAD0;
  border-radius: 7px;
  font-size: 13px;
  color: #1A1A1A;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

/* Showroom grid */
.cfsr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* Loading */
.cfsr-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #6B6B6B;
}

.cfsr-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E8E3DC;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: cfsr-spin .7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes cfsr-spin { to { transform: rotate(360deg); } }

.cfsr-retry {
  margin-top: 14px;
  padding: 10px 26px;
  border: 1px solid #C9A84C;
  border-radius: 24px;
  background: #fff;
  color: #8A7B3C;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.cfsr-retry:hover { background: #C9A84C; color: #fff; }

/* Showroom card */
.cfsr-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cfsr-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.cfsr-card-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #F0EDE8;
  position: relative;
}

.cfsr-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .4s ease;
}

.cfsr-card:hover .cfsr-card-img { transform: scale(1.04); }

.cfsr-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C5BFB5;
}

.cfsr-card-img-placeholder svg { width: 44px; height: 44px; }

.cfsr-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  background: #C9A84C;
  color: #1A1A1A;
}

.cfsr-card-badge.new_arrival     { background: #1A1A1A; color: #fff; }
.cfsr-card-badge.limited_edition { background: #6B3E8E; color: #fff; }

.cfsr-card-avail {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}

.cfsr-card-avail.available      { color: #1B7A48; }
.cfsr-card-avail.made_to_order  { color: #A07C20; }
.cfsr-card-avail.out_of_stock   { color: #C0392B; }

.cfsr-card-body {
  padding: 16px;
}

.cfsr-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9B9690;
  margin-bottom: 5px;
}

.cfsr-card-name {
  font-size: 14.5px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cfsr-card-supplier {
  font-size: 12px;
  color: #9B9690;
  margin-bottom: 12px;
}

.cfsr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F0EDE8;
}

.cfsr-card-price {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
}

.cfsr-card-price .cfsr-cur {
  font-size: 10.5px;
  font-weight: 600;
  color: #6B6B6B;
  margin-right: 2px;
}

.cfsr-card-view {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F3EF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A1A;
  transition: background .15s;
}

.cfsr-card-view:hover { background: #C9A84C; color: #1A1A1A; }
.cfsr-card-view svg { width: 16px; height: 16px; }

/* Pagination */
.cfsr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.cfsr-page-btn {
  padding: 9px 20px;
  border: 1.5px solid #E0DAD0;
  border-radius: 7px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.cfsr-page-btn:hover:not(:disabled) {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.07);
}

.cfsr-page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cfsr-page-info {
  font-size: 13px;
  color: #6B6B6B;
}

/* Empty showroom */
.cfsr-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: #9B9690;
}

.cfsr-empty svg { width: 52px; height: 52px; margin-bottom: 14px; opacity: .45; }
.cfsr-empty h3  { font-size: 18px; font-weight: 600; color: #4A4A4A; margin-bottom: 6px; }
.cfsr-empty p   { font-size: 14px; }

/* ── Modal ── */
.cfsr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,18,16,0.65);
  backdrop-filter: blur(4px);
  /* Above every other overlay in the app — the dashboard sidebar drawer
     (100000) and its floating toggle button (100001) — so the hamburger
     never pokes through the image modal on mobile/tablet while logged in. */
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cfsr-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.cfsr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F5F3EF;
  border: none;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A4A4A;
}

.cfsr-modal-close:hover { background: #E8E3DC; }

.cfsr-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Gallery side */
.cfsr-modal-gallery {
  padding: 24px;
  background: #F5F3EF;
  border-radius: 16px 0 0 16px;
}

.cfsr-modal-main-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: #E8E3DC;
  position: relative;
  margin-bottom: 12px;
}

.cfsr-modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cfsr-modal-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  background: #C9A84C;
  color: #1A1A1A;
}

.cfsr-modal-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cfsr-modal-thumb {
  width: 64px;
  height: 64px;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s;
  flex-shrink: 0;
}

.cfsr-modal-thumb.active { border-color: #C9A84C; }

.cfsr-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Info side */
.cfsr-modal-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cfsr-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cfsr-modal-cat {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #C9A84C;
}

.cfsr-modal-avail {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
}

.cfsr-modal-avail.available     { background: #EDFAF3; color: #1B7A48; }
.cfsr-modal-avail.made_to_order { background: #FFF8E6; color: #A07C20; }
.cfsr-modal-avail.out_of_stock  { background: #FFF0F0; color: #C0392B; }

.cfsr-modal-name {
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.25;
  margin-bottom: 4px;
}

.cfsr-modal-supplier {
  font-size: 12.5px;
  color: #9B9690;
  margin-bottom: 12px;
}

.cfsr-modal-desc {
  font-size: 13.5px;
  color: #4A4A4A;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Specs table */
.cfsr-modal-specs {
  background: #F5F3EF;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfsr-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

.cfsr-spec-label {
  color: #6B6B6B;
  font-weight: 500;
  min-width: 90px;
}

.cfsr-spec-val {
  color: #1A1A1A;
  font-weight: 600;
  text-align: right;
}

/* Pricing */
.cfsr-modal-pricing {
  border-top: 1px solid #E8E3DC;
  padding-top: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfsr-modal-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cfsr-modal-price-label {
  font-size: 12px;
  color: #6B6B6B;
  font-weight: 500;
}

.cfsr-modal-price-retail {
  font-size: 13px;
  color: #9B9690;
  text-decoration: line-through;
}

.cfsr-modal-price-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cfsr-modal-price-casa {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A1A;
}

.cfsr-modal-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6B6B6B;
}

.cfsr-modal-lead svg { width: 14px; height: 14px; }

/* CTA */
.cfsr-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #C9A84C, #E8C86D);
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: auto;
  transition: opacity .15s, transform .1s;
  font-family: inherit;
}

.cfsr-modal-cta:hover { opacity: .9; transform: translateY(-1px); }
.cfsr-modal-cta svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .cfsr-modal-inner { grid-template-columns: 1fr; }
  .cfsr-modal-gallery { border-radius: 16px 16px 0 0; }
  .cfsr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cfsr-title { font-size: 22px; }
  .cfsr-search-wrap { width: 100%; }
  .cfsr-header-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   Showroom modal — IMMERSIVE redesign
   Image fills the stage · thumbnails = left rail · info + CTA in a
   translucent glass bar at the bottom. (Overrides the rules above.)
═══════════════════════════════════════════════════════════════ */
.cfsr-modal {
  max-width: 920px;
  background: #EFEAE3;
  border-radius: 18px;
  overflow: hidden;
  max-height: 95vh;
}
.cfsr-modal-close {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 5;
}
.cfsr-modal-inner {
  display: block;
  position: relative;
  height: min(94vh, 1040px);
}
/* Gallery = full stage */
.cfsr-modal-gallery {
  position: absolute;
  inset: 0;
  padding: 0;
  border-radius: 0;
  background: radial-gradient(120% 100% at 50% 0%, #F7F4EF 0%, #E6DFD5 100%);
}
.cfsr-modal-main-img {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  background: transparent;
}
.cfsr-modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 12px 148px 12px;      /* clear the bottom bar */
  box-sizing: border-box;
}
/* Shift image right only when thumbnails exist */
.cfsr-modal-gallery:has(.cfsr-modal-thumb) .cfsr-modal-main-img img { padding-left: 98px; }

/* Thumbnails — vertical rail, top-left */
.cfsr-modal-thumbs {
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 150px;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  z-index: 4;
  overflow-y: auto;
  scrollbar-width: none;
}
.cfsr-modal-thumbs::-webkit-scrollbar { display: none; }
.cfsr-modal-thumb {
  width: 62px;
  height: 62px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.65);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cfsr-modal-thumb.active { border-color: #C9A84C; }

/* Info — translucent glass bar at the bottom */
.cfsr-modal-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 16px 20px;
  background: rgba(250,247,242,0.55);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-top: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "meta  cta"
    "name  cta"
    "specs cta"
    "price cta";
  align-items: center;
  column-gap: 16px;
  row-gap: 3px;
}
.cfsr-modal-meta    { grid-area: meta;  margin: 0; }
.cfsr-modal-name    { grid-area: name;  margin: 0; font-size: 20px; }
.cfsr-modal-specs {
  grid-area: specs;
  margin: 4px 0 0;
  background: transparent;
  padding: 0;
  gap: 2px;
}
.cfsr-modal-specs .cfsr-spec-row   { font-size: 12px; }
.cfsr-modal-specs .cfsr-spec-label { min-width: auto; }
.cfsr-modal-pricing {
  grid-area: price;
  margin: 4px 0 0;
  border: none;
  padding: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
}
.cfsr-modal-price-main { justify-content: flex-start; gap: 10px; }
.cfsr-modal-price-casa { font-size: 20px; }
.cfsr-modal-cta {
  grid-area: cta;
  width: auto;
  margin: 0;
  align-self: center;
  padding: 14px 22px;
  white-space: nowrap;
  border-radius: 12px;
}
/* Hide long text in the compact bar */
.cfsr-modal-supplier,
.cfsr-modal-desc { display: none; }

@media (max-width: 700px) {
  .cfsr-modal { max-width: 100%; }
  .cfsr-modal-inner { height: min(88vh, 680px); }
  .cfsr-modal-thumb { width: 52px; height: 52px; }
  .cfsr-modal-gallery:has(.cfsr-modal-thumb) .cfsr-modal-main-img img { padding-left: 80px; }
  .cfsr-modal-cta { padding: 12px 16px; font-size: 13px; }

  /* Move the close X to the left so it doesn't collide with the
     site's mobile hamburger, which always sits top-right. */
  .cfsr-modal-close {
    right: auto;
    left: 16px;
  }
}
