/* =====================================================================
   1421 — Category page hero block. Rendered by custom_template/rp_category.tpl,
   loaded via the category controller addStyle(). Breadcrumb + two-column
   intro/hero-image + child-category cards (red hover).
   ===================================================================== */
.rp-cat-hero { --red:#db0f16; --ink:#1c1c1c; --muted:#5f5f5c; --line:#e6e3de;
  --panel:#f1f3ef; --thumb:#f5f4f1; --red-soft:#fdeff0;
  font-family:'Outfit',sans-serif; color:var(--ink);
  /* 1426 — subtle white -> cream gradient band above the filter + product area */
  background:linear-gradient(180deg, #ffffff 0%, #f8f6f2 100%);
  border-bottom:1px solid var(--line); padding:36px 0 46px; margin-bottom:28px; }
.rp-cat-hero * { box-sizing:border-box; }

/* breadcrumb */
.rp-cat-hero__crumb { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:0 0 30px; font-size:14px; }
.rp-cat-hero__crumb a { color:var(--muted); text-decoration:none; }
.rp-cat-hero__crumb a:hover { color:var(--red); }
.rp-cat-hero__crumb .current { color:var(--ink); font-weight:600; }
.rp-cat-hero__chev { color:#b9b6b0; flex:0 0 auto; }

/* two columns */
.rp-cat-hero__cols { display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center; }
.rp-cat-hero__title { margin:0; font-size:clamp(30px,3.6vw,50px); font-weight:800; line-height:1.05; letter-spacing:-.02em; }
.rp-cat-hero__desc { margin:18px 0 0; font-size:16px; line-height:1.6; color:var(--muted); max-width:52ch; }

.rp-cat-hero__media { display:flex; align-items:center; justify-content:center; overflow:hidden;
  min-height:440px; border:1px solid var(--line); border-radius:18px; background:var(--panel); }
.rp-cat-hero__media img { display:block; width:100%; height:100%; max-height:520px; object-fit:cover; }
.rp-cat-hero__placeholder { font-size:clamp(28px,3vw,44px); font-weight:800; color:var(--ink); letter-spacing:-.01em; }

/* child category cards */
.rp-cat-hero__subcats { display:grid; grid-template-columns:repeat(6,1fr); gap:16px; margin-top:40px; }
.rp-subcat { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid var(--line);
  border-radius:12px; background:#fff; text-decoration:none; color:var(--ink);
  transition:border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.rp-subcat:hover { border-color:var(--red); background:var(--red-soft); box-shadow:0 6px 18px rgba(219,15,22,.08); }
.rp-subcat__thumb { flex:0 0 auto; display:flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:9px; background:var(--thumb); overflow:hidden; }
.rp-subcat__thumb img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.rp-subcat__label { font-size:14px; font-weight:700; line-height:1.25; color:var(--ink); }

/* responsive */
@media (max-width:1100px){ .rp-cat-hero__subcats { grid-template-columns:repeat(3,1fr); } }
@media (max-width:900px){
  .rp-cat-hero__cols { grid-template-columns:1fr; gap:26px; }
  .rp-cat-hero__media { min-height:280px; }
}
@media (max-width:600px){ .rp-cat-hero__subcats { grid-template-columns:repeat(2,1fr); } }
@media (max-width:400px){ .rp-cat-hero__subcats { grid-template-columns:1fr; } }

/* =====================================================================
   1424 — Article-list product card. Rendered by rp_category.tpl (product
   loop), data from model/extension/module/rp_productcard. 3 columns:
   image (+discount/wishlist) | identity/specs/price-breaks | buy panel.
   ===================================================================== */
.rp-cards { --red:#db0f16; --red-dark:#b50c12; --ink:#1c1c1c; --muted:#6b6b68;
  --line:#e6e3de; --panel:#f5f4f1; --red-soft:#fdeff0; --green:#1a8a3c;
  font-family:'Outfit',sans-serif; color:var(--ink); display:flex; flex-direction:column; gap:20px; margin:26px 0 8px; }
.rp-cards * { box-sizing:border-box; }

.rp-card { display:grid; grid-template-columns:220px 1fr 264px; grid-template-areas:"media body buy";
  gap:26px; padding:22px; border:1px solid var(--line); border-radius:16px; background:#fff;
  transition:box-shadow .18s ease, border-color .18s ease; }
.rp-card:hover { box-shadow:0 10px 30px rgba(20,18,18,.08); border-color:#d8d4cd; }

/* ---- column 1 : media ---- */
.rp-card__media { grid-area:media; position:relative; }
.rp-card__imglink { display:flex; align-items:center; justify-content:center; aspect-ratio:1 / 1; width:100%;
  background:var(--panel); border-radius:14px; overflow:hidden; }
.rp-card__img { display:block; width:100%; height:100%; object-fit:contain; }
.rp-card__disc { position:absolute; top:12px; left:12px; z-index:2; background:var(--red); color:#fff;
  font-weight:700; font-size:14px; line-height:1; padding:7px 10px; border-radius:8px; letter-spacing:.01em; }
.rp-card__wish { position:absolute; top:10px; right:10px; z-index:2; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--line); background:#fff; color:#4a4a48; cursor:pointer; font-size:16px;
  display:flex; align-items:center; justify-content:center; transition:all .15s ease; box-shadow:0 2px 6px rgba(0,0,0,.06); }
.rp-card__wish:hover { color:var(--red); border-color:var(--red); }

/* ---- column 2 : body ---- */
.rp-card__body { grid-area:body; min-width:0; }
.rp-card__eyebrow { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; font-size:12.5px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; color:#8a8a86; margin-bottom:8px; }
.rp-card__code, .rp-card__sku, .rp-card__type { white-space:nowrap; }
.rp-card__sep { color:#c4c1bb; }
.rp-card__type { color:#8a8a86; }
.rp-card__title { margin:0 0 14px; font-size:22px; line-height:1.22; font-weight:700; letter-spacing:-.01em; }
.rp-card__title a { color:var(--ink); text-decoration:none; }
.rp-card__title a:hover { color:var(--red); }
.rp-card__specs { display:flex; flex-wrap:wrap; gap:6px 22px; font-size:15px; color:var(--muted); margin-bottom:18px; }
.rp-card__specs b { color:var(--ink); font-weight:600; }
.rp-card__specs-break { flex-basis:100%; }

.rp-card__prices { width:100%; border-collapse:collapse; font-size:14.5px; }
.rp-card__prices th { text-align:left; font-weight:600; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
  color:#8a8a86; padding:11px 14px; background:#f7f7f5; border-bottom:1px solid var(--line); }
.rp-card__prices th span { text-transform:none; letter-spacing:0; font-weight:500; color:#a2a09b; }
.rp-card__prices th:first-child { border-top-left-radius:10px; }
.rp-card__prices th:last-child { border-top-right-radius:10px; }
.rp-card__prices td { padding:12px 14px; border-bottom:1px solid #efede9; }
.rp-card__prices tr:last-child td { border-bottom:0; }
.rp-card__prices tr.is-active td { background:var(--red-soft); color:var(--red); font-weight:700; }

/* ---- column 3 : buy ---- */
.rp-card__buy { grid-area:buy; border-left:1px dashed #dcd8d1; padding-left:26px; display:flex; flex-direction:column; align-items:flex-start; }
.rp-stk { display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:600; }
.rp-stk::before { content:""; width:9px; height:9px; border-radius:50%; background:currentColor; }
.rp-stk--in { color:var(--green); }
.rp-stk--low { color:#c77700; }
.rp-stk--out { color:var(--red); }
.rp-card__pricebox { margin:14px 0 4px; }
.rp-card__unit { display:block; font-size:34px; font-weight:800; letter-spacing:-.02em; line-height:1; }
.rp-card__unit-lbl { display:block; margin-top:6px; font-size:13px; color:var(--muted); }
.rp-card__qtyrow { width:100%; margin-top:18px; }
.rp-card__qty-lbl { display:block; font-size:12.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:#8a8a86; margin-bottom:7px; }
.rp-card__qtygrp { display:flex; gap:8px; width:100%; }
.rp-card__qty { width:74px; flex:0 0 74px; height:46px; text-align:center; font-size:16px; font-weight:600;
  border:1px solid var(--line); border-radius:10px; color:var(--ink); -moz-appearance:textfield; appearance:textfield; }
.rp-card__qty::-webkit-outer-spin-button,
.rp-card__qty::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.rp-card__qty:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-soft); }
.rp-card__add { flex:1 1 auto; height:46px; border:0; border-radius:10px; background:var(--red); color:#fff;
  font-family:inherit; font-size:15px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center;
  justify-content:center; gap:8px; transition:background .15s ease; }
.rp-card__add:hover { background:var(--red-dark); }
.rp-card__notify { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; height:46px;
  border:0; border-radius:10px; background:var(--red); color:#fff; font-family:inherit; font-size:15px; font-weight:700;
  text-decoration:none; cursor:pointer; transition:background .15s ease; }
.rp-card__notify:hover { background:var(--red-dark); color:#fff; }
.rp-card__lowstock { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:100%; margin-top:10px;
  height:42px; border:1px solid var(--line); border-radius:10px; background:#fff; color:#a8620a; font-family:inherit;
  font-size:13.5px; font-weight:600; cursor:pointer; transition:all .15s ease; }
.rp-card__lowstock:hover { border-color:#c77700; color:#c77700; background:#fff9f0; }

/* --- shared stock modals (Notify / Low Stock Request) --- */
body.rp-modal-open { overflow:hidden; }
.rp-modal { --red:#db0f16; --red-dark:#b50c12; --ink:#1c1c1c; --muted:#6b6b68; --line:#e6e3de; --red-soft:#fdeff0;
  position:fixed; inset:0; z-index:3000; display:flex; align-items:center; justify-content:center; padding:20px;
  font-family:'Outfit',sans-serif; }
.rp-modal[hidden] { display:none; }
.rp-modal * { box-sizing:border-box; }
.rp-modal__backdrop { position:absolute; inset:0; background:rgba(20,18,18,.55); }
.rp-modal__dialog { position:relative; z-index:1; width:100%; max-width:430px; background:#fff; border-radius:16px;
  padding:26px 26px 28px; box-shadow:0 24px 60px rgba(0,0,0,.30); max-height:calc(100vh - 40px); overflow-y:auto; }
.rp-modal__x { position:absolute; top:10px; right:14px; border:0; background:none; font-size:26px; line-height:1;
  color:#9a978f; cursor:pointer; }
.rp-modal__x:hover { color:var(--ink); }
.rp-modal__title { margin:0 0 4px; font-size:21px; font-weight:800; letter-spacing:-.01em; color:var(--ink); }
.rp-modal__sub { margin:0 0 12px; font-size:14px; font-weight:600; color:var(--red); }
.rp-modal__sub:empty { display:none; }
.rp-modal__lead { margin:0 0 18px; font-size:14px; line-height:1.5; color:var(--muted); }
.rp-field { margin-bottom:14px; }
.rp-field label { display:block; font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  color:#8a8a86; margin-bottom:6px; }
.rp-field input { width:100%; height:46px; padding:0 14px; font-family:inherit; font-size:15px; color:var(--ink);
  border:1px solid var(--line); border-radius:10px; background:#fff; }
.rp-field input:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-soft); }
.rp-field.has-error input { border-color:var(--red); background:var(--red-soft); }
.rp-modal__msg { margin:2px 0 14px; font-size:14px; line-height:1.45; padding:11px 13px; border-radius:9px; }
.rp-modal__msg[hidden] { display:none; }
.rp-modal__msg.is-ok { background:#eaf7ee; color:#1a7a37; }
.rp-modal__msg.is-err { background:var(--red-soft); color:var(--red-dark); }
.rp-modal__submit { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; height:48px;
  border:0; border-radius:10px; background:var(--ink); color:#fff; font-family:inherit; font-size:15px; font-weight:700;
  cursor:pointer; transition:background .15s ease; }
.rp-modal__submit:hover { background:#000; }
.rp-modal__submit:disabled { opacity:.6; cursor:default; }
.rp-modal__submit--notify { background:var(--red); }
.rp-modal__submit--notify:hover { background:var(--red-dark); }
.rp-card__sample { width:100%; margin-top:12px; height:46px; border:1px solid var(--line); border-radius:10px;
  background:#fff; color:var(--ink); font-family:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:all .15s ease; }
.rp-card__sample:hover { border-color:var(--ink); background:#faf9f7; }

/* ---- responsive ---- */
@media (max-width:1099px) {
  .rp-card { grid-template-columns:190px 1fr; grid-template-areas:"media body" "buy buy"; }
  .rp-card__buy { border-left:0; border-top:1px dashed #dcd8d1; padding-left:0; padding-top:20px; margin-top:18px; flex-direction:row; flex-wrap:wrap; align-items:center; gap:16px 26px; }
  .rp-card__pricebox { margin:0; }
  .rp-card__qtyrow { flex:1 1 260px; margin-top:0; }
}
@media (max-width:600px) {
  .rp-card { grid-template-columns:1fr; grid-template-areas:"media" "body" "buy"; gap:18px; padding:16px; }
  .rp-card__media { max-width:320px; }
  .rp-card__unit { font-size:30px; }
  .rp-card__prices { font-size:13.5px; }
  .rp-card__prices th, .rp-card__prices td { padding:10px 10px; }
}

/* =====================================================================
   1422 — List tool bar (product count + Sort by). Rendered by rp_category.tpl
   above the product cards.
   ===================================================================== */
.rp-toolbar { --red:#db0f16; --ink:#1c1c1c; --muted:#6b6b68; --line:#e6e3de; --red-soft:#fdeff0;
  display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap;
  margin:24px 0 6px; font-family:'Outfit',sans-serif; }
.rp-toolbar__count { margin:0; font-size:15px; color:var(--muted); }
.rp-toolbar__count strong { color:var(--ink); font-weight:700; }
.rp-toolbar__sort { display:flex; align-items:center; gap:12px; }
.rp-toolbar__sort-lbl { margin:0; font-size:15px; color:var(--muted); white-space:nowrap; }
.rp-toolbar__select { position:relative; }
.rp-toolbar__select select { appearance:none; -webkit-appearance:none; -moz-appearance:none;
  font-family:inherit; font-size:14.5px; font-weight:600; color:var(--ink); background:#fff;
  border:1px solid var(--line); border-radius:11px; padding:11px 42px 11px 16px; min-width:190px;
  cursor:pointer; transition:border-color .15s ease, box-shadow .15s ease; }
.rp-toolbar__select select:hover { border-color:#d0ccc4; }
.rp-toolbar__select select:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-soft); }
.rp-toolbar__select::after { content:""; position:absolute; right:17px; top:50%; width:8px; height:8px;
  border-right:2px solid #8a8a86; border-bottom:2px solid #8a8a86; transform:translateY(-70%) rotate(45deg);
  pointer-events:none; }

@media (max-width:600px) {
  .rp-toolbar { gap:12px; }
  .rp-toolbar__sort { width:100%; justify-content:space-between; }
  .rp-toolbar__select { flex:1 1 auto; }
  .rp-toolbar__select select { width:100%; min-width:0; }
}

/* =====================================================================
   1426 — Pagination block. Rendered by rp_category.tpl (custom boxed pager):
   "Page X of Y" left, boxed numbers + prev/next arrows right, active red.
   ===================================================================== */
.rp-pager { --red:#db0f16; --ink:#1c1c1c; --muted:#6b6b68; --line:#e6e3de;
  display:flex; align-items:center; justify-content:space-between; gap:16px 20px; flex-wrap:wrap;
  margin:44px 0 10px; font-family:'Outfit',sans-serif; }
.rp-pager__info { font-size:15px; color:var(--muted); }
.rp-pager__info strong { color:var(--ink); font-weight:700; }
.rp-pager__nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rp-pg { display:inline-flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 7px;
  border:1px solid var(--line); border-radius:11px; background:#fff; color:var(--ink); font-size:15px; font-weight:600;
  text-decoration:none; cursor:pointer; transition:border-color .15s ease, background .15s ease, color .15s ease; }
a.rp-pg:hover { border-color:var(--ink); }
.rp-pg.is-active { background:var(--red); border-color:var(--red); color:#fff; cursor:default; }
.rp-pg--arrow { color:#5f5f5c; }
.rp-pg--arrow svg { display:block; }
a.rp-pg--arrow:hover { border-color:var(--ink); color:var(--ink); }
.rp-pg--arrow.is-disabled { color:#cbc8c2; background:#faf9f7; border-color:var(--line); cursor:default; }
.rp-pg--dots { min-width:28px; border-color:transparent; background:transparent; color:#a2a09b; cursor:default; }

@media (max-width:600px) {
  .rp-pager { justify-content:center; }
  .rp-pager__nav { width:100%; justify-content:center; order:1; }
  .rp-pager__info { width:100%; text-align:center; order:2; }
  .rp-pg { min-width:40px; height:40px; font-size:14px; }
}

/* =====================================================================
   1423B — AJAX filter swap: loading state + no-results on #rp-product-area.
   ===================================================================== */
#rp-product-area { position:relative; transition:opacity .15s ease; }
#rp-product-area.rp-loading { opacity:.45; pointer-events:none; }
#rp-product-area.rp-loading::after { content:""; position:absolute; top:60px; left:50%; width:34px; height:34px;
  margin-left:-17px; border-radius:50%; border:3px solid #e6e3de; border-top-color:#db0f16;
  animation:rp-spin .7s linear infinite; }
@keyframes rp-spin { to { transform:rotate(360deg); } }
.rp-noresults { font-family:'Outfit',sans-serif; color:#1c1c1c; font-size:16px; padding:34px 4px; }
.rp-noresults__clear { margin-left:6px; border:0; background:none; color:#db0f16; font-family:inherit; font-size:16px;
  font-weight:700; cursor:pointer; text-decoration:underline; padding:0; }

/* =====================================================================
   1427 — Category description block. Rendered by rp_category.tpl in its own
   full-width section + inner .container, below the product area. Classes are
   hooks for future styling; base styling kept minimal + readable.
   ===================================================================== */
.rp-cat-desc { font-family:'Outfit',sans-serif; padding:6px 0 46px; }
.rp-cat-desc__body { color:#4a4a48; font-size:15px; line-height:1.7; }
.rp-cat-desc__body > *:first-child { margin-top:0; }
.rp-cat-desc__body h2, .rp-cat-desc__body h3, .rp-cat-desc__body h4 { color:#1c1c1c; font-weight:700; letter-spacing:-.01em; margin:1.4em 0 .5em; }
.rp-cat-desc__body a { color:#db0f16; }

/* =====================================================================
   1430 — Search page: hero variant (breadcrumb + searched term only, no
   media/subcategories). Reuses the category card/toolbar/pager styling.
   ===================================================================== */
.rp-cat-hero--search { padding-bottom:34px; }
.rp-cat-hero__intro--search { max-width:none; }
.rp-cat-hero__eyebrow { display:block; font-size:12px; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--muted); margin:0 0 10px; }
.rp-search-empty { font-family:'Outfit',sans-serif; font-size:16px; color:#5f5f5c; padding:20px 0; }
