/* =====================================================
   CJTrader — Main Styles (Light Theme Redesign)
   ===================================================== */

* { box-sizing: border-box; padding: 0; font-family: 'Montserrat', 'Inter', sans-serif; }

body {
  margin: 0 auto;
  background: #FAF8F5;
  color: #1A1A1A;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Layout ── */
section { width: 90%; margin: 0 auto; }
.container { max-width: 1280px !important; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; }
.container-fluid { padding-right: 0 !important; padding-left: 0 !important; margin-bottom: 0; }
.row { margin-left: 0 !important; margin-right: 0 !important; }

/* ── Typography ── */
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: #1A1A1A; letter-spacing: -.01em; margin-bottom: .5rem; }
h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.15rem; }
.subtitle { font-weight: 500; color: #6B7280; }
.light { font-weight: 300; }

/* ── HEADER / NAV (белая шапка) ── */
.shapik { display: none; }
.hder   { display: none; }

/* ── OLD styles needed by product.php etc ── */
.imast { display: none; }
.hamburger { display: none; }
.katalog-menu { display: none; }
.pay_ball, .cart-btn { display: none; }

/* ── Hero Carousel ── */
#carouselMain { margin-top: 0 !important; }
.hero-wrap { width: 100%; margin: 0; position: relative; overflow: hidden; border-radius: 0; }
.hero-wrap .carousel, .hero-wrap .carousel-inner, .hero-wrap .carousel-item { height: clamp(220px, 38vw, 600px); }
.hero-wrap .carousel-item { position: relative; overflow: hidden; }
.hero-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* Hero overlay */
.hero-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.carousel-control-prev, .carousel-control-next { z-index: 2; width: 7%; }

/* ── Trust Bar ── */
.trust-bar {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  background: #fff;
  border-top: 1px solid #E8E3D9;
  border-bottom: 1px solid #E8E3D9;
  flex-wrap: wrap;
  padding: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  color: #6B7280;
  padding: 1rem 2rem;
  border-right: 1px solid #E8E3D9;
  flex: 1;
  justify-content: center;
  min-width: 160px;
}
.trust-item:last-child { border-right: none; }
.trust-item .ti-icon { font-size: 1.4rem; }

/* ── Catalog / Product Cards ── */
.product-card {
  border: 1px solid #E8E3D9 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1) !important; transform: translateY(-2px); }
.product-card img { height: auto; object-fit: cover; }
.card-img-top { object-fit: cover; }

/* Price on card */
.product-card .card-body { padding: .75rem; }
.card-price-per-unit {
  font-size: .75rem;
  color: #6B7280;
  margin-bottom: .15rem;
}
.card-price-per-unit strong { color: #C9A84C; font-weight: 700; }
.card-price-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A1A;
}
.card-price-old {
  font-size: .82rem;
  color: #DC2626;
  text-decoration: line-through;
  margin-left: .35rem;
  font-weight: 400;
}

/* Add to cart button on card */
.btn-card-buy {
  background: #C9A84C;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  padding: .4rem .9rem;
  width: 100%;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}
.btn-card-buy:hover { background: #A8873A; }

/* Badges */
.badge-corner { position: absolute; top: 0; z-index: 2; padding: .3rem .55rem; border-radius: .4rem; color: #fff; font-weight: 700; font-size: .72rem; }
.badge-new    { background: #DC2626; right: 52px; }
.badge-sale   { background: #16A34A; right: 0; }
.badge-promo  { background: #2563EB; left: 0; }
.format-badges { position: absolute; left: .5rem; bottom: .5rem; z-index: 2; }

/* ── Section headers ── */
.zag {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.01em;
  font-family: 'Montserrat', sans-serif;
  color: #1A1A1A;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  word-spacing: normal;
}
.zag::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #C9A84C;
  border-radius: 2px;
  margin-top: .4rem;
  flex-basis: 100%;
}

/* ── Filter / Search ── */
#searchForm { width: 70%; margin: 1.5rem auto !important; padding: 0 !important; }
.filter-box { position: sticky; top: 80px; width: 100%; }

/* ── Pagination ── */
.page-item { margin-left: 4px; }
.page-link { color: #1A1A1A; border-color: #E8E3D9; border-radius: 6px !important; }
.page-item.active .page-link { background: #C9A84C; border-color: #C9A84C; color: #fff; }
.page-link:hover { background: #F0E6CC; color: #A8873A; }

/* ── Service section (legacy, keep for safety) ── */
.service { display: none; }
.service_body { display: none; }

/* ── Services + Form Split ── */
.sf-split {
  width: 100%;
  background: #F3EFE8;
  margin-top: 3rem;
  padding: 4rem 0;
}
.sf-inner {
  display: flex;
  flex-direction: row !important;
  gap: 3rem;
  align-items: flex-start;
  width: 100%;
}
/* LEFT: services */
.sf-services {
  flex: 1 1 50%;
  min-width: 0;
}
.sf-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 .4rem;
}
.sf-sub {
  font-size: .9rem;
  color: #6B7280;
  margin: 0 0 1.5rem;
}
.sf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.sf-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #E8E3D9;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.sf-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.sf-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.sf-item div strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: .2rem;
}
.sf-item div p {
  font-size: .82rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
}
/* RIGHT: form */
.sf-form-wrap {
  flex: 1 1 50%;
  min-width: 0;
  background: #fff;
  border: 1px solid #E8E3D9;
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.sf-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.sf-form-wrap input,
.sf-form-wrap textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid #E8E3D9;
  border-radius: 8px;
  font-size: .9rem;
  background: #FAF8F5;
  color: #1A1A1A;
  transition: border-color .2s;
  box-sizing: border-box;
}
.sf-form-wrap input:focus,
.sf-form-wrap textarea:focus {
  border-color: #C9A84C;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
.sf-file-wrap { display: flex; flex-direction: column; gap: .3rem; }
.sf-file-wrap label { font-size: .82rem; color: #6B7280; }
.sf-form-wrap button[type="submit"] {
  width: 100%;
  margin-top: .5rem;
  background: #C9A84C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.sf-form-wrap button[type="submit"]:hover { background: #A8873A; }

/* ── О нас ── */
.nasa { display: flex; width: 85%; margin: 3rem auto; align-items: center; padding: 2rem; gap: 3rem; background: #fff; border-radius: 16px; border: 1px solid #E8E3D9; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.nasa img { width: 40%; border-radius: 12px; flex-shrink: 0; }
.nasa > p { width: 55%; font-size: 1rem; font-weight: 500; line-height: 1.7; border: none; padding: 0; margin: 0; color: #374151; }

/* ── Contact Form ── */
.form_page {
  width: 100%;
  background: #F3EFE8;
  padding: 4rem 0;
  margin: 3rem 0 0;
}
.form_name { width: 80%; margin: 0 auto 2rem; text-align: center; height: auto; }
.form_name h1 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); color: #1A1A1A; margin-top: 0; }
.form_name > p { font-size: 1rem; color: #6B7280; font-weight: 500; margin-top: .75rem; }
.form-body { height: auto; background: transparent; border-radius: 0; margin: 0 auto; }
.forma {
  width: 75%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E8E3D9;
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.forma form { width: 100%; }
.forma input, .forma textarea {
  width: 100%;
  margin: .4rem 0;
  padding: .7rem 1rem;
  border: 1px solid #E8E3D9;
  border-radius: 8px;
  font-size: .9rem;
  background: #FAF8F5;
  color: #1A1A1A;
  transition: border-color .2s;
}
.forma input:focus, .forma textarea:focus { border-color: #C9A84C; outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
textarea { font-size: .9rem; text-align: left; color: #1A1A1A; border-radius: 8px; }
.forma button[type="submit"] {
  width: 100%;
  margin-top: .75rem;
  background: #C9A84C;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  padding: .8rem;
  cursor: pointer;
  transition: background .2s;
}
.forma button[type="submit"]:hover { background: #A8873A; }

/* ── Offcanvas Cart ── */
.cart-row { display: flex; gap: 16px; align-items: center; }
.cart-img { width: 140px; height: 100px; object-fit: cover; border-radius: 6px; }
.cart-item-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E8E3D9; border-radius: 8px; }
.cart-item { height: 100px; }

/* ── Modals ── */
.modal-dialog { max-width: 100% !important; }
.modal-lg { max-width: 80%; }

/* ── Order info block ── */
.order-info { border: 2px solid #C9A84C; padding: 1.2rem 1.5rem; background: #FFF9EC; margin-bottom: 1.5rem; display: inline-block; font-weight: 600; border-radius: 10px; width: 100%; color: #1A1A1A; }

/* ── Buttons override ── */
.btn-success { background-color: #16A34A !important; border-color: #16A34A !important; }
.btn-outline-primary { color: #C9A84C !important; border-color: #C9A84C !important; }
.btn-outline-primary:hover { background: #C9A84C !important; color: #fff !important; }

/* ── Free products section ── */
.free-section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.badge.bg-success { background: #16A34A !important; }

/* ── Forms ── */
form, .search { padding: 15px; margin-bottom: 20px; width: 100%; }
input, textarea { width: 100%; margin: 5px 0; padding: 8px; }
.form-control:focus, .form-select:focus { border-color: #C9A84C; box-shadow: 0 0 0 3px rgba(201,168,76,.15); }

/* ── Legal links (zakon) ── */
.zakon { background-color: transparent; display: none; }

/* ── Misc ── */
* { pointer-events: auto !important; }
.disabled-btn { pointer-events: none; opacity: .6; }
.price-big { font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem; }
.form-order { width: 60%; }
.sans-bem { font-family: 'Inter', sans-serif; }

/* ── Mobile: 768px ── */
@media screen and (max-width: 768px) {
  .badge-new  { padding: 5px; font-size: 11px; width: 38px; right: 40px; }
  .badge-sale { font-size: 11px; width: 38px; }
  .nasa { flex-direction: column; width: 95%; padding: 1.5rem; gap: 1.5rem; }
  .nasa img { width: 100%; }
  .nasa > p { width: 100%; font-size: .9rem; }
  #searchForm { width: 95%; }
  .forma { width: 95%; padding: 1.5rem; }
  .form_name { width: 95%; }
  .form-order { width: 100%; }
  /* sf-split: mobile stacked */
  .sf-inner { flex-direction: column!important; gap: 2rem; }
  .sf-services { flex: none; width: 100%; }
  .sf-form-wrap { flex: none; width: 100%; box-sizing: border-box; flex-direction:column; }
  
}

/* ── Mobile: 576px ── */
@media (max-width: 576px) {
  #zag { font-size: 1.2rem; }
  .carousel-inner { height: 200px; }
  .carousel-item  { height: 200px; }
  .carousel-item img { height: 200px; margin: 0 auto; width: 100% !important; }
  .forma { width: 100%; border-radius: 0; }
  .form_name h1 { font-size: 1.1rem; }
  .form_name > p { font-size: .85rem; }
}

/* ── Mobile: 500px ── */
@media (max-width: 500px) {
  .carousel-inner { height: auto; }
  .service_body { width: 100%; }
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 992px) {
  .nasa { width: 95%; }
}

/* ── Desktop 992-1200 ── */
@media (min-width: 992px) and (max-width: 1200px) {
  .nasa > p { font-size: .95rem; }
}

/* ─── Hero overlay ───────────────────────────────── */
.hero-wrap { position: relative; overflow: hidden; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
  display: flex;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.hero-content {
  max-width: 560px;
  padding: 0 2.5rem;
  pointer-events: all;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.hero-sub {
  font-size: clamp(.82rem, 1.5vw, 1rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-btn-primary {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: #C9A84C;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
  font-family: 'Montserrat', sans-serif;
}
.hero-btn-primary:hover {
  background: #A8873A;
  color: #fff;
  transform: translateY(-1px);
}

.hero-btn-outline {
  display: inline-block;
  padding: .72rem 1.5rem;
  border: 2px solid rgba(255,255,255,.8);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  font-family: 'Montserrat', sans-serif;
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 576px) {
  .hero-content { padding: 0 1.25rem; }
  .hero-cta { flex-direction: column; }
  .hero-btn-primary, .hero-btn-outline { text-align: center; }
}


/* ══════════════════════════════════════════
   Главная — секции: Популярные / Новинки / Акции
   ══════════════════════════════════════════ */

.hp-section {
  padding: 2.5rem 0 0;
}
.hp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 .25rem;
}
.hp-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}
.hp-see-all {
  font-size: .85rem;
  font-weight: 600;
  color: #C9A84C;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.hp-see-all:hover { text-decoration: underline; }

/* Карточка — внутри Bootstrap col */
.hp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #EDE8DE;
  transition: box-shadow .2s, transform .2s;
}
.hp-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

/* Изображение — строго квадратное */
.hp-card-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 100%; /* 1:1 */
  overflow: hidden;
  background: #F5F0E8;
  flex-shrink: 0;
}

.hp-card-hover-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.hp-card-img-wrap:hover .hp-card-hover-media { opacity: 1; }
.hp-card-img-wrap { position: relative; overflow: hidden; }


.hp-card-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.hp-card-img-wrap:hover .hp-card-img { transform: scale(1.06); }
.hp-card-img-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ccc;
}

/* Бейджи */
.hp-badge {
  position: absolute;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 4px;
  padding: .18rem .4rem;
  text-transform: uppercase;
  line-height: 1;
  z-index: 2;
}
.hp-badge-new   { top: .4rem; left: .4rem; background: #1A1A1A; color: #C9A84C; }
.hp-badge-sale  { top: .4rem; right: .4rem; left: auto; background: #DC2626; color: #fff; }
.hp-badge-promo { top: .4rem; left: .4rem; background: #C9A84C; color: #fff; }

/* Тело */
.hp-card-body {
  padding: .55rem .6rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex-grow: 1;
}
.hp-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-card-name:hover { color: #C9A84C; }
.hp-card-price {
  font-size: .85rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: auto;
}
.hp-card-price-old {
  font-size: .75rem;
  font-weight: 400;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-right: .2rem;
}

/* Адаптив */
@media (max-width: 575px) {
  .hp-section-title { font-size: 1rem; }
  .hp-card-name     { font-size: .74rem; }
  .hp-card-price    { font-size: .8rem; }
  .hp-section       { padding-top: 1.75rem; }
}
@media (min-width: 992px) {
  .hp-section-title { font-size: 1.3rem; }
  .hp-card-name     { font-size: .84rem; }
}

/* ── Разделитель между секциями на главной ── */
.hp-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2.5rem 1rem 0;
  gap: 1rem;
}
.hp-divider::before,
.hp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #E8E0D0, transparent);
}
.hp-divider span {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #C9A84C;
  white-space: nowrap;
  padding: 0 .5rem;
}

/* ═══════════════════════════════════════════════════════════
   HERO BANNERS — продающие слайды
   ═══════════════════════════════════════════════════════════ */
.cj-banner {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vw, 600px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cj-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.carousel-item.active .cj-banner-bg { transform: scale(1); }
.cj-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.1) 100%);
  z-index: 1;
}
.cj-overlay-gold {
  background: linear-gradient(100deg, rgba(10,8,2,.85) 0%, rgba(30,20,5,.55) 55%, rgba(0,0,0,.1) 100%);
}
.cj-overlay-dark2 {
  background: linear-gradient(100deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.5) 60%, rgba(0,0,0,.05) 100%);
}
.cj-banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 0 5% 0 6%;
}
.cj-banner-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c9a84c;
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 4px;
  padding: .2rem .65rem;
  margin-bottom: .8rem;
  background: rgba(201,168,76,.08);
}
.cj-tag-red  { color: #ff4f4f; border-color: rgba(255,79,79,.4); background: rgba(255,79,79,.08); }
.cj-tag-gold { color: #c9a84c; }
.cj-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}
.cj-banner-title span   { color: #c9a84c; }
.cj-accent-red          { color: #ff4f4f !important; }
.cj-banner-sub {
  font-size: clamp(.82rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}
.cj-banner-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.cj-btn-primary {
  display: inline-block;
  background: #c9a84c;
  color: #111 !important;
  font-weight: 800;
  font-size: clamp(.8rem,1.3vw,.95rem);
  padding: .7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.cj-btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.cj-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  font-weight: 700;
  font-size: clamp(.8rem,1.3vw,.9rem);
  padding: .7rem 1.4rem;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.45);
  text-decoration: none;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.cj-btn-ghost:hover { border-color: #c9a84c; background: rgba(201,168,76,.12); }
.cj-btn-red {
  display: inline-block;
  background: #ff4f4f;
  color: #fff !important;
  font-weight: 800;
  font-size: clamp(.8rem,1.3vw,.95rem);
  padding: .7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
}
.cj-btn-red:hover { opacity: .87; }
.cj-btn-gold {
  display: inline-block;
  background: linear-gradient(135deg,#c9a84c,#e0c068);
  color: #111 !important;
  font-weight: 800;
  font-size: clamp(.8rem,1.3vw,.95rem);
  padding: .7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
}
.cj-btn-gold:hover { opacity: .88; }

/* Stats bar inside banner */
.cj-banner-stats {
  position: absolute;
  bottom: 0.5rem; left: 6%;
  z-index: 2;
  display: flex;
  gap: 1.5rem;
}
.cj-bstat { display: flex; flex-direction: column; }
.cj-bstat-num  { font-size: clamp(.95rem,2vw,1.3rem); font-weight: 800; color: #c9a84c; line-height: 1; }
.cj-bstat-label{ font-size: .68rem; color: rgba(255,255,255,.6); margin-top: .15rem; text-transform: uppercase; letter-spacing: .06em; }

/* Save hint */
.cj-banner-save-hint {
  margin-top: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.cj-banner-save-hint strong { color: #c9a84c; }

/* Checklist */
.cj-banner-checklist {
  position: absolute;
  bottom: 1.5rem; left: 6%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cj-check-item {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.cj-check-item::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #c9a84c; border-radius: 50%; flex-shrink: 0; }

/* Response badge */
.cj-banner-response {
  margin-top: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; margin: 0 3px;
  transition: background .3s, transform .3s;
}
.carousel-indicators .active { background: #c9a84c; transform: scale(1.25); }

/* ═══════════════════════════════════════════════════════════
   КАРТОЧКИ — Temu-стиль: рейтинг, продажи, экономия, корзина
   ═══════════════════════════════════════════════════════════ */

/* Каталог */
.cat-card-meta {
  display: flex; align-items: center; gap: .4rem;
  margin-bottom: .25rem;
}
.cat-rating {
  font-size: .78rem; font-weight: 700; color: #1a1a1a;
  display: flex; align-items: center; gap: .15rem;
}
.cat-stars   { color: #f5a623; font-size: .85rem; }
.cat-rating-cnt { color: #888; font-weight: 400; font-size: .72rem; }
.cat-views-mini { font-size: .72rem; color: #aaa; margin-left: auto; }
.cat-sold-badge {
  font-size: .72rem; color: #e05c00; font-weight: 600;
  background: rgba(224,92,0,.07); border-radius: 4px;
  padding: .1rem .4rem; margin-bottom: .25rem; display: inline-block;
}
.cat-price-now { font-size: 1rem; font-weight: 800; color: #c9a84c; }
.cat-price-old { font-size: .78rem; color: #aaa; text-decoration: line-through; margin-left: .3rem; }
.cat-save-badge {
  font-size: .72rem; color: #2a8c45; background: rgba(42,140,69,.09);
  border-radius: 4px; padding: .1rem .4rem; margin-top: .15rem; display: inline-block;
}
.cat-card-actions {
  display: flex; gap: .4rem; margin-top: .5rem; align-items: center;
}
.cat-buy-btn {
  flex: 1;
  display: block; text-align: center;
  background: #1a1a1a; color: #c9a84c !important;
  font-size: .78rem; font-weight: 700;
  padding: .45rem .5rem; border-radius: 6px;
  text-decoration: none; transition: background .2s;
  white-space: nowrap;
}
.cat-buy-btn:hover { background: #c9a84c; color: #111 !important; }
.cat-cart-btn {
  flex-shrink: 0;
  background: #f4ead0; border: 1.5px solid #c9a84c;
  border-radius: 6px; padding: .42rem .6rem;
  font-size: .9rem; cursor: pointer;
  transition: background .2s, transform .15s;
  line-height: 1;
}
.cat-cart-btn:hover { background: #c9a84c; transform: scale(1.08); }

/* Главная — hp-cards */
.hp-card-meta {
  display: flex; align-items: center; gap: .3rem; margin-bottom: .2rem;
}
.hp-rating { font-size: .72rem; font-weight: 700; color: #f5a623; }
.hp-views-mini { font-size: .68rem; color: #bbb; margin-left: auto; }
.hp-sold-badge {
  font-size: .68rem; color: #e05c00; font-weight: 600;
  background: rgba(224,92,0,.07); border-radius: 3px;
  padding: .08rem .35rem; margin-bottom: .2rem; display: inline-block;
}
.hp-price-now { font-size: .92rem; font-weight: 800; color: #c9a84c; }
.hp-card-price-old { font-size: .72rem; color: #bbb; text-decoration: line-through; margin-left: .25rem; }
.hp-card-save {
  font-size: .68rem; color: #2a8c45; background: rgba(42,140,69,.09);
  border-radius: 3px; padding: .08rem .3rem; margin-top: .12rem; display: inline-block;
}
.hp-card-actions { display: flex; gap: .35rem; margin-top: .45rem; }
.hp-card-link-btn {
  flex: 1; display: block; text-align: center;
  background: #1a1a1a; color: #c9a84c !important;
  font-size: .7rem; font-weight: 700;
  padding: .4rem .3rem; border-radius: 5px;
  text-decoration: none; transition: background .2s;
  white-space: nowrap;
}
.hp-card-link-btn:hover { background: #c9a84c; color: #111 !important; }
.hp-cart-btn {
  flex-shrink: 0;
  background: #f4ead0; border: 1.5px solid #c9a84c;
  border-radius: 5px; padding: .38rem .5rem;
  font-size: .82rem; cursor: pointer;
  transition: background .2s;
  line-height: 1;
}
.hp-cart-btn:hover { background: #c9a84c; }

/* ═══════════════════════════════════════════════════════════
   ОТЗЫВЫ — расширенные
   ═══════════════════════════════════════════════════════════ */
.hp-reviews-meta {
  display: block;
  font-size: .8rem; font-weight: 500; color: #888;
  margin-top: .25rem;
}
.hp-review-card {
  background: #fff;
  border: 1px solid #E8E0D0;
  border-radius: 14px;
  padding: 1.4rem;
  height: 100%;
  display: flex; flex-direction: column; gap: .6rem;
  transition: box-shadow .2s;
}
.hp-review-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.hp-review-r3 { border-color: #f0dede; background: #fff9f9; }
.hp-review-r4 { border-color: #e8e0d0; }
.hp-review-r5 { border-color: #d8ead4; background: #f9fdf8; }
.hp-review-top { display: flex; align-items: center; justify-content: space-between; }
.hp-review-stars { font-size: 1rem; letter-spacing: .05em; }
.stars-gold   { color: #f5a623; }
.stars-normal { color: #f5a623; }
.stars-low    { color: #e06060; }
.hp-review-date { font-size: .72rem; color: #aaa; }
.hp-review-text {
  font-size: .88rem; color: #333; line-height: 1.65;
  flex: 1; margin: 0; font-style: italic;
}
.hp-review-author {
  display: flex; align-items: center; gap: .65rem; margin-top: auto;
}
.hp-review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#c9a84c,#a8873a);
  color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hp-review-author strong { font-size: .85rem; color: #1a1a1a; display: block; }
.hp-review-author span   { font-size: .75rem; color: #888; }
.hp-review-verified {
  font-size: .7rem; color: #2a8c45; font-weight: 600;
  background: rgba(42,140,69,.09); border-radius: 4px; padding: .1rem .4rem;
  align-self: flex-start;
}

/* Форма отзыва */
.hp-review-form-wrap {
  background: #FAF8F5;
  border: 1px solid #E8E0D0;
  border-radius: 16px;
  padding: 2rem;
  margin-top: .5rem;
}
.hp-review-form-title {
  font-size: 1.1rem; font-weight: 800; color: #1a1a1a; margin-bottom: .4rem;
}
.hp-review-form-sub {
  font-size: .88rem; color: #666; margin-bottom: 1.25rem;
}
.hp-rf-input {
  width: 100%;
  background: #fff;
  border: 1px solid #d0c8b8;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .9rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color .2s;
  font-family: 'Montserrat', sans-serif;
}
.hp-rf-input:focus { border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.hp-rf-textarea { resize: vertical; min-height: 110px; }
.hp-star-pick {
  display: flex; align-items: center; gap: .3rem;
  font-size: .85rem; color: #555;
  background: #fff; border: 1px solid #d0c8b8;
  border-radius: 8px; padding: .65rem 1rem; height: 100%;
}
.hp-star-btn {
  font-size: 1.4rem; color: #ccc; cursor: pointer;
  transition: color .15s, transform .1s;
  line-height: 1;
}
.hp-star-btn.active, .hp-star-btn:hover { color: #f5a623; transform: scale(1.15); }
.hp-rf-btn {
  background: #1a1a1a; color: #c9a84c;
  border: none; border-radius: 8px;
  font-weight: 800; font-size: .9rem;
  padding: .75rem 1.75rem; cursor: pointer;
  transition: background .2s;
  font-family: 'Montserrat', sans-serif;
}
.hp-rf-btn:hover { background: #c9a84c; color: #111; }
.hp-rf-note { font-size: .78rem; color: #999; }

/* ═══════════════════════════════════════════════════════════
   МОБИЛЬНЫЕ стили — баннеры и карточки
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .cj-banner { height: clamp(220px, 60vw, 340px); }
  .cj-banner-title { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .cj-banner-sub { font-size: .78rem; margin-bottom: .9rem; }
  .cj-btn-primary, .cj-btn-ghost, .cj-btn-red, .cj-btn-gold {
    font-size: .78rem; padding: .55rem 1.1rem;
  }
  .cj-banner-stats, .cj-banner-checklist { display: none; }
  .cj-banner-content { padding: 0 4% 0 5%; }
  .hp-review-form-wrap { padding: 1.25rem 1rem; }
}
@media (max-width: 480px) {
  .cj-banner { height: clamp(200px, 70vw, 280px); }
  .cj-banner-title { font-size: 1.15rem; margin-bottom: .5rem; }
  .cj-banner-sub { display: none; }
  .cj-banner-tag { font-size: .62rem; padding: .15rem .5rem; }
  .cj-banner-cta { gap: .4rem; }
  .cat-card-actions { flex-direction: column; gap: .3rem; }
  .cat-cart-btn { width: 100%; }
}

/* ── "All reviews" button ── */
.hp-all-reviews-btn {
  display: inline-block;
  padding: .7rem 2rem;
  background: transparent;
  border: 2px solid #C9A84C;
  color: #A8873A;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hp-all-reviews-btn:hover { background: #C9A84C; color: #fff; }
