/* Related Products Pro — Frontend */
:root {
  --rppro-accent: #c8102e;
  --rppro-radius: 8px;
  --rppro-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ── Block wrapper ── */
.rppro-block {
  margin: 0 0 18px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Heading ── */
.rppro-heading {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--rppro-accent, #c8102e);
  text-transform: uppercase;
  letter-spacing: .02em;
}


/* ══════════════════════════════════════
   SIDEBAR LAYOUT — 1 column (widget)
══════════════════════════════════════ */
.rppro-grid-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Sidebar card: horizontal row (image left, info right) */
.rppro-layout-sidebar .rppro-item {
  flex-direction: row;
  align-items: stretch;
  border-radius: 7px;
}
.rppro-layout-sidebar .rppro-item-img {
  width: 80px;
  flex: 0 0 80px;
  border-bottom: none;
  border-right: 1px solid #f0f0f0;
  padding: 8px;
}
.rppro-layout-sidebar .rppro-item-img img {
  width: 100%;
  height: 64px;
  max-width: none;
}
.rppro-layout-sidebar .rppro-item-body {
  padding: 8px 10px;
  justify-content: center;
}
.rppro-layout-sidebar .rppro-item-name { font-size: 11.5px; -webkit-line-clamp: 2; }
.rppro-layout-sidebar .rppro-item-price { font-size: 12px; }
.rppro-layout-sidebar .rppro-btn { font-size: 10.5px; padding: 5px 8px; }

/* ── Product card (shared) ── */
.rppro-item {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: var(--rppro-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.rppro-item:hover {
  box-shadow: var(--rppro-shadow);
  border-color: #d0d0d0;
}

/* Image area */
.rppro-item-img {
  display: block;
  position: relative;
  background: var(--rppro-img-bg, #f8f8f8);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.rppro-item-img img {
  width: 100%;
  max-width: 120px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.rppro-sale {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--rppro-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Body */
.rppro-item-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
}
.rppro-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--rppro-heading-color, #111);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rppro-item-name:hover { color: var(--rppro-accent, #c8102e); }
.rppro-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--rppro-price-color, #c8102e);
  margin-top: 1px;
}
.rppro-item-price del { color: #aaa; font-weight: 400; font-size: 11px; }
.rppro-item-price ins { text-decoration: none; }
.rppro-item-foot { margin-top: auto; padding-top: 7px; }

/* ── Button ── */
.rppro-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 7px 10px;
  background: var(--rppro-btn-bg, #c8102e);
  color: var(--rppro-btn-color, #fff) !important;
  border: none;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .15s, opacity .15s;
  line-height: 1;
  box-sizing: border-box;
}
.rppro-btn:hover { background: var(--rppro-btn-hover, #a00d24); color: var(--rppro-btn-color, #fff) !important; }
.rppro-btn.rppro-adding { opacity: .65; cursor: wait; pointer-events: none; }
.rppro-btn.rppro-added  { background: #15803d !important; color: #fff !important; }
.rppro-btn-out { background: #f3f4f6; color: #374151 !important; }
.rppro-btn-out:hover { background: #e5e7eb; color: #111 !important; }

/* ── Hidden items (show-more) ── */
.rppro-item-hidden {
  display: none !important;
}

/* ── Show more / less toggle button ── */
.rppro-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 10px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  text-transform: none;
  letter-spacing: 0;
}
.rppro-toggle:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}
.rppro-toggle-icon {
  transition: transform .2s;
  flex-shrink: 0;
}
.rppro-toggle[aria-expanded="true"] .rppro-toggle-icon {
  transform: rotate(180deg);
}

/* ── Variable blocks ── */
.rppro-var-wrap  { width: 100%; }
.rppro-var-block { width: 100%; }
.rppro-var-specific { animation: rppro-fadein .2s ease; }
@keyframes rppro-fadein {
  from { opacity:0; transform:translateY(3px); }
  to   { opacity:1; transform:translateY(0); }
}


/* Theme CSS hardening */
.rppro-block,
.rppro-block *,
.rppro-var-wrap,
.rppro-var-block { box-sizing: border-box; }
.rppro-block img { max-width: 100%; }

.rppro-hidden{display:none !important;}
.rppro-item-revealed{display:flex !important;}
@media (max-width: 1024px){.rppro-block{display:none !important;}}
