/* --- PRODUCT DETAIL --------------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px
}

@media(min-width:768px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start
  }
}

@media(min-width:1024px) {
  .product-detail-layout {
    grid-template-columns: 480px 1fr
  }
}

.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: var(--product-img-ratio, 4/3)
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  flex-shrink: 0
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--primary)
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px
}

.product-inline-breadcrumb .breadcrumbs {
  margin-bottom: 0
}

.product-inline-breadcrumb .breadcrumbs ol {
  font-size: 13px
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px
}

.product-price-big {
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--primary)
}

.product-price-old-big {
  font-size: 16px;
  color: var(--gray-400);
  text-decoration: line-through
}

.product-short-desc {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px
}

.product-attrs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 700px;
  margin-bottom: 20px
}

.product-attr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: .5rem;
  border: 1px solid hsl(220deg 13% 87% / 18%);
  background: #f9fafb
}

.product-attr-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f4aa8;
  background: linear-gradient(135deg, #e0ecff, #c7dcff);
  flex-shrink: 0
}

.product-attr-icon svg {
  width: 18px;
  height: 18px
}

.product-attr-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.product-attr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .4px
}

.product-attr-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
  word-break: break-word
}

/* Variation Selector */
.variation-group {
  margin-bottom: 20px
}

.variation-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.var-btn {
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff
}

.var-btn:hover {
  border-color: var(--primary);
  color: var(--primary)
}

.var-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

.var-btn.disabled {
  opacity: .4;
  pointer-events: none;
  text-decoration: line-through
}

/* Add to Cart area */
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.product-actions .btn {
  flex: 1;
  min-width: 140px
}

.var-pricing-wrap {
  margin-top: 10px;
  max-width: none;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0
}

.var-pricing-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
  color: #0f172a;
  margin: 0 0 14px
}

.var-pricing-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  cursor: copy;
  user-select: none
}

.var-pricing-card:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px
}

.var-pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px
}

.var-pricing-table th,
.var-pricing-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  font-size: 14px
}

.var-pricing-table th {
  font-weight: 900;
  background: #f8fafc;
  color: #334155
}

.var-pricing-table tr:last-child td {
  border-bottom: 0
}

.var-pricing-table td.plan {
  font-weight: 800
}

.var-pricing-table td.price {
  font-weight: 900;
  white-space: nowrap
}

.var-pricing-table tr.outstock {
  opacity: .58
}

.product-tabs-shell {
  margin-top: 34px;
  max-width: none;
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 18px 22px
}

.product-tabs-head {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff
}

.product-tab-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease
}

.product-tab-btn.is-active {
  background: #fff;
  color: #0f4aa8;
  box-shadow: inset 0 0 0 1px #bfdbfe
}

.product-tab-panel {
  display: none;
  padding-top: 6px
}

.product-tab-panel.is-active {
  display: block
}

.product-description-wrap {
  margin-top: 28px;
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 22px 0 0
}

.product-description-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  word-break: break-word
}

.product-pricing-details {
  margin-top: 22px
}

.product-pricing-details-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px
}

.product-tabs-shell .table-wrap {
  box-shadow: none;
  border: 1px solid #e2e8f0
}

.product-tabs-shell .pricing-table {
  box-shadow: none
}

.reviews-lazy-wrap {
  margin-top: 22px
}

.reviews-loading,
.reviews-empty {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  color: #64748b;
  background: #fff
}

.reviews-disclaimer {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff
}

.reviews-summary-score {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #0f4aa8
}

.reviews-summary-stars {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 1px
}

.reviews-summary-text {
  color: #64748b;
  font-size: 13px
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.review-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px
}

.review-customer {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a
}

.review-source {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px
}

.review-source.google {
  background: #e8f1ff;
  color: #1d4ed8
}

.review-source.trustpilot {
  background: #dcfce7;
  color: #166534
}

.review-rating {
  color: #f59e0b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px
}

.review-rating span {
  color: #64748b;
  margin-left: 4px
}

.review-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px
}

.review-link {
  color: #0f4aa8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700
}

.review-link:hover {
  text-decoration: underline
}

.product-desc-template {
  margin-top: 18px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px
}

.product-desc-template h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  color: #0f172a
}

.product-desc-template p {
  margin: 0;
  color: var(--gray-700)
}

.product-desc-template a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700
}

.product-desc-template a:hover {
  text-decoration: underline
}

.whatsapp-order-btn {
  margin-top: 8px;
  width: min(100%, 360px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #0f6a5b;
  background: linear-gradient(135deg, #12806f, #0e6a5d);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease, filter .2s ease
}

.whatsapp-order-btn:hover {
  background: linear-gradient(135deg, #0f7465, #0c5e52);
  border-color: #0b4f45;
  filter: brightness(1.01)
}

.whatsapp-order-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0
}

.whatsapp-order-icon svg {
  width: 100%;
  height: 100%
}

.whatsapp-order-text {
  letter-spacing: .2px
}


/* ===== Final product detail dark-mode correction ===== */
[data-theme="dark"] body.page-product-detail,
[data-theme="dark"] .page-product-detail,
[data-theme="dark"] main:has(.product-detail-layout) {
  background: #080914 !important;
}
[data-theme="dark"] .page-product-detail .product-gallery-main,
[data-theme="dark"] .product-gallery-main {
  background: #151827 !important;
  border: 1px solid #24283a !important;
}
[data-theme="dark"] .page-product-detail .product-title,
[data-theme="dark"] .product-title,
[data-theme="dark"] .product-description-title,
[data-theme="dark"] .product-pricing-details-title,
[data-theme="dark"] .product-desc-template h2 {
  color: #f1f3fb !important;
}
[data-theme="dark"] .product-short-desc,
[data-theme="dark"] .product-description,
[data-theme="dark"] .product-desc-template p {
  color: #b9c0d3 !important;
}
[data-theme="dark"] .page-product-detail .product-attr-item,
[data-theme="dark"] .product-attr-item {
  background: #151827 !important;
  border-color: #2b3044 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}
[data-theme="dark"] .page-product-detail .product-attr-icon,
[data-theme="dark"] .product-attr-icon {
  background: linear-gradient(135deg, rgba(124,115,255,.24), rgba(55,93,180,.24)) !important;
  color: #9fb8ff !important;
}
[data-theme="dark"] .page-product-detail .product-attr-label,
[data-theme="dark"] .product-attr-label {
  color: #9aa3b8 !important;
}
[data-theme="dark"] .page-product-detail .product-attr-val,
[data-theme="dark"] .product-attr-val {
  color: #eef0f7 !important;
}
[data-theme="dark"] .product-tabs-shell,
[data-theme="dark"] .reviews-loading,
[data-theme="dark"] .reviews-empty,
[data-theme="dark"] .reviews-summary,
[data-theme="dark"] .review-card {
  background: #111320 !important;
  border-color: #272b3d !important;
}
[data-theme="dark"] .product-tabs-head {
  background: #0c0e19 !important;
  border-color: #272b3d !important;
}
[data-theme="dark"] .product-tab-btn {
  color: #aab2c5 !important;
}
[data-theme="dark"] .product-tab-btn.is-active {
  background: #1a1d2e !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(124,115,255,.42) !important;
}
[data-theme="dark"] .product-description-wrap,
[data-theme="dark"] .product-desc-template,
[data-theme="dark"] .product-tabs-shell .table-wrap,
[data-theme="dark"] .var-pricing-table td {
  border-color: #272b3d !important;
}
[data-theme="dark"] .var-pricing-title,
[data-theme="dark"] .review-customer {
  color: #f1f3fb !important;
}
[data-theme="dark"] .review-content,
[data-theme="dark"] .review-rating span,
[data-theme="dark"] .reviews-disclaimer,
[data-theme="dark"] .reviews-summary-text {
  color: #aab2c5 !important;
}
[data-theme="dark"] .var-pricing-table th {
  background: #151827 !important;
  color: #c7cede !important;
}
[data-theme="dark"] .var-pricing-table td {
  color: #e8ebf4 !important;
}
/* ===== SEAGM-style product purchase layout ===== */
.sg-product-container {
  max-width: 1280px;
  padding-top: 24px;
}
.sg-product-hero {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 240px;
  margin: 0 0 28px;
  padding: 28px 34px;
  border-radius: 0;
  overflow: hidden;
  background-color: #6da8af;
  background-image:
    url('/assets/images/gradient_bg-f5a8237834.svg'),
    linear-gradient(135deg, #6fa5b2 0%, #8ac5c4 50%, #d7e9dc 100%);
  background-repeat: repeat-x, no-repeat;
  background-position: 0 50%, center;
  background-size: 225% auto, cover;
}
.sg-hero-image-wrap {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.22);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .18);
}
.sg-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-hero-copy {
  min-width: 0;
  color: #07111f;
}
.sg-hero-breadcrumb .breadcrumbs {
  margin: 0 0 16px;
}
.sg-hero-breadcrumb .breadcrumbs ol,
.sg-hero-breadcrumb .breadcrumbs a,
.sg-hero-breadcrumb .breadcrumbs span {
  color: rgba(7, 17, 31, .72) !important;
}
.sg-hero-title {
  margin: 0 0 14px;
  color: #020817;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}
.sg-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.sg-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #102033;
}
.sg-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.14);
}
.sg-meta-instant svg {
  display: inline-flex;
  flex-shrink: 0;
  color: #f5b800;
}
.sg-important-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 820px;
  color: #07111f;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.sg-important-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #0f766e;
}
.sg-hero-actions {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sg-fav-btn,
.sg-share-btn {
  border: 1px solid rgba(2, 8, 23, .35);
  background: rgba(255,255,255,.12);
  color: #06111f;
  border-radius: 8px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}
.sg-share-btn {
  width: 42px;
  padding: 0;
}
.sg-fav-btn:hover,
.sg-share-btn:hover {
  background: rgba(255,255,255,.24);
}
.sg-attr-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
.sg-attr-strip .sg-attr-item {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  min-height: 64px;
  padding: 12px 14px !important;
}
.sg-purchase-layout.product-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  align-items: start !important;
  gap: 24px !important;
  margin-top: 0;
}
.sg-variant-panel,
.sg-order-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  box-shadow: none;
}
.sg-variant-panel {
  padding: 24px;
}
.sg-panel-heading,
.sg-order-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}
.sg-variation-list.variation-options {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.sg-variant-row.var-btn {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #111827 !important;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.sg-variant-row.var-btn:hover {
  border-color: #fb6a22 !important;
  box-shadow: 0 0 0 1px rgba(251,106,34,.08);
}
.sg-variant-row.var-btn.active {
  background: #fff3eb !important;
  border-color: #ff6a21 !important;
  box-shadow: inset 4px 0 0 #ff6a21;
}
.sg-variant-row.var-btn.disabled {
  opacity: .48;
  pointer-events: none;
}
.sg-check-box {
  width: 18px;
  height: 18px;
  border: 2px solid #e5e7eb;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.sg-variant-row.active .sg-check-box {
  border-color: #ff6a21;
  background: #ff6a21;
}
.sg-variant-row.active .sg-check-box::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.sg-variant-name {
  min-width: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.sg-variant-name small {
  color: #ef4444;
  font-size: 11px;
}
.sg-variant-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #ff4b00;
  font-size: 14px;
  white-space: nowrap;
}
.sg-variant-price del {
  color: #8b8f9a;
  font-size: 12px;
}
.sg-variant-price strong {
  color: #ff4b00;
  font-weight: 800;
}
.sg-order-card {
  position: sticky;
  top: 92px;
  padding: 0;
  overflow: hidden;
}
.sg-order-section {
  padding: 22px 24px;
  border-bottom: 1px solid #eef0f3;
}
.sg-ppom-fields {
  display: grid;
  gap: 12px;
}
.sg-ppom-field {
  margin: 0 !important;
}
.sg-ppom-field .form-label {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}
.sg-ppom-field .form-control {
  min-height: 44px;
  border-radius: 10px;
}
.sg-qty-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}
.sg-qty-control {
  display: grid;
  grid-template-columns: 38px 52px 38px;
  height: 42px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.sg-qty-btn,
.sg-qty-control input {
  border: 0;
  background: transparent;
  color: #111827;
  text-align: center;
  font-weight: 700;
}
.sg-qty-btn {
  font-size: 20px;
  cursor: pointer;
}
.sg-qty-control input {
  width: 100%;
  appearance: textfield;
}
.sg-qty-control input::-webkit-outer-spin-button,
.sg-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sg-total-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid #eef0f3;
}
.sg-total-label {
  display: block;
  color: #40444d;
  font-size: 20px;
  font-weight: 800;
}
.sg-total-sub {
  display: block;
  margin-top: 4px;
  color: #8b8f9a;
  font-size: 12px;
}
.sg-total-price.product-price-big {
  color: #ff4b00 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.1;
  white-space: nowrap;
}
.sg-total-old {
  grid-column: 2;
  justify-self: end;
  font-size: 12px !important;
  color: #8b8f9a !important;
  text-decoration: line-through;
}
.sg-order-actions {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 24px;
}
.sg-cart-btn,
.sg-buy-btn {
  min-height: 50px;
  border-radius: 6px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}
.sg-cart-btn {
  background: #f5ad00;
  color: #111827;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.sg-buy-btn {
  background: #ff4b00;
  color: #fff;
  text-transform: uppercase;
}
.sg-cart-btn:hover,
.sg-buy-btn:hover {
  filter: brightness(.96);
}
[data-theme="dark"] .sg-product-hero {
  background-color: #18443f;
  background-image:
    url('/assets/images/gradient_bg-f5a8237834.svg'),
    linear-gradient(135deg, #173c3a 0%, #275f58 52%, #1a2d36 100%);
}
[data-theme="dark"] .sg-hero-copy,
[data-theme="dark"] .sg-hero-title,
[data-theme="dark"] .sg-important-note,
[data-theme="dark"] .sg-meta-pill,
[data-theme="dark"] .sg-fav-btn,
[data-theme="dark"] .sg-share-btn {
  color: #f3f6fb;
}
[data-theme="dark"] .sg-hero-breadcrumb .breadcrumbs ol,
[data-theme="dark"] .sg-hero-breadcrumb .breadcrumbs a,
[data-theme="dark"] .sg-hero-breadcrumb .breadcrumbs span {
  color: rgba(243,246,251,.72) !important;
}
[data-theme="dark"] .sg-fav-btn,
[data-theme="dark"] .sg-share-btn {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
}
[data-theme="dark"] .sg-attr-strip .sg-attr-item,
[data-theme="dark"] .sg-variant-panel,
[data-theme="dark"] .sg-order-card {
  background: #111320 !important;
  border-color: #272b3d !important;
}
[data-theme="dark"] .sg-panel-heading,
[data-theme="dark"] .sg-order-title,
[data-theme="dark"] .sg-ppom-field .form-label,
[data-theme="dark"] .sg-qty-section,
[data-theme="dark"] .sg-total-label {
  color: #f1f3fb;
}
[data-theme="dark"] .sg-order-section,
[data-theme="dark"] .sg-total-section {
  border-color: #272b3d;
}
[data-theme="dark"] .sg-variant-row.var-btn {
  background: #151827 !important;
  border-color: #2b3044 !important;
  color: #f1f3fb !important;
  box-shadow: none;
}
[data-theme="dark"] .sg-variant-row.var-btn:hover {
  border-color: #ff7a2f !important;
}
[data-theme="dark"] .sg-variant-row.var-btn.active {
  background: rgba(255, 106, 33, .13) !important;
  border-color: #ff7a2f !important;
}
[data-theme="dark"] .sg-check-box {
  background: #0b0d17;
  border-color: #3a4056;
}
[data-theme="dark"] .sg-variant-name {
  color: #f1f3fb;
}
[data-theme="dark"] .sg-total-sub,
[data-theme="dark"] .sg-variant-price del {
  color: #98a0b5;
}
[data-theme="dark"] .sg-qty-control,
[data-theme="dark"] .sg-ppom-field .form-control {
  background: #0d0f1b;
  border-color: #30364b;
  color: #eef0f8;
}
[data-theme="dark"] .sg-qty-btn,
[data-theme="dark"] .sg-qty-control input {
  color: #eef0f8;
}
@media (max-width: 980px) {
  .sg-product-hero {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }
  .sg-hero-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .sg-hero-image-wrap {
    width: 132px;
  }
  .sg-attr-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-purchase-layout.product-detail-layout {
    grid-template-columns: 1fr !important;
  }
  .sg-order-card {
    position: static;
  }
}
@media (max-width: 640px) {
  .sg-product-container {
    padding-top: 0;
  }
  .sg-product-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 16px;
    min-height: 0;
    margin-left: -12px;
    margin-right: -12px;
  }
  .sg-hero-image-wrap {
    width: 96px;
    border-radius: 12px;
  }
  .sg-hero-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .sg-hero-meta {
    gap: 8px;
    margin-bottom: 12px;
  }
  .sg-meta-pill,
  .sg-important-note {
    font-size: 12px;
  }
  .sg-hero-actions {
    justify-content: flex-start;
  }
  .sg-fav-btn span {
    display: none;
  }
  .sg-fav-btn,
  .sg-share-btn {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }
  .sg-attr-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sg-variant-panel,
  .sg-order-card {
    border-radius: 10px;
  }
  .sg-variant-panel {
    padding: 16px;
  }
  .sg-variation-list.variation-options {
    grid-template-columns: 1fr !important;
  }
  .sg-variant-row.var-btn {
    min-height: 58px;
    padding: 12px !important;
    gap: 10px;
  }
  .sg-order-actions {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 18px;
  }
}
/* ===== Final GCZ-inspired primary product hero correction ===== */
@keyframes k2ziHeroGlow {
  0% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(2%, 0, 0) scale(1.04); opacity: 0.85; }
  100% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.55; }
}
@keyframes k2ziHeroShimmer {
  0% { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(200%, 0, 0); }
}
.sg-product-container {
  max-width: 1280px;
  padding-top: 0;
}
.sg-product-hero {
  position: relative;
  overflow: hidden !important;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 28px;
  padding: 42px max(24px, calc((100vw - 1280px) / 2 + 24px));
  grid-template-columns: 210px minmax(0, 1fr) auto;
  min-height: 310px;
  border-radius: 0;
  background: linear-gradient(135deg, #0a071d 0%, #130a35 42%, #1a0c4f 100%) !important;
  isolation: isolate;
  will-change: transform;
}
.sg-product-hero::before,
.sg-product-hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.sg-product-hero::before {
  inset: -15px;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 50% 15%, rgba(59, 130, 246, 0.22) 0%, transparent 45%);
  animation: k2ziHeroGlow 12s ease-in-out infinite;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}
.sg-product-hero::after {
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  z-index: -1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.02) 75%,
    transparent 100%
  );
  transform: skewX(-20deg) translate3d(-100%, 0, 0);
  animation: k2ziHeroShimmer 9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform;
}
.sg-hero-breadcrumb {
  display: none !important;
}
.sg-hero-image-wrap {
  width: 210px;
  height: auto;
  max-height: 240px;
  aspect-ratio: auto;
  border-radius: 18px;
  overflow: visible;
  background: transparent;
  box-shadow: 0 22px 44px rgba(0,0,0,.24);
}
.sg-hero-image {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 18px;
}
.sg-hero-copy,
.sg-hero-title,
.sg-important-note,
.sg-meta-pill,
.sg-fav-btn,
.sg-share-btn {
  color: #fff !important;
}
.sg-hero-title {
  font-size: clamp(30px, 3.4vw, 46px);
  text-shadow: 0 2px 20px rgba(0,0,0,.24);
}
.sg-hero-meta {
  margin-bottom: 18px;
  gap: 10px;
}
.sg-meta-pill {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sg-meta-label {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.sg-meta-pill strong {
  color: #fff;
  font-weight: 700;
}
.sg-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.16);
}
.sg-important-note {
  max-width: 920px;
  padding: 0;
  background: transparent;
  font-size: 14px;
}
.sg-important-note svg {
  color: #c8c4ff;
}
.sg-fav-btn,
.sg-share-btn {
  border-color: rgba(255,255,255,.42) !important;
  background: rgba(255,255,255,.08) !important;
}
.sg-fav-btn:hover,
.sg-share-btn:hover {
  background: rgba(255,255,255,.16) !important;
}
.sg-attr-strip {
  display: none !important;
}
.sg-variant-row.var-btn:hover {
  border-color: #6c63ff !important;
  box-shadow: 0 0 0 1px rgba(108,99,255,.10) !important;
}
.sg-variant-row.var-btn.active {
  background: rgba(108,99,255,.08) !important;
  border-color: #6c63ff !important;
  box-shadow: inset 4px 0 0 #6c63ff !important;
}
.sg-variant-row.active .sg-check-box {
  border-color: #6c63ff !important;
  background: #6c63ff !important;
}
.sg-variant-price,
.sg-variant-price strong,
.sg-total-price.product-price-big {
  color: #6c63ff !important;
}
.sg-buy-btn {
  background: #6c63ff !important;
  color: #fff !important;
}
.sg-cart-btn {
  background: rgba(108,99,255,.14) !important;
  color: #3f37c9 !important;
  box-shadow: inset 0 0 0 1px rgba(108,99,255,.28) !important;
}
[data-theme="dark"] .sg-product-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(135deg, #070815 0%, #171332 38%, #2b2477 100%) !important;
}
[data-theme="dark"] .sg-meta-pill {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}
[data-theme="dark"] .sg-variant-row.var-btn.active {
  background: rgba(108,99,255,.16) !important;
  border-color: #8b84ff !important;
  box-shadow: inset 4px 0 0 #8b84ff !important;
}
[data-theme="dark"] .sg-variant-row.var-btn:hover {
  border-color: #8b84ff !important;
}
[data-theme="dark"] .sg-variant-price,
[data-theme="dark"] .sg-variant-price strong,
[data-theme="dark"] .sg-total-price.product-price-big {
  color: #9b95ff !important;
}
[data-theme="dark"] .sg-buy-btn {
  background: #7c73ff !important;
}
[data-theme="dark"] .sg-cart-btn {
  background: rgba(124,115,255,.18) !important;
  color: #d9d7ff !important;
  box-shadow: inset 0 0 0 1px rgba(124,115,255,.32) !important;
}
@media (max-width: 980px) {
  .sg-product-hero {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 250px;
    padding: 28px 18px;
  }
  .sg-hero-image-wrap {
    width: 150px;
    max-height: 190px;
  }
  .sg-hero-image {
    max-height: 190px;
  }
}
@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 0;
    padding: 18px 14px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .sg-hero-image-wrap {
    width: 94px;
    max-height: 130px;
    border-radius: 12px;
  }
  .sg-hero-image {
    max-height: 130px;
    border-radius: 12px;
  }
  .sg-hero-title {
    font-size: 20px;
  }
  .sg-meta-pill {
    min-height: 28px;
    padding: 5px 9px;
  }
  .sg-meta-label {
    font-size: 9px;
  }
  .sg-important-note {
    grid-column: 1 / -1;
    font-size: 12px;
  }
}
/* ===== Final product hero action and mobile variation polish ===== */
.sg-product-hero {
  overflow: hidden;
  padding-right: max(230px, calc((100vw - 1280px) / 2 + 230px));
}
.sg-hero-actions {
  position: absolute !important;
  top: 24px;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  z-index: 3;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  align-self: auto !important;
}
.sg-fav-btn,
.sg-share-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1;
}
.sg-fav-btn {
  min-width: 150px;
}
.sg-share-btn {
  min-width: 42px;
}
.sg-meta-label {
  display: none !important;
}
.sg-meta-pill {
  gap: 8px;
  font-size: 14px;
}
.sg-meta-pill strong {
  line-height: 1;
}
.sg-see-more-vars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  min-width: 112px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: rgba(108,99,255,.12);
  color: #6c63ff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 641px) {
  .sg-variation-list:not(.is-expanded) .sg-variant-row:nth-child(n+11) {
    display: none !important;
  }
}
.sg-see-more-vars:hover {
  background: rgba(108,99,255,.18);
}
[data-theme="dark"] .sg-see-more-vars {
  background: rgba(124,115,255,.18);
  color: #d9d7ff;
}
@media (max-width: 980px) {
  .sg-product-hero {
    padding-right: 18px;
  }
  .sg-hero-actions {
    top: 16px;
    right: 16px;
  }
}
@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 48px 18px 14px;
    min-height: 236px;
    align-items: start;
  }
  .sg-hero-actions {
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 8px !important;
  }
  .sg-fav-btn,
  .sg-share-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }
  .sg-fav-btn span {
    display: none !important;
  }
  .sg-hero-image-wrap {
    width: 96px;
    max-height: 128px;
    margin-top: 30px;
  }
  .sg-hero-image {
    max-height: 128px;
  }
  .sg-hero-copy {
    padding-top: 0;
  }
  .sg-hero-title {
    font-size: 20px;
    line-height: 1.18;
    margin: 0 0 10px;
  }
  .sg-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }
  .sg-meta-pill {
    min-height: 30px;
    max-width: 100%;
    padding: 6px 10px;
    font-size: 12px;
  }
  .sg-meta-pill strong {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sg-important-note {
    margin-top: 12px;
    padding-right: 0;
  }
  .sg-variation-list:not(.is-expanded) .sg-variant-row:nth-child(n+5) {
    display: none !important;
  }
  .sg-see-more-vars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ===== Final hero action order correction ===== */
.sg-share-btn { order: 1; }
.sg-fav-btn { order: 2; }
@media (max-width: 640px) {
  .sg-share-btn { order: 2; }
  .sg-fav-btn { order: 1; }
}
/* ===== Final compact product hero controls and mobile meta ===== */
.sg-hero-actions {
  position: absolute !important;
  top: 26px !important;
  right: max(32px, calc((100vw - 1280px) / 2 + 32px)) !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
}
.sg-fav-btn,
.sg-share-btn {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.sg-share-btn {
  order: 1 !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
}
.sg-fav-btn {
  order: 2 !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 13px !important;
}
.sg-fav-btn svg,
.sg-share-btn svg {
  flex: 0 0 auto;
}
.sg-fav-btn span {
  display: inline-block;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-meta-pill {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
}
.sg-meta-pill strong {
  font-weight: 600;
}
.sg-see-more-vars {
  min-width: 88px;
  height: 36px;
  margin: 14px auto 0;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 18px 50px 18px 14px;
    min-height: 216px;
  }
  .sg-hero-actions {
    top: 10px !important;
    right: 10px !important;
    flex-direction: column !important;
    gap: 7px !important;
  }
  .sg-fav-btn,
  .sg-share-btn {
    order: initial !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }
  .sg-fav-btn span {
    display: none !important;
  }
  .sg-fav-btn { order: 1 !important; }
  .sg-share-btn { order: 2 !important; }
  .sg-hero-title {
    font-size: 18px;
    line-height: 1.16;
    margin-bottom: 9px;
  }
  .sg-hero-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 7px !important;
    max-width: 100%;
  }
  .sg-meta-pill {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    max-width: 100%;
  }
  .sg-meta-pill strong {
    max-width: 118px;
    font-weight: 600;
  }
  .sg-dot {
    width: 10px;
    height: 10px;
  }
  .sg-hero-image-wrap {
    margin-top: 26px;
  }
  .sg-see-more-vars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ===== Correct product hero action column layout ===== */
.sg-product-hero {
  padding: 42px max(24px, calc((100vw - 1280px) / 2 + 24px)) !important;
  grid-template-columns: 210px minmax(0, 1fr) 92px !important;
  column-gap: 28px !important;
  align-items: center !important;
}
.sg-hero-actions {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
}
.sg-share-btn,
.sg-fav-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 9px !important;
}
.sg-fav-btn span {
  display: none !important;
}
.sg-share-btn { order: 1 !important; }
.sg-fav-btn { order: 2 !important; }
@media (max-width: 980px) {
  .sg-product-hero {
    grid-template-columns: 150px minmax(0, 1fr) 44px !important;
    column-gap: 18px !important;
    padding: 28px 18px !important;
  }
  .sg-hero-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .sg-share-btn,
  .sg-fav-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}
@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 96px minmax(0, 1fr) 38px !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    padding: 18px 12px 18px 14px !important;
    min-height: 214px !important;
  }
  .sg-hero-actions {
    grid-column: 3 !important;
    align-self: start !important;
    justify-self: end !important;
    flex-direction: column !important;
    gap: 7px !important;
  }
  .sg-share-btn,
  .sg-fav-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  .sg-hero-image-wrap {
    grid-column: 1 !important;
    margin-top: 24px !important;
  }
  .sg-hero-copy {
    grid-column: 2 !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }
  .sg-hero-title {
    max-width: 100% !important;
    padding-right: 0 !important;
  }
  .sg-hero-meta {
    max-width: 100% !important;
  }
}
/* ===== SEAGM-like hero sizing and lower description layout ===== */
.sg-product-hero {
  min-height: 250px !important;
  padding: 30px max(24px, calc((100vw - 1280px) / 2 + 24px)) !important;
  grid-template-columns: 190px minmax(0, 1fr) 88px !important;
  align-items: center !important;
}
.sg-hero-title {
  font-size: 2em !important;
  line-height: 1.12 !important;
}
.sg-hero-actions {
  align-self: center !important;
  justify-self: end !important;
}
.sg-hero-image-wrap {
  width: 190px !important;
  max-height: 220px !important;
}
.sg-hero-image {
  max-height: 220px !important;
}
.sg-lower-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}
.sg-lower-layout-single {
  grid-template-columns: 1fr;
}
.sg-lower-layout .pd-desc-section {
  margin-top: 0 !important;
  width: 100%;
  min-width: 0;
}
.sg-related-side {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.sg-related-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}
.sg-related-tabs span {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}
.sg-related-tabs span.active {
  color: #111827;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15,23,42,.05);
}
.sg-related-list {
  display: grid;
  gap: 0;
  padding: 18px 22px 20px;
}
.sg-related-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  text-decoration: none;
  color: inherit;
}
.sg-related-img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  display: block;
}
.sg-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-related-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.sg-related-name {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sg-related-meta {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.2;
}
.sg-related-item:hover .sg-related-name {
  color: #6c63ff;
}
[data-theme="dark"] .sg-related-side,
[data-theme="dark"] .sg-related-tabs,
[data-theme="dark"] .sg-related-tabs span.active {
  background: #111320;
  border-color: #272b3d;
}
[data-theme="dark"] .sg-related-tabs,
[data-theme="dark"] .sg-related-side {
  border-color: #272b3d;
}
[data-theme="dark"] .sg-related-tabs span {
  color: #98a0b5;
}
[data-theme="dark"] .sg-related-tabs span.active,
[data-theme="dark"] .sg-related-name {
  color: #f1f3fb;
}
[data-theme="dark"] .sg-related-img {
  background: #0d0f1b;
}
[data-theme="dark"] .sg-related-meta {
  color: #7f879b;
}
@media (max-width: 980px) {
  .sg-product-hero {
    min-height: 220px !important;
    padding: 24px 18px !important;
    grid-template-columns: 142px minmax(0, 1fr) 42px !important;
  }
  .sg-hero-image-wrap {
    width: 142px !important;
    max-height: 176px !important;
  }
  .sg-hero-image {
    max-height: 176px !important;
  }
  .sg-lower-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sg-product-hero {
    min-height: 196px !important;
    padding: 16px 12px 16px 14px !important;
    grid-template-columns: 92px minmax(0, 1fr) 38px !important;
    column-gap: 12px !important;
  }
  .sg-hero-actions {
    align-self: center !important;
    justify-self: end !important;
  }
  .sg-hero-image-wrap {
    width: 92px !important;
    max-height: 122px !important;
    margin-top: 0 !important;
  }
  .sg-hero-image {
    max-height: 122px !important;
  }
  .sg-hero-title {
    font-size: 18px !important;
  }
  .sg-lower-layout {
    margin-top: 22px;
    gap: 18px;
  }
  .sg-related-tabs span {
    min-height: 48px;
    font-size: 12px;
  }
  .sg-related-list {
    padding: 12px 16px 14px;
  }
  .sg-related-item {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 64px;
  }
  .sg-related-img {
    width: 50px;
    height: 50px;
  }
  .sg-related-name {
    font-size: 13px;
  }
}
/* ===== Final SEAGM product detail split and hero control alignment ===== */
.sg-product-container {
  max-width: 1280px !important;
}
.sg-product-hero {
  min-height: 250px !important;
  padding: 30px max(24px, calc((100vw - 1280px) / 2 + 24px)) !important;
  grid-template-columns: 190px minmax(0, 1fr) 92px !important;
  column-gap: 28px !important;
  align-items: center !important;
  overflow: hidden !important;
}
.sg-hero-title {
  font-size: 2em !important;
  line-height: 1.12 !important;
}
.sg-hero-copy {
  min-width: 0 !important;
}
.sg-hero-actions {
  position: static !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  transform: none !important;
}
.sg-share-btn,
.sg-fav-btn {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.sg-fav-btn span {
  display: none !important;
}
.sg-share-btn { order: 1 !important; }
.sg-fav-btn { order: 2 !important; }
.sg-hero-image-wrap {
  width: 190px !important;
  max-height: 220px !important;
  overflow: visible !important;
}
.sg-hero-image {
  width: 100% !important;
  height: auto !important;
  max-height: 220px !important;
  object-fit: contain !important;
}
.sg-lower-layout {
  width: 100% !important;
  max-width: 1280px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 24px !important;
  align-items: start !important;
  margin: 32px auto 0 !important;
}
.sg-lower-layout-single {
  grid-template-columns: 1fr !important;
}
.sg-lower-layout .pd-desc-section {
  margin-top: 0 !important;
  min-width: 0 !important;
  width: 100% !important;
}
.sg-related-side {
  position: sticky;
  top: 92px;
  align-self: start;
}
@media (max-width: 980px) {
  .sg-product-hero {
    grid-template-columns: 142px minmax(0, 1fr) 44px !important;
    min-height: 230px !important;
    padding: 24px 18px !important;
    column-gap: 18px !important;
  }
  .sg-hero-image-wrap {
    width: 142px !important;
    max-height: 176px !important;
  }
  .sg-hero-image {
    max-height: 176px !important;
  }
  .sg-lower-layout {
    grid-template-columns: 1fr !important;
  }
  .sg-related-side {
    position: static;
  }
}
@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 94px minmax(0, 1fr) 38px !important;
    min-height: 196px !important;
    padding: 16px 12px 16px 14px !important;
    column-gap: 10px !important;
    align-items: center !important;
  }
  .sg-hero-title {
    font-size: 17px !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
  }
  .sg-hero-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 36px !important;
    min-width: 36px !important;
    gap: 7px !important;
  }
  .sg-share-btn,
  .sg-fav-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  .sg-hero-image-wrap {
    width: 94px !important;
    max-height: 118px !important;
    margin-top: 0 !important;
  }
  .sg-hero-image {
    max-height: 118px !important;
  }
  .sg-hero-meta {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 0 !important;
  }
  .sg-meta-pill {
    min-height: 24px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
  }
  .sg-meta-pill strong {
    max-width: 108px !important;
    font-weight: 600 !important;
  }
  .sg-see-more-vars {
    min-width: 82px !important;
    height: 34px !important;
    margin: 12px auto 0 !important;
    padding: 0 12px !important;
    font-size: 11px !important;
  }
  .sg-lower-layout {
    margin-top: 22px !important;
  }
}
/* ===== Product detail description, instructions, and related-products cleanup ===== */
.sg-lower-main {
  display: grid !important;
  gap: 24px !important;
  min-width: 0 !important;
}
.sg-content-section,
.sg-lower-layout .pd-desc-section {
  background: #fff !important;
  border: 1px solid #eef0f3 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: none !important;
}
.pd-instruction-section {
  margin-top: 0 !important;
}
.pd-desc-body {
  position: relative;
  overflow: hidden;
  transition: max-height .4s ease;
}
.pd-desc-body.collapsed {
  max-height: 190px;
}
.pd-desc-body.expanded {
  max-height: 9999px;
}
.pd-desc-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
  transition: opacity .3s;
}
.pd-desc-body.expanded .pd-desc-fade {
  opacity: 0;
}
.pd-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pd-read-more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.pd-read-more-btn svg {
  transition: transform .25s ease;
}
.sg-related-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid #eef0f3;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}
.sg-related-tabs {
  display: none !important;
}
.product-description-html ul,
.product-description-html ol {
  margin: 12px 0 12px 24px;
  padding-left: 24px;
}
.product-description-html li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}
.product-description-html p {
  margin: 10px 0;
}
.pd-desc-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 14px;
}
[data-theme="dark"] .sg-content-section,
[data-theme="dark"] .sg-lower-layout .pd-desc-section {
  background: #111320 !important;
  border-color: #272b3d !important;
}
[data-theme="dark"] .pd-desc-fade {
  background: linear-gradient(to bottom, transparent, #111320);
}
[data-theme="dark"] .sg-related-heading {
  border-color: #272b3d;
  color: #f1f3fb;
}
@media (max-width: 640px) {
  .sg-lower-main {
    gap: 18px !important;
  }
  .sg-content-section,
  .sg-lower-layout .pd-desc-section {
    padding: 18px !important;
  }
  .sg-related-heading {
    min-height: 50px;
    padding: 0 16px;
    font-size: 13px;
  }
}
/* ===== Product detail vertical spacing refinement ===== */
.sg-purchase-layout.product-detail-layout {
  align-items: stretch !important;
  gap: 20px !important;
}
.sg-variant-panel {
  height: 100% !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
}
.sg-variation-list.variation-options {
  gap: 10px !important;
}
.sg-variant-row.var-btn {
  min-height: 58px !important;
  padding: 12px 14px !important;
}
.sg-order-card {
  align-self: start !important;
}
.sg-order-section {
  padding: 16px 22px !important;
}
.sg-ppom-fields {
  gap: 10px !important;
}
.sg-ppom-field .form-label {
  margin-bottom: 6px !important;
  font-size: 12px !important;
}
.sg-ppom-field .form-control {
  min-height: 40px !important;
  border-radius: 9px !important;
}
.sg-qty-control {
  grid-template-columns: 34px 48px 34px !important;
  height: 38px !important;
}
.sg-total-section {
  padding: 20px 22px !important;
}
.sg-total-label {
  font-size: 20px !important;
}
.sg-total-price.product-price-big {
  font-size: 24px !important;
}
.sg-order-actions {
  padding: 18px 22px !important;
  gap: 10px !important;
}
.sg-lower-layout {
  margin-top: 22px !important;
}
.pd-desc-body.collapsed {
  max-height: 320px !important;
}
@media (max-width: 980px) {
  .sg-purchase-layout.product-detail-layout {
    align-items: start !important;
  }
  .sg-variant-panel {
    height: auto !important;
  }
}
@media (max-width: 640px) {
  .sg-purchase-layout.product-detail-layout {
    gap: 16px !important;
  }
  .sg-variant-panel {
    padding: 16px !important;
  }
  .sg-variant-row.var-btn {
    min-height: 52px !important;
    padding: 11px 12px !important;
  }
  .sg-order-section,
  .sg-total-section,
  .sg-order-actions {
    padding: 15px 18px !important;
  }
  .sg-lower-layout {
    margin-top: 18px !important;
  }
  .pd-desc-body.collapsed {
    max-height: 360px !important;
  }
}
/* ===== Product discount price display ===== */
.sg-variant-price strong,
.sg-total-price.product-price-big {
  color: #ff4b00 !important;
}
.sg-variant-price del,
.product-price-old-big {
  color: #8b8f9a !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}
.sg-variant-price del {
  font-size: 12px !important;
}
.product-price-old-big {
  font-size: 13px !important;
}


/* ===== Mobile product hero and full-width short description ===== */
.sg-note-mobile {
  display: none;
}

@media (max-width: 640px) {
  .sg-product-hero {
    grid-template-columns: 88px minmax(0, 1fr) 36px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px 10px 14px 12px !important;
    column-gap: 9px !important;
    margin-bottom: 18px !important;
    align-items: center !important;
  }

  .sg-product-hero.has-mobile-note {
    margin-bottom: 10px !important;
  }

  .sg-hero-image-wrap {
    width: 88px !important;
    max-height: 112px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  .sg-hero-image {
    max-height: 112px !important;
  }

  .sg-hero-copy {
    align-self: center !important;
  }

  .sg-hero-title {
    font-size: 17px !important;
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
  }

  .sg-hero-meta {
    margin: 0 !important;
    gap: 5px !important;
  }

  .sg-meta-pill {
    min-height: 22px !important;
    padding: 3px 7px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
  }

  .sg-meta-pill strong {
    max-width: 116px !important;
    font-weight: 500 !important;
  }

  .sg-hero-actions {
    align-self: center !important;
    justify-self: end !important;
  }

  .sg-note-desktop {
    display: none !important;
  }

  .sg-short-description-panel.sg-note-mobile {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 18px;
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
  }

  .sg-short-description-panel svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--primary);
  }

  .sg-short-description-panel strong {
    color: #111827;
    font-weight: 600;
  }
}

[data-theme="dark"] .sg-short-description-panel {
  border-color: #272b3d;
  background: #111320;
  color: #b9c0d3;
}

[data-theme="dark"] .sg-short-description-panel strong {
  color: #f1f3fb;
}
/* ===== Final centered product hero action lane ===== */
.sg-product-hero .sg-hero-actions {
  position: absolute !important;
  top: 50% !important;
  right: max(24px, calc((100vw - 1280px) / 2 + 24px)) !important;
  z-index: 5 !important;
  transform: translateY(-50%) !important;
}

@media (max-width: 640px) {
  .sg-product-hero .sg-hero-actions {
    right: 10px !important;
  }
}/* ===== Primary color pricing override ===== */
.sg-variant-price,
.sg-variant-price strong,
.sg-total-price.product-price-big {
  color: var(--primary, #6c63ff) !important;
}
[data-theme="dark"] .sg-variant-price,
[data-theme="dark"] .sg-variant-price strong,
[data-theme="dark"] .sg-total-price.product-price-big {
  color: var(--primary, #6c63ff) !important;
}

/* ===== 60fps Smooth GPU Hero Animation & Seam Fix ===== */
@keyframes k2ziHeroGlow {
  0% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.55; }
  50% { transform: translate3d(2%, 0, 0) scale(1.04); opacity: 0.85; }
  100% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.55; }
}
@keyframes k2ziHeroShimmer {
  0% { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(200%, 0, 0); }
}

.sg-product-hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: linear-gradient(135deg, #0a071d 0%, #130a35 42%, #1a0c4f 100%) !important;
  will-change: transform;
}

.sg-product-hero::before,
.sg-product-hero::after {
  content: '' !important;
  position: absolute !important;
  pointer-events: none !important;
}

.sg-product-hero::before {
  inset: -20px !important;
  z-index: -2 !important;
  background:
    radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(147, 51, 234, 0.32) 0%, transparent 50%),
    radial-gradient(circle at 50% 15%, rgba(59, 130, 246, 0.22) 0%, transparent 45%) !important;
  animation: k2ziHeroGlow 12s ease-in-out infinite !important;
  will-change: transform, opacity !important;
  transform: translate3d(0, 0, 0) !important;
  filter: none !important;
  top: -20px !important;
  bottom: -20px !important;
  left: -20px !important;
  right: -20px !important;
  width: auto !important;
  height: auto !important;
}

.sg-product-hero::after {
  top: -20% !important;
  bottom: -20% !important;
  left: 0 !important;
  width: 45% !important;
  height: 140% !important;
  z-index: -1 !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.02) 75%,
    transparent 100%
  ) !important;
  transform: skewX(-20deg) translate3d(-100%, 0, 0) !important;
  animation: k2ziHeroShimmer 9s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
  will-change: transform !important;
  filter: none !important;
  inset: auto !important;
}
