/* Omega Product Styling - Matching nexostore reference & ultra smooth 60fps */
.omega-product {
  --omega-surface: #ffffff;
  --omega-ink: #222222;
  --omega-border: #dedede;
  --omega-selected: #075f32;
  --omega-offer-gradient: linear-gradient(105deg, #ff2b56 0%, #ff2b56 35%, #ff7824 100%);
  --omega-offer-ink: #ffffff;
}

/* Base smoothness & fluid scrolling */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.omega-product {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  background-color: #f7f7f7;
}

/* Fixed Header & Tabs matching reference */
body.omega-product .header {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 52px !important;
  z-index: 100 !important;
  background: #ffffff !important;
  box-sizing: border-box;
}

/* Sticky & Fluid Product Tabs */
body.omega-product .product-tabs {
  display: flex !important;
  align-items: center;
  background: #ffffff !important;
  position: fixed !important;
  top: 52px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto;
  z-index: 99 !important;
  height: 44px !important;
  box-sizing: border-box;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.omega-product .page-content {
  margin-top: 96px !important;
  padding-top: 0 !important;
}

/* Offset for anchor links when using sticky tabs */
#visao-geral,
#avaliacoes,
#descricao,
#recomendacoes {
  scroll-margin-top: 104px;
}

.omega-product .product-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.omega-product .product-tab.active {
  color: #111111;
  border-bottom-color: #111111;
  font-weight: 700;
}

/* Price Section Banner with exact TikTok Shop gradient */
.omega-product .price-section {
  background: var(--omega-offer-gradient) !important;
  aspect-ratio: auto !important;
  min-height: 76px;
  padding: 12px 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin: 0;
}

.omega-product .price-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.omega-product .price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.omega-product .discount-badge-white {
  background: #ffffff !important;
  color: #ff2b56 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.omega-product .price-label-apartir {
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.omega-product .price-current {
  color: #ffffff !important;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}

.omega-product .price-original {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 12px;
  text-decoration: line-through;
  margin-top: 2px;
  font-weight: 400;
}

.omega-product .price-right {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.omega-product .oferta-relampago {
  display: flex !important;
  align-items: center;
  gap: 4px;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

/* Color selectors */
.omega-colors {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.omega-color {
  flex: 0 0 64px;
  min-width: 0;
  max-width: 64px;
  border: 1px solid var(--omega-border);
  border-radius: 4px;
  background: var(--omega-surface);
  color: var(--omega-ink);
  padding: 6px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.omega-color:active {
  transform: scale(0.96);
}

.omega-color[aria-pressed="true"] {
  border: 2px solid var(--omega-selected);
  padding: 5px;
}

.omega-color img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.omega-color span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

/* Reviews Styling */
.omega-product .reviews-section {
  background: #ffffff;
  padding: 16px;
  margin: 0;
}

.omega-product .review-card {
  padding: 14px 0;
  border-bottom: 1px solid #f2f2f2;
}

.omega-product .review-card:last-child {
  border-bottom: none;
}

.omega-product .review-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.omega-product .review-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.omega-product .review-user-stars {
  color: #ffb800;
  font-size: 13px;
  margin: 4px 0 6px 0;
  letter-spacing: 1px;
}

.omega-product .review-comment {
  font-size: 13px;
  line-height: 1.45;
  color: #222222;
  margin: 0 0 8px 0;
}

.omega-product .omega-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.omega-product .omega-review-photos img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.omega-product .omega-review-photos img:active {
  transform: scale(0.97);
}

.omega-stock {
  color: var(--omega-selected);
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
}

.omega-video-section {
  margin: 16px 0;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.omega-video {
  display: block;
  width: 100%;
  max-height: 560px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 4px;
  background: var(--omega-ink);
}

/* Hardware accelerated fluid components */
.slider-track,
.product-tabs,
.bottom-bar,
.review-card,
.info-row-item,
.store-widget-product-card {
  will-change: transform;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
