.pcs-sticky {
  position: fixed; left: 0; right: 0; z-index: 99990;
  background: var(--pcs-bg, #fff); color: var(--pcs-text, #2A2119);
  font-family: 'Nunito', sans-serif; text-transform: none; letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  transition: transform .3s ease, visibility 0s linear .3s;
  visibility: hidden;
}
.pcs-sticky *, .pcs-sticky *::before, .pcs-sticky *::after { box-sizing: border-box; }
.pcs-sticky button, .pcs-sticky input { font-family: inherit; text-transform: none; letter-spacing: normal; }
.pcs-sticky.is-visible { transform: translateY(0) !important; visibility: visible; transition: transform .3s ease, visibility 0s; }
.pcs-pos-bottom { bottom: 0; transform: translateY(100%); border-top: 1px solid var(--pcs-line, #E7DED2); box-shadow: 0 -4px 20px rgba(42,33,25,.07); padding-bottom: env(safe-area-inset-bottom, 0); }
.pcs-pos-top { top: 0; transform: translateY(-100%); border-bottom: 1px solid var(--pcs-line, #E7DED2); box-shadow: 0 4px 20px rgba(42,33,25,.07); }
body.admin-bar .pcs-pos-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .pcs-pos-top { top: 46px; } }

.pcs-sticky-inner {
  max-width: 1360px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}

/* ---- product info ---- */
.pcs-sticky-info { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 auto; }
.pcs-sticky-thumb { width: 58px; height: 58px; flex: none; border-radius: 0; overflow: hidden; background: #FBF6EE; border: 1px solid var(--pcs-line, #E7DED2); }
.pcs-sticky-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcs-sticky-text { min-width: 0; }
.pcs-sticky-title { font-size: 16px; font-weight: 500; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcs-sticky-sub { font-size: 13px; font-weight: 400; color: var(--pcs-muted, #4A4038); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.pcs-sticky-prices { display: flex; align-items: center; flex-wrap: nowrap; gap: 12px; margin-top: 4px; white-space: nowrap; }
.pcs-price-now { font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--pcs-accent, #926B31); }
.pcs-price-now .pcs-from { font-size: 13px; font-weight: 400; opacity: .8; }
.pcs-price-now.pcs-price-html { font-size: 18px; }
.pcs-price-old { font-size: 16px; font-weight: 400; line-height: 1.1; color: #8F857E; text-decoration: line-through; background: none; }
.pcs-save {
  display: inline-block; padding: 5px 12px; border-radius: 2px;
  background: var(--pcs-save-bg, #dcf3e3); color: var(--pcs-save-color, #1b8a3a);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}

/* ---- trust badges (desktop / tablet only) ---- */
.pcs-badges { display: flex; align-items: center; flex: none; }
.pcs-badge { display: flex; align-items: center; gap: 10px; padding: 4px 24px; border-left: 1px solid var(--pcs-line, #E7DED2); }
.pcs-badge .pcs-ico { flex: none; width: 38px; height: 38px; color: var(--pcs-accent, #926B31); stroke-width: 1.4; }
.pcs-badge-title { font-size: 15px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.pcs-badge-sub { font-size: 13px; font-weight: 400; line-height: 1.25; color: var(--pcs-muted, #4A4038); white-space: nowrap; }

/* ---- actions ---- */
.pcs-sticky-actions { display: flex; align-items: center; gap: 14px; flex: none; padding-left: 6px; }
.pcs-qty { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid var(--pcs-line, #E7DED2); border-radius: 2px; overflow: hidden; background: #fff; }
.pcs-qty-btn { width: 36px; border: 0; background: #fff; color: #111; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.pcs-qty-btn:hover { background: #EFE4D3; }
.pcs-qty-input {
  width: 50px; border: 0; border-left: 1px solid var(--pcs-line, #E7DED2); border-right: 1px solid var(--pcs-line, #E7DED2);
  text-align: center; font-size: 15px; font-weight: 500; color: var(--pcs-text, #2A2119); background: #fff;
  padding: 0; margin: 0; border-radius: 0; box-shadow: none; -moz-appearance: textfield;
}
.pcs-qty-input::-webkit-outer-spin-button, .pcs-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- CTA button: same style as the site's .dahab-cat-cta ---- */
.pcs-sticky .pcs-sticky-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--pcs-btn-bg, #926B31); color: var(--pcs-btn-color, #FBF6EE);
  border: 1px solid var(--pcs-btn-bg, #926B31); border-radius: var(--pcs-radius, 2px);
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.82rem; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding: 1rem 2.2rem; min-width: 0; height: auto; cursor: pointer; text-decoration: none;
  box-shadow: none; text-shadow: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.pcs-sticky .pcs-sticky-btn:hover {
  background: var(--pcs-btn-hover, #7A5826); border-color: var(--pcs-btn-hover, #7A5826);
  color: var(--pcs-btn-color, #FBF6EE); transform: translateY(-1px); opacity: 1;
}
.pcs-sticky .pcs-sticky-btn:active { transform: translateY(0); }
.pcs-sticky .pcs-sticky-btn.is-loading { opacity: .6; pointer-events: none; }
.pcs-btn-ico { display: inline-flex; transition: transform .2s ease; }
.pcs-btn-ico .pcs-ico { width: 18px; height: 18px; color: currentColor; stroke-width: 1.7; }
.pcs-sticky-btn:hover .pcs-btn-ico { transform: translateX(3px); }

/* ---- tablet / small desktop ---- */
@media (max-width: 1280px) {
  .pcs-badge { padding: 4px 16px; }
  .pcs-badge .pcs-ico { width: 32px; height: 32px; }
  .pcs-badge-title { font-size: 14px; }
  .pcs-badge-sub { font-size: 12px; }
  .pcs-sticky .pcs-sticky-btn { padding: 1rem 1.8rem; }
}
@media (max-width: 1100px) {
  .pcs-badges { display: none; }
}

/* ---- mobile: slim bar, no trust badges ---- */
@media (max-width: 767px) {
  .pcs-hide-mobile { display: none !important; }
  .pcs-badges { display: none !important; }


  .pcs-sticky-inner { padding: 8px 12px; gap: 10px; }
  .pcs-sticky-info { gap: 10px; flex: 0 1 auto; min-width: 0; }
  .pcs-sticky-thumb { width: 42px; height: 42px; border-radius: 0; }
  .pcs-sticky-save, .pcs-save, .pcs-sticky-sub { display: none; }
  .pcs-sticky-prices { margin-top: 0; gap: 7px; }
  .pcs-price-now { font-size: 18px; }
  .pcs-price-now .pcs-from { font-size: 11px; }
  .pcs-price-old { font-size: 12px; }

  /* default: product name (2 lines max) above the price */
  .pcs-m-name .pcs-sticky-info { flex: 1 1 auto; }
  .pcs-m-name .pcs-sticky-thumb { width: 46px; height: 46px; }
  .pcs-m-name .pcs-sticky-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    white-space: normal; font-size: 13px; font-weight: 500; line-height: 1.25;
  }
  .pcs-m-name .pcs-sticky-prices { margin-top: 2px; }

  /* slim: thumbnail, price and button only */
  .pcs-m-slim .pcs-sticky-title { display: none; }

  .pcs-sticky-actions { flex: 1 1 auto; gap: 8px; padding-left: 0; }
  .pcs-qty { height: 40px; }
  .pcs-qty-btn { width: 26px; }
  .pcs-qty-input { width: 32px; font-size: 14px; }

  .pcs-sticky .pcs-sticky-btn { padding: 0.8rem 1rem; font-size: 0.78rem; }
  /* with the name shown the button keeps its natural width; slim fills the row */
  .pcs-m-name .pcs-sticky-actions { flex: none; }
  .pcs-m-slim .pcs-sticky-btn { flex: 1 1 auto; width: 100%; }
}
