/* ============================================================
   servak.com.ua redesign (Figma: servak.com.ua Главная страница)
   Design tokens + component styles. Bootstrap 3 grid is still
   loaded for legacy pages; everything visual is overridden here.
   ============================================================ */

:root {
  --c-primary: #765cf3;
  --c-primary-dark: #5f47d6;
  --c-primary-light: #f1eefe;
  --c-text: #343234;
  --c-text-soft: #606060;
  --c-muted: #9b9b9b;
  --c-border: #e4e4e4;
  --c-bg: #f6f6f6;
  --c-danger: #fe3e42;
  --c-star: #765cf3;
  --radius: 6px;
  --shadow-card: 0 8px 24px rgba(52, 50, 52, 0.10);
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- base ---------- */
html { font-size: 15px; }
body {
  font-family: var(--font);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.55;
  background: #fff;
}
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--c-text); }
h1 { font-size: 34px; font-weight: 500; margin: 18px 0 22px; }
h2 { font-size: 26px; font-weight: 500; }
h3 { font-size: 19px; font-weight: 600; }
a { color: var(--c-primary); }
a:hover, a:focus { color: var(--c-primary-dark); text-decoration: none; }
img { max-width: 100%; }
/* Wider desktop: the redesign is drawn on a 1920 frame, so 1230 was cramping it.
   bootstrap pins .container to a fixed width (740/960/1160) inside media queries, and
   an unconditional rule here does not beat those, so match them with a query of our
   own — it loads later, so it wins at every one of those breakpoints. */
.container { max-width: 1600px; }
@media (min-width: 768px) { .container { width: 100%; max-width: 1600px; } }

::selection { background: var(--c-primary); color: #fff; }

/* ---------- buttons ---------- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.rd-btn--primary { background: var(--c-primary); color: #fff; }
.rd-btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.rd-btn--outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary); }
.rd-btn--outline:hover { background: var(--c-primary-light); }
.rd-btn--ghost { background: transparent; color: var(--c-text-soft); border-color: var(--c-border); }
.rd-btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.rd-btn[disabled] { opacity: .45; cursor: not-allowed; }
.rd-btn--sm { padding: 7px 16px; font-size: 14px; }

/* square icon button (add to cart on cards) */
.rd-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--c-primary); color: #fff; border: 0;
  cursor: pointer; font-size: 17px;
  transition: background .15s;
}
.rd-iconbtn:hover { background: var(--c-primary-dark); color: #fff; }
.rd-iconbtn[disabled] { background: #cfc9f5; cursor: not-allowed; }
.rd-iconbtn--ghost { background: #fff; color: var(--c-primary); border: 1px solid var(--c-border); }
.rd-iconbtn--ghost:hover { background: var(--c-primary); color: #fff; }
.rd-brand { opacity: .75; transition: opacity .15s; }
.rd-brand:hover { opacity: 1; }
.rd-select--limit { max-width: 170px; }

/* ---------- forms ---------- */
.rd-input, .rd-select,
.form-control {
  font-family: var(--font);
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: none;
  color: var(--c-text);
  font-size: 14px;
}
.rd-input:focus, .rd-select:focus, .form-control:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(118, 92, 243, .15);
  outline: none;
}
.rd-input { width: 100%; padding: 0 14px; }
.rd-select { width: 100%; padding: 0 34px 0 12px; appearance: none; background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606060' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* ---------- header ---------- */
.rd-topbar {
  font-size: 13.5px;
  color: var(--c-text-soft);
  border-bottom: 1px solid var(--c-border);
}
.rd-topbar__in {
  display: flex; align-items: center; gap: 22px;
  min-height: 44px;
}
.rd-topbar a { color: var(--c-text-soft); text-decoration: none; }
.rd-topbar a:hover { color: var(--c-primary); }
.rd-topbar .calc-link { color: var(--c-primary); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }

.rd-drop { position: relative; }
.rd-drop > button {
  background: none; border: 0; font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 4px 0;
}
.rd-drop > button .fa-angle-down { color: var(--c-muted); transition: transform .15s; }
.rd-drop.open > button .fa-angle-down { transform: rotate(180deg); }
.rd-drop__menu {
  position: absolute; top: 100%; left: 0; z-index: 1030;
  min-width: 160px; max-height: 420px; overflow-y: auto;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 6px 0; margin-top: 6px;
  display: none;
  list-style: none;
}
.rd-drop.open .rd-drop__menu { display: block; }
.rd-drop__menu li a, .rd-drop__menu li button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 7px 16px; font-size: 14px; color: var(--c-text); cursor: pointer; text-decoration: none;
}
.rd-drop__menu li a:hover, .rd-drop__menu li button:hover { background: var(--c-primary-light); color: var(--c-primary); }

.rd-header { border-bottom: 1px solid var(--c-border); }
.rd-header__in {
  display: flex; align-items: center; gap: 26px;
  min-height: 74px;
}
.rd-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.rd-header__logo img { height: 40px; width: auto; }
.rd-header__search { flex: 1 1 auto; position: relative; }
.rd-header__actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.rd-action {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  color: var(--c-text-soft); font-size: 11.5px; gap: 2px; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.rd-action .fa { font-size: 19px; }
.rd-action:hover { color: var(--c-primary); text-decoration: none; }
.rd-action__count {
  position: absolute; top: -6px; right: -9px;
  background: var(--c-primary); color: #fff;
  font-size: 10.5px; font-weight: 600; line-height: 1;
  border-radius: 9px; padding: 3px 5.5px; min-width: 17px; text-align: center;
}

.rd-navrow { border-bottom: 1px solid var(--c-border); }
.rd-navrow__in { display: flex; align-items: center; gap: 26px; min-height: 54px; }
.rd-catbtn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--c-text);
  background: none; border: 0; cursor: pointer; padding: 8px 0;
}
.rd-catbtn .fa { color: var(--c-primary); font-size: 17px; }
.rd-mainmenu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; flex: 1; }
.rd-mainmenu a { color: var(--c-text); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.rd-mainmenu a:hover { color: var(--c-primary); }
.rd-phone { position: relative; font-weight: 600; font-size: 15px; white-space: nowrap; }
.rd-phone > button { background: none; border: 0; font: inherit; color: var(--c-text); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.rd-phone .rd-drop__menu { left: auto; right: 0; min-width: 220px; }
.rd-phone .rd-drop__menu .muted { color: var(--c-muted); font-size: 12.5px; padding: 4px 16px; }

/* catalog dropdown (mega) */
.rd-catmenu {
  position: absolute; z-index: 1040;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 300px; padding: 8px 0; margin-top: 4px;
}
.rd-catmenu ul { list-style: none; margin: 0; padding: 0; }
.rd-catmenu > ul > li { position: relative; }
.rd-catmenu > ul > li > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 18px; color: var(--c-text); font-size: 14.5px; text-decoration: none;
}
.rd-catmenu > ul > li > a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.rd-catmenu .sub {
  display: none; position: absolute; left: 100%; top: -8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); min-width: 280px; padding: 8px 0;
}
.rd-catmenu > ul > li:hover .sub { display: block; }
.rd-catmenu .sub a { display: block; padding: 8px 18px; color: var(--c-text); font-size: 14px; text-decoration: none; }
.rd-catmenu .sub a:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* search */
.search-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1050;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); margin-top: 4px; padding: 0; list-style: none;
  max-height: 420px; overflow-y: auto;
}
.search-suggest li a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--c-text); text-decoration: none; }
.search-suggest li + li a { border-top: 1px solid #f3f3f3; }
.search-suggest .image { flex: 0 0 40px; }
.search-suggest .name { flex: 1; font-size: 13.5px; }
.search-suggest .price { font-weight: 600; white-space: nowrap; }
.search-suggest li a:hover { background: var(--c-primary-light); }

/* ---------- breadcrumbs ---------- */
.breadcrumb {
  background: none; padding: 14px 0 0; margin-bottom: 4px; font-size: 13px;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb > li + li:before { content: "→"; color: var(--c-muted); padding: 0 7px; }
.breadcrumb > .active { color: var(--c-text-soft); }

/* ---------- product card ---------- */
.rd-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column;
  height: 100%;
  transition: box-shadow .18s, border-color .18s;
}
.rd-card:hover { box-shadow: var(--shadow-card); border-color: transparent; z-index: 2; }
.rd-card__imgwrap { position: relative; text-align: center; margin-bottom: 12px; }
.rd-card__imgwrap img { max-height: 180px; width: auto; display: inline-block; }
.rd-card__discount {
  position: absolute; top: 0; left: 0;
  background: var(--c-danger); color: #fff;
  font-size: 12.5px; font-weight: 600; border-radius: 4px; padding: 3px 8px;
}
.rd-card__fav {
  position: absolute; top: 0; right: 0;
  background: none; border: 0; color: var(--c-muted); font-size: 17px; cursor: pointer;
}
.rd-card__fav:hover { color: var(--c-primary); }
.rd-card__stars { color: var(--c-star); font-size: 12.5px; margin-bottom: 7px; }
.rd-card__stars .muted { color: var(--c-muted); margin-left: 6px; font-size: 12px; }
.rd-card__name {
  font-size: 14.5px; font-weight: 500; line-height: 1.4;
  color: var(--c-text); text-decoration: underline; text-decoration-color: rgba(52,50,52,.35);
  display: block; margin-bottom: 10px; min-height: 40px;
}
.rd-card__name:hover { color: var(--c-primary); text-decoration-color: var(--c-primary); }
.rd-card__specs { list-style: none; margin: 0 0 12px; padding: 0; font-size: 12.5px; color: var(--c-text-soft); flex: 1; }
.rd-card__specs li { display: flex; gap: 7px; align-items: baseline; padding: 2.5px 0; }
.rd-card__specs .fa { color: var(--c-muted); font-size: 11px; flex: 0 0 13px; }
.rd-card__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.rd-card__price { font-size: 18px; font-weight: 600; }
.rd-card__price .old { display: block; font-size: 13px; color: var(--c-muted); text-decoration: line-through; font-weight: 400; }
.rd-card__price .curr { font-weight: 600; }
.rd-card__price.danger { color: var(--c-danger); }
.rd-card__stock { font-size: 12px; color: var(--c-muted); }

/* grid of cards */
.rd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .rd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rd-grid { grid-template-columns: 1fr; } }
.rd-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .rd-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .rd-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rd-grid--4 { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.rd-section { margin: 44px 0; }
.rd-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.rd-section__head h2 { margin: 0; }
.rd-section__head .all { font-size: 14px; color: var(--c-text-soft); text-decoration: none; }
.rd-section__head .all:hover { color: var(--c-primary); }

/* carousel row */
.rd-row { position: relative; }
.rd-row__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px;
}
.rd-row__track::-webkit-scrollbar { display: none; }
.rd-row__track > * { flex: 0 0 282px; }
.rd-row__nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-border);
  color: var(--c-text); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.09);
}
.rd-row__nav:hover { color: var(--c-primary); border-color: var(--c-primary); }
.rd-row__nav.prev { left: -14px; }
.rd-row__nav.next { right: -14px; }

/* ---------- hero ---------- */
.rd-hero { display: flex; gap: 24px; margin-top: 18px; }
.rd-hero__menu { flex: 0 0 296px; }
.rd-hero__slider { flex: 1; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-bg); }
.rd-hero__slider img { width: 100%; display: block; }
.rd-hero__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.rd-hero__dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.rd-hero__dots span.active { background: var(--c-primary); }
.rd-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); color: var(--c-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rd-hero__nav:hover { background: #fff; color: var(--c-primary); }
.rd-hero__nav.prev { left: 12px; }
.rd-hero__nav.next { right: 12px; }

/* static category menu (home, left of slider) */
.rd-sidemenu { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 6px 0; }
.rd-sidemenu ul { list-style: none; margin: 0; padding: 0; }
.rd-sidemenu > ul > li { position: relative; }
.rd-sidemenu > ul > li > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9.5px 18px; color: var(--c-text); font-size: 14px; font-weight: 500; text-decoration: none;
}
.rd-sidemenu > ul > li > a:hover { color: var(--c-primary); background: var(--c-primary-light); }
.rd-sidemenu .sub {
  display: none; position: absolute; left: 100%; top: -6px; z-index: 1035;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); min-width: 280px; padding: 8px 0;
}
.rd-sidemenu > ul > li:hover .sub { display: block; }
.rd-sidemenu .sub a { display: block; padding: 8px 18px; color: var(--c-text); font-size: 14px; text-decoration: none; }
.rd-sidemenu .sub a:hover { background: var(--c-primary-light); color: var(--c-primary); }

/* advantages */
.rd-adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .rd-adv { grid-template-columns: 1fr; } }
.rd-adv__item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px;
}
.rd-adv__item .fa { font-size: 26px; color: var(--c-primary); flex: 0 0 34px; margin-top: 3px; }
.rd-adv__item b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.rd-adv__item p { margin: 0; font-size: 13px; color: var(--c-text-soft); }

/* reviews */
.rd-review { background: var(--c-bg); border-radius: var(--radius); padding: 22px; height: 100%; }
.rd-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rd-review__head img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.rd-review__head b { font-size: 14.5px; }
.rd-review p { font-size: 13.5px; color: var(--c-text-soft); margin: 0; }

/* video tile */
.rd-video { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.rd-video img { width: 100%; display: block; filter: brightness(.82); }
.rd-video:after {
  content: "\f04b"; font-family: FontAwesome;
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 4px;
}
.rd-video span {
  display: block; padding: 10px 2px 0; font-size: 13px; color: var(--c-text); line-height: 1.45;
}

/* FAQ accordion */
.rd-faq { border-top: 1px solid var(--c-border); }
.rd-faq__item { border-bottom: 1px solid var(--c-border); }
.rd-faq__q {
  width: 100%; text-align: left; background: none; border: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 4px; font-size: 15px; font-weight: 500; color: var(--c-text); cursor: pointer;
}
.rd-faq__q .fa { color: var(--c-primary); transition: transform .18s; }
.rd-faq__item.open .rd-faq__q .fa { transform: rotate(45deg); }
.rd-faq__a { display: none; padding: 0 4px 18px; color: var(--c-text-soft); font-size: 14px; }
.rd-faq__item.open .rd-faq__a { display: block; }

/* brands strip */
.rd-brands { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: space-between; opacity: .75; }
.rd-brands img { max-height: 44px; filter: grayscale(1); }

/* ---------- footer ---------- */
.rd-footer { border-top: 1px solid var(--c-border); margin-top: 56px; font-size: 14px; }
.rd-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 38px 0 30px; }
@media (max-width: 860px) { .rd-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .rd-footer__cols { grid-template-columns: 1fr; } }
.rd-footer__cols b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.rd-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.rd-footer__cols li { padding: 4.5px 0; }
.rd-footer__cols a { color: var(--c-text-soft); text-decoration: none; }
.rd-footer__cols a:hover { color: var(--c-primary); }
.rd-footer__phone { font-weight: 600; color: var(--c-text) !important; }
.rd-footer__soc { display: flex; gap: 14px; margin-top: 10px; }
.rd-footer__soc a { font-size: 17px; color: var(--c-text-soft); }
.rd-footer__bottom {
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 13px; color: var(--c-muted);
}
.rd-footer__bottom img { height: 30px; }

/* ---------- filters (catalog) ---------- */
.rd-filter { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px 18px 14px; margin-bottom: 18px; background: #fff; }
.rd-filter__title {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14.5px; padding: 12px 0; cursor: pointer;
}
.rd-filter__title .fa { color: var(--c-muted); }
.rd-filter ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.rd-filter li { padding: 4px 0; }
.rd-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--c-text-soft); cursor: pointer; text-decoration: none; }
.rd-check:hover { color: var(--c-primary); text-decoration: none; }
.rd-check .box {
  flex: 0 0 17px; height: 17px; border: 1.5px solid var(--c-border); border-radius: 4px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff;
}
.rd-check.active { color: var(--c-text); font-weight: 500; }
.rd-check.active .box { background: var(--c-primary); border-color: var(--c-primary); }
.rd-check .cnt { margin-left: auto; color: var(--c-muted); font-size: 12px; }

.rd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.rd-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--c-border); border-radius: 18px;
  padding: 6px 14px; font-size: 13px; color: var(--c-text-soft); text-decoration: none;
}
.rd-chip .fa { font-size: 11px; color: var(--c-muted); }
.rd-chip:hover { border-color: var(--c-danger); color: var(--c-danger); text-decoration: none; }
.rd-chip:hover .fa { color: var(--c-danger); }
.rd-chip--reset { color: var(--c-danger); border-color: rgba(254,62,66,.4); }

/* sort bar */
.rd-sortbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.rd-sortbar .found { color: var(--c-muted); font-size: 13.5px; }
.rd-sortbar select { max-width: 260px; }

/* pagination */
.rd-pages { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 10px; }
.rd-pages a, .rd-pages span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 14px; text-decoration: none; padding: 0 6px;
}
.rd-pages a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.rd-pages .active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.rd-pages .dots { border: 0; }
.rd-showmore { display: block; width: 100%; margin-top: 26px; }

/* ---------- product page ---------- */
.rd-product { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
@media (max-width: 991px) { .rd-product { grid-template-columns: 1fr; } }
.rd-product__main { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 1200px) { .rd-product__main { grid-template-columns: 1fr; } }

.rd-gallery { position: sticky; top: 16px; }
.rd-gallery__main { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; text-align: center; position: relative; }
.rd-gallery__main .zoom-box img { max-height: 420px; width: auto; margin: 0 auto; }
.rd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rd-gallery__thumbs a {
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px; width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
}
.rd-gallery__thumbs a.active { border-color: var(--c-primary); }
.rd-gallery__dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.rd-gallery__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--c-border); cursor: pointer; }
.rd-gallery__dots span.active { background: var(--c-primary); }

.rd-config .opt { border-bottom: 1px solid var(--c-border); padding: 13px 0; }
.rd-config .opt label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.rd-config .opt .rd-select { height: 40px; font-size: 13.5px; }

.rd-buybox {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 22px; position: sticky; top: 16px; background: #fff;
}
.rd-buybox__label { color: var(--c-muted); font-size: 13px; }
.rd-buybox__price { font-size: 28px; font-weight: 600; margin: 2px 0 14px; }
.rd-buybox__price .curr { font-size: 22px; }
.rd-buybox__row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rd-qty { display: inline-flex; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.rd-qty button { width: 34px; height: 40px; background: #fff; border: 0; cursor: pointer; color: var(--c-text-soft); font-size: 15px; }
.rd-qty input { width: 44px; border: 0; text-align: center; font-size: 14px; outline: none; }
.rd-buybox__links { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13.5px; }
.rd-buybox__links li { padding: 5px 0; display: flex; gap: 9px; align-items: center; color: var(--c-text-soft); }
.rd-buybox__links .fa { color: var(--c-primary); width: 17px; }
.rd-buybox__stock { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.rd-buybox__stock.ok { color: #27a844; }
.rd-buybox__stock.no { color: var(--c-danger); }

/* tabs */
.rd-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--c-border); margin: 36px 0 24px; overflow-x: auto; }
.rd-tabs button {
  background: none; border: 0; padding: 12px 2px; font-size: 14.5px; font-weight: 500;
  color: var(--c-text-soft); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.rd-tabs button.active { color: var(--c-text); border-bottom-color: var(--c-primary); }

/* spec table */
.rd-specs { width: 100%; font-size: 14px; }
.rd-specs tr { border-bottom: 1px solid #f0f0f0; }
.rd-specs td { padding: 9px 8px 9px 0; vertical-align: top; }
.rd-specs td:first-child { color: var(--c-muted); width: 42%; }

/* ---------- legacy bootstrap overrides (not-yet-reworked pages) ---------- */
.btn-primary, .btn-danger {
  background: var(--c-primary); border-color: var(--c-primary);
  border-radius: var(--radius); font-family: var(--font);
}
.btn-primary:hover, .btn-primary:focus, .btn-danger:hover, .btn-danger:focus {
  background: var(--c-primary-dark); border-color: var(--c-primary-dark);
}
.btn-default { border-radius: var(--radius); font-family: var(--font); }
.well { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: none; }
.panel { border-color: var(--c-border); border-radius: var(--radius); box-shadow: none; }
.label-success, .alert-success { background-color: #e8f7ee; color: #27a844; border-color: #d3efdd; }
.text-danger { color: var(--c-danger); }
.dropdown-menu { border-radius: var(--radius); border-color: var(--c-border); box-shadow: var(--shadow-card); font-family: var(--font); }
.red-links a { color: var(--c-primary); }

/* seo text block below listings */
.rd-seotext {
  margin: 34px 0 10px; padding-top: 24px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-soft); font-size: 14px;
}
.rd-seotext h2, .rd-seotext h3 { font-size: 18px; }

/* legacy tables (cart, checkout, specs on old pages) */
.table, .table-bordered, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td,
.table > thead > tr > td, .table > tbody > tr > td { border-color: var(--c-border); }
.table > thead > tr > td { font-weight: 600; background: var(--c-bg); font-size: 13.5px; }
.table > tbody > tr > td { vertical-align: middle; }

/* legacy tabs (if any remain) */
.nav-tabs { border-bottom-color: var(--c-border); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
  border-color: var(--c-border); border-bottom-color: transparent; color: var(--c-text);
}

/* misc helpers */
.rd-muted { color: var(--c-muted); }
.rd-hide-scroll::-webkit-scrollbar { display: none; }

/* ---------- cart popup (Figma 186:630) ---------- */
.rd-cartpop {
  position: fixed; inset: 0; z-index: 1080;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(52, 50, 52, 0.55);
}
.rd-cartpop__box {
  width: 100%; max-width: 920px; max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-card);
  padding: 30px 40px; font-family: var(--font);
}
.rd-cartpop__head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 22px; border-bottom: 1px solid var(--c-border);
}
.rd-cartpop__title { margin: 0; font-size: 26px; font-weight: 700; color: var(--c-text); }
.rd-cartpop__count { font-size: 14px; color: var(--c-muted); }
.rd-cartpop__close {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--c-text);
}
.rd-cartpop__close:hover { color: var(--c-primary); }
.rd-cartpop__empty { padding: 40px 0; margin: 0; text-align: center; color: var(--c-muted); }

.rd-cartpop__items { overflow-y: auto; }
.rd-cartpop__item {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 90px minmax(0, 1fr) auto auto 28px;
  padding: 18px 0; border-bottom: 1px solid var(--c-border);
}
.rd-cartpop__img {
  display: block; width: 90px; height: 90px; flex: none; overflow: hidden;
  background: var(--c-bg); border-radius: 4px;
}
.rd-cartpop__img img { width: 100%; height: 100%; object-fit: contain; }
.rd-cartpop__code { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.rd-cartpop__name { display: block; font-size: 15px; font-weight: 600; color: var(--c-text); }
.rd-cartpop__name:hover { color: var(--c-primary); }
.rd-cartpop__specs {
  margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; color: var(--c-text-soft);
}
.rd-cartpop__specs:hover { color: var(--c-primary); }
.rd-cartpop__opts { margin: 6px 0 0; padding-left: 16px; font-size: 13px; color: var(--c-text-soft); }

.rd-cartpop__qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-primary); border-radius: var(--radius); overflow: hidden;
}
.rd-cartpop__qty button {
  width: 30px; height: 32px; border: 0; background: none; cursor: pointer;
  font-size: 15px; color: var(--c-text);
}
.rd-cartpop__qty button:hover:not(:disabled) { background: var(--c-primary-light); }
.rd-cartpop__qty button:disabled { opacity: .5; cursor: default; }
.rd-cartpop__qty span { min-width: 26px; text-align: center; font-size: 14px; }
.rd-cartpop__price { font-size: 17px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.rd-cartpop__del {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--c-bg); color: var(--c-muted); font-size: 13px; line-height: 1;
}
.rd-cartpop__del:hover:not(:disabled) { background: var(--c-danger); color: #fff; }
.rd-cartpop__del:disabled { opacity: .5; cursor: default; }

.rd-cartpop__foot { display: flex; align-items: center; gap: 24px; padding-top: 24px; }
.rd-cartpop__back {
  border: 0; background: none; cursor: pointer; padding: 0;
  font-size: 15px; color: var(--c-text);
}
.rd-cartpop__back:hover { color: var(--c-primary); }
.rd-cartpop__back i { margin-right: 8px; }
.rd-cartpop__total { margin-left: auto; font-size: 15px; color: var(--c-text-soft); }
.rd-cartpop__total b { margin-left: 8px; font-size: 20px; color: var(--c-text); }
.rd-cartpop__checkout { padding: 13px 26px; font-size: 15px; }

@media (max-width: 767px) {
  .rd-cartpop__box { padding: 20px 16px; }
  .rd-cartpop__title { font-size: 21px; }
  .rd-cartpop__item {
    grid-template-columns: 64px minmax(0, 1fr) 28px;
    grid-template-areas: 'img info del' 'qty qty price';
    gap: 12px;
  }
  .rd-cartpop__img { grid-area: img; width: 64px; height: 64px; }
  .rd-cartpop__info { grid-area: info; }
  .rd-cartpop__del { grid-area: del; }
  .rd-cartpop__qty { grid-area: qty; }
  .rd-cartpop__price { grid-area: price; text-align: right; }
  .rd-cartpop__foot { flex-wrap: wrap; gap: 14px; }
  .rd-cartpop__total { margin-left: 0; }
  .rd-cartpop__checkout { width: 100%; text-align: center; }
}

/* ---------- header, Figma 510:385 ---------- */
/* row 1: utilities on the left, logo centred, search + icon actions + language right */
.rd-hdr { border-bottom: 1px solid var(--c-border); }
.rd-hdr__in {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; min-height: 82px;
}
.rd-hdr__left { display: flex; align-items: center; gap: 26px; min-width: 0; }
.rd-hdr__cfg {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  color: var(--c-primary); font-weight: 500; text-decoration: none;
}
.rd-hdr__cfg:hover { color: var(--c-primary-dark); text-decoration: none; }
.rd-hdr__logo { display: flex; justify-content: center; }
.rd-hdr__logo img { height: 42px; width: auto; }
.rd-hdr__right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-width: 0; }
.rd-hdr__search { position: relative; flex: 1 1 240px; max-width: 400px; min-width: 0; }
.rd-hdr__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.rd-hdr__lang { flex: none; }

/* pill-shaped search field */
.rd-search {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 22px; background: var(--c-bg);
}
.rd-search__go {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--c-muted); font-size: 15px;
}
.rd-search__go:hover { color: var(--c-primary); }
.rd-search__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  font-family: var(--font); font-size: 14px; color: var(--c-text);
}
.rd-search__input::placeholder { color: var(--c-muted); }
.rd-search__scope {
  flex: none; max-width: 132px; border: 0; background: none; outline: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--c-text-soft);
}

/* icon-only action with the count beside it rather than a badge */
.rd-ico {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--c-text); font-size: 19px; text-decoration: none; line-height: 1;
}
.rd-ico:hover, .rd-ico:focus { color: var(--c-primary); text-decoration: none; }
.rd-ico__n { font-size: 13px; color: var(--c-text-soft); }

/* row 2 keeps the messengers next to the phone */
.rd-navrow__contact { display: flex; align-items: center; gap: 14px; margin-left: auto; }

@media (max-width: 1199px) {
  .rd-hdr__search { flex-basis: 180px; }
  .rd-hdr__left { gap: 16px; }
  .rd-hdr__right { gap: 14px; }
  .rd-hdr__actions { gap: 14px; }
}
@media (max-width: 991px) {
  /* the centred logo cannot survive three columns on narrow screens */
  .rd-hdr__in { grid-template-columns: auto 1fr; row-gap: 12px; padding: 12px 0; min-height: 0; }
  .rd-hdr__logo { justify-content: flex-start; }
  .rd-hdr__logo img { height: 34px; }
  .rd-hdr__right { grid-column: 1 / -1; }
  .rd-hdr__left { order: 2; grid-column: 1 / -1; }
  .rd-navrow__contact { gap: 10px; }
}
