@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

.bce-app-root,
.bce-app-root * {
  box-sizing: border-box;
}

.bce-app-root {
  --bce-bg: #ffffff;
  --bce-surface: #f7f8ff;
  --bce-surface-alt: #f7f8ff;
  --bce-text: #071724;
  --bce-muted: #071724;
  --bce-accent: #071724;
  --bce-accent-light: #071724;
  --bce-border: #a5b3f2;
  --bce-border-light: #a5b3f2;
  --bce-serif: 'Libre Baskerville', Georgia, serif;
  --bce-sans: 'Raleway', system-ui, sans-serif;

  font-family: var(--bce-sans);
  background: var(--bce-bg);
  color: var(--bce-text);
  width: 100%;
}

.bce-app-root h1, .bce-app-root h2 { margin-top:20px !important; margin-bottom: 47px !important}

.bce-app-root h1,
.bce-app-root h2,
.bce-app-root h3,
.bce-app-root h4 {
  font-family: var(--bce-serif);
  font-style: italic;
  font-weight: 400;
  color: #071724;
  margin-top: 0;
}

.bce-app-root p {
  color: #071724;
}

.bce-app-root a {
  color: inherit;
}

/* -------------------------------------------------
   HARD RESET ALL BUTTONS/LINK BUTTONS INSIDE APP
   This stops theme button styles overriding yours
------------------------------------------------- */
/* -------------------------------------------------
   UNIVERSAL BUTTON STYLE (same as Color Explorer)
------------------------------------------------- */

.bce-app-root button {
    border: none !important;
}

.bce-app-root button,
.bce-app-root a.bce-cta-primary,
.bce-app-root a.bce-cta-secondary,
.bce-app-root .bce-outline-btn,
.bce-app-root .bce-small-btn,
.bce-app-root .bce-back-btn,
.bce-app-root .bce-pill-btn {
  
  appearance: none !important;
  background: #ffffff !important;
  color: #071724 !important;
  border: 1px solid #a5b3f2 ;

  font-family: var(--bce-sans) !important;
  font-weight: 600 !important;

  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;

  padding: 7px 14px !important;

  border-radius: 2px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  text-decoration: none !important;

  line-height: 1 !important;
  min-height: unset !important;

  transition: all .15s ease !important;
}

.bce-app-root button:hover,
.bce-app-root a:hover {
  background: #f7f8ff !important;
}


/* Keep dark CTA if you want selected primary actions to stay dark */
.bce-app-root .bce-cta-primary,
.bce-app-root a.bce-cta-primary {
  background: #071724 !important;
  color: #ffffff !important;
  border: 1px solid #071724 !important;
}

.bce-app-root .bce-cta-primary:hover,
.bce-app-root a.bce-cta-primary:hover,
.bce-app-root .bce-cta-primary:focus,
.bce-app-root a.bce-cta-primary:focus {
  background: #071724 !important;
  color: #ffffff !important;
  border: 1px solid #071724 !important;
  opacity: 0.92 !important;
}

/* Pills keep same structure but stop theme takeover */
.bce-app-root .bce-pill-btn {
  background: #ffffff !important;
  color: #071724 !important;
  border: 1px solid #a5b3f2 !important;
  padding: 8px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.bce-pill-btn {
  margin-bottom: 26px;
}

.bce-pill-row {
  margin-bottom: 32px;
}

.bce-app-root .bce-pill-btn.is-active,
.bce-app-root .bce-pill-btn:hover,
.bce-app-root .bce-pill-btn:focus {
  background: #071724 !important;
  color: #ffffff !important;
  border-color: #071724 !important;
}

/* ----- was display flex --*/

.bce-color-strip {
  display: none; 
  height: 8px;
  overflow: hidden;
}

.bce-page-pad {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

.bce-hero-pad {
  text-align: center;
  padding: 72px 24px 56px;
  max-width: 700px;
  margin: 0 auto;
}

.bce-pathway-grid {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bce-pathway-card {
  background: var(--bce-surface);
  border: 1px solid var(--bce-border);
  border-radius: 4px;
  padding: 28px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bce-pathway-card:hover {
  border-color: var(--bce-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 24, 16, 0.12);
}

.bce-family-grid,
.bce-color-grid,
.bce-stain-grid,
.bce-palette-style-grid {
  display: grid;
  gap: 16px;
}

.bce-color-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.bce-stain-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.bce-palette-style-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bce-color-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bce-color-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(28, 24, 16, 0.18);
}

.bce-color-card-swatch {
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(28, 24, 16, 0.08);
  min-height: 155px;
}

.bce-color-card-swatch.size-sm {
  min-height: 100px;
  padding: 6px;
}

.bce-color-card-swatch.size-lg {
  min-height: 200px;
}

.bce-detail-cols {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
}

.bce-detail-swatch {
  min-width: 300px;
  width: 300px;
  height: 380px;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(28, 24, 16, 0.14);
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.bce-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bce-swatch-mini {
  width: 32px;
  height: 32px;
  border-radius: 2px;
}

.bce-color-band {
  display: flex;
  overflow: hidden;
}

.bce-color-band > div {
  flex: 1;
}

.bce-banner {
  display: flex;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(28, 24, 16, 0.12);
}

.bce-palette-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.bce-palette-col {
  flex: 1;
  min-width: 200px;
}

.bce-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bce-chip {
  width: 56px;
  height: 64px;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(28, 24, 16, 0.08);
}

.bce-stain-card {
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(28, 24, 16, 0.08);
  background: #fff;
}

.bce-stain-card img,
.bce-stain-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bce-palette-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.bce-palette-item {
  background: var(--bce-surface);
  border: 1px solid var(--bce-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}

.bce-palette-thumb {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bce-muted {
  color: var(--bce-muted);
}

.bce-uppercase {
  text-transform: uppercase;
}

.bce-hide {
  display: none !important;
}

.bce-stain-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

@media (max-width: 1000px) and (min-width: 769px) {
  .bce-pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bce-palette-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bce-color-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 768px) {
  .bce-detail-cols {
    flex-direction: column;
  }

  .bce-detail-swatch {
    width: 100%;
    min-width: unset;
    height: 240px;
  }

  .bce-pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bce-palette-style-grid {
    grid-template-columns: 1fr;
  }

  .bce-color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .bce-page-pad {
    padding: 24px 16px;
  }

  .bce-hero-pad {
    padding: 40px 16px 32px;
  }

  .bce-pathway-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 40px;
  }

  .bce-stain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

