body.single-product {
  background: #f7f8fa !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* El tema WDT imprime solo párrafos sueltos dentro de .product-grid-view */
body.single-product .ac-single-product > p,
body.single-product .product-grid-view.ac-single-product > p,
body.single-product #primary .product-grid-view:not(.ac-single-product) {
  display: none !important;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
  display: none !important;
}

.ac-single-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.ac-top-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 24px;
  margin: 0 -24px 24px;
}

.ac-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.ac-top-item strong { font-size: 13px; color: #111; }
.ac-top-item span { font-size: 11px; color: #666; }

.ac-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.ac-single-left,
.ac-single-right {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  padding: 24px;
}

.ac-single-left .ac-gallery { margin: 0; }

.ac-gallery-main img,
.ac-gallery-main .woocommerce-placeholder {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

.ac-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.ac-gallery-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.ac-gallery-thumb.is-active,
.ac-gallery-thumb:hover {
  border-color: #0b6ef3;
}

.ac-gallery-thumb img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* El tema envuelve la ficha en .product-grid-view (diseño de listado) */
body.single-product .product-grid-view:has(.ac-single-wrap) {
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.single-product .product-grid-view > p {
  display: none !important;
}

.ac-brand {
  font-size: 12px;
  font-weight: 700;
  color: #c8102e;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.ac-category {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.ac-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a2744;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 12px;
}

.ac-surface {
  font-size: 14px;
  color: #333;
  margin: 0 0 16px;
}

.ac-surface strong { color: #1a2744; }

.ac-price {
  font-size: 32px;
  font-weight: 800;
  color: #1a2744;
  margin: 0 0 8px;
}

.ac-price-note {
  font-size: 13px;
  color: #666;
  margin: 0 0 12px;
}

.ac-install-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #0b6ef3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 20px;
  font-family: inherit;
}

.ac-specs-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 14px;
  padding-top: 16px;
  border-top: 1px solid #e5e8ec;
}

.ac-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ac-spec-item {
  background: #f7f9fc;
  border: 1px solid #eef1f5;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.ac-spec-label {
  font-size: 10px;
  font-weight: 700;
  color: #7a8494;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.ac-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: #1a2744;
  line-height: 1.35;
  word-break: break-word;
}

.ac-specs-fallback {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}

.ac-specs-fallback p { margin: 0 0 8px; }

.ac-contact-box {
  margin-top: 20px;
  border: 1px solid #e8ecf0;
  border-radius: 16px;
  padding: 20px;
}

.ac-contact-box h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 14px;
}

.ac-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
}

.ac-btn-wa {
  background: #25d366;
  color: #fff !important;
  margin-bottom: 0;
}

.ac-btn-wa svg {
  flex-shrink: 0;
}

.ac-desc-general {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.ac-desc-inner h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 20px;
}

.ac-desc-body {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  padding: 32px;
  font-size: 15px;
  line-height: 1.75;
  color: #444;
}

.ac-modal[hidden] { display: none !important; }

.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ac-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ac-modal-box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  max-width: 440px;
  width: 100%;
}

.ac-modal-x {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.ac-modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a2744;
  margin: 0 0 16px;
}

.ac-modal-box ul {
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 14px;
  color: #444;
}

.ac-modal-btn {
  display: block;
  text-align: center;
  background: #25d366;
  color: #fff !important;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .ac-single-grid { grid-template-columns: 1fr; }
  .ac-specs-grid { grid-template-columns: 1fr; }
}
