/* SIMPLEST SHOPPING — budget popup (flat colors, no gradients) */
.bp-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}
.bp-overlay.bp-open { display: block; }

.bp-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px 22px;
  text-align: center;
  font-family: 'Dosis', sans-serif;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.bp-close {
  position: absolute;
  top: 8px; right: 14px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}
.bp-close:hover { color: #333; }

.bp-img {
  width: 100%;
  max-width: 280px;
  height: 250px;            /* bigger than the tile, so you can see the product properly */
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.bp-title {
  font-size: 22px;
  letter-spacing: 1px;
  color: #333;
  margin: 0 30px 14px;      /* room for the heart and the close button */
}

.bp-tabs {
  display: flex;
  background: #f2ebe0;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}
.bp-tab {
  flex: 1;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 8px 4px;
  font-family: 'Dosis', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #8a6a33;
  cursor: pointer;
  line-height: 1.2;
}
.bp-tab:hover { background: #e8dcc6; }
.bp-tab.bp-active { background: #fff; color: #5b4520; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.bp-sign { display: block; font-size: 13px; color: #3f8f4f; letter-spacing: 1px; margin-top: 2px; }
.bp-tab.bp-active .bp-sign { color: #2f7a40; }
.bp-save { font-size: 13px; color: #3f8f4f; margin-top: 2px; letter-spacing: .3px; }
.bp-save:empty { display: none; }

.bp-pick { min-height: 74px; }
.bp-name {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  line-height: 1.25;
}
.bp-price {
  font-size: 16px;
  color: #8a6a33;
  margin-top: 6px;
}
.bp-why {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
}
.bp-why:empty { display: none; }

.bp-buy {
  display: block;
  margin: 16px 0 10px;
  padding: 12px;
  border-radius: 12px;
  background: #333;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
.bp-buy:hover { background: #c79a4c; }

.bp-original {
  font-size: 13px;
  color: #999 !important;
  text-decoration: underline;
}

/* popup shown on the main page (index.html) over the whole screen */
.bp-overlay.bp-fixed {
  position: fixed;
  height: 100% !important;
  overflow-y: auto;
}
.bp-overlay.bp-fixed .bp-box {
  /* pinned near the top (not centered), so the BUDGET / MID / PREMIUM switch stays put
     while the text below it changes length */
  top: max(20px, 6vh) !important;
  transform: translateX(-50%);
  max-height: calc(100% - max(40px, 12vh));
  overflow-y: auto;
}

/* fuller product description */
.bp-details {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #555;
  text-align: left;
  background: #faf7f2;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}
.bp-details:empty { display: none; }
.bp-pick { min-height: 0; }

/* "Skip it if…" — who the pick isn't for; same size and font as the description above it */
.bp-skip {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #555;
  text-align: left;
  background: #fbf3f1;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}
.bp-skip b { font-weight: 700; color: #b0503f; margin-right: 2px; }

/* one pick mode: no BUDGET / MID / PREMIUM switch, a small "On a budget?" link instead */
.bp-single .bp-tabs { display: none; }
.bp-cheap {
  display: block;
  margin: -2px 0 10px;
  font-size: 14px;
  color: #555 !important;
  text-decoration: none !important;
  line-height: 1.4;
}
.bp-cheap b { color: #3f8f4f; }
.bp-cheap:hover span { text-decoration: underline; }
