/**
 * Shared class-based presentation for structured WooCommerce descriptions.
 *
 * Scope every rule to .phadin-product-content so legacy product descriptions
 * and other Flatsome/WooCommerce content remain unchanged.
 */

body.single-product #content2.specification_long .phadin-product-content--structured {
  --phadin-content-ink: #111827;
  --phadin-content-copy: #374151;
  --phadin-content-muted: #4b5563;
  --phadin-content-line: #e5e7eb;
  --phadin-content-radius: 22px;
  --phadin-section-copy: var(--phadin-content-copy);
  --phadin-section-heading: var(--phadin-content-ink);
  --phadin-eyebrow: #b45309;
  width: 100%;
  max-width: 100%;
  color: var(--phadin-content-copy);
  overflow-wrap: anywhere;
}

body.single-product #content2.specification_long .phadin-product-content--structured,
body.single-product #content2.specification_long .phadin-product-content--structured *,
body.single-product #content2.specification_long .phadin-product-content--structured *::before,
body.single-product #content2.specification_long .phadin-product-content--structured *::after {
  box-sizing: border-box;
}

body.single-product #content2.specification_long .phadin-product-content--structured > :last-child {
  margin-bottom: 0;
}

body.single-product #content2.specification_long .phadin-product-hero,
body.single-product #content2.specification_long .phadin-product-section,
body.single-product #content2.specification_long .phadin-product-cta {
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
  border-radius: var(--phadin-content-radius);
}

body.single-product #content2.specification_long .phadin-product-hero {
  --phadin-section-copy: #f8fafc;
  --phadin-section-heading: #ffffff;
  --phadin-eyebrow: #fcd34d;
  padding: 38px 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827 0%, #1f2937 52%, #7c2d12 100%);
}

body.single-product #content2.specification_long .phadin-product-hero h2 {
  margin: 0 0 16px;
  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}

body.single-product #content2.specification_long .phadin-product-hero p {
  color: #f8fafc;
}

body.single-product #content2.specification_long .phadin-product-hero > p:not(.phadin-product-eyebrow) {
  margin: 0 0 18px;
}

body.single-product #content2.specification_long .phadin-product-hero > p:not(.phadin-product-eyebrow):last-of-type {
  margin-bottom: 0;
  color: #e5e7eb;
}

body.single-product #content2.specification_long .phadin-product-hero strong {
  color: #ffffff;
}

body.single-product #content2.specification_long .phadin-product-eyebrow {
  margin: 0 0 8px;
  color: #b45309;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.5 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body.single-product #content2.specification_long .phadin-product-hero .phadin-product-eyebrow {
  margin-bottom: 10px;
  color: #fcd34d;
  font-size: 14px !important;
  letter-spacing: 1px;
}

body.single-product #content2.specification_long .phadin-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.single-product #content2.specification_long .phadin-product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(255 255 255 / 16%);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

body.single-product #content2.specification_long .phadin-product-grid {
  display: grid;
  min-width: 0;
  gap: 16px;
}

body.single-product #content2.specification_long .phadin-product-content--structured > .phadin-product-grid {
  margin: 0 0 30px;
}

body.single-product #content2.specification_long .phadin-product-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.single-product #content2.specification_long .phadin-product-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.single-product #content2.specification_long .phadin-product-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.single-product #content2.specification_long .phadin-product-card {
  --phadin-card-heading: var(--phadin-content-ink);
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--phadin-content-line);
  border-radius: 16px;
  background: #ffffff;
}

body.single-product #content2.specification_long .phadin-product-card h3 {
  margin: 0 0 10px;
  color: var(--phadin-content-ink) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body.single-product #content2.specification_long .phadin-product-card p {
  margin: 0;
  color: var(--phadin-content-muted);
}

body.single-product #content2.specification_long .phadin-product-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 35px;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

body.single-product #content2.specification_long .phadin-product-card--orange {
  --phadin-card-heading: #9a3412;
  border-color: #fed7aa;
  background: #fff7ed;
}

body.single-product #content2.specification_long .phadin-product-card--orange h3 {
  color: #9a3412 !important;
}

body.single-product #content2.specification_long .phadin-product-card--orange .phadin-product-card-number {
  background: #f97316;
}

body.single-product #content2.specification_long .phadin-product-card--green {
  --phadin-card-heading: #166534;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

body.single-product #content2.specification_long .phadin-product-card--green h3 {
  color: #166534 !important;
}

body.single-product #content2.specification_long .phadin-product-card--green .phadin-product-card-number {
  background: #16a34a;
}

body.single-product #content2.specification_long .phadin-product-card--blue {
  --phadin-card-heading: #1e3a8a;
  border-color: #bfdbfe;
  background: #eff6ff;
}

body.single-product #content2.specification_long .phadin-product-card--blue h3 {
  color: #1e3a8a !important;
}

body.single-product #content2.specification_long .phadin-product-card--blue .phadin-product-card-number {
  background: #2563eb;
}

body.single-product #content2.specification_long .phadin-product-card--violet {
  --phadin-card-heading: #4c1d95;
  border-color: #ddd6fe;
  background: #f5f3ff;
}

body.single-product #content2.specification_long .phadin-product-card--violet h3 {
  color: #4c1d95 !important;
}

body.single-product #content2.specification_long .phadin-product-card--violet .phadin-product-card-number {
  background: #7c3aed;
}

body.single-product #content2.specification_long .phadin-product-section {
  padding: 30px;
  border: 1px solid var(--phadin-content-line);
  background: #ffffff;
}

body.single-product #content2.specification_long .phadin-product-section--soft {
  background: #f9fafb;
}

body.single-product #content2.specification_long .phadin-product-section--cool {
  --phadin-eyebrow: #0f766e;
  border-color: #e2e8f0;
  background: #f8fafc;
}

body.single-product #content2.specification_long .phadin-product-section--cool .phadin-product-eyebrow {
  color: #0f766e;
}

body.single-product #content2.specification_long .phadin-product-section--warm {
  --phadin-eyebrow: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}

body.single-product #content2.specification_long .phadin-product-section--warm .phadin-product-eyebrow {
  color: #c2410c;
}

body.single-product #content2.specification_long .phadin-product-section > h2 {
  margin: 0 0 16px;
  color: var(--phadin-content-ink) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

body.single-product #content2.specification_long .phadin-product-section > p:not(.phadin-product-eyebrow) {
  margin: 0 0 14px;
  color: var(--phadin-content-copy);
}

body.single-product #content2.specification_long .phadin-product-section > p:last-child {
  margin-bottom: 0;
}

body.single-product #content2.specification_long .phadin-product-card--success {
  --phadin-card-heading: #065f46;
  border-color: #d1fae5;
}

body.single-product #content2.specification_long .phadin-product-card--success h3 {
  color: #065f46 !important;
}

body.single-product #content2.specification_long .phadin-product-card--muted {
  background: #f9fafb;
}

body.single-product #content2.specification_long .phadin-product-dark {
  --phadin-section-copy: #e5e7eb;
  --phadin-section-heading: #ffffff;
  --phadin-eyebrow: #f3d19c;
  border-color: #111827;
  color: #ffffff;
  background: #111827;
}

body.single-product #content2.specification_long .phadin-product-dark--warm {
  --phadin-eyebrow: #fde68a;
  border-color: #78350f;
  background: linear-gradient(135deg, #78350f 0%, #92400e 48%, #111827 100%);
}

body.single-product #content2.specification_long .phadin-product-dark > h2 {
  color: #ffffff !important;
}

body.single-product #content2.specification_long .phadin-product-dark > .phadin-product-eyebrow {
  color: #f3d19c;
}

body.single-product #content2.specification_long .phadin-product-dark--warm > .phadin-product-eyebrow {
  color: #fde68a;
}

body.single-product #content2.specification_long .phadin-product-card--dark {
  --phadin-card-heading: #fbbf24;
  border-color: rgb(255 255 255 / 16%);
  color: #e5e7eb;
  background: rgb(255 255 255 / 8%);
}

body.single-product #content2.specification_long .phadin-product-card--dark h3 {
  color: #fbbf24 !important;
}

body.single-product #content2.specification_long .phadin-product-dark--warm .phadin-product-card--dark h3 {
  color: #ffffff !important;
}

body.single-product #content2.specification_long .phadin-product-dark--warm .phadin-product-card--dark {
  --phadin-card-heading: #ffffff;
}

body.single-product #content2.specification_long .phadin-product-card--dark p,
body.single-product #content2.specification_long .phadin-product-dark > p:not(.phadin-product-eyebrow) {
  color: #e5e7eb;
}

body.single-product #content2.specification_long .phadin-product-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--phadin-content-line);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

body.single-product #content2.specification_long .phadin-product-table {
  display: table !important;
  width: 100%;
  max-width: none;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
}

body.single-product #content2.specification_long .phadin-product-table th,
body.single-product #content2.specification_long .phadin-product-table td {
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--phadin-content-line);
  text-align: left;
  font-style: normal;
}

body.single-product #content2.specification_long .phadin-product-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: #374151;
  color: #ffffff;
  background: #111827;
  font-weight: 800;
}

body.single-product #content2.specification_long .phadin-product-table tbody td:first-child {
  color: var(--phadin-content-ink);
  font-weight: 650;
}

body.single-product #content2.specification_long .phadin-product-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

body.single-product #content2.specification_long .phadin-product-table tbody tr:last-child td {
  border-bottom: 0;
}

body.single-product #content2.specification_long .phadin-product-cta {
  --phadin-section-copy: #fff7ed;
  --phadin-section-heading: #ffffff;
  --phadin-eyebrow: #fde68a;
  padding: 34px 30px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #7c2d12 0%, #92400e 48%, #111827 100%);
}

body.single-product #content2.specification_long .phadin-product-cta h2 {
  margin: 0 0 14px;
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

body.single-product #content2.specification_long .phadin-product-cta .phadin-product-eyebrow {
  color: #fde68a;
  font-size: 14px !important;
}

body.single-product #content2.specification_long .phadin-product-cta > p:last-child {
  max-width: 820px;
  margin: 0 auto;
  color: #fff7ed;
}

/*
 * Compatibility layer for the existing product-layout stylesheet, whose
 * legacy #content2 typography rules use !important at a high specificity.
 * These overrides remain limited to the new structured wrapper and only
 * restore properties that belong to the shared component classes.
 */
body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured p {
  color: var(--phadin-section-copy) !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-eyebrow {
  margin: 0 0 8px !important;
  color: var(--phadin-eyebrow) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-hero .phadin-product-eyebrow {
  margin-bottom: 10px !important;
  font-size: 14px !important;
  letter-spacing: 1px !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-hero h2 {
  margin: 0 0 16px !important;
  color: var(--phadin-section-heading) !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-hero strong {
  color: #ffffff !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-section > h2 {
  margin: 0 0 16px !important;
  color: var(--phadin-section-heading) !important;
  font-size: 27px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-card h3 {
  margin: 0 0 10px !important;
  color: var(--phadin-card-heading) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-cta h2 {
  margin: 0 0 14px !important;
  color: var(--phadin-section-heading) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-table {
  display: table !important;
  width: 100% !important;
  min-width: 680px !important;
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 1099px) and (min-width: 850px) {
  body.single-product #content2.specification_long .phadin-product-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  body.single-product #content2.specification_long .phadin-product-hero,
  body.single-product #content2.specification_long .phadin-product-section,
  body.single-product #content2.specification_long .phadin-product-cta {
    margin-bottom: 20px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  body.single-product #content2.specification_long .phadin-product-hero h2 {
    font-size: 28px !important;
  }

  body.single-product #content2.specification_long .phadin-product-section > h2,
  body.single-product #content2.specification_long .phadin-product-cta h2 {
    font-size: 24px !important;
  }

  body.single-product #content2.specification_long .phadin-product-grid--four,
  body.single-product #content2.specification_long .phadin-product-grid--three,
  body.single-product #content2.specification_long .phadin-product-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-product #content2.specification_long .phadin-product-content--structured > .phadin-product-grid {
    margin-bottom: 20px;
  }

  body.single-product #content2.specification_long .phadin-product-card {
    padding: 18px;
  }

  body.single-product #content2.specification_long .phadin-product-badge {
    flex: 1 1 140px;
  }

  body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-hero h2 {
    font-size: 28px !important;
  }

  body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-section > h2,
  body.single-product.phadin-pas-enabled.phadin-attribute-specs-mounted .product .product-footer #content2.specification_long .phadin-product-content--structured .phadin-product-cta h2 {
    font-size: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product #content2.specification_long .phadin-product-table-wrap {
    scroll-behavior: auto;
  }
}
