/**
 * Totem Theme - WooCommerce Styling (PC & Mobile)
 * Diseñado para alta legibilidad, respuesta táctil y estética moderna.
 */

:root {
  --mv-wc-green: var(--mv-green, #18b6a4);
  --mv-wc-border: #e2e8f0;
  --mv-wc-bg-soft: #f8fafc;
  --mv-wc-text-dark: #0f172a;
  --mv-wc-text-muted: #64748b;
}

/* ==========================================================================
   1. SINGLE PRODUCT (FICHA DE PRODUCTO) - PC Y MOBILE
   ========================================================================== */
.single-product .mv-woocommerce-container,
.single-product .mv-container {
  max-width: 1280px;
  margin: 0 auto;
}

.single-product div.product {
  position: relative;
  display: block;
  margin-top: 10px;
}

/* Forzar que la galería no quede invisible a opacity:0 */
.single-product div.product div.images {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Layout 2 Columnas en Desktop (PC) */
@media (min-width: 769px) {
  .single-product div.product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
  }
  .single-product div.product div.images {
    width: 48% !important;
    float: none !important;
    margin: 0 !important;
  }
  .single-product div.product div.summary {
    width: 48% !important;
    float: none !important;
    margin: 0 !important;
  }
  .single-product div.product .woocommerce-tabs,
  .single-product div.product .related.products,
  .single-product div.product .upsells.products {
    width: 100% !important;
    clear: both;
    margin-top: 48px;
  }
}

/* Galería de imágenes */
.single-product div.product div.images .woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mv-wc-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.single-product div.product div.images img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.single-product div.product div.images .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.single-product div.product div.images .flex-control-thumbs li {
  width: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.single-product div.product div.images .flex-control-thumbs li img.flex-active,
.single-product div.product div.images .flex-control-thumbs li:hover {
  border-color: var(--mv-wc-green);
}

/* Badge de oferta (Sale) - Estilo Premium Totem */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  bottom: auto !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 5px 12px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  z-index: 10 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* Resumen del producto (Summary) */
.single-product div.product .summary {
  display: flex;
  flex-direction: column;
}

.single-product div.product .product_title {
  font-family: var(--mv-font-headings, inherit);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--mv-wc-text-dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.3px;
}

/* Precio con estilo destacado */
.single-product div.product p.price,
.single-product div.product span.price {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: var(--mv-wc-green) !important;
  margin: 0 0 18px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.single-product div.product p.price del,
.single-product div.product span.price del {
  font-size: 19px;
  font-weight: 600;
  color: var(--mv-wc-text-muted);
  opacity: 0.75;
}

.single-product div.product p.price ins,
.single-product div.product span.price ins {
  text-decoration: none;
  color: var(--mv-wc-green);
}

/* Descripción corta */
.single-product div.product .woocommerce-product-details__short-description {
  font-size: 16px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 24px;
}

/* Botón Añadir al Carrito y Cantidad */
.single-product div.product form.cart {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.single-product div.product form.cart .quantity {
  margin: 0;
}

.single-product div.product form.cart .quantity input.qty {
  width: 68px;
  height: 50px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  border: 2px solid var(--mv-wc-border);
  border-radius: 10px;
  background: var(--mv-wc-bg-soft);
  color: var(--mv-wc-text-dark);
  transition: border-color 0.2s ease;
}
.single-product div.product form.cart .quantity input.qty:focus {
  border-color: var(--mv-wc-green);
  outline: none;
}

.single-product div.product form.cart button.single_add_to_cart_button {
  height: 50px;
  padding: 0 32px;
  background: var(--mv-wc-green) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 182, 164, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.single-product div.product form.cart button.single_add_to_cart_button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 182, 164, 0.4);
}

/* Metadatos (SKU, Categoría, Etiquetas) */
.single-product div.product .product_meta {
  border-top: 1px solid var(--mv-wc-border);
  padding-top: 18px;
  font-size: 14px;
  color: var(--mv-wc-text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.single-product div.product .product_meta a {
  color: var(--mv-wc-green);
  text-decoration: none;
  font-weight: 600;
}
.single-product div.product .product_meta a:hover {
  text-decoration: underline;
}

/* Mobile Producto */
@media (max-width: 768px) {
  .single-product div.product div.images,
  .single-product div.product div.summary {
    width: 100% !important;
  }
  .single-product div.product .product_title {
    font-size: 24px;
    margin-top: 16px;
  }
  .single-product div.product form.cart {
    flex-direction: column;
    align-items: stretch;
  }
  .single-product div.product form.cart .quantity input.qty {
    width: 100%;
  }
  .single-product div.product form.cart button.single_add_to_cart_button {
    width: 100%;
  }
}

/* ==========================================================================
   2. TIENDA Y CATÁLOGO DE PRODUCTOS (SHOP ARCHIVE)
   ========================================================================== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 28px !important;
  padding: 0 !important;
  margin: 20px 0 40px !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  background: #ffffff;
  border: 1px solid rgba(15, 31, 23, 0.09);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(24, 182, 164, 0.40);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
  border-radius: 15px 15px 0 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
}
.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--mv-font-headings, inherit);
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 16px 16px 8px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px !important;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.woocommerce ul.products li.product .price {
  font-size: 19px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 16px 16px !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
}
.woocommerce ul.products li.product .price del {
  font-size: 14.5px;
  font-weight: 600;
  color: #94a3b8;
  opacity: 0.85;
  text-decoration: line-through;
}
.woocommerce ul.products li.product .price ins {
  color: var(--mv-green, #18b6a4);
  text-decoration: none;
  font-weight: 900;
}

/* Botón Añadir al carrito - Estilo Oficial Totem (.mv-btn) */
.woocommerce ul.products li.product .button {
  margin: 0 16px 18px !important;
  background: linear-gradient(90deg, var(--mv-green, #18b6a4), #10b981) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.woocommerce ul.products li.product .button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
}
.woocommerce ul.products li.product .button:active {
  transform: translateY(0) !important;
  filter: brightness(0.98) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15) !important;
}
.woocommerce ul.products li.product .button::after {
  content: "›" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}
.woocommerce ul.products li.product .button:hover::after {
  transform: translateX(3px) !important;
}

/* Mobile Tienda: Cuadrícula de 2 columnas táctil */
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    height: 160px;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    margin: 10px 10px 4px !important;
    min-height: 38px;
  }
  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
    margin: 0 10px 12px !important;
  }
  .woocommerce ul.products li.product .button {
    margin: 0 10px 14px !important;
    padding: 10px 12px !important;
    font-size: 12.5px !important;
    border-radius: 12px !important;
  }
}

/* ==========================================================================
   3. PÁGINA DEL CARRITO (CART PAGE)
   ========================================================================== */
.woocommerce-cart .mv-woocommerce-container,
.woocommerce-cart .mv-container {
  max-width: 1200px;
  margin: 0 auto;
}

.woocommerce-cart table.shop_table {
  border: 1px solid var(--mv-wc-border);
  border-radius: 12px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 30px;
}

.woocommerce-cart table.shop_table th {
  background: var(--mv-wc-bg-soft);
  color: var(--mv-wc-text-dark);
  font-weight: 700;
  padding: 16px;
  border-bottom: 1px solid var(--mv-wc-border);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.woocommerce-cart table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--mv-wc-border);
  vertical-align: middle;
}

.woocommerce-cart table.shop_table td.product-remove a.remove {
  background: #fee2e2;
  color: #dc2626 !important;
  width: 32px;
  height: 32px;
  line-height: 28px;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}
.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
  background: #dc2626;
  color: #ffffff !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--mv-wc-bg-soft);
  border: 1px solid var(--mv-wc-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 {
  font-family: var(--mv-font-headings, inherit);
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 0;
  color: var(--mv-wc-text-dark);
}
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(90deg, var(--mv-green, #18b6a4), #10b981) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center;
  padding: 16px 24px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
}
.woocommerce-cart .cart-collaterals .wc-proceed-to-checkout a.checkout-button::after {
  content: " ›" !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Mobile Carrito (Responsive Card Layout) */
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table.cart {
    border: none !important;
    background: transparent !important;
  }
  .woocommerce-cart table.shop_table.cart thead {
    display: none !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid var(--mv-wc-border) !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
    padding: 18px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 10px 0 !important;
    text-align: right !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td:last-child {
    border-bottom: none !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td::before {
    content: attr(data-title);
    font-weight: 700;
    color: #64748b;
    font-size: 13.5px;
    text-align: left;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove::before,
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail::before {
    display: none !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail {
    justify-content: center !important;
    padding-bottom: 14px !important;
  }
  .woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  .woocommerce-cart table.shop_table.cart td.actions {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }
  .woocommerce-cart table.shop_table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }
  .woocommerce-cart table.shop_table.cart td.actions .coupon input#coupon_code {
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 0 16px !important;
    font-size: 14.5px !important;
  }
  .woocommerce-cart table.shop_table.cart td.actions .coupon button.button {
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
  }
  .woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
    width: 100% !important;
    height: 48px !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
  }
}

/* ==========================================================================
   4. PÁGINA DE PAGO (CHECKOUT) - REDISEÑO PROFESIONAL PC Y MOBILE
   ========================================================================== */
.woocommerce-checkout .mv-container,
.woocommerce-checkout .mv-woocommerce-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* Barra de Cupón: Sin recortes, con icono SVG flat y alineación exacta */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 24px;
  width: 100%;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: #f0fdf4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3Cpath d='M13 5v2'/%3E%3Cpath d='M13 17v2'/%3E%3Cpath d='M13 11v2'/%3E%3C/svg%3E") no-repeat 18px center !important;
  border: 1px solid #bbf7d0 !important;
  border-left: 5px solid #16a34a !important;
  border-radius: 12px !important;
  padding: 16px 22px 16px 54px !important;
  color: #166534 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin: 0 0 16px 0 !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.06) !important;
  display: block !important;
  line-height: 1.5 !important;
}

/* Eliminar el pseudo-icono roto por defecto de WooCommerce */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
  color: #16a34a !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  margin-left: 4px;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon:hover {
  color: #15803d !important;
}

/* Formulario de cupón que se despliega */
.woocommerce-checkout form.checkout_coupon {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  margin: 0 0 28px 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
.woocommerce-checkout form.checkout_coupon .form-row-first {
  flex: 1 1 260px !important;
  margin: 0 !important;
  width: auto !important;
}
.woocommerce-checkout form.checkout_coupon .form-row-last {
  margin: 0 !important;
  width: auto !important;
}
.woocommerce-checkout form.checkout_coupon input#coupon_code {
  height: 48px !important;
  border: 1.5px solid var(--mv-wc-border) !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  width: 100% !important;
}
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
  background: #1e293b !important;
  color: #ffffff !important;
  height: 48px !important;
  padding: 0 26px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"]:hover {
  background: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* Layout Desktop 2 Columnas */
@media (min-width: 960px) {
  .woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 460px !important;
    grid-template-rows: auto 1fr;
    column-gap: 48px !important;
    row-gap: 0 !important;
    align-items: start !important;
    margin-top: 10px;
  }

  /* Columna izquierda: Facturación y notas */
  .woocommerce-checkout #customer_details {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Columna derecha: Título de tu pedido */
  .woocommerce-checkout #order_review_heading {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 0 16px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--mv-wc-text-dark) !important;
  }

  /* Columna derecha: Tarjeta de revisión fija (Sticky) */
  .woocommerce-checkout #order_review {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: sticky !important;
    top: 96px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Títulos de sección */
.woocommerce-checkout h3 {
  font-family: var(--mv-font-headings, inherit);
  font-size: 20px;
  font-weight: 800;
  color: var(--mv-wc-text-dark);
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

/* Campos de formulario */
.woocommerce form .form-row {
  margin-bottom: 18px;
  padding: 0;
}
.woocommerce form .form-row label {
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}
.woocommerce form .form-row label .required {
  color: #ef4444;
  font-weight: 700;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container--default .select2-selection--single {
  width: 100% !important;
  height: 50px !important;
  border: 1.5px solid var(--mv-wc-border) !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  background: #ffffff !important;
  color: var(--mv-wc-text-dark) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  line-height: 48px !important;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding-left: 0 !important;
  color: var(--mv-wc-text-dark) !important;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
}

.woocommerce form .form-row textarea {
  height: 110px !important;
  line-height: 1.55 !important;
  padding: 14px 16px !important;
  resize: vertical;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #16a34a !important;
  outline: none !important;
  box-shadow: 0 0 0 3.5px rgba(22, 163, 74, 0.16) !important;
}

/* Tarjeta de Resumen del Pedido */
.woocommerce-checkout #order_review {
  background: #ffffff;
  border: 1px solid var(--mv-wc-border);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.woocommerce-checkout #order_review table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0 0 22px 0;
  background: transparent;
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
  padding: 13px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14.5px;
  vertical-align: middle;
}

.woocommerce-checkout #order_review table.shop_table th {
  color: var(--mv-wc-text-muted);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.woocommerce-checkout #order_review table.shop_table td.product-name {
  color: var(--mv-wc-text-dark);
  font-weight: 600;
  padding-right: 14px;
}
.woocommerce-checkout #order_review table.shop_table td.product-total {
  text-align: right;
  font-weight: 700;
  color: var(--mv-wc-text-dark);
}

.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal th,
.woocommerce-checkout #order_review table.shop_table tr.cart-subtotal td {
  border-top: 1px solid var(--mv-wc-border);
  font-weight: 700;
}

.woocommerce-checkout #order_review table.shop_table tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tr.order-total td {
  border-top: 2px solid var(--mv-wc-border);
  border-bottom: none;
  font-size: 20px;
  font-weight: 900;
  color: #16a34a;
  padding-top: 18px;
}
.woocommerce-checkout #order_review table.shop_table tr.order-total td {
  text-align: right;
}

/* Métodos de Pago: Tarjetas interactivas */
.woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 22px;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
  border: 1.5px solid var(--mv-wc-border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #ffffff;
}

.woocommerce-checkout #payment ul.payment_methods li {
  padding: 15px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin: 0 !important;
  display: block;
  transition: background-color 0.2s ease;
}
.woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: none !important;
}
.woocommerce-checkout #payment ul.payment_methods li:hover {
  background-color: #f8fafc;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  accent-color: #16a34a;
  cursor: pointer;
  margin-right: 10px;
  transform: scale(1.15);
}

.woocommerce-checkout #payment ul.payment_methods li label {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: var(--mv-wc-text-dark) !important;
  cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  margin: 10px 0 4px 28px !important;
  font-size: 13.5px !important;
  color: #475569 !important;
  line-height: 1.55 !important;
}
.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

/* Aviso de política de privacidad */
.woocommerce-checkout .woocommerce-privacy-policy-text p {
  font-size: 12.5px !important;
  color: var(--mv-wc-text-muted) !important;
  line-height: 1.6 !important;
  margin: 16px 0 !important;
}
.woocommerce-checkout .woocommerce-privacy-policy-text a {
  color: #16a34a;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   5. BOTÓN DE COMPRA: CAMIONCITO FLAT Y ANIMACIÓN DE ENTREGA
   ========================================================================== */
.woocommerce-checkout #payment button#place_order.totem-place-order-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  height: 58px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 0 20px !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  overflow: hidden !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none;
}

.woocommerce-checkout #payment button#place_order.totem-place-order-btn:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.45) !important;
}

.woocommerce-checkout #payment button#place_order.totem-place-order-btn:active {
  transform: translateY(0);
}

/* Carretera inferior en el botón */
.totem-btn-road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0.85;
}

.totem-road-dashes {
  position: absolute;
  inset: 0;
  width: 200%;
  background: repeating-linear-gradient(
    90deg,
    #ffffff 0,
    #ffffff 12px,
    transparent 12px,
    transparent 24px
  );
  transform: translateX(0);
}

/* Escenario y Camioncito Flat */
.totem-truck-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  flex-shrink: 0;
  z-index: 2;
  transition: transform 0.3s ease;
}

.totem-truck-svg {
  width: 44px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.25s ease;
}

.totem-place-order-btn:hover .totem-truck-svg {
  transform: translateY(-1.5px);
}

/* Haz de luz apagado en reposo */
.totem-truck-beam {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Humo / Estelas apagadas en reposo */
.totem-truck-smoke {
  position: absolute;
  left: -10px;
  bottom: 2px;
  width: 16px;
  height: 12px;
  pointer-events: none;
}
.totem-smoke-puff {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
}

/* Contenido de textos: Reposo y En Camino */
.totem-btn-content {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 24px;
  line-height: 24px;
  z-index: 2;
}

.totem-text-idle,
.totem-text-driving {
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.totem-text-driving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  white-space: nowrap;
  transform: translateY(30px);
  opacity: 0;
}

/* ==========================================================================
   ESTADO ACTIVO AL DISPARAR EL PEDIDO (.totem-is-delivering)
   ========================================================================== */
.woocommerce-checkout #payment button#place_order.totem-place-order-btn.totem-is-delivering,
.woocommerce-checkout #payment button#place_order.totem-place-order-btn:disabled,
.woocommerce-checkout #payment button#place_order.totem-place-order-btn[disabled] {
  opacity: 1 !important;
  z-index: 10005 !important;
  position: relative !important;
}

.woocommerce-checkout #payment button#place_order.totem-place-order-btn::before,
.woocommerce-checkout #payment button#place_order.totem-place-order-btn::after {
  display: none !important;
}

.woocommerce-checkout #payment button#place_order.totem-is-delivering {
  background: #0f766e !important; /* Flat Deep Teal activo */
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.55) !important;
  cursor: wait !important;
}

/* Deslizar textos */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-text-idle {
  transform: translateY(-32px);
  opacity: 0;
}
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-text-driving {
  transform: translateY(0);
  opacity: 1;
}

/* Encender haz luminoso */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-truck-beam {
  opacity: 1;
}

/* Carretera animada */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-road-dashes {
  animation: totem-road-slide 0.35s linear infinite;
}

@keyframes totem-road-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-24px); }
}

/* Avance y bote del camioncito hacia adelante sobre la carretera */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-truck-stage {
  animation: totem-truck-drive 0.85s ease-in-out infinite alternate, totem-truck-bounce 0.28s ease-in-out infinite;
}

@keyframes totem-truck-drive {
  0% { transform: translateX(0); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(16px); }
}

@keyframes totem-truck-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Rotación rápida de las ruedas */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-wheel {
  transform-origin: center;
  animation: totem-wheel-spin 0.28s linear infinite;
}
.totem-wheel-back {
  transform-origin: 15px 30px;
}
.totem-wheel-front {
  transform-origin: 53px 30px;
}

@keyframes totem-wheel-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Estelas de humo detrás del camión */
.woocommerce-checkout #payment button#place_order.totem-is-delivering .totem-smoke-puff {
  animation: totem-smoke-puff 0.6s ease-out infinite;
}
.totem-smoke-puff.s1 {
  width: 7px;
  height: 7px;
  left: 2px;
  bottom: 3px;
  animation-delay: 0s;
}
.totem-smoke-puff.s2 {
  width: 5px;
  height: 5px;
  left: -2px;
  bottom: 6px;
  animation-delay: 0.2s;
}
.totem-smoke-puff.s3 {
  width: 4px;
  height: 4px;
  left: -5px;
  bottom: 2px;
  animation-delay: 0.4s;
}

@keyframes totem-smoke-puff {
  0% {
    opacity: 0.9;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(-14px, -8px) scale(1.6);
  }
}

/* Mobile Checkout (Pantallas pequeñas) */
@media (max-width: 959px) {
  .woocommerce-checkout form.checkout {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    margin-top: 14px;
  }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    position: static !important;
  }
  .woocommerce-checkout #customer_details {
    gap: 24px;
  }
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }
  .woocommerce-checkout form .form-row-first,
  .woocommerce-checkout form .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
  }
  .woocommerce-checkout #order_review {
    padding: 20px 18px !important;
    border-radius: 14px !important;
  }
}


/* ==========================================================================
   5. CONTROLES Y BARRA SUPERIOR DE LA TIENDA (SHOP TOOLBAR & ORDERING)
   ========================================================================== */
.woocommerce-shop .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
  font-size: 14.5px !important;
  color: #475569 !important;
  font-weight: 600 !important;
  line-height: 42px !important;
  margin-bottom: 24px !important;
}

.woocommerce-shop form.woocommerce-ordering,
.woocommerce-page form.woocommerce-ordering {
  margin-bottom: 24px !important;
}

.woocommerce-shop form.woocommerce-ordering select.orderby,
.woocommerce-page form.woocommerce-ordering select.orderby {
  padding: 10px 18px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}
.woocommerce-shop form.woocommerce-ordering select.orderby:focus,
.woocommerce-page form.woocommerce-ordering select.orderby:focus {
  border-color: var(--mv-green, #18b6a4) !important;
  box-shadow: 0 0 0 3px rgba(24, 182, 164, 0.15) !important;
}

/* ==========================================================================
   6. ADAPTACIÓN INTEGRAL POR PRESETS (TIENDA, PRODUCTO, CARRITO, CHECKOUT)
      Estilo Oficial Totem (.mv-btn, gradientes multi-tono, 14px radius y chevrons)
   ========================================================================== */

/* --------------------------------------------------------------------------
   PRESET 1: A-LÓ NATURAL (Cosmética Botánica & Lujo Orgánico)
   -------------------------------------------------------------------------- */
.totem-preset-alonatural.woocommerce-shop .mv-woocommerce-main,
.totem-preset-alonatural.woocommerce-page .mv-woocommerce-main {
  background: #fafaf7 !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid rgba(80, 97, 64, 0.16) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 28px rgba(6, 90, 53, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(6, 90, 53, 0.14) !important;
  border-color: #506140 !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius: 17px 17px 0 0 !important;
  border-bottom: 1px solid rgba(80, 97, 64, 0.12) !important;
  transition: transform 0.4s ease !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.04) !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--mv-font-headings, 'Black Mango', 'Playfair Display', Georgia, serif) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #14291d !important;
  letter-spacing: 0.2px !important;
  margin: 16px 16px 8px !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .price {
  color: #065a35 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  margin: 0 16px 16px !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .price del {
  color: #8b9980 !important;
  font-weight: 500 !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .price ins {
  color: #065a35 !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #506140 0%, #3e4d30 50%, #065a35 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.2px !important;
  margin: 0 16px 18px !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(6, 90, 53, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .button:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(6, 90, 53, 0.36) !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .button::after {
  content: " ›" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}
.totem-preset-alonatural .woocommerce ul.products li.product .button:hover::after {
  transform: translateX(3px) !important;
}
.totem-preset-alonatural .woocommerce span.onsale {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.totem-preset-alonatural.single-product div.product .product_title {
  font-family: var(--mv-font-headings, 'Black Mango', 'Playfair Display', serif) !important;
  color: #14291d !important;
}
.totem-preset-alonatural.single-product div.product p.price,
.totem-preset-alonatural.single-product div.product span.price {
  color: #065a35 !important;
}
.totem-preset-alonatural.single-product div.product form.cart button.single_add_to_cart_button {
  background: linear-gradient(135deg, #506140 0%, #3e4d30 50%, #065a35 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(6, 90, 53, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  padding: 0 36px !important;
  font-weight: 800 !important;
}
.totem-preset-alonatural.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #506140 0%, #3e4d30 50%, #065a35 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(6, 90, 53, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.totem-preset-alonatural.woocommerce-checkout .totem-place-order-btn {
  background: linear-gradient(135deg, #506140 0%, #3e4d30 50%, #065a35 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(6, 90, 53, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* --------------------------------------------------------------------------
   PRESET 2: MXMARKS (Legal Tech, Marcas & Corporativo Moderno)
   -------------------------------------------------------------------------- */
.totem-preset-mxmarks.woocommerce-shop .mv-woocommerce-main,
.totem-preset-mxmarks.woocommerce-page .mv-woocommerce-main {
  background: #f8fafc !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 24px rgba(15, 31, 56, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(15, 31, 56, 0.12), 0 0 0 1px #18b6a4 !important;
  border-color: #18b6a4 !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius: 17px 17px 0 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: transform 0.4s ease !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.04) !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #0f1f38 !important;
  letter-spacing: -0.2px !important;
  margin: 16px 16px 8px !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .price {
  color: #18b6a4 !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  margin: 0 16px 16px !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #18b6a4 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin: 0 16px 18px !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(24, 182, 164, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .button:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(24, 182, 164, 0.42) !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .button::after {
  content: " ›" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}
.totem-preset-mxmarks .woocommerce ul.products li.product .button:hover::after {
  transform: translateX(3px) !important;
}
.totem-preset-mxmarks .woocommerce span.onsale {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.totem-preset-mxmarks.single-product div.product .product_title {
  font-family: 'Inter', sans-serif !important;
  color: #0f1f38 !important;
  font-weight: 800 !important;
}
.totem-preset-mxmarks.single-product div.product p.price,
.totem-preset-mxmarks.single-product div.product span.price {
  color: #18b6a4 !important;
}
.totem-preset-mxmarks.single-product div.product form.cart button.single_add_to_cart_button {
  background: linear-gradient(135deg, #18b6a4 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(24, 182, 164, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 800 !important;
  padding: 0 36px !important;
}
.totem-preset-mxmarks.single-product div.product form.cart button.single_add_to_cart_button:hover {
  filter: brightness(1.06) !important;
}
.totem-preset-mxmarks.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #18b6a4 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(24, 182, 164, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.totem-preset-mxmarks.woocommerce-checkout .totem-place-order-btn {
  background: linear-gradient(135deg, #18b6a4 0%, #0f766e 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(24, 182, 164, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* --------------------------------------------------------------------------
   PRESET 3: TAGS TRADING (Fintech & Cripto Trading)
   -------------------------------------------------------------------------- */
.totem-preset-tagstrading.woocommerce-shop .mv-woocommerce-main,
.totem-preset-tagstrading.woocommerce-page .mv-woocommerce-main {
  background: #f8fafc !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.20) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 24px rgba(11, 20, 17, 0.06) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.16), 0 0 0 1px #10b981 !important;
  border-color: #10b981 !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius: 17px 17px 0 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: transform 0.4s ease !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.04) !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #0b1411 !important;
  letter-spacing: -0.2px !important;
  margin: 16px 16px 8px !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .price {
  color: #059669 !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  margin: 0 16px 16px !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  margin: 0 16px 18px !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  letter-spacing: 0.2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .button:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.45) !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .button::after {
  content: " ›" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}
.totem-preset-tagstrading .woocommerce ul.products li.product .button:hover::after {
  transform: translateX(3px) !important;
}
.totem-preset-tagstrading .woocommerce span.onsale {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.totem-preset-tagstrading.single-product div.product .product_title {
  font-family: 'Inter', sans-serif !important;
  color: #0b1411 !important;
  font-weight: 900 !important;
}
.totem-preset-tagstrading.single-product div.product p.price,
.totem-preset-tagstrading.single-product div.product span.price {
  color: #059669 !important;
}
.totem-preset-tagstrading.single-product div.product form.cart button.single_add_to_cart_button {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 900 !important;
  padding: 0 36px !important;
}
.totem-preset-tagstrading.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.totem-preset-tagstrading.woocommerce-checkout .totem-place-order-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* --------------------------------------------------------------------------
   PRESET 4: MAPIVERDE (Ecología, Reciclaje Urbano & Sostenibilidad)
   -------------------------------------------------------------------------- */
.totem-preset-mapiverde.woocommerce-shop .mv-woocommerce-main,
.totem-preset-mapiverde.woocommerce-page .mv-woocommerce-main {
  background: #f4fbf7 !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product {
  background: #ffffff !important;
  border: 1px solid rgba(10, 127, 72, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 24px rgba(10, 127, 72, 0.06) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 18px 40px rgba(10, 127, 72, 0.15) !important;
  border-color: #0a7f48 !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius: 17px 17px 0 0 !important;
  border-bottom: 1px solid rgba(10, 127, 72, 0.12) !important;
  transition: transform 0.4s ease !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.04) !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f1f17 !important;
  margin: 16px 16px 8px !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .price {
  color: #0a7f48 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  margin: 0 16px 16px !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .button {
  background: linear-gradient(135deg, #0a7f48 0%, #086338 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  padding: 13px 20px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin: 0 16px 18px !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(10, 127, 72, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .button:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 32px rgba(10, 127, 72, 0.40) !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .button::after {
  content: " ›" !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transition: transform 0.2s ease !important;
}
.totem-preset-mapiverde .woocommerce ul.products li.product .button:hover::after {
  transform: translateX(3px) !important;
}
.totem-preset-mapiverde .woocommerce span.onsale {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  font-size: 11px !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}
.totem-preset-mapiverde.single-product div.product .product_title {
  font-family: 'Inter', sans-serif !important;
  color: #0f1f17 !important;
  font-weight: 800 !important;
}
.totem-preset-mapiverde.single-product div.product p.price,
.totem-preset-mapiverde.single-product div.product span.price {
  color: #0a7f48 !important;
}
.totem-preset-mapiverde.single-product div.product form.cart button.single_add_to_cart_button {
  background: linear-gradient(135deg, #0a7f48 0%, #086338 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(10, 127, 72, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  font-weight: 700 !important;
  padding: 0 36px !important;
}
.totem-preset-mapiverde.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: linear-gradient(135deg, #0a7f48 0%, #086338 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(10, 127, 72, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
.totem-preset-mapiverde.woocommerce-checkout .totem-place-order-btn {
  background: linear-gradient(135deg, #0a7f48 0%, #086338 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(10, 127, 72, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}
