/* ================================
   ⚙️ INDICADOR DE CARGA (TEMPORAL)
   ================================ 
body:before {
    content: "✅ woocommerce.css cargado";
    position: fixed;
    top: 0;
    left: 0;
    background: lime;
    color: black;
    padding: 8px 12px;
    font-size: 14px;
    z-index: 9999;
}
*/

/* ================================
   🛍️ TIENDA Y PRODUCTOS
================================== */

/* Título de productos */
.woocommerce ul.products li.product h2 {
    color: #222;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Precio en tienda */
.woocommerce ul.products li.product .price {
    color: #e60000;
    font-weight: bold;
}

/* Botón "Añadir al carrito" (vista tienda) */
.woocommerce ul.products li.product .button,
.woocommerce a.button.add_to_cart_button {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 6px;
    transition: background 0.3s;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button.add_to_cart_button:hover {
    background-color: #444 !important;
}

/* Precio en página de producto */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #c00;
    font-weight: bold;
}

/* Botón "Añadir al carrito" en página de producto */
.woocommerce div.product form.cart .button {
    background-color: #000 !important;
    color: #fff !important;
    padding: 15px 24px;
    border-radius: 8px;
    font-weight: bold;
}
.woocommerce div.product form.cart .button:hover {
    background-color: #444 !important;
}

.woocommerce div.product .woocommerce-Tabs-panel * {
    box-sizing: border-box;
	margin: 0.5em;
}

/* =================================
   CAMPO DE TEXTO PARA VALORACIÓN
   =================================*/
.woocommerce #review_form_wrapper textarea {
    color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-308e809);
    border-style: solid;
    border-width: 1px;
    border-color: var(--e-global-color-308e809);
    border-radius: 10px;
    padding: 15px;
    font-size: 15px;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}


/* Botón "Eliminar producto del carrito" */
.woocommerce a.remove {
    color: #ff0000 !important;
    font-size: 1.4em;
}


/* ================================
   💳 CHECKOUT
================================== */

/* Etiquetas y campos */
.woocommerce form.checkout label {
    color: #333;
    font-weight: 600;
}
.woocommerce form.checkout input.input-text,
.woocommerce form.checkout textarea {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
}

/* Botón "Realizar pedido" */
.woocommerce #place_order {
    background-color: #28a745;
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
}
.woocommerce #place_order:hover {
    background-color: #218838;
}


/* ================================
   ✅ MENSAJES
================================== */

/* Mensaje éxito */
.woocommerce-message {
    background-color: #dff0d8;
    border-left: 4px solid #3c763d;
    padding: 10px;
    color: #3c763d;
    font-weight: bold;
}

/* Mensaje error */
.woocommerce-error {
    background-color: #f2dede;
    border-left: 4px solid #a94442;
    padding: 10px;
    color: #a94442;
    font-weight: bold;
}

/* Mensaje informativo */
.woocommerce-info {
    background-color: #d9edf7;
    border-left: 4px solid #31708f;
    padding: 10px;
    color: #31708f;
    font-weight: bold;
}

/* Botón "Ver carrito" en mensaje */
.woocommerce-message .button.wc-forward {
    background-color: #18457f !important;
    color: #fff !important;
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 6px;
}

/* Campo de cantidad */
.woocommerce .quantity .qty {
    width: 80px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #333;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #000;
}

/* Título del producto OK*/
.woocommerce div.product .product_title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

/* Texto general del producto OK*/
.woocommerce div.product p {
    font-size: 16px;
    color: #555;
	padding: 15px 15px 15px 15px;
}

/* =================================
   DESCRIPCIÓN DEL PRODUCTO PESTAÑAS
   =================================*/

/* Encabezado de pestañas */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
    padding: 15px; /* 15px en todos los lados */
}

/* Pestaña activa */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #000;
    border-bottom: 3px solid #0073aa;
}

/* Contenedor de contenido de pestañas */
.woocommerce div.product .woocommerce-Tabs-panel {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    padding: 15px; /* 15px en todos los lados */
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-top: 10px;
}

/* Ajustar márgenes internos de todos los elementos dentro del panel */
.woocommerce div.product .woocommerce-Tabs-panel > * {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Título principal (H2 o H3) dentro de la pestaña */
.woocommerce div.product .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-Tabs-panel h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
    padding: 0.4em;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Ajustar párrafos */
.woocommerce div.product .woocommerce-Tabs-panel p {
    margin: 1em 1em 1em 1em;
    padding: 0;
}

/* Ajustar listas si las hay */
.woocommerce div.product .woocommerce-Tabs-panel ul,
.woocommerce div.product .woocommerce-Tabs-panel ol {
    margin: 0 0 1em 1.2em;
    padding: 0;
}

/* ==============================================
   🎯 Customer Reviews - Preguntas y Respuestas
   Estilos de campos de entrada
   ============================================== */

/* Textarea */
textarea.cr-review-form-comment-txt {
    color: var(--e-global-color-secondary);
    background-color: var(--e-global-color-308e809);
    border: 1px solid var(--e-global-color-308e809);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Título encima del campo */
.cr-review-form-lbl {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Mensaje de error */
.cr-review-form-field-error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 5px;
}

/* ===================================================
   🛒 CARRITO RESPONSIVE - WooCommerce Blocks: Convertir tabla en columnas
   =================================================== */

/* ============================================
   🛒 TITULOS ESTILIZADOS DE CABECERA DEL CARRITO
   ============================================ */
.wc-block-cart-items__header th {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  border-bottom: 2px solid #ccc;
  padding: 12px 8px;
}

/* ============================================
   🛒 OCULTAR TITULOS ESTILIZADOS DE CABECERA DEL CARRITO EN MÓVILES
   ============================================ */ 
@media (max-width: 768px) {
  .wc-block-cart-items__header {
    display: none;
  }
}

/* ============================================
   🛒 COLUMNAS DEL CARRITO EN ESCRITORIO
   ============================================ */
/* Carrito en caja centrada */
.wc-block-cart {
  max-width: 1200px; /* Cambia a tu preferencia */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Reducir separación entre columnas */
.wc-block-cart__container {
  column-gap: 20px !important;
}

/* 🎨 Estilizar el título “Totales del carrito” */
.wc-block-cart .wc-block-cart__totals-title.wp-block-woocommerce-cart-order-summary-heading-block {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
}

/* 🎨 Estilizar el botón Finalizar compra del carrito */
.wc-block-cart__submit-button {
    background-color: #18457f !important;
    color: #fff !important;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 6px;
}
.wc-block-cart__submit-button:hover {
    background-color: #11598b !important;
}

/* =========================================
   🛒 WooCommerce Blocks – Carrito móvil en UNA columna
   ========================================= */
@media (max-width: 768px) {
  /* Cada fila de la tabla */
  .wc-block-cart-items__row {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    padding: 10px 0 !important;
  }

  /* Cada celda de la tabla */
  .wc-block-cart-items__row > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  /* Ocultar cabecera de tabla */
  .wc-block-cart-items__header {
    display: none !important;
  }

  /* Imagen centrada */
  .wc-block-cart-item__image {
    text-align: center !important;
    margin-bottom: 10px !important;
  }

  .wc-block-cart-item__image img {
    max-width: 140px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  /* Contenedor de datos en columna */
  .wc-block-cart-item__product {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 10px !important;
  }

  .wc-block-cart-item__product-name {
    margin-bottom: 8px !important;
  }

  .wc-block-cart-item__prices {
    margin-bottom: 8px !important;
  }

  .wc-block-cart-item__quantity {
    margin-bottom: 8px !important;
  }

  .wc-block-cart-item__total {
    margin-top: 10px !important;
  }

  .wc-block-cart-item__remove-link {
    margin-top: 8px !important;
    display: inline-block !important;
  }

  /* Bloque de totales */
  .wp-block-woocommerce-cart-order-summary-block {
    width: 100% !important;
    margin-top: 20px !important;
  }
}
