/* Product detail buy box, reviews, compare — onsus red/orange theme */

/* ========== Buy box ========== */
.shop_details_text.os-buybox {
  padding: 22px 24px 24px;
  background:
    linear-gradient(165deg, rgba(225, 29, 46, 0.04) 0%, transparent 42%),
    var(--os-card, #fff);
  border: 1px solid var(--os-line, #e8eaed);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}

.os-buybox__cat {
  margin: 0 0 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--os-accent, #e11d2e) !important;
  line-height: 1.3 !important;
}

.os-buybox .details_title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 12px !important;
  color: var(--os-ink, #1a1d23) !important;
}

.os-buybox__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.os-buybox__badges .os-tags {
  margin: 0 !important;
}

.os-buybox__price-block {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 29, 46, 0.06), rgba(255, 140, 0, 0.05));
  border: 1px solid rgba(225, 29, 46, 0.12);
}

.os-buybox .price,
.os-buybox #jsPrice {
  font-size: clamp(1.55rem, 2.6vw, 1.95rem) !important;
  font-weight: 800 !important;
  color: var(--os-accent, #e11d2e) !important;
  margin: 0 !important;
  gap: 8px 12px !important;
  line-height: 1.2 !important;
}

.os-buybox .price .os-buybox__vat,
.os-buybox #jsPrice .os-buybox__vat {
  color: var(--os-muted, #6b7280) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}

.os-buybox .price del,
.os-buybox #jsPrice del {
  color: var(--os-muted, #6b7280) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.os-buybox__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
}

.os-buybox .stock,
.os-buybox .out_stock {
  margin: 0 !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.os-buybox .stock:not(.out_stock) {
  background: rgba(5, 168, 69, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(5, 168, 69, 0.22);
}

.os-buybox .out_stock {
  background: rgba(225, 29, 46, 0.08) !important;
  color: var(--os-accent, #e11d2e) !important;
  border: 1px solid rgba(225, 29, 46, 0.22);
}

.os-buybox .rating {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F5A623 !important;
  font-size: 14px !important;
}

.os-buybox .rating .fas.fa-star,
.os-buybox .rating .fas.fa-star-half-alt,
.os-buybox .rating .rating-stars {
  color: #F5A623 !important;
}

.os-buybox .rating .far.fa-star {
  color: #d1d5db !important;
}

.os-buybox .rating > span:not(.rating-stars) {
  color: var(--os-muted, #6b7280) !important;
  font-size: 13px !important;
  margin-left: 2px !important;
  font-weight: 500;
}

.os-buybox #jsStockLine {
  margin: 0 0 12px !important;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--os-bg, #f5f6f8);
  font-size: 13px !important;
  color: var(--os-muted, #6b7280) !important;
}

.os-buybox #jsStockLine strong {
  color: var(--os-ink, #1a1d23) !important;
}

.os-buybox .short_description {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  margin: 0 0 16px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--os-line, #e8eaed);
  color: var(--os-muted, #6b7280);
  font-size: 14.5px;
  line-height: 1.55;
}

.os-buybox .os-varpick {
  margin-top: 0 !important;
  margin-bottom: 16px;
  border-color: rgba(225, 29, 46, 0.14) !important;
  background: #fff !important;
}

.os-buybox .os-varpick__btn.is-active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #e11d2e, #f97316) !important;
  color: #fff !important;
}

.os-buybox .os-varpick__btn.is-active span,
.os-buybox .os-varpick__btn.is-active .os-varpick__stock {
  color: #fff !important;
}

.os-buybox__cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 4px;
}

.os-buybox__qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.os-buybox__qty-label {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--os-ink, #1a1d23);
  line-height: 1.2;
}

.os-buybox .details_qty_input {
  margin: 0 !important;
  border: 1px solid var(--os-line, #e8eaed);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  width: 140px;
  max-width: 100%;
}

.os-buybox .details_btn_area {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.os-buybox .details_btn_area #addToCartBtn,
.os-buybox .details_btn_area .common_btn {
  width: 100%;
  justify-content: center;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  background: var(--os-accent, #e11d2e) !important;
}

.os-buybox .details_btn_area #addToCartBtn:hover:not([disabled]),
.os-buybox .details_btn_area .common_btn:hover:not([disabled]) {
  filter: brightness(0.95);
}

.os-buybox .details_btn_area #addToCartBtn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.os-buybox #jsQtyMeta {
  margin-top: 8px !important;
  font-size: 12.5px !important;
  color: var(--os-muted, #6b7280) !important;
  opacity: 1 !important;
}

.os-buybox .details_tags_sku,
.os-buybox__sku {
  margin: 18px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid var(--os-line, #e8eaed);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
}

.os-buybox .details_tags_sku li {
  margin: 0 !important;
  font-size: 13px;
  color: var(--os-muted, #6b7280);
}

.os-buybox .details_tags_sku li > span:first-child {
  font-weight: 700;
  color: var(--os-ink, #1a1d23);
  margin-right: 4px;
}

@media (max-width: 991px) {
  .shop_details_text.os-buybox {
    padding: 18px 16px;
    margin-top: 8px;
  }
}

@media (max-width: 575px) {
  .os-buybox .details_qty_input {
    width: 100%;
    max-width: 220px;
    justify-content: space-between;
  }
}

/* ========== Reviews ========== */
.os-reviews {
  padding-top: 8px;
}

.os-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--os-line, #e8eaed);
}

.os-reviews__head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--os-ink, #1a1d23);
}

.os-reviews__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--os-muted, #6b7280);
  background: var(--os-bg, #f5f6f8);
  padding: 4px 12px;
  border-radius: 999px;
}

.os-reviews__empty {
  text-align: center;
  padding: 36px 20px;
  margin: 0 0 22px;
  border-radius: 14px;
  border: 1px dashed rgba(225, 29, 46, 0.25);
  background: linear-gradient(165deg, rgba(225, 29, 46, 0.04), #fff 55%);
}

.os-reviews__empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.08);
  color: var(--os-accent, #e11d2e);
  font-size: 1.35rem;
}

.os-reviews__empty h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--os-ink, #1a1d23);
}

.os-reviews__empty p {
  margin: 0;
  color: var(--os-muted, #6b7280);
  font-size: 14px;
}

.os-rev-card {
  border: 1px solid var(--os-line, #e8eaed);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.os-rev-card__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.os-rev-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--os-accent, #e11d2e);
  background: rgba(225, 29, 46, 0.1);
  border: 1px solid rgba(225, 29, 46, 0.18);
}

.os-rev-card__meta {
  flex: 1;
  min-width: 0;
}

.os-rev-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 4px;
}

.os-rev-card__author {
  font-weight: 750;
  font-size: 0.98rem;
  color: var(--os-ink, #1a1d23);
  overflow-wrap: anywhere;
}

.os-rev-card__date {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--os-muted, #6b7280);
  white-space: nowrap;
}

.os-rev-card__stars {
  display: flex;
  gap: 2px;
  line-height: 1;
  color: #F5A623;
  font-size: 13px;
}

.os-rev-card__stars .fas.fa-star,
.os-rev-card__stars .fas.fa-star-half-alt {
  color: #F5A623;
}

.os-rev-card__stars .is-empty,
.os-rev-card__stars .far.fa-star {
  color: #d1d5db;
}

.os-rev-card__body {
  margin-top: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  line-height: 1.55;
  color: #374151;
}

.os-rev-card__replies {
  margin-top: 12px;
  border-left: 3px solid var(--os-accent, #e11d2e);
  padding-left: 12px;
  text-align: left;
}

.os-rev-reply {
  background: var(--os-bg, #f5f6f8);
  border: 1px solid var(--os-line, #e8eaed);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  text-align: left;
}

.os-rev-reply__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.os-rev-reply__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
  color: var(--os-accent, #e11d2e);
  font-size: 12.5px;
}

.os-rev-reply__date {
  color: var(--os-muted, #6b7280);
  white-space: nowrap;
}

.os-rev-reply__body {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.os-reviews__form-wrap {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--os-line, #e8eaed);
  background: linear-gradient(180deg, rgba(225, 29, 46, 0.03), #fff 40%);
}

.os-reviews__form-wrap h4 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--os-ink, #1a1d23);
}

.os-reviews__form-wrap label {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  display: block;
  color: var(--os-ink, #1a1d23);
}

.os-reviews__form-wrap .form-control {
  border-radius: 10px;
  border-color: var(--os-line, #e8eaed);
}

.os-reviews__form-wrap .common_btn {
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--os-accent, #e11d2e) !important;
  font-weight: 700;
}

.os-reviews__form-note {
  opacity: 0.75;
  margin-top: 8px;
  font-size: 13px;
  color: var(--os-muted, #6b7280);
}

@media (max-width: 576px) {
  .os-rev-card__date {
    margin-left: 0;
    width: 100%;
  }
}

/* ========== Compare ========== */
.compare_page .os-compare {
  border: 1px solid var(--os-line, #e8eaed);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
}

.compare_page .os-compare__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--os-line, #e8eaed);
  background: linear-gradient(165deg, rgba(225, 29, 46, 0.04), transparent 55%);
}

.compare_page .os-compare__toolbar h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--os-ink, #1a1d23);
}

.compare_page .os-compare__toolbar .common_btn {
  border-radius: 10px;
}

.compare_page .os-compare__empty {
  text-align: center;
  padding: 48px 24px;
  margin: 0;
}

.compare_page .os-compare__empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(225, 29, 46, 0.08);
  color: var(--os-accent, #e11d2e);
  font-size: 1.5rem;
}

.compare_page .os-compare__empty h4 {
  margin: 0 0 8px;
  font-weight: 750;
  color: var(--os-ink, #1a1d23);
}

.compare_page .os-compare__empty p {
  margin: 0 0 18px;
  color: var(--os-muted, #6b7280);
}

.compare_page .os-compare .table {
  margin: 0;
}

.compare_page .os-compare table tr td {
  border-color: var(--os-line, #e8eaed) !important;
  padding: 18px 16px !important;
  vertical-align: middle;
}

.compare_page .os-compare table tr td:first-child {
  background: var(--os-bg, #f5f6f8);
  text-align: left;
  font-weight: 600;
  min-width: 130px;
}

.compare_page .os-compare table tr td:first-child p {
  margin: 0;
}

.compare_page .os-compare table tr td:first-child b {
  color: var(--os-ink, #1a1d23);
  font-size: 13px;
  font-weight: 750;
}

.compare_page .compare_product_cell {
  min-width: 180px;
  max-width: 240px;
}

.compare_page .compare_product_cell .os-compare__media {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--os-bg, #f5f6f8);
  border: 1px solid var(--os-line, #e8eaed);
}

.compare_page .compare_product_cell .os-compare__media img {
  width: 100% !important;
  height: 100%;
  object-fit: contain;
  margin: 0 !important;
}

.compare_page .compare_product_cell a.title {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--os-ink, #1a1d23);
  text-decoration: none;
}

.compare_page .compare_product_cell a.title:hover {
  color: var(--os-accent, #e11d2e);
}

.compare_page .os-compare__price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--os-accent, #e11d2e);
  margin: 0;
}

.compare_page .os-compare__price del {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--os-muted, #6b7280);
}

.compare_page .compare_actions_cell .common_btn {
  margin: 4px;
  border-radius: 10px;
}

.compare_page .compare_actions_cell .common_btn.remove {
  background: var(--os-accent, #e11d2e);
}

@media (max-width: 767px) {
  .compare_page .os-compare__toolbar {
    padding: 16px;
  }

  .compare_page .compare_product_cell {
    min-width: 150px;
  }

  .compare_page .compare_product_cell .os-compare__media {
    width: 110px;
    height: 110px;
  }
}
