.rbs-product-page {
  padding: 24px 0px 70px
}

.rbs-breadcrumbs {
  margin-bottom: 22px;
  font-size: 14px
}

.rbs-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 48px;
  align-items: start
}

.rbs-main-image {
  width: 100%;
  padding: 5px 0px;
  border: none;

  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in
}

.rbs-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.rbs-thumbs-wrap {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 10px;
  margin-top: 16px;
  align-items: center
}

.rbs-thumbs {
  display: flex;
  gap: 12px;
  overflow: auto;
  scroll-behavior: smooth
}

.rbs-thumb {
  flex: 0 0 92px;
  height: 72px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
  overflow: hidden
}

.rbs-thumb.is-active {
  border-color: #444
}

.rbs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.rbs-thumbs-nav {
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eee;
  font-size: 26px
}

.rbs-title-row {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start
}

.rbs-product-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px
}

.rbs-share {
  position: relative
}

.rbs-share-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  font-size: 22px
}

.rbs-share-list {
  position: absolute;
  right: 0;
  top: 46px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
  display: none;
  min-width: 145px;
  z-index: 5
}

.rbs-share.is-open .rbs-share-list {
  display: block
}

.rbs-share-list a {
  display: block;
  padding: 10px 14px;
  color: #222;
  text-decoration: none
}

.rbs-rating-line,
.rbs-price-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0
}

.rbs-stars {
  letter-spacing: 2px;
  color: #777;
  white-space: nowrap
}

.rbs-price-line strong {
  font-size: 20px
}

.rbs-btn {
  height: 38px;
  border: 1px solid #d7d7d7;

  background: #fff;
  padding: 0 18px;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 12px
}

.rbs-btn-main {
  width: 100%;
  color: black;
  background: #fff
}

.rbs-important-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 10px
}

.rbs-important-list li {
  display: flex;
  gap: 10px;
  color: #555
}

.rbs-product-cats {
  margin: 18px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.rbs-product-cats a {
  color: #222;
  text-decoration: underline
}

.rbs-format-select label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px
}

.rbs-format-select select {
  width: 100%;
  height: 42px;
  color: black;
  padding: 0 40px 0 12px;
  /* место под стрелку */
  border: 1px solid #ddd;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 15px center;
}

.rbs-product-tabs {
  margin-top: 42px
}

.rbs-tab-buttons {
  display: flex;
  gap: 4px;
  overflow: auto
}

.rbs-tab-buttons button {
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: black;
  padding: 12px 18px;
  white-space: nowrap
}

.rbs-tab-buttons button.is-active {
  background: #777;
  color: #fff;
  font-weight: 700
}

.rbs-tab-panel {
  display: none;
  border-top: 1px solid #ddd;
  padding: 22px 0
}

.rbs-tab-panel.is-active {
  display: block
}

.rbs-chars-table {
  width: 100%;
  border-collapse: collapse
}

.rbs-chars-table td {
  border-bottom: 1px solid #eee;
  padding: 10px
}

.rbs-format-message {
  color: #777
}

.rbs-docs {
  display: grid;
  gap: 10px
}

.rbs-docs a {
  color: #222;
  text-decoration: underline
}

.rbs-reviews-list {
  display: grid;
  gap: 15px;
  margin-bottom: 30px
}

.rbs-review {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px
}

.rbs-review-form,
.rbs-order-form {
  display: grid;
  gap: 14px
}

.rbs-review-form label,
.rbs-order-form label {
  display: grid;
  gap: 6px
}

.rbs-review-form input,
.rbs-review-form textarea,
.rbs-order-form input,
.rbs-order-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px
}

.rbs-rating-input button {
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #777
}

.rbs-section {
  margin-top: 54px
}

.rbs-product-card .rbs-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0px;
  min-height: 260px;
  background: #fff;
}

.rbs-product-card .rbs-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.rbs-product-card .rbs-card-title {
  margin: 15px 0 10px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
}

.rbs-product-card .rbs-card-title a {
  color: #222;
  text-decoration: none;
}

.rbs-product-card .rbs-btn-more {
  margin-top: auto;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.rbs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px
}

.rbs-product-card,
.rbs-info-card {
  border: 1px solid #e5e5e5;

  padding: 16px;
  background: #fff;

}

.rbs-card-img {
  display: block;
  aspect-ratio: 1/0.8;
  overflow: hidden;
  border-radius: 10px;
  background: #fafafa
}

.rbs-card-img img,
.rbs-info-card img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.rbs-card-title {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  color: #222;
  text-decoration: none
}

.rbs-card-price {
  font-size: 14px;
  margin: 8px 0 12px
}

.rbs-card-link {
  display: block;
  background: #666;
  color: #fff !important;
  padding: 10px;
  margin: 14px -16px -16px;
  text-decoration: none
}

.rbs-lightbox,
.rbs-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .76);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px
}

.rbs-lightbox[hidden],
.rbs-modal[hidden] {
  display: none
}

.rbs-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  background: #fff;
  border-radius: 12px
}

.rbs-lightbox-close,
.rbs-modal-close {
  position: absolute;
  right: 22px;
  top: 10px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 25px
}

.btn {

  justify-content: center;
}

.rbs-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 36px
}

.rbs-lightbox-prev {
  left: 24px
}

.rbs-lightbox-next {
  right: 24px
}

.rbs-modal-box {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px
}

.rbs-modal-close {
  position: absolute;
  background: #f1f1f1
}

.rbs-form-message {
  font-weight: 700
}

.rbs-form-message.is-error {
  color: #b00020
}

.rbs-form-message.is-success {
  color: #147a2e
}

@media(max-width:991px) {
  .rbs-product-hero {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .rbs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:575px) {
  .rbs-product-page {
    padding-top: 12px
  }

  .rbs-product-title {
    font-size: 26px
  }

  .rbs-card-grid {
    grid-template-columns: 1fr
  }

  .rbs-tab-buttons button {
    padding: 10px 12px
  }

  .rbs-thumbs-wrap {
    grid-template-columns: 30px 1fr 30px
  }

  .rbs-thumb {
    flex-basis: 78px;
    height: 62px
  }
}

/* v1.1 fixes */
.rbs-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
  color: #d7d7d7;
  vertical-align: middle;
}

.rbs-stars-bg {
  display: block;
  color: #d7d7d7;
}

.rbs-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5b301;
  pointer-events: none;
}

.woocommerce #review_form #respond p.stars a,
.rbs-product-page #review_form #respond p.stars a {
  color: #f5b301 !important;
  transition: color .18s ease, transform .18s ease;
}

.woocommerce #review_form #respond p.stars:hover a,
.rbs-product-page #review_form #respond p.stars:hover a {
  color: #f5b301 !important;
}

.woocommerce #review_form #respond p.stars a:hover,
.woocommerce #review_form #respond p.stars a.active,
.rbs-product-page #review_form #respond p.stars a:hover,
.rbs-product-page #review_form #respond p.stars a.active {
  color: #f5b301 !important;
  transform: scale(1.06);
}

.rbs-product-page .comment-form-rating .stars span {
  display: inline-flex;
  gap: 4px;
}

.rbs-share-list a[href*="t.me"] {
  background: #229ED9;
  color: #fff;
}

.rbs-share-list a[href*="whatsapp"] {
  background: #25D366;
  color: #fff;
}

.rbs-share-list a[href^="viber"] {
  background: #7360F2;
  color: #fff;
}

.rbs-mini-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rbs-mini-slider [data-mini-track] {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
}

.rbs-mini-slider a {
  min-width: 100%;
  display: block;
}

.rbs-mini-slider img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.rbs-mini-slider button {
  border: 0;
  background: #f4f4f4;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  cursor: pointer;
  flex: 0 0 28px;
}

.rbs-cf7-product-context {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f6f6f6;
  border-radius: 10px;
  font-size: 14px;
}

.rbs-cf7-empty {
  padding: 14px;
  border: 1px dashed #c9c9c9;
  border-radius: 12px;
  background: #fafafa;
}

.rbs-modal .wpcf7 form p {
  margin: 0 0 12px;
}

.rbs-modal .wpcf7 input:not([type="submit"]),
.rbs-modal .wpcf7 textarea {
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 11px 12px;
}




.rbs-product-form .wpcf7-spinner {
  display: none;
  margin: 12px 0 0;
}

.rbs-product-form .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 6px;
}

.rbs-product-form .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 12px 15px !important;
  border-radius: 0 !important;
  font-size: 14px;
}

.rbs-product-form textarea {
  resize: none;
  min-height: 120px;
}

.rbs-product-form .form-control {
  box-shadow: none !important;
}

.rbs-product-form .form-control:focus {
  border-color: #111;
}

.rbs-product-consent {
  font-size: 12px;
  line-height: 1.4;
}

.rbs-product-consent .wpcf7-list-item {
  margin-left: 0;
}

.rbs-product-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.rbs-product-form .btn-form {
  min-width: 160px;
  height: 48px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 575px) {
  .rbs-product-form-actions {
    flex-direction: column;
  }

  .rbs-product-form .btn-form {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* =========================
   КАРТОЧКИ ТОВАРОВ
========================= */

.rbs-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rbs-product-card .rbs-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  min-height: 260px;
}

.rbs-product-card .rbs-card-image img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.rbs-product-card .rbs-card-title {
  text-align: left;
  display: block;
  width: 100%;
  font-size: 17px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.rbs-product-card .rbs-card-price {
  text-align: left;
  margin-bottom: 20px;
  font-weight: 700;
}


.rbs-product-card .rbs-btn {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  min-height: 48px;
  align-items: center;
}

.rbs-section h2 {
  line-height: 1.15;
  font-weight: 700;
  font-size: 30px;

}

/* =========================
   ХАРАКТЕРИСТИКИ ТАБЛИЦА
========================= */
.comment-form-author, .comment-form-email{
      display: flex;
    flex-direction: column;
}
#author{
  width:150px;
}
#email{
  width:150px;
}
.rbs-chars-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rbs-chars-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.rbs-chars-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
}

.rbs-chars-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 767px) {

  .rbs-chars-table {
    min-width: auto;
    font-size: 11px;
  }

  .rbs-product-page {
    padding: 24px 15px 70px;
  }

  .rbs-section h2 {
    font-size: 24px;
  }

}

@media (min-width: 992px) and (max-width: 1440px) {

  .rbs-product-hero,
  .rbs-product-tabs {
    width: calc(100% - 80px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .rbs-section {
    width: calc(100% - 80px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}