/* Reseller Hat — Single Product Variation UX */
.single-product .rhat-variation-image-strip{
  margin:10px 0 14px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
 .single-product .rhat-variation-image-strip__title{display:none;}
.single-product .rhat-variation-image-strip__title small{
  font-size:11px;
  font-weight:600;
  color:#7b8794;
}
.single-product .rhat-variation-image-strip__row{
  display:flex;
  gap:9px;
  overflow-x:auto;
  padding:2px 1px 3px;
  scrollbar-width:thin;
}
 .single-product .rhat-variation-image-card{
  flex:0 0 82px;
  width:82px;
  margin:0;
  padding:2px 2px 5px;
  border:2px solid #d5d5d5;
  border-radius:5px;
  background:#fff;
  cursor:pointer;
  box-shadow:none;
  text-align:center;
  transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.single-product .rhat-variation-image-card:hover{
  transform:translateY(-2px);
  border-color:#aebdcc;
}
 .single-product .rhat-variation-image-card.is-selected{
  border-color:#ef5a35;
  box-shadow:0 0 0 1px rgba(239,90,53,.08);
}
.single-product .rhat-variation-image-card__img{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:9px;
  background:#f6f8fb;
}
.single-product .rhat-variation-image-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.single-product .rhat-variation-image-card__label{
  display:block;
  margin-top:5px;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  color:#273142;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.single-product .rhat-shopee-variation-ui{
  margin-top:10px;
}
.single-product .rhat-shopee-variation-group{
  padding:13px 0 3px;
}
.single-product .rhat-shopee-variation-heading{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  margin-bottom:9px;
}
.single-product .rhat-step-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#f0f4f8;
  color:#344256;
  font-size:11px;
  font-weight:900;
}
.single-product .rhat-shopee-variation-heading strong{
  font-size:14px;
  color:#172033;
}
.single-product .rhat-shopee-picked{
  margin-left:2px;
  font-size:12px;
  color:#0b63ce;
  font-weight:700;
}
.single-product .rhat-shopee-variation-card{
  min-height:40px;
  border-radius:10px;
  padding:8px 13px;
  background:#fff;
  border:1px solid #dfe5ec;
  transition:all .16s ease;
}
.single-product .rhat-shopee-variation-card:hover{
  border-color:#9fb2c7;
}
.single-product .rhat-shopee-variation-card.is-selected{
  border-color:#0b63ce;
  color:#0b63ce;
  background:#f4f8ff;
  box-shadow:0 0 0 1px rgba(11,99,206,.08);
}
.single-product .rhat-variation-image-strip__row{
  align-items:flex-start;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 5px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.single-product .rhat-variation-image-strip__row::-webkit-scrollbar{display:none;}
.single-product .rhat-variation-image-card:hover{transform:translateY(-1px);border-color:#aaa;}
.single-product .rhat-variation-image-card__label{
  display:block;
  margin:6px 1px 0;
  min-height:17px;
  font-size:13px;
  line-height:1.2;
  font-weight:500;
  color:#555;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.single-product .rhat-shopee-variation-ui{margin-top:3px;}
.single-product .rhat-shopee-variation-group{padding:8px 0 2px;}
.single-product .rhat-shopee-variation-heading{margin:0 0 9px;}
.single-product .rhat-step-number{display:none;}
.single-product .rhat-shopee-variation-heading strong{
  font-size:16px;
  line-height:1.3;
  font-weight:700;
  color:#222;
}
.single-product .rhat-shopee-picked{color:#ef5a35;font-weight:600;}
.single-product .rhat-shopee-variation-grid{display:flex;flex-wrap:wrap;gap:8px;}
.single-product .rhat-shopee-variation-card{
  min-height:42px;
  min-width:58px;
  border-radius:6px;
  padding:8px 14px;
  background:#fff;
  border:1px solid #d5d5d5;
  color:#333;
  box-shadow:none;
}
.single-product .rhat-shopee-variation-card.is-selected{
  border-color:#ef5a35;
  color:#ef5a35;
  background:#fff8f5;
  box-shadow:none;
}
.single-product .rhat-shopee-card-image{display:none;}
.single-product .rhat-shopee-card-label{font-size:14px;font-weight:600;}
.single-product .product-images > .product-thumbnails,
.single-product .product-images + .product-thumbnails{display:block !important;}
.single-product .product-thumbnails{visibility:visible !important;opacity:1 !important;}

@media(max-width:549px){
  .single-product .rhat-variation-image-strip{margin:8px 0 12px;padding:0;border-radius:0}
  .single-product .rhat-variation-image-strip__title{display:none}
  .single-product .rhat-variation-image-card{flex-basis:74px;width:74px}
  .single-product .rhat-variation-image-card__label{font-size:12px}
  .single-product .rhat-shopee-variation-heading strong{font-size:15px}
}

/* Single-product information: clean, compact, reseller-friendly */
.single-product .product-footer{
  margin-top:28px;
  padding:0 0 42px;
}
.single-product .product-footer > .container{
  max-width:1180px;
}
.single-product .woocommerce-tabs{
  margin:0 !important;
  padding:0 !important;
}
.single-product .woocommerce-tabs .tabs{
  display:none !important;
}
.single-product .woocommerce-tabs .tab-panels{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}
.single-product .woocommerce-tabs .woocommerce-Tabs-panel{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
.single-product .woocommerce-tabs .woocommerce-Tabs-panel::before{
  display:none !important;
}
.single-product .woocommerce-tabs .entry-content{
  max-width:none !important;
}
.single-product .woocommerce-tabs .entry-content > h2{
  margin:0 0 14px;
  font-size:21px;
  line-height:1.3;
  font-weight:800;
  color:#182334;
}
.single-product .woocommerce-tabs .entry-content > p:first-child{
  margin-top:0;
}
/* Variation attributes are already shown above (Color images + Size row), so do not repeat them below. */
.single-product .woocommerce-Tabs-panel--additional_information{
  display:none !important;
}
.single-product .woocommerce-product-attributes{
  display:none !important;
  width:100%;
  margin:0;
  border:1px solid #e5e9ef;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 5px 18px rgba(25,45,70,.05);
  border-collapse:separate;
  border-spacing:0;
}
.single-product .woocommerce-product-attributes tr{
  background:#fff;
}
.single-product .woocommerce-product-attributes tr + tr th,
.single-product .woocommerce-product-attributes tr + tr td{
  border-top:1px solid #edf0f4;
}
.single-product .woocommerce-product-attributes th,
.single-product .woocommerce-product-attributes td{
  padding:13px 16px;
  border:0;
  vertical-align:middle;
}
.single-product .woocommerce-product-attributes th{
  width:150px;
  color:#697586;
  font-size:13px;
  font-weight:700;
  background:#fafbfc;
}
.single-product .woocommerce-product-attributes td{
  color:#202938;
  font-size:14px;
  font-weight:600;
}
.single-product .woocommerce-product-attributes td p{
  margin:0;
}
.single-product .woocommerce-product-attributes-item__value a{
  color:#0b63ce;
}

/* Real description, when present, should read like a product information card. */
.single-product .woocommerce-Tabs-panel--description{
  padding:22px 24px !important;
  border:0 !important;
  border-radius:14px !important;
  background:#fff !important;
  box-shadow:0 5px 18px rgba(25,45,70,.05) !important;
}
.single-product .woocommerce-Tabs-panel--description > h2{
  margin:0 0 14px !important;
}
.single-product .woocommerce-Tabs-panel--description p{
  color:#536174;
  font-size:15px;
  line-height:1.8;
}
.single-product .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-Tabs-panel--description ol{
  color:#536174;
  line-height:1.8;
}

/* Keep Size options on one horizontal row where space permits. */
.single-product .rhat-shopee-variation-group--size .rhat-shopee-variation-grid{
  flex-wrap:nowrap;
  overflow-x:auto;
  padding:2px 1px 5px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.single-product .rhat-shopee-variation-group--size .rhat-shopee-variation-grid::-webkit-scrollbar{
  display:none;
}
.single-product .rhat-shopee-variation-group--size .rhat-shopee-variation-card{
  flex:0 0 auto;
}

/* Reseller order card: reduce visual noise and strengthen hierarchy. */
.single-product .rhat-rw-order-box{
  margin-top:14px;
  padding:16px;
  border:1px solid #e4e9ef;
  border-radius:14px;
  background:#fff;
  box-shadow:0 6px 20px rgba(25,45,70,.055);
}
.single-product .rhat-rw-order-box .rhat-rw-range{
  margin:9px 0 4px;
  color:#667487;
  font-size:12px;
}
.single-product .rhat-rw-order-box .rhat-rw-hint{
  margin:0 0 10px;
  color:#8a95a3;
  font-size:11px;
  line-height:1.55;
}
.single-product .rhat-rw-live-total{
  margin:10px 0 12px;
  padding:11px 12px;
  border-radius:9px;
  background:#f7f9fb;
}
.single-product .rhat-rw-profit-message{
  margin:0;
  font-size:14px;
  font-weight:800;
}
.single-product .rhat-rw-add{
  width:100%;
  min-height:46px;
  border-radius:9px;
}

/* Mobile */
@media(max-width:549px){
  .single-product .product-footer{
    margin-top:20px;
    padding-bottom:28px;
  }
  .single-product .woocommerce-Tabs-panel--description{
    padding:17px 15px !important;
    border-radius:11px !important;
  }
  .single-product .woocommerce-Tabs-panel--description p{
    font-size:14px;
    line-height:1.7;
  }
  .single-product .woocommerce-product-attributes th,
  .single-product .woocommerce-product-attributes td{
    padding:11px 12px;
  }
  .single-product .woocommerce-product-attributes th{
    width:34%;
  }
  .single-product .rhat-rw-order-box{
    padding:13px;
    border-radius:11px;
  }
}
/* ========================================================================
 * Reseller Hat — Single Product Premium UI Layer
 * UI/CSS ONLY: no variation, pricing, profit, cart, checkout or order logic.
 * ======================================================================== */
.single-product {
  --rhat-brand: #ee4d2d;
  --rhat-brand-soft: rgba(238,77,45,.10);
  --rhat-ink: #25384a;
  --rhat-muted: #647282;
  --rhat-border: #e5e7eb;
  --rhat-surface: #ffffff;
  --rhat-soft: #f8fafc;
}

/* Product title */
.single-product .product-info.summary .product-title,
.single-product .product-info.summary h1.product_title {
  margin: 0 0 8px !important;
  color: var(--rhat-ink) !important;
  font-size: clamp(24px, 2.15vw, 32px) !important;
  line-height: 1.28 !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}
.single-product .product-info.summary .is-divider.small {
  width: 42px !important;
  height: 2px !important;
  margin: 8px 0 15px !important;
  background: var(--rhat-brand) !important;
  opacity: .9;
}

/* Main price + SKU */
.single-product .product-info.summary .rhat-main-price-row {
  align-items: baseline !important;
  margin: 4px 0 16px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--rhat-border) !important;
}
.single-product .product-info.summary .rhat-main-price-row .price {
  color: var(--rhat-brand) !important;
  font-weight: 800 !important;
  font-size: clamp(22px, 2vw, 28px) !important;
  line-height: 1.2 !important;
}
.single-product .product-info.summary .rhat-main-price-row .price del {
  color: #9aa5b1 !important;
  font-size: .72em !important;
  font-weight: 500 !important;
}
.single-product .product-info.summary .rhat-main-price-sku {
  color: var(--rhat-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.single-product .product-info.summary .rhat-main-price-sku strong {
  color: var(--rhat-ink) !important;
  font-weight: 800 !important;
}

/* Color/image variation cards */
.single-product .rhat-variation-image-card,
.single-product .rhat-shopee-variation-group--color .rhat-shopee-variation-card {
  position: relative !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(20,35,50,.055) !important;
}
.single-product .rhat-variation-image-card:hover,
.single-product .rhat-shopee-variation-group--color .rhat-shopee-variation-card:hover {
  border-color: #cbd5df !important;
  box-shadow: 0 5px 14px rgba(20,35,50,.08) !important;
  transform: translateY(-1px);
}
.single-product .rhat-variation-image-card.is-selected,
.single-product .rhat-shopee-variation-group--color .rhat-shopee-variation-card.is-selected {
  border-color: var(--rhat-brand) !important;
  box-shadow: 0 0 0 2px var(--rhat-brand-soft), 0 4px 12px rgba(20,35,50,.08) !important;
}
.single-product .rhat-variation-image-card.is-selected::after,
.single-product .rhat-shopee-variation-group--color .rhat-shopee-variation-card.is-selected::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rhat-brand);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
  z-index: 3;
}
.single-product .rhat-variation-image-card__img,
.single-product .rhat-shopee-card-image,
.single-product .rhat-shopee-card-image img {
  aspect-ratio: 1 / 1 !important;
}
.single-product .rhat-variation-image-card__img,
.single-product .rhat-shopee-card-image {
  overflow: hidden !important;
}
.single-product .rhat-variation-image-card img,
.single-product .rhat-shopee-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Size / other variation pills */
.single-product .rhat-shopee-variation-group--size .rhat-shopee-variation-card {
  min-width: 54px !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 8px 15px !important;
  border: 1px solid var(--rhat-border) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--rhat-ink) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(20,35,50,.04) !important;
}
.single-product .rhat-shopee-variation-group--size .rhat-shopee-variation-card.is-selected {
  border-color: var(--rhat-brand) !important;
  background: var(--rhat-brand) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(238,77,45,.18) !important;
}
.single-product .rhat-shopee-variation-heading {
  color: var(--rhat-ink) !important;
  margin-bottom: 9px !important;
}
.single-product .rhat-shopee-picked {
  color: var(--rhat-muted) !important;
}

/* Reseller rules accordion */
.single-product .rhat-rw-notice {
  margin: 14px 0 !important;
  border: 1px solid var(--rhat-border) !important;
  border-left: 0 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  box-shadow: 0 2px 10px rgba(20,35,50,.035) !important;
}
.single-product .rhat-rw-notice summary {
  min-height: 48px !important;
  padding: 12px 14px !important;
  color: var(--rhat-ink) !important;
  font-size: 13px !important;
  transition: background .2s ease, color .2s ease;
}
.single-product .rhat-rw-notice summary:hover {
  background: #f3f6f9 !important;
}
.single-product .rhat-rw-notice[open] summary {
  color: var(--rhat-brand) !important;
}
.single-product .rhat-rw-notice-body {
  border-top: 1px solid var(--rhat-border);
  padding: 12px 14px 14px !important;
  color: #566575 !important;
}

/* Quantity + selling-price controls */
.single-product .rhat-rw-order-box {
  border: 1px solid var(--rhat-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 20px rgba(20,35,50,.045) !important;
}
.single-product .rhat-rw-qty-control {
  border: 1px solid #dfe5eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  overflow: hidden !important;
}
.single-product .rhat-rw-qty-control button {
  background: #f8fafc !important;
  color: var(--rhat-ink) !important;
  transition: background .18s ease, color .18s ease;
}
.single-product .rhat-rw-qty-control button:hover {
  background: #eef2f6 !important;
}
.single-product .rhat-rw-qty-control input {
  border: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  font-weight: 700 !important;
}
.single-product .rhat-rw-sale-trigger label {
  border: 1px solid #dfe5eb !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--rhat-ink) !important;
  padding: 11px 12px !important;
}
.single-product .rhat-rw-sale-trigger input {
  border: 1px solid #d8e0e8 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}
.single-product .rhat-rw-sale-trigger input:focus {
  border-color: var(--rhat-brand) !important;
  box-shadow: 0 0 0 3px var(--rhat-brand-soft) !important;
  outline: none !important;
}

/* Dynamic profit badge — visual only; the existing JS remains untouched. */
.single-product .rhat-rw-live-total .rhat-rw-profit-message,
.single-product .rhat-rw-profit-message {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 10px 0 4px !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Primary reseller CTA */
.single-product .rhat-rw-add {
  border: 0 !important;
  background: var(--rhat-brand) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.12) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.single-product .rhat-rw-add:hover:not(:disabled) {
  background: var(--rhat-brand) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 18px rgba(0,0,0,.14) !important;
  filter: brightness(.97);
}
.single-product .rhat-rw-add:active:not(:disabled) {
  transform: translateY(0) !important;
}

/* Social share icons */
.single-product .share-icons,
.single-product .social-icons {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap;
}
.single-product .share-icons a,
.single-product .social-icons a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #dfe5eb !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #536273 !important;
  box-shadow: none !important;
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease !important;
}
.single-product .share-icons a:hover,
.single-product .social-icons a:hover {
  transform: translateY(-2px) !important;
  border-color: var(--rhat-brand) !important;
  color: var(--rhat-brand) !important;
  background: #fff !important;
}
.single-product .share-icons a svg,
.single-product .social-icons a svg,
.single-product .share-icons a i,
.single-product .social-icons a i {
  max-width: 16px !important;
  max-height: 16px !important;
  font-size: 14px !important;
}

/* Description card */
.single-product .woocommerce-Tabs-panel--description {
  margin: 20px 0 0 !important;
  padding: 24px !important;
  border: 1px solid #eef1f4 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
  color: #435364 !important;
  line-height: 1.8 !important;
}
.single-product .woocommerce-Tabs-panel--description > :first-child {
  margin-top: 0 !important;
}
.single-product .woocommerce-Tabs-panel--description > :last-child {
  margin-bottom: 0 !important;
}
.single-product .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4 {
  color: var(--rhat-ink) !important;
  line-height: 1.4 !important;
}
.single-product .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-Tabs-panel--description ol {
  margin: 12px 0 18px !important;
  padding-left: 0 !important;
  list-style: none !important;
}
.single-product .woocommerce-Tabs-panel--description li {
  position: relative;
  padding-left: 26px !important;
  margin: 7px 0 !important;
}
.single-product .woocommerce-Tabs-panel--description li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .15em;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 800;
}

/* Responsive size/specification tables */
.single-product .woocommerce-Tabs-panel--description table {
  width: 100% !important;
  margin: 16px 0 20px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--rhat-border) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
.single-product .woocommerce-Tabs-panel--description th,
.single-product .woocommerce-Tabs-panel--description td {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf0f3 !important;
  text-align: left !important;
  vertical-align: middle !important;
}
.single-product .woocommerce-Tabs-panel--description th {
  background: #f5f7f9 !important;
  color: var(--rhat-ink) !important;
  font-weight: 800 !important;
}
.single-product .woocommerce-Tabs-panel--description tbody tr:nth-child(even) td {
  background: #fafbfc !important;
}
.single-product .woocommerce-Tabs-panel--description tr:last-child td {
  border-bottom: 0 !important;
}
.single-product .woocommerce-Tabs-panel--description table + table {
  margin-top: 18px !important;
}

/* Copy button */
.single-product .woocommerce-Tabs-panel--description .rhat-rw-copy-description {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  margin-top: 16px !important;
  padding: 9px 14px !important;
  border: 1px solid #dbe3ea !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #3f5061 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease !important;
}
.single-product .woocommerce-Tabs-panel--description .rhat-rw-copy-description::before {
  content: '';
  width: 14px;
  height: 14px;
  display: inline-block;
  background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233f5061' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
}
.single-product .woocommerce-Tabs-panel--description .rhat-rw-copy-description:hover {
  border-color: var(--rhat-brand) !important;
  color: var(--rhat-brand) !important;
  background: #fff9f7 !important;
  transform: translateY(-1px);
}

/* Product image area */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__image img,
.single-product .product-gallery-slider .slide img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}
.single-product .woocommerce-product-gallery__image,
.single-product .product-gallery-slider .slide {
  overflow: hidden !important;
  border-radius: 12px !important;
}

@media (max-width: 600px) {
  .single-product .product-info.summary .product-title,
  .single-product .product-info.summary h1.product_title {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }
  .single-product .woocommerce-Tabs-panel--description {
    padding: 16px !important;
    border-radius: 10px !important;
  }
  .single-product .woocommerce-Tabs-panel--description table {
    font-size: 12px !important;
  }
  .single-product .woocommerce-Tabs-panel--description th,
  .single-product .woocommerce-Tabs-panel--description td {
    padding: 8px 9px !important;
  }
  .single-product .share-icons a,
  .single-product .social-icons a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
}

/* ========================================================================
 * Reseller Hat — Single Product Description Overflow Safety Fix V1
 * CSS ONLY: protects description content on narrow/mobile viewports.
 * ======================================================================== */
.single-product .woocommerce-Tabs-panel--description,
.single-product .woocommerce-Tabs-panel--description * {
  box-sizing: border-box !important;
}

.single-product .woocommerce-Tabs-panel--description {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
}

.single-product .woocommerce-Tabs-panel--description h1,
.single-product .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4,
.single-product .woocommerce-Tabs-panel--description h5,
.single-product .woocommerce-Tabs-panel--description h6,
.single-product .woocommerce-Tabs-panel--description .title,
.single-product .woocommerce-Tabs-panel--description .product-title {
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
}

.single-product .woocommerce-Tabs-panel--description p {
  max-width: 100% !important;
  margin: 0 0 12px !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
}

.single-product .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-Tabs-panel--description ol {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 12px !important;
  padding-left: 18px !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

.single-product .woocommerce-Tabs-panel--description li {
  max-width: 100% !important;
  margin: 0 0 8px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.7 !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
}

.single-product .woocommerce-Tabs-panel--description li::before {
  left: -18px !important;
}

.single-product .woocommerce-Tabs-panel--description img,
.single-product .woocommerce-Tabs-panel--description video,
.single-product .woocommerce-Tabs-panel--description iframe,
.single-product .woocommerce-Tabs-panel--description embed,
.single-product .woocommerce-Tabs-panel--description object,
.single-product .woocommerce-Tabs-panel--description svg {
  max-width: 100% !important;
  height: auto !important;
}

.single-product .woocommerce-Tabs-panel--description table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

@media (max-width: 600px) {
  .single-product .woocommerce-Tabs-panel--description {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 10px !important;
    line-height: 1.7 !important;
  }

  .single-product .woocommerce-Tabs-panel--description h1,
  .single-product .woocommerce-Tabs-panel--description h2,
  .single-product .woocommerce-Tabs-panel--description h3,
  .single-product .woocommerce-Tabs-panel--description h4,
  .single-product .woocommerce-Tabs-panel--description h5,
  .single-product .woocommerce-Tabs-panel--description h6,
  .single-product .woocommerce-Tabs-panel--description .title,
  .single-product .woocommerce-Tabs-panel--description .product-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
  }

  .single-product .woocommerce-Tabs-panel--description p {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  .single-product .woocommerce-Tabs-panel--description ul,
  .single-product .woocommerce-Tabs-panel--description ol {
    margin: 0 0 12px !important;
    padding-left: 18px !important;
  }

  .single-product .woocommerce-Tabs-panel--description li {
    margin-bottom: 8px !important;
    line-height: 1.7 !important;
  }

  .single-product .woocommerce-Tabs-panel--description table {
    font-size: 12px !important;
  }
}


/* V3 — Premium product description: stable width, calm typography, clean content rhythm. */

/* V4 — Prevent CTA text/controls from covering the share row. */
.single-product .product-info.summary .share-icons,
.single-product .product-info.summary .social-icons {
  position: relative !important;
  z-index: 20 !important;
  clear: both !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 20px 0 8px !important;
  padding: 2px 0 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
}
.single-product .product-info.summary .share-icons a,
.single-product .product-info.summary .social-icons a {
  flex: 0 0 34px !important;
}
.single-product .product-info.summary .rhat-rw-add,
.single-product .product-info.summary .rhat-rw-order-box {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 600px) {
  .single-product .product-info.summary .share-icons,
  .single-product .product-info.summary .social-icons {
    margin-top: 22px !important;
    margin-bottom: 8px !important;
    min-height: 36px !important;
  }
}
.single-product .woocommerce-Tabs-panel--description {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 22px 0 0 !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  border: 1px solid #e7edf2 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
  box-shadow: 0 8px 28px rgba(18, 59, 93, .055) !important;
  color: #425466 !important;
  font-size: 15px !important;
  line-height: 1.85 !important;
  overflow-wrap: anywhere !important;
  word-wrap: break-word !important;
}
.single-product .woocommerce-Tabs-panel--description,
.single-product .woocommerce-Tabs-panel--description * {
  box-sizing: border-box !important;
  min-width: 0;
  max-width: 100%;
}
.single-product .woocommerce-Tabs-panel--description h1,
.single-product .woocommerce-Tabs-panel--description h2,
.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4,
.single-product .woocommerce-Tabs-panel--description h5,
.single-product .woocommerce-Tabs-panel--description h6,
.single-product .woocommerce-Tabs-panel--description .title,
.single-product .woocommerce-Tabs-panel--description .product-title {
  margin: 0 0 14px !important;
  color: #173b59 !important;
  font-family: inherit !important;
  font-size: clamp(18px, 4.8vw, 22px) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.single-product .woocommerce-Tabs-panel--description h3,
.single-product .woocommerce-Tabs-panel--description h4,
.single-product .woocommerce-Tabs-panel--description h5,
.single-product .woocommerce-Tabs-panel--description h6 {
  margin-top: 20px !important;
  font-size: 17px !important;
}
.single-product .woocommerce-Tabs-panel--description p {
  margin: 0 0 14px !important;
  color: #526273 !important;
  font-size: 15px !important;
  line-height: 1.9 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.single-product .woocommerce-Tabs-panel--description strong,
.single-product .woocommerce-Tabs-panel--description b {
  color: #263f55 !important;
  font-weight: 750 !important;
}
.single-product .woocommerce-Tabs-panel--description a {
  color: #174f78 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere !important;
}
.single-product .woocommerce-Tabs-panel--description ul,
.single-product .woocommerce-Tabs-panel--description ol {
  margin: 12px 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}
.single-product .woocommerce-Tabs-panel--description li {
  position: relative !important;
  margin: 8px 0 !important;
  padding: 11px 12px 11px 40px !important;
  border: 1px solid #edf1f5 !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  color: #4a5b6b !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.single-product .woocommerce-Tabs-panel--description li::before {
  content: '✓' !important;
  position: absolute !important;
  left: 12px !important;
  top: 12px !important;
  width: 18px !important;
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #e6f4eb !important;
  color: #247447 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.single-product .woocommerce-Tabs-panel--description img,
.single-product .woocommerce-Tabs-panel--description video,
.single-product .woocommerce-Tabs-panel--description iframe,
.single-product .woocommerce-Tabs-panel--description svg {
  max-width: 100% !important;
  height: auto;
}
.single-product .woocommerce-Tabs-panel--description table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border: 1px solid #e4eaf0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  font-size: 13px !important;
}
.single-product .woocommerce-Tabs-panel--description th,
.single-product .woocommerce-Tabs-panel--description td {
  padding: 10px 11px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.single-product .woocommerce-Tabs-panel--description .rhat-rw-copy-description {
  min-height: 40px !important;
  padding: 10px 15px !important;
  border: 1px solid #dce5ed !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #29465f !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(18, 59, 93, .04) !important;
}
@media (max-width: 600px) {
  .single-product .woocommerce-Tabs-panel--description {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 17px 16px !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 18px rgba(18, 59, 93, .045) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
  }
  .single-product .woocommerce-Tabs-panel--description h1,
  .single-product .woocommerce-Tabs-panel--description h2,
  .single-product .woocommerce-Tabs-panel--description .title,
  .single-product .woocommerce-Tabs-panel--description .product-title {
    font-size: 20px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  .single-product .woocommerce-Tabs-panel--description h3,
  .single-product .woocommerce-Tabs-panel--description h4,
  .single-product .woocommerce-Tabs-panel--description h5,
  .single-product .woocommerce-Tabs-panel--description h6 {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }
  .single-product .woocommerce-Tabs-panel--description p {
    font-size: 14px !important;
    line-height: 1.9 !important;
    margin-bottom: 12px !important;
  }
  .single-product .woocommerce-Tabs-panel--description li {
    padding: 10px 10px 10px 36px !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
  }
  .single-product .woocommerce-Tabs-panel--description li::before {
    left: 10px !important;
    top: 11px !important;
  }
  .single-product .woocommerce-Tabs-panel--description th,
  .single-product .woocommerce-Tabs-panel--description td {
    padding: 8px 7px !important;
    font-size: 12px !important;
  }
}
