/**
 * Universal Store Clean Child 4.8.0
 * Product full width + trust cards + meta cleanup + desktop header width.
 */

/* Hide noisy product meta lines: SKU, category, tags, brand. */
body.usg-theme.single-product .product_meta,
body.usg-theme.single-product .sku_wrapper,
body.usg-theme.single-product .posted_in,
body.usg-theme.single-product .tagged_as,
body.usg-theme.single-product .brand_wrapper,
body.usg-theme.single-product .wb-posted_in,
body.usg-theme.single-product .wb-tagged_as,
body.usg-theme.single-product .woocommerce-product-meta,
body.usg-theme.single-product [class*="product_meta"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* Desktop: make GP header/navigation visually full width while keeping content readable. */
@media (min-width: 769px) {
  body.usg-theme .site-header,
  body.usg-theme .main-navigation,
  body.usg-theme .main-navigation .main-nav,
  body.usg-theme .main-navigation .inside-navigation {
    width: 100% !important;
    max-width: none !important;
  }

  body.usg-theme .site-header .inside-header,
  body.usg-theme .main-navigation .inside-navigation {
    width: min(100% - 32px, 1760px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: clamp(12px, 2.6vw, 36px) !important;
  }

  body.usg-theme .main-navigation .inside-navigation {
    min-height: 66px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
  }
}

/* Desktop product page: full width product workspace, no narrow Astra/GP leftovers. */
@media (min-width: 1025px) {
  body.usg-theme.single-product #page,
  body.usg-theme.single-product .site,
  body.usg-theme.single-product .site-content,
  body.usg-theme.single-product .content-area,
  body.usg-theme.single-product #primary,
  body.usg-theme.single-product .site-main,
  body.usg-theme.single-product .inside-article,
  body.usg-theme.single-product .entry-content,
  body.usg-theme.single-product .woocommerce,
  body.usg-theme.single-product .usg-woo-page,
  body.usg-theme.single-product .usg-container {
    width: 100% !important;
    max-width: none !important;
  }

  body.usg-theme.single-product .inside-article,
  body.usg-theme.single-product .site-main,
  body.usg-theme.single-product .usg-woo-page > .usg-container {
    padding-inline: clamp(18px, 3vw, 46px) !important;
  }

  body.usg-theme.single-product div.product.usg-single-product-layout,
  body.usg-theme.single-product div.product.product {
    width: min(100%, 1760px) !important;
    max-width: 1760px !important;
    margin-inline: auto !important;
  }

  body.usg-theme.single-product .usg-single-product-hero {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 52%) minmax(420px, 48%) !important;
    gap: clamp(28px, 4vw, 64px) !important;
    align-items: start !important;
  }

  body.usg-theme.single-product .usg-single-product-gallery,
  body.usg-theme.single-product .usg-single-product-summary {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Summary must never overlap tabs/content. */
body.usg-theme.single-product .summary,
body.usg-theme.single-product .entry-summary,
body.usg-theme.single-product .usg-single-product-summary {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: none !important;
  z-index: 2 !important;
  max-height: none !important;
  overflow: visible !important;
}

body.usg-theme.single-product .usg-single-product-content,
body.usg-theme.single-product .woocommerce-tabs,
body.usg-theme.single-product .related.products,
body.usg-theme.single-product .upsells.products {
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Trust cards shown immediately above Description / Attributes / Reviews tabs. */
body.usg-theme.single-product .usg-product-trust-cards {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: clamp(18px, 2.8vw, 34px) 0 18px !important;
  clear: both !important;
}

body.usg-theme.single-product .usg-product-trust-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 20px !important;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.96)) !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.06) !important;
  color: var(--usg-text, #0f172a) !important;
}

html[data-usg-theme="dark"] body.usg-theme.single-product .usg-product-trust-card {
  background: linear-gradient(135deg, rgba(16,28,47,.96), rgba(20,35,58,.96)) !important;
  border-color: rgba(226,232,240,.12) !important;
}

body.usg-theme.single-product .usg-product-trust-card__icon {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  color: #16a34a !important;
  background: rgba(22,163,74,.10) !important;
}

body.usg-theme.single-product .usg-product-trust-card__icon svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  fill: currentColor !important;
}

body.usg-theme.single-product .usg-product-trust-card__text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.usg-theme.single-product .usg-product-trust-card strong {
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  white-space: normal !important;
}

body.usg-theme.single-product .usg-product-trust-card small {
  font-size: 12px !important;
  line-height: 1.7 !important;
  color: var(--usg-muted, #64748b) !important;
  white-space: normal !important;
}

/* Keep tabs below trust cards clean. */
body.usg-theme.single-product .woocommerce-tabs {
  margin-top: 0 !important;
}

@media (max-width: 1024px) {
  body.usg-theme.single-product .usg-single-product-hero {
    display: block !important;
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.usg-theme.single-product .usg-product-trust-cards {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 18px 0 14px !important;
  }

  body.usg-theme.single-product .usg-product-trust-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body.usg-theme.single-product .usg-product-trust-card__icon {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;
    border-radius: 14px !important;
  }
}
