/**
 * Overrides producción — PDP sandbox (single product)
 */
body.todoexiste-product-page {
  background: var(--te-bg, #f5f5f7) !important;
  overflow-x: hidden;
}

body.todoexiste-product-page #header,
body.todoexiste-product-page .ct-header,
body.todoexiste-product-page #offcanvas,
body.todoexiste-product-page .ct-breadcrumbs,
body.todoexiste-product-page .hero-section,
body.todoexiste-product-page .product.type-product > .summary,
body.todoexiste-product-page .woocommerce-notices-wrapper:first-child {
  display: none !important;
}

body.todoexiste-product-page .te-header {
  background: rgba(22, 22, 24, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.todoexiste-product-page .pa-pdp-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2rem !important;
  align-items: start !important;
}

body.todoexiste-product-page .pa-buy {
  position: sticky !important;
  top: 80px !important;
  background: #fff !important;
  border: 1px solid var(--te-border, #e5e7eb) !important;
  border-radius: 16px !important;
  padding: 1.75rem !important;
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06) !important;
}

body.todoexiste-product-page .te-pdp-actions {
  margin-top: 1.25rem !important;
}

/* Sin selector cantidad ni botones WC crudos */
body.todoexiste-product-page .te-pdp-variations .quantity,
body.todoexiste-product-page .te-pdp-actions .quantity {
  display: none !important;
}

body.todoexiste-product-page .te-pdp-variations .reset_variations {
  display: none !important;
}

body.todoexiste-product-page .te-pdp-variations .single_add_to_cart_button,
body.todoexiste-product-page .te-pdp-actions .single_add_to_cart_button,
body.todoexiste-product-page .te-pdp-actions .te-pdp-add {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.9rem 1.25rem !important;
  border: none !important;
  border-radius: 9999px !important;
  background: #111827 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

body.todoexiste-product-page .te-pdp-variations .single_add_to_cart_button:hover,
body.todoexiste-product-page .te-pdp-actions .te-pdp-add:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

body.todoexiste-product-page .te-pdp-longdesc {
  margin-top: 1.25rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--te-border, #e5e7eb) !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: var(--te-muted, #64748b) !important;
}

body.todoexiste-product-page .te-pdp-meta {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--te-border, #e5e7eb) !important;
}

body.todoexiste-product-page .te-pdp-variations .variations {
  width: 100%;
  margin-bottom: 0.75rem;
}

body.todoexiste-product-page .te-pdp-variations .variations td,
body.todoexiste-product-page .te-pdp-variations .variations th {
  display: block;
  width: 100%;
  padding: 0.25rem 0;
}

body.todoexiste-product-page .te-pdp-variations select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--te-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.875rem;
}

body.todoexiste-product-page .te-pdp-variations .single_add_to_cart_button {
  width: 100%;
  margin-top: 0.5rem;
}

body.todoexiste-product-page .te-pdp-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

body.todoexiste-product-page .te-pdp-thumb {
  border: 1px solid var(--te-border, #e5e7eb);
  border-radius: 8px;
  padding: 0.25rem;
  background: #fff;
  cursor: pointer;
}

body.todoexiste-product-page .te-pdp-thumb.is-active {
  border-color: #2563eb;
}

body.todoexiste-product-page .te-pdp-thumb img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  body.todoexiste-product-page .pa-pdp-grid {
    grid-template-columns: 1fr !important;
  }

  body.todoexiste-product-page .pa-buy {
    position: static !important;
  }
}
