/* Product detail — marketplace layout */
html body .product-main .product-container {
  max-width: 1400px;
  gap: 18px;
}
html body .product-main .product-left {
  display: grid !important;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr) !important;
  gap: 18px;
  align-items: start;
  background: #1b1d2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px !important;
  padding: 16px;
}
html body .product-main .product-gallery {
  min-width: 0;
}
html body .product-main .gallery-main {
  position: relative;
  display: block !important;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: none !important;
  max-height: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #11131f;
}
html body .product-main .gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html body .product-main .gallery-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(12, 14, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
html body .product-main .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-width: none;
}
html body .product-main .gallery-thumb {
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #11131f;
}
html body .product-main .gallery-thumb.is-on {
  border-color: #8b5cf6;
}

html body .product-main .product-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html body .product-main .product-head {
  border: 0;
  padding: 0;
  margin: 0;
}
html body .product-main .product-id { display: none; }
html body .product-main .product-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}
html body .product-main .pd-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: #9ca3af;
  font-size: 13px;
}
html body .product-main .pd-stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
}
html body .product-main .pd-stars .far { color: #4b5563; }
html body .product-main .pd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html body .product-main .pd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}
html body .product-main .pd-pill.is-ok {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}
html body .product-main .pd-pill.is-time {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}
html body .product-main .pd-pill.is-auto {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.35);
}
html body .product-main .pd-features {
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}
html body .product-main .pd-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e7eb;
  font-size: 13px;
}
html body .product-main .pd-features i {
  width: 18px;
  color: #34d399;
  text-align: center;
}
html body .product-main .pd-features strong { color: #fff; }

html body .product-main .flags-row { margin: 0; }
html body .product-main .flag-badge {
  height: auto;
  min-width: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
}
html body .product-main .excerpt,
html body .product-main .meta-sep,
html body .product-main .top-sep,
html body .product-main .stock-strip { display: none !important; }

html body .product-main .purchase-toolbar {
  margin: 4px 0 0;
  gap: 10px;
}
html body .product-main .qty-control {
  border-radius: 12px;
  background: #141628;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html body .product-main .qty-btn {
  border-radius: 10px;
  background: #1e293b;
}
html body .product-main .purchase-badge {
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
}
html body .product-main .purchase-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
html body .product-main .btn-offer {
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.16);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}
html body .product-main .btn-offer:hover { background: rgba(139, 92, 246, 0.28); }
html body .product-main .pd-offers {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(17,20,32,.55);
}
html body .product-main .pd-offers-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #fff;
}
html body .product-main .pd-offers-head a { color: #c4b5fd; font-size: 13px; font-weight: 700; }
html body .product-main .pd-offers-empty { margin: 0; color: #9ca3af; font-size: 13px; }
html body .product-main .pd-offer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #fff;
}
html body .product-main .pd-offer-row span { color: #c4b5fd; font-weight: 800; margin-left: 8px; }
html body .product-main .pd-offer-acts { display: flex; gap: 6px; }
html body .product-main .pd-offer-acts button {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
  background: #22c55e;
  color: #fff;
}
html body .product-main .pd-offer-acts button[data-offer-act="reject"] {
  background: rgba(239,68,68,.2);
  color: #fca5a5;
}
@media (max-width: 720px) {
  html body .product-main .btn-offer,
  html body .product-main .btn-buy.btn-buy-wide { flex: 1 1 100%; }
}
html body .product-main .price-box {
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(99, 102, 241, 0.18));
  min-width: 160px;
  font-size: 20px;
}
html body .product-main .btn-buy.btn-buy-wide {
  height: 54px;
  border-radius: 12px;
  background: #22c55e;
  font-size: 16px;
  letter-spacing: 0.3px;
}
html body .product-main .btn-buy.btn-buy-wide:hover { background: #16a34a; }
html body .product-main .icon-box { border-radius: 12px; }

html body .product-main .seller-card,
html body .product-main .product-details {
  border-radius: 18px;
  background: #1b1d2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html body .product-main .product-details {
  grid-column: 1 / -1 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px;
  min-height: 0;
}
html body .product-main .pd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
html body .product-main .pd-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 13px;
  color: #9ca3af;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
}
html body .product-main .pd-tab-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
  border-bottom-color: #8b5cf6;
}

html body .product-main .pd-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
html body .product-main .pd-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #23263a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html body .product-main .pd-spec i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  color: #c4b5fd;
}
html body .product-main .pd-spec small {
  display: block;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
}
html body .product-main .pd-spec b {
  display: block;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .product-main .product-description-content {
  color: #d1d5db;
  line-height: 1.7;
}
html body .product-main .pd-empty {
  color: #9ca3af;
  padding: 18px 4px;
}
html body .product-main .product-notes { display: none !important; }

html body .product-main .trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
html body .product-main .trust-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  html body .product-main .pd-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  html body .product-main .product-left { grid-template-columns: 1fr !important; }
  html body .product-main .gallery-main { max-width: 100%; }
}
@media (max-width: 700px) {
  html body .product-main .product-title { font-size: 20px; }
  html body .product-main .pd-specs { grid-template-columns: 1fr; }
  html body .product-main .pd-tabs { gap: 4px; }
  html body .product-main .pd-tab-btn { padding: 9px 10px; font-size: 12px; }
}

[data-theme="light"] html body .product-main .product-left,
[data-theme="light"] html body .product-main .product-details,
[data-theme="light"] html body .product-main .seller-card {
  background: #fff;
  border-color: #e5e7eb;
}
[data-theme="light"] html body .product-main .product-title,
[data-theme="light"] html body .product-main .pd-spec b { color: #111827; }
[data-theme="light"] html body .product-main .pd-spec { background: #f8fafc; }
[data-theme="light"] html body .product-main .pd-features { background: #f8fafc; }
[data-theme="light"] html body .product-main .pd-features li { color: #1f2937; }
