/* SG card architecture v2: isolated from category cards. */
.product-page.sg-card .sg-product-layout{display:grid!important;grid-template-columns:minmax(0,42fr) minmax(0,30fr) minmax(0,28fr)!important;gap:24px!important;align-items:start!important}
.product-page.sg-card.sg-card--simple .sg-product-layout{grid-template-columns:minmax(0,55fr) minmax(0,45fr)!important}
.product-page.sg-card .sg-product-col-left,.product-page.sg-card .sg-product-top-row{display:contents!important}
.product-page.sg-card .product-page__visual{grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:8px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;overflow:visible!important}
.product-page.sg-card .product-page__visual.sg-gallery--single{grid-template-columns:minmax(0,1fr)}
.product-page.sg-card .product-page__visual-main{grid-column:2!important;grid-row:1!important;aspect-ratio:1/1;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;padding:12px!important;border:1px solid #E5E7EB!important;border-radius:12px!important;box-shadow:none!important}
.product-page.sg-card .sg-gallery--single .product-page__visual-main{grid-column:1!important}
.product-page.sg-card .product-page__visual-main img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.product-page.sg-card .product-page__visual-main .swiper-wrapper{position:absolute!important;inset:12px!important;width:calc(100% - 24px)!important;height:calc(100% - 24px)!important;max-height:100%!important}
.product-page.sg-card .product-page__visual-thumbs{grid-column:1!important;grid-row:1!important;width:72px!important;max-width:72px!important;height:100%!important;max-height:420px;min-height:0;margin:0!important;overflow-y:auto;align-self:stretch}
.product-page.sg-card .product-page__visual-thumbs .swiper-wrapper{display:flex!important;flex-direction:column;gap:8px!important;height:0;min-height:100%;transform:none!important}
.product-page.sg-card .product-page__visual-thumbs .swiper-slide{box-sizing:border-box!important;width:64px!important;height:64px!important;min-height:64px;flex:0 0 64px!important;margin:0!important;border-radius:8px!important;cursor:pointer}
.product-page.sg-card .product-page__visual-thumbs .swiper-slide-thumb-active{border-color:#0B3B95!important;box-shadow:0 0 0 1px #0B3B95!important}
.sg-sale-badge{position:absolute;z-index:2;left:12px;top:12px;background:#C72C35;color:white;padding:5px 10px;border-radius:6px;font-size:12px;font-weight:700}
.product-page.sg-card .product-page__info{grid-column:2!important;grid-row:1!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;background:#fff!important;border:1px solid #E5E7EB!important;border-radius:12px!important;padding:20px!important}
.sg-summary h2{font-size:18px;margin:0 0 16px}.sg-summary dl{margin:0 0 16px}.sg-summary dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dotted #cbd5e1;padding:9px 0;font-size:13px}.sg-summary dt{color:#64748b;font-weight:400;overflow-wrap:anywhere}.sg-summary dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}
.sg-card a[data-sg-tab],.sg-summary a{color:#0B3B95!important;font-size:13px}.sg-summary fieldset{border:0;padding:0;margin:0 0 14px;min-width:0}.sg-summary legend{font-size:13px;margin-bottom:8px}.sg-option-tiles{display:flex;gap:8px;flex-wrap:wrap}.sg-option-tiles label{position:relative;cursor:pointer}.sg-option-tiles label>span{display:block;border:1px solid #E5E7EB;border-radius:8px;padding:8px}.sg-option-tiles input:checked~span{border-color:#0B3B95;background:#eff6ff}.sg-option-tiles input{margin-right:4px}.sg-option-tiles img{width:40px;height:40px;object-fit:contain}.sg-summary input,.sg-summary textarea{max-width:100%;box-sizing:border-box}
.product-page.sg-card .sg-product-col-right{grid-column:3!important;grid-row:1!important;position:sticky!important;top:20px!important;width:100%!important;min-width:0!important;max-width:none!important}
.product-page.sg-card.sg-card--simple .sg-product-col-right{grid-column:2!important}
.product-page.sg-card .product-page__control{box-sizing:border-box!important;border:1px solid #E5E7EB!important;border-radius:12px!important;background:white!important;padding:20px!important;box-shadow:none!important;min-width:0!important}
.product-page.sg-card .product-page__control>div{max-width:100%!important}
.product-page.sg-card .product-page__control span[style*="font-size: 26px"]{font-size:30px!important}
.product-page.sg-card #btn-product-add-cart{background:#C72C35!important;box-shadow:none!important;min-width:0;font-size:14px!important}
.product-page.sg-card #btn-product-add-cart:hover{background:#A8222A!important}
.sg-stock-summary{margin-top:18px;padding-top:14px;border-top:1px solid #E5E7EB;font-size:12px}.sg-stock-line{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:10px 0}.sg-stock-line span{min-width:0}.sg-stock-line b{white-space:nowrap;color:#64748b}.sg-stock-line b.sg-in-stock{color:#168348}.sg-stock-summary a{display:inline-block;margin-top:4px}
.product-page.sg-card .product-page__tabs{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;margin-top:8px}.sg-card .tabs-header{flex-wrap:wrap;gap:20px!important}.sg-card .tabs-header__link{font-size:14px!important}.sg-card .product-specs-table{max-width:none!important}
.product-page.sg-card .sg-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px!important;margin-bottom:20px!important;font-size:12px!important}.sg-card-meta>span{margin:0!important}.sg-card-meta b{color:#334155}.sg-copy{background:white;border:1px solid #E5E7EB;border-radius:6px;padding:5px 9px;cursor:pointer;color:#0B3B95}.sg-copy-status:empty{display:none}.sg-meta-actions{display:flex;gap:16px;margin-left:auto}.sg-card .sg-meta-actions button{width:auto!important;height:auto!important;border:0!important;background:transparent!important;border-radius:0!important;display:inline-flex!important;gap:6px;padding:4px 0;font-size:12px;white-space:nowrap}.sg-meta-actions button span{color:#0B3B95!important;margin:0!important;font-size:12px!important}
#sg-review-form{display:grid;gap:12px;max-width:600px;margin-top:20px}#sg-review-form label{display:grid;gap:6px}#sg-review-form input,#sg-review-form textarea,#sg-review-form select{border:1px solid #E5E7EB;border-radius:8px;padding:10px;width:100%;box-sizing:border-box}#sg-review-form button{padding:12px;border:0;border-radius:8px;color:white;background:#C72C35}.sg-upload-code{width:100%}
@media(min-width:768px) and (max-width:1199px){
 .product-page.sg-card .sg-product-layout,.product-page.sg-card.sg-card--simple .sg-product-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px!important}
 .product-page.sg-card .sg-product-col-right,.product-page.sg-card.sg-card--simple .sg-product-col-right{grid-column:2!important;grid-row:1!important;position:static!important}
 .product-page.sg-card .product-page__info{grid-column:1/-1!important;grid-row:2!important}
 .product-page.sg-card .product-page__tabs{grid-row:3!important}
 .product-page.sg-card.sg-card--simple .product-page__tabs{grid-row:2!important}
 .product-page.sg-card .product-page__visual{display:flex!important;flex-direction:column!important;gap:8px!important}
 .product-page.sg-card .product-page__visual-main{height:360px!important;max-height:400px!important;aspect-ratio:auto}
 .product-page.sg-card .product-page__visual-main img{max-height:336px!important}
 .product-page.sg-card .product-page__visual-thumbs{width:100%!important;max-width:100%!important;height:52px!important;overflow-x:auto;overflow-y:hidden}
 .product-page.sg-card .product-page__visual-thumbs .swiper-wrapper{flex-direction:row;height:auto;min-height:0}
 .product-page.sg-card .product-page__visual-thumbs .swiper-slide{width:48px!important;height:48px!important;min-height:48px;flex-basis:48px!important}
 .main-header .header-actions{gap:12px!important;flex:0 0 auto!important;flex-wrap:nowrap!important;white-space:nowrap}.main-header .header-action-btn{flex:0 0 auto!important}.main-header .action-label{white-space:nowrap}
}
@media(max-width:767px){
 .product-page.sg-card .sg-product-layout,.product-page.sg-card.sg-card--simple .sg-product-layout{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .product-page.sg-card .product-page__visual{grid-template-columns:44px minmax(0,1fr);max-height:240px!important;overflow:hidden!important}
 .product-page.sg-card .product-page__visual-main{height:240px!important;max-height:240px!important;aspect-ratio:auto}
 .product-page.sg-card .product-page__visual-main img{max-height:216px!important}
 .product-page.sg-card .product-page__visual-thumbs{width:44px!important;max-width:44px!important;max-height:240px!important}
 .product-page.sg-card .product-page__visual-thumbs .swiper-slide{width:40px!important;height:40px!important;min-height:40px;flex-basis:40px!important}
 .product-page.sg-card .sg-product-col-right,.product-page.sg-card.sg-card--simple .sg-product-col-right{grid-column:1!important;grid-row:2!important;position:static!important}
 .product-page.sg-card .product-page__info{grid-column:1!important;grid-row:3!important}
 .product-page.sg-card .product-page__tabs{grid-row:4!important}.product-page.sg-card.sg-card--simple .product-page__tabs{grid-row:3!important}
 .sg-meta-actions{margin-left:0;width:100%;gap:20px}.sg-card .tabs-header{gap:12px!important}
}

.product-page.sg-card .sg-product-layout{grid-template-areas:none!important}
.sg-summary h2{font-weight:700}
.sg-card .tabs-header__item:has([data-tab-btn=desc]){order:1}.sg-card .tabs-header__item:has([data-tab-btn=params]){order:2}.sg-card .tabs-header__item:has([data-tab-btn=delivery]){order:3}.sg-card .tabs-header__item:has([data-tab-btn=reviews]){order:4}

/* Tabs are a sibling of the upper grid: sticky cannot enter their content. */
.product-page.sg-card .sg-product-tabs-below {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box;
  margin-top:24px!important;
}
.product-page.sg-card #sg-stores { max-width:none!important; width:100%; box-sizing:border-box; }
.sg-card .sg-stores-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
.sg-card .sg-stores-grid > div { min-width:0; padding:16px!important; box-sizing:border-box; overflow-wrap:anywhere; }
.sg-card .sg-stores-grid a { max-width:100%; box-sizing:border-box; }
@media(min-width:768px) and (max-width:1199px){
  .sg-card .sg-stores-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:1200px){
  .product-page.sg-card .sg-product-col-right { position:sticky!important; top:20px!important; align-self:start; }
  .sg-card .sg-stores-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* Metadata: actions on the left, article at the right. */
.product-page.sg-card .sg-card-meta-v3{display:flex!important;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:16px!important}
.sg-card .sg-meta-left{display:flex;align-items:center;gap:16px;min-width:0}
.sg-card .sg-meta-left button{width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:transparent!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;padding:4px 0!important;font-size:12px;white-space:nowrap;color:#0B3B95;cursor:pointer;flex:0 0 auto}
.sg-card .sg-meta-left button span{font-size:12px!important;margin:0!important;color:#0B3B95!important}
.sg-card .sg-meta-left svg{flex:0 0 auto}
.sg-card .sg-rating-link{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;font-size:12px!important}
.sg-rating-stars{display:inline-flex;gap:0;color:#cbd5e1;font-size:13px}.sg-rating-stars .is-rated{color:#0B3B95}
.sg-card .sg-rating-stars>span{color:#cbd5e1!important}.sg-card .sg-rating-stars>span.is-rated{color:#0B3B95!important}
.sg-card .sg-meta-sku{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap;flex:0 0 auto;margin-left:auto}
.sg-meta-sku .sg-copy-status,.sg-meta-left .sg-share-status{position:absolute;background:#0B3B95;color:white;border-radius:5px;padding:5px 8px;z-index:30;transform:translateY(30px);font-size:12px}
.sg-copy-status:empty,.sg-share-status:empty{display:none}
.sg-variants{margin-bottom:20px}.sg-variant-tiles{display:flex;flex-wrap:wrap;gap:8px}.sg-card .sg-variant-tile{display:inline-flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;min-width:44px;min-height:40px;padding:8px 12px;border:1px solid #D1D5DB;border-radius:8px;background:#fff;color:#334155!important;text-decoration:none!important;font-size:14px!important}
.sg-card .sg-variant-tile:hover{border-color:#0B3B95}
.sg-card .sg-variant-tile.is-current{border:2px solid #0B3B95;font-weight:700;background-color:#fff}
.sg-card .sg-variant-tile.is-unavailable{color:#9CA3AF!important;background-color:#F3F4F6;background-image:linear-gradient(to top right,transparent calc(50% - .7px),#9CA3AF 50%,transparent calc(50% + .7px))}
.sg-card .sg-stores-grid{padding:16px;box-sizing:border-box}
@media(min-width:768px) and (max-width:1199px){.sg-card .sg-meta-left{gap:16px}.sg-card .sg-meta-left button,.sg-card .sg-meta-left button span,.sg-card .sg-rating-link{font-size:11px!important}.sg-rating-stars{font-size:11px}}
@media(max-width:767px){
 .product-page.sg-card .sg-card-meta-v3{flex-wrap:wrap;gap:10px!important}
 .sg-card .sg-meta-left{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%}
 .sg-card .sg-meta-left button,.sg-card .sg-meta-left .sg-rating-link{flex-direction:column;gap:4px;min-width:0;font-size:10px!important}
 .sg-card .sg-meta-left button span{font-size:10px!important}
 .sg-card .sg-meta-sku{font-size:12px;margin-left:auto}
 .sg-card .sg-meta-left .sg-share-status{right:16px;top:auto}
 .sg-card .sg-stores-grid{padding:0}
}

/* Content-sized centre panel, including variant-only products. */
.product-page.sg-card .product-page__info.sg-summary{height:auto!important;min-height:0!important;align-self:start!important}
.product-page.sg-card .sg-summary>.sg-variants:last-child{margin-bottom:0!important}

/* Shared typography and contrast for the product's three supporting blocks. */
.product-page.sg-card .sg-card-meta-v3 {
  border-bottom:1px solid #E5E7EB;
  padding-bottom:12px!important;
  margin-bottom:20px!important;
  gap:20px!important;
  flex-wrap:wrap;
  font-size:14px!important;
  font-weight:500;
  color:#1E293B;
}
.product-page.sg-card .sg-meta-left { gap:20px; }
.product-page.sg-card .sg-meta-left button,
.product-page.sg-card .sg-meta-left button>span,
.product-page.sg-card .sg-meta-left .sg-rating-link,
.product-page.sg-card .sg-meta-left .sg-rating-link>span:not(.sg-rating-stars) {
  font-size:14px!important;
  font-weight:500!important;
  color:#1E293B!important;
  margin:0!important;
}
.product-page.sg-card .sg-meta-left button:hover,
.product-page.sg-card .sg-meta-left button:hover>span,
.product-page.sg-card .sg-meta-left .sg-rating-link:hover,
.product-page.sg-card .sg-meta-left .sg-rating-link:hover>span:not(.sg-rating-stars) {
  color:#0B3B95!important;
}
.product-page.sg-card .sg-meta-left svg,
.product-page.sg-card .sg-meta-sku svg {
  width:16px!important;
  height:16px!important;
  flex:0 0 16px;
  color:#0B3B95;
  stroke:#0B3B95!important;
  fill:none!important;
}
.product-page.sg-card .sg-meta-left .wishlist-button.is-active svg { fill:#0B3B95!important; }
.product-page.sg-card .sg-rating-stars { font-size:16px; }
.product-page.sg-card .sg-rating-stars>span { font-size:16px!important; margin:0!important; }
.product-page.sg-card .sg-meta-sku {
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-radius:8px;
  padding:4px 10px;
  font-size:13px;
  font-weight:500;
  color:#334155;
  box-sizing:border-box;
}
.product-page.sg-card .sg-meta-sku>span:not(.sg-copy-status),
.product-page.sg-card .sg-meta-sku b { font-size:13px!important; color:#334155!important; margin:0!important; }
.product-page.sg-card .sg-meta-sku .sg-copy {
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  background:transparent;
  color:#0B3B95;
}
.product-page.sg-card .product-page__info.sg-summary {
  border:none!important;
  background:transparent!important;
  padding:0!important;
  box-shadow:none!important;
  height:auto!important;
  align-self:start!important;
}
.product-page.sg-card .sg-summary h2 {
  font-size:15px!important;
  font-weight:700;
  color:#0F172A;
  margin:0 0 10px;
}
.product-page.sg-card .sg-summary>.sg-variants { margin-bottom:16px; }
.product-page.sg-card .sg-summary>.sg-variants:last-child { margin-bottom:0!important; }
.product-page.sg-card .sg-variant-tile {
  min-width:52px;
  height:42px;
  min-height:42px;
  padding:0 14px;
  border:1px solid #CBD5E1;
  border-radius:10px;
  font-size:15px!important;
  font-weight:600;
  color:#0F172A!important;
  background:#FFFFFF;
}
.product-page.sg-card .sg-variant-tile:hover { border-color:#0B3B95; }
.product-page.sg-card .sg-variant-tile.is-current {
  border:2px solid #0B3B95;
  color:#0B3B95!important;
  background:#EFF6FF;
}
.product-page.sg-card .sg-variant-tile.is-unavailable {
  color:#94A3B8!important;
  background-color:#F8FAFC;
  background-image:linear-gradient(to top right,transparent calc(50% - .5px),#CBD5E1 50%,transparent calc(50% + .5px));
}
.product-page.sg-card .sg-summary dl { margin:0 0 10px; }
.product-page.sg-card .sg-summary dl>div,
.product-page.sg-card .sg-summary dt,
.product-page.sg-card .sg-summary dd { font-size:14px!important; color:#1E293B!important; }
.product-page.sg-card .sg-summary dl a { font-size:14px!important; color:#1E293B!important; }
.product-page.sg-card .sg-summary dl a:hover { color:#0B3B95!important; }
.product-page.sg-card .sg-stock-summary { font-size:14px; color:#1E293B; }
.product-page.sg-card .sg-stock-summary>strong { font-size:14px; font-weight:700; color:#0F172A; }
.product-page.sg-card .sg-stock-line { gap:8px; margin:8px 0; font-size:14px; }
.product-page.sg-card .sg-stock-line>span { font-size:14px; color:#1E293B; font-weight:500; }
.product-page.sg-card .sg-stock-line>b { font-size:14px; color:#64748B; font-weight:500; }
.product-page.sg-card .sg-stock-line>b.sg-in-stock { color:#15803D; font-weight:700; }
.product-page.sg-card .sg-stock-summary>a { font-size:14px!important; font-weight:600; color:#0B3B95!important; }
@media(max-width:767px) {
  .product-page.sg-card .sg-meta-left { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
  .product-page.sg-card .sg-meta-left button,
  .product-page.sg-card .sg-meta-left .sg-rating-link { flex-direction:row; justify-content:flex-start; }
  .product-page.sg-card .sg-rating-link { flex-wrap:wrap; }
}

/* One segmented tab control; old theme rules and switcher underline styles are neutralised. */
.product-page.sg-card #tabs .sg-pill-tabs-header {
  display:block;
  border:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent;
}
.product-page.sg-card #tabs .sg-pill-tabs {
  display:inline-flex!important;
  flex-wrap:nowrap!important;
  align-items:stretch;
  gap:6px!important;
  padding:5px!important;
  margin:0 0 20px!important;
  background:#F1F5F9!important;
  border:1px solid #E2E8F0!important;
  border-radius:12px;
  box-sizing:border-box;
  max-width:100%;
  vertical-align:top;
}
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__item {
  display:flex;
  flex:0 0 auto;
  align-items:stretch;
  border:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  min-height:0;
}
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link {
  display:inline-flex!important;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px!important;
  margin:0!important;
  min-height:0!important;
  border:0!important;
  border-radius:9px;
  font-family:inherit;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-transform:none!important;
  white-space:nowrap;
  text-decoration:none!important;
  color:#475569!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer;
  transition:all .15s ease;
}
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link:not(.active):hover { color:#0F172A!important; }
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link.active {
  background:#FFFFFF!important;
  color:#0B3B95!important;
  box-shadow:0 1px 3px rgba(15,23,42,.08)!important;
}
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link:focus-visible { outline:2px solid #0B3B95; outline-offset:1px; }
.product-page.sg-card #tabs .sg-tab-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:2px 7px;
  border-radius:999px;
  font-size:12px!important;
  font-weight:600;
  line-height:1.2;
  color:#334155!important;
  background:#E2E8F0!important;
  margin:0!important;
}
.product-page.sg-card #tabs .active>.sg-tab-count { background:#EFF6FF!important; color:#0B3B95!important; }
.product-page.sg-card #tabs .sg-pill-tabs-header::before,
.product-page.sg-card #tabs .sg-pill-tabs-header::after,
.product-page.sg-card #tabs .sg-pill-tabs::before,
.product-page.sg-card #tabs .sg-pill-tabs::after,
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__item::before,
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__item::after,
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link::before,
.product-page.sg-card #tabs .sg-pill-tabs .tabs-header__link::after { content:none!important; display:none!important; border:0!important; }
.product-page.sg-card #tabs .product-specs-table { width:100%; max-width:none!important; }
.product-page.sg-card #tabs .product-specs-table>div {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  padding:12px 14px!important;
  margin:0;
  border:0!important;
  border-bottom:1px solid #E2E8F0!important;
  font-size:14px!important;
  line-height:1.5;
  color:#1E293B!important;
  align-items:baseline;
}
.product-page.sg-card #tabs .product-specs-table>div:nth-child(odd) { background:#F8FAFC; }
.product-page.sg-card #tabs .product-specs-table>div>span {
  min-width:0;
  padding:0!important;
  font-size:14px!important;
  color:#1E293B!important;
  overflow-wrap:anywhere;
}
@media(max-width:767px){
  .product-page.sg-card #tabs .sg-pill-tabs {
    display:flex!important;
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    overscroll-behavior-x:contain;
  }
  .product-page.sg-card #tabs .sg-pill-tabs::-webkit-scrollbar { display:none; }
}

/* Compact product composition; variant indexing and selection are unchanged. */
@media(min-width:1200px){
 .product-page.sg-card .sg-product-layout,
 .product-page.sg-card.sg-card--simple .sg-product-layout { grid-template-columns:485px minmax(0,1fr) 360px!important; gap:20px!important; }
 .product-page.sg-card .product-page__visual { width:100%!important; max-width:485px!important; grid-template-columns:72px minmax(0,1fr); }
 .product-page.sg-card .product-page__visual.sg-gallery--single { grid-template-columns:minmax(0,1fr); }
 .product-page.sg-card .product-page__visual-main { width:100%!important; max-width:400px!important; max-height:400px!important; aspect-ratio:1/1; height:auto!important; justify-self:center; }
 .product-page.sg-card .product-page__visual-main img { max-height:376px!important; }
 .product-page.sg-card .product-page__visual-thumbs { max-height:400px!important; }
 .product-page.sg-card .product-page__info { grid-column:2!important; grid-row:1!important; }
 .product-page.sg-card .sg-product-col-right,
 .product-page.sg-card.sg-card--simple .sg-product-col-right { grid-column:3!important; grid-row:1!important; }
}
body:has(.sg-card) main.main { padding-top:10px!important; }
.product-page.sg-card .product-page__title { margin:0 0 8px!important; }
.product-page.sg-card .sg-card-meta-v3 { margin-bottom:16px!important; }
.product-page.sg-card .sg-product-layout { margin-bottom:0!important; }
.product-page.sg-card #tabs { margin-top:18px!important; }
.product-page.sg-card .sg-summary dl { margin:0 0 12px; }
.product-page.sg-card .sg-summary dl>div { padding:3px 0; gap:8px; line-height:1.35; }
.product-page.sg-card .sg-summary .sg-basic-params dl { margin:0; }
.product-page.sg-card .sg-basic-params dl>div { padding:0; margin-bottom:6px; }
.product-page.sg-card .sg-basic-params dl>div:last-child { margin-bottom:0; }
.product-page.sg-card .sg-basic-params dt,
.product-page.sg-card .sg-basic-params dd { font-size:13.5px!important; line-height:1.35; }
.product-page.sg-card .sg-basic-params { margin-top:0; margin-bottom:14px; }
.product-page.sg-card .sg-product-services { display:grid; gap:8px; margin-top:14px; }
.product-page.sg-card .sg-product-services>div { display:flex; align-items:flex-start; gap:8px; min-width:0; }
.product-page.sg-card .sg-product-services svg { color:#0B3B95; flex:0 0 16px; width:16px; height:16px; margin-top:2px; }
.product-page.sg-card .sg-product-services span { color:#334155; font-size:13px; line-height:1.4; }
.product-page.sg-card .product-page__control { padding:18px!important; gap:0!important; }
.product-page.sg-card .product-page__control>div:first-child { margin-bottom:12px!important; }
.product-page.sg-card .sg-buy-price { margin-bottom:12px!important; }
.product-page.sg-card .sg-buy-price span[style*="font-size: 26px"] { font-size:26px!important; }
.product-page.sg-card #btn-product-add-cart { height:44px!important; background:#C72C35!important; }
.product-page.sg-card #btn-product-add-cart:hover { background:#A8222A!important; }
.product-page.sg-card .sg-buy-cart-row { gap:8px!important; margin-bottom:0!important; }
.product-page.sg-card .sg-buy-cart-row>div { height:44px!important; flex-shrink:0; }
.product-page.sg-card .sg-buy-secondary { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; gap:8px!important; margin-top:8px!important; }
.product-page.sg-card .sg-buy-secondary>button { min-width:0; height:38px!important; padding:0 6px!important; font-size:13px!important; font-weight:600!important; border:1px solid #CBD5E1!important; background:#FFFFFF!important; color:#334155!important; box-shadow:none!important; white-space:nowrap; }
.product-page.sg-card .sg-buy-secondary>button:hover { border-color:#0B3B95!important; color:#0B3B95!important; }
.product-page.sg-card .sg-buy-secondary svg { flex-shrink:0; }
.product-page.sg-card .sg-stock-summary { margin-top:14px!important; padding-top:12px!important; border-top:1px solid #E2E8F0; }
.product-page.sg-card #tabs .ts-tabs__content { padding:0!important; margin:0!important; }
.product-page.sg-card #tabs .ts-tabs__item { padding:16px 0!important; margin:0!important; }
.product-page.sg-card #tabs .product-specs-table>div { padding:8px 12px!important; font-size:14px!important; line-height:1.35; }

.sg-top-purchase{position:fixed;top:0;left:0;right:0;z-index:999;height:64px;background:#fff;border-bottom:1px solid #E2E8F0;box-shadow:0 4px 12px rgba(15,23,42,.08);opacity:0;transform:translateY(-100%);pointer-events:none;transition:opacity .18s ease,transform .18s ease;box-sizing:border-box}
.sg-top-purchase.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
body.sg-top-purchase-visible .main-header{visibility:hidden!important;pointer-events:none!important}
.sg-top-inner{max-width:1320px;margin:0 auto;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;height:100%;box-sizing:border-box}
.sg-top-product{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.sg-top-product>img{width:44px;height:44px;object-fit:contain;border:1px solid #E2E8F0;border-radius:8px;box-sizing:border-box;flex:none}
.sg-top-copy{min-width:0}.sg-top-name{font-size:14px;font-weight:600;color:#0F172A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-top-meta{font-size:12px;color:#64748B;margin-top:3px}.sg-top-stock{color:#15803D}
.sg-top-actions{display:flex;align-items:center;gap:10px;flex:none}.sg-top-price{font-size:18px;font-weight:700;color:#0F172A;white-space:nowrap}
.sg-top-cart{height:40px;padding:0 20px;border:0;border-radius:10px;background:#C72C35;color:#fff;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}.sg-top-cart:hover{background:#A8222A}.sg-top-cart:disabled{background:#E2E8F0;color:#64748B;cursor:default}
.sg-top-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #E2E8F0;border-radius:8px;color:#0B3B95;background:#fff;cursor:pointer}
.product-page.sg-card .sg-discovery{margin-top:24px;min-width:0;max-width:100%}
.product-page.sg-card .sg-product-rail{margin:0 0 24px;min-width:0;max-width:100%}
.sg-rail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.product-page.sg-card .sg-rail-header h2{font-size:20px;font-weight:700;color:#0F172A;line-height:1.25;margin:0}
.sg-rail-arrows{display:flex;gap:8px;flex:none}.sg-rail-arrows button{width:32px;height:32px;border:1px solid #E2E8F0;border-radius:8px;background:#fff;color:#0B3B95;cursor:pointer;font-size:18px}
.sg-rail-track{display:flex;overflow-x:auto;gap:14px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;padding:1px 0 4px;box-sizing:border-box}.sg-rail-track::-webkit-scrollbar{display:none}
.product-page.sg-card .sg-mini-card{flex:0 0 calc((100% - 56px)/5);min-width:0;box-sizing:border-box;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid #E5E7EB;border-radius:12px;background:#fff;scroll-snap-align:start;height:286px;max-height:290px;position:relative}
.sg-mini-photo{position:relative;height:150px;min-height:150px}.sg-mini-photo>a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}.sg-mini-photo img{width:100%;height:150px;object-fit:contain}
.sg-mini-photo>button{position:absolute;top:0;width:28px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.94);border:1px solid #E2E8F0;border-radius:7px;color:#0B3B95;cursor:pointer}.sg-mini-fav{left:0}.sg-mini-compare{right:0}
.product-page.sg-card .sg-mini-name{font-size:13.5px!important;font-weight:500!important;color:#1E293B!important;line-height:1.35!important;height:36px;min-height:36px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-decoration:none}
.product-page.sg-card .sg-mini-price{font-size:16px;font-weight:700;color:#0F172A;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-mini-cart{width:100%;height:34px;min-height:34px;border:0;border-radius:8px;padding:0 6px;font-size:13px;font-weight:600;background:#C72C35;color:#fff;cursor:pointer;white-space:nowrap}.sg-mini-cart:hover{background:#A8222A}.sg-mini-cart:disabled{background:#E2E8F0;color:#64748B;cursor:default}.sg-rail-empty{font-size:14px;color:#64748B;margin:0;padding:12px 0}
@media(min-width:768px) and (max-width:1199px){.sg-top-sku,.sg-top-compare{display:none}.sg-rail-track{gap:12px}.product-page.sg-card .sg-mini-card{flex-basis:calc(31% - 8px)}}
@media(max-width:767px){.sg-top-purchase{height:56px}.sg-top-product,.sg-top-icon{display:none}.sg-top-actions{width:100%;justify-content:space-between}.sg-top-cart{padding:0 18px;width:auto}.sg-rail-arrows{display:none}.product-page.sg-card .sg-rail-header h2{font-size:18px}.sg-rail-track{gap:10px}.product-page.sg-card .sg-mini-card{flex:0 0 46%;min-width:158px;max-width:185px;padding:10px;gap:6px;height:250px;max-height:250px}.sg-mini-photo,.sg-mini-photo img{height:125px;min-height:125px}.product-page.sg-card .sg-mini-name{font-size:13px!important;line-height:1.3!important;height:34px;min-height:34px}.product-page.sg-card .sg-mini-price{font-size:15px}.sg-mini-cart{height:32px;min-height:32px;font-size:12.5px}}
@media(prefers-reduced-motion:reduce){.sg-top-purchase{transition:none}}

/* Only the new third rail is kept on product pages. Standard legacy wrappers
   are hidden before paint; heading-based detection handles unknown modules. */
body:has(.sg-card) :is(#recentlyViewed,#recently-viewed,#recently_viewed,#viewed-products,.recently-viewed,.recently_viewed,.recently-viewed-products,.recent-products,.viewed-products,.viewed_products,.products-slider--viewed,.module-viewed):not(.sg-product-rail),
.sg-legacy-recent-hidden { display:none!important; }
@media(min-width:1440px){
 body.modern-body .container,
 body.modern-body .main-header>.container,
 body.modern-body .top-header>.container,
 body.modern-body .sub-header-nav>.container,
 body.modern-body .sg-top-inner,
 body.modern-body .sg-sticky-bar__inner {
  width:100%!important;
  max-width:1540px!important;
  padding-left:24px!important;
  padding-right:24px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
 }
 body.modern-body .main-header .header-content { width:100%!important; max-width:100%!important; min-width:0; }
}

/* Source module is disabled only for product/product; these rules also stop
   cached or AJAX-inserted native markup without hiding the new third rail. */
body:has(.sg-card) .sg-native-recent:not(.sg-rec-section),
body:has(.sg-card) [data-sg-legacy-recent]:not(.sg-rec-section),
body:has(.sg-card) .products-slider:not(.sg-rec-section):has(>.products-slider__header[data-sg-legacy-recent]) { display:none!important; }
