/* =======================================================================
   DEPORTES CDMX — Woo Pages (woo-premium.css)  v2
   Estilos premium para Carrito, Finalizar Compra y Mi Cuenta.
   Selectores corregidos al markup real que genera cada shortcode.
   ======================================================================= */

/* Variables para el contexto Woo */
body.cdmx-woo-page {
    --wp-teal:      #198E8B;
    --wp-teal-dark: #14746F;
    --wp-petrol:    #023D54;
    --wp-mint:      #94DEA5;
    --wp-black:     #0B0C0C;
    --wp-bg:        #F2F4F7;
    --wp-card-bg:   #FFFFFF;
    --wp-border:    #E3E6EA;
    --wp-text:      #2D3436;
    --wp-muted:     #6B7379;
    --wp-radius:    14px;
    --wp-radius-sm: 10px;
    --wp-shadow-sm: 0 4px 14px -6px rgba(2, 61, 84, 0.12);
    --wp-shadow-md: 0 12px 32px -12px rgba(2, 61, 84, 0.18);
    --wp-shadow-lg: 0 22px 50px -16px rgba(2, 61, 84, 0.28);
    background: var(--wp-bg) !important;
}

/* Reset heredados de Neve */
body.cdmx-woo-page,
body.cdmx-woo-page h1,
body.cdmx-woo-page h2,
body.cdmx-woo-page h3,
body.cdmx-woo-page h4,
body.cdmx-woo-page h5 { color: inherit; }
body.cdmx-woo-page .woocommerce h2 { color: var(--wp-petrol) !important; }

/* =======================================================================
   HERO breadcrumb (común a las 3 páginas)
   ======================================================================= */
body.cdmx-woo-page .cdmx-woo-hero {
    position: relative;
    background: #0B0C0C;
    overflow: hidden;
    padding: 60px 0 110px;
    color: #fff;
}
body.cdmx-woo-page .cdmx-woo-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 50%, rgba(25, 142, 139, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(3, 94, 123, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, #0B0C0C 0%, #042C3E 55%, #023D54 100%);
}
body.cdmx-woo-page .cdmx-woo-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 222, 165, 0.08) 1px, transparent 0);
    background-size: 36px 36px;
    opacity: 0.55;
}
body.cdmx-woo-page .cdmx-woo-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 28px;
}
body.cdmx-woo-page .cdmx-woo-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.cdmx-woo-page .cdmx-woo-breadcrumb a {
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
body.cdmx-woo-page .cdmx-woo-breadcrumb a:hover { color: var(--wp-mint) !important; }
body.cdmx-woo-page .cdmx-woo-breadcrumb__sep { opacity: 0.35; }
body.cdmx-woo-page .cdmx-woo-breadcrumb__current { color: var(--wp-mint); }

body.cdmx-woo-page .cdmx-woo-hero__head {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
body.cdmx-woo-page .cdmx-woo-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(25, 142, 139, 0.28) 0%, rgba(148, 222, 165, 0.18) 100%);
    border: 1px solid rgba(148, 222, 165, 0.28);
    color: var(--wp-mint);
    font-size: 1.75rem;
    box-shadow:
        0 12px 32px -10px rgba(25, 142, 139, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
body.cdmx-woo-page .cdmx-woo-hero__title {
    margin: 0 !important;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.8px;
    line-height: 1.1;
    color: #fff !important;
}
body.cdmx-woo-page .cdmx-woo-hero__subtitle {
    margin: 8px 0 0 !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.55;
    max-width: 640px;
}

/* =======================================================================
   CONTAINER (panel blanco flotante que se superpone al hero)
   ======================================================================= */
body.cdmx-woo-page .cdmx-woo-main {
    position: relative;
    padding: 0 20px 90px;
    margin-top: -68px;
    z-index: 3;
}
body.cdmx-woo-page .cdmx-woo-container {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--wp-card-bg);
    border-radius: 22px;
    padding: 44px;
    box-shadow: var(--wp-shadow-lg);
    border: 1px solid rgba(2, 61, 84, 0.06);
}

/* Ocultar h2 genérico del shortcode "Acceder" porque lo reemplaza nuestro hero */
body.cdmx-woo-page .cdmx-woo-container > .woocommerce > h2:first-child { display: none; }

/* =======================================================================
   FORM ELEMENTS globales (inputs, labels, buttons, messages)
   ======================================================================= */
/* Labels */
body.cdmx-woo-page .woocommerce label:not(.woocommerce-form__label-for-checkbox) {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--wp-petrol) !important;
    letter-spacing: 0.2px;
    margin-bottom: 6px !important;
    display: block;
}
body.cdmx-woo-page .woocommerce .required { color: var(--wp-teal); }

/* Inputs */
body.cdmx-woo-page .woocommerce-form input[type="text"],
body.cdmx-woo-page .woocommerce-form input[type="email"],
body.cdmx-woo-page .woocommerce-form input[type="tel"],
body.cdmx-woo-page .woocommerce-form input[type="password"],
body.cdmx-woo-page .woocommerce-form input[type="number"],
body.cdmx-woo-page .woocommerce-form input[type="search"],
body.cdmx-woo-page .woocommerce form .form-row input.input-text,
body.cdmx-woo-page .woocommerce form .form-row textarea,
body.cdmx-woo-page .woocommerce form .form-row select,
body.cdmx-woo-page .woocommerce-Input--text,
body.cdmx-woo-page .cdmx-woo-container input[type="text"],
body.cdmx-woo-page .cdmx-woo-container input[type="email"],
body.cdmx-woo-page .cdmx-woo-container input[type="tel"],
body.cdmx-woo-page .cdmx-woo-container input[type="password"],
body.cdmx-woo-page .cdmx-woo-container textarea,
body.cdmx-woo-page .cdmx-woo-container select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius-sm) !important;
    background: #fff !important;
    font: 500 0.92rem 'Montserrat', system-ui, sans-serif !important;
    color: var(--wp-text) !important;
    outline: none !important;
    box-shadow: inset 0 1px 2px rgba(2, 61, 84, 0.03) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box;
}
body.cdmx-woo-page .woocommerce-form input:focus,
body.cdmx-woo-page .woocommerce form .form-row input:focus,
body.cdmx-woo-page .woocommerce form .form-row textarea:focus,
body.cdmx-woo-page .woocommerce form .form-row select:focus,
body.cdmx-woo-page .cdmx-woo-container input:focus,
body.cdmx-woo-page .cdmx-woo-container textarea:focus,
body.cdmx-woo-page .cdmx-woo-container select:focus {
    border-color: var(--wp-teal) !important;
    box-shadow: 0 0 0 3px rgba(25, 142, 139, 0.14) !important;
}

/* Select2 */
body.cdmx-woo-page .select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius-sm) !important;
    background: #fff !important;
    padding: 0 14px !important;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(2, 61, 84, 0.03);
}
body.cdmx-woo-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--wp-text) !important;
    font-weight: 500;
    line-height: 46px;
    padding: 0 2px !important;
}
body.cdmx-woo-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; right: 12px !important; }
body.cdmx-woo-page .select2-container--open .select2-selection--single,
body.cdmx-woo-page .select2-container--focus .select2-selection--single {
    border-color: var(--wp-teal) !important;
    box-shadow: 0 0 0 3px rgba(25, 142, 139, 0.14) !important;
}

/* Botones primarios */
body.cdmx-woo-page .woocommerce button.button,
body.cdmx-woo-page .woocommerce a.button,
body.cdmx-woo-page .woocommerce input.button,
body.cdmx-woo-page .woocommerce-button.button,
body.cdmx-woo-page .woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.cdmx-woo-page .woocommerce #place_order,
body.cdmx-woo-page .woocommerce .button.alt {
    background: linear-gradient(135deg, var(--wp-teal) 0%, var(--wp-teal-dark) 100%) !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    padding: 14px 28px !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-size: 0.86rem !important;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: transform 0.22s, box-shadow 0.22s, background 0.22s !important;
    box-shadow: 0 8px 22px -6px rgba(25, 142, 139, 0.45) !important;
    text-shadow: none !important;
    text-transform: none !important;
    line-height: 1 !important;
    text-decoration: none !important;
}
body.cdmx-woo-page .woocommerce button.button:hover,
body.cdmx-woo-page .woocommerce a.button:hover,
body.cdmx-woo-page .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.cdmx-woo-page .woocommerce #place_order:hover,
body.cdmx-woo-page .woocommerce .button.alt:hover {
    background: linear-gradient(135deg, #1fa29e 0%, var(--wp-teal) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px -8px rgba(25, 142, 139, 0.6) !important;
    color: #fff !important;
}

/* Botón Update cart / Volver (secundario) */
body.cdmx-woo-page .woocommerce-cart button[name="update_cart"],
body.cdmx-woo-page .woocommerce .return-to-shop a.button,
body.cdmx-woo-page .woocommerce a.wc-backward {
    background: #F2F4F7 !important;
    color: var(--wp-petrol) !important;
    box-shadow: inset 0 0 0 1px var(--wp-border) !important;
}
body.cdmx-woo-page .woocommerce-cart button[name="update_cart"]:hover:enabled,
body.cdmx-woo-page .woocommerce .return-to-shop a.button:hover,
body.cdmx-woo-page .woocommerce a.wc-backward:hover {
    background: var(--wp-petrol) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -6px rgba(2, 61, 84, 0.3) !important;
    transform: translateY(-2px);
}

/* Mensajes (info/success/error) */
body.cdmx-woo-page .woocommerce-message,
body.cdmx-woo-page .woocommerce-info,
body.cdmx-woo-page .woocommerce-error,
body.cdmx-woo-page .woocommerce-notices-wrapper ul {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
    border: 0 !important;
    border-left: 4px solid var(--wp-teal) !important;
    border-radius: var(--wp-radius-sm) !important;
    padding: 16px 20px !important;
    margin: 0 0 22px !important;
    box-shadow: var(--wp-shadow-sm) !important;
    font-size: 0.9rem !important;
    color: var(--wp-text) !important;
    list-style: none !important;
    line-height: 1.6;
}
body.cdmx-woo-page .woocommerce-error { border-left-color: #DC3545 !important; }
body.cdmx-woo-page .woocommerce-message { border-left-color: var(--wp-mint) !important; }
body.cdmx-woo-page .woocommerce-info a,
body.cdmx-woo-page .woocommerce-message a,
body.cdmx-woo-page .woocommerce-error a {
    color: var(--wp-teal) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Precio destacado */
body.cdmx-woo-page .woocommerce-Price-amount,
body.cdmx-woo-page .amount {
    color: var(--wp-teal) !important;
    font-weight: 700 !important;
}

/* =======================================================================
   CARRITO VACÍO (estado sin productos)
   ======================================================================= */
body.cdmx-woo-cart .wc-empty-cart-message,
body.cdmx-woo-cart .cart-empty {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--wp-petrol);
    padding: 56px 24px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-radius: var(--wp-radius);
    border: 2px dashed var(--wp-border);
    margin-bottom: 24px !important;
    position: relative;
}
body.cdmx-woo-cart .wc-empty-cart-message::before,
body.cdmx-woo-cart .cart-empty::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    font-size: 3rem;
    color: rgba(25, 142, 139, 0.22);
    margin-bottom: 16px;
}
body.cdmx-woo-cart .cart-empty.woocommerce-info {
    border-left: 2px dashed var(--wp-border) !important;
}
body.cdmx-woo-cart .return-to-shop {
    display: flex;
    justify-content: center;
    margin: 8px 0 0 !important;
}

/* =======================================================================
   CARRITO — Cards CSS Grid (desktop + mobile unificado)
   La tabla se transforma en display:block con cada fila como card grid.
   Sin depender de `display:table` para evitar peleas con WooCommerce.
   ======================================================================= */
body.cdmx-woo-cart .woocommerce-cart-form { margin: 0; }

/* Tabla → block layout */
body.cdmx-woo-cart table.shop_table,
body.cdmx-woo-cart table.shop_table_responsive {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 28px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
body.cdmx-woo-cart table.shop_table thead { display: none !important; }
body.cdmx-woo-cart table.shop_table tbody { display: block !important; }

/* Cada fila es un CARD grid (desktop 5 cols, sin precio unitario — ya va en subtotal) */
body.cdmx-woo-cart table.shop_table tr.cart_item,
body.cdmx-woo-cart table.shop_table tr.woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 34px 88px minmax(0, 1fr) 110px 110px;
    grid-template-areas: "remove img name qty subtotal";
    gap: 16px;
    align-items: center;
    padding: 14px 18px !important;
    background: #fff !important;
    border: 1px solid rgba(2, 61, 84, 0.06) !important;
    border-radius: var(--wp-radius) !important;
    box-shadow: var(--wp-shadow-sm) !important;
    margin: 0 0 12px !important;
    width: 100% !important;
    box-sizing: border-box;
    transition: box-shadow 0.22s, transform 0.22s;
}
/* Ocultar precio unitario en layout 2 cols (ya está en el subtotal) */
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-price { display: none !important; }

/* Grid-areas en lugar de grid-column para más robustez */
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-remove    { grid-area: remove; grid-column: auto !important; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-thumbnail { grid-area: img;    grid-column: auto !important; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-name      { grid-area: name;   grid-column: auto !important; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-quantity  { grid-area: qty;    grid-column: auto !important; justify-self: center; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-subtotal  { grid-area: subtotal; grid-column: auto !important; text-align: right; justify-self: end; }
body.cdmx-woo-cart table.shop_table tr.cart_item:hover {
    box-shadow: var(--wp-shadow-md) !important;
    transform: translateY(-2px);
}

/* Celdas → block normal, sin padding propio */
body.cdmx-woo-cart table.shop_table tr.cart_item td {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0;
    vertical-align: middle;
    text-align: left;
    font-size: 0.88rem;
    color: var(--wp-text);
}

/* Orden por grid-column (respeta el orden del DOM pero garantiza layout) */
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-remove    { grid-column: 1; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-thumbnail { grid-column: 2; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-name      { grid-column: 3; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-price     { grid-column: 4; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-quantity  { grid-column: 5; }
body.cdmx-woo-cart table.shop_table tr.cart_item td.product-subtotal  { grid-column: 6; text-align: right; }

/* Labels `data-title` ocultos en desktop */
body.cdmx-woo-cart table.shop_table tr.cart_item td::before { display: none; }

/* Thumbnail — limpio, sin fondo, medida uniforme 88x88 */
body.cdmx-woo-cart table.shop_table .product-thumbnail { padding: 0 !important; }
body.cdmx-woo-cart table.shop_table .product-thumbnail a {
    display: block !important;
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    line-height: 0;
}
body.cdmx-woo-cart table.shop_table .product-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
    mix-blend-mode: multiply; /* se integra con el fondo sin caja visible */
}

/* Nombre del producto */
body.cdmx-woo-cart table.shop_table .product-name {
    overflow: hidden;
}
body.cdmx-woo-cart table.shop_table .product-name a {
    display: block;
    color: var(--wp-petrol) !important;
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    line-height: 1.35;
    text-decoration: none !important;
    transition: color 0.2s;
    word-break: break-word;
}
body.cdmx-woo-cart table.shop_table .product-name a:hover { color: var(--wp-teal) !important; }
/* Variations/SKU sub-text si aparece */
body.cdmx-woo-cart table.shop_table .product-name dl.variation,
body.cdmx-woo-cart table.shop_table .product-name .wc-item-meta {
    margin: 6px 0 0 !important;
    font-size: 0.78rem;
    color: var(--wp-muted);
}

/* Precio unitario */
body.cdmx-woo-cart table.shop_table .product-price {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--wp-muted);
}

/* Quantity (±) */
body.cdmx-woo-cart .quantity {
    display: inline-flex !important;
    align-items: center;
    background: #F2F4F7;
    border-radius: 10px;
    padding: 3px;
}
body.cdmx-woo-cart .quantity input.qty {
    width: 58px !important;
    min-height: 38px !important;
    height: 38px !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--wp-petrol) !important;
    font-size: 0.92rem !important;
    background: #fff !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: none !important;
}
body.cdmx-woo-cart .quantity input.qty:focus {
    border-color: var(--wp-teal) !important;
    box-shadow: 0 0 0 3px rgba(25, 142, 139, 0.12) !important;
}

/* Subtotal (última columna, destacada) */
body.cdmx-woo-cart table.shop_table .product-subtotal,
body.cdmx-woo-cart table.shop_table .product-subtotal .amount {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    color: var(--wp-teal) !important;
}

/* Remove (botón circular) */
body.cdmx-woo-cart table.shop_table .product-remove { padding: 0 !important; }
body.cdmx-woo-cart table.shop_table .product-remove a,
body.cdmx-woo-cart table.shop_table a.remove {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #F2F4F7 !important;
    color: var(--wp-muted) !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-decoration: none !important;
    transition: all 0.22s;
    font-weight: 400 !important;
    overflow: hidden;
}
body.cdmx-woo-cart table.shop_table .product-remove a::before,
body.cdmx-woo-cart table.shop_table a.remove::before {
    content: "\f00d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
}
body.cdmx-woo-cart table.shop_table .product-remove a:hover,
body.cdmx-woo-cart table.shop_table a.remove:hover {
    background: #DC3545 !important;
    color: #fff !important;
    transform: scale(1.08);
}

/* Fila ACTIONS (coupon + update) — card full-width */
body.cdmx-woo-cart table.shop_table tr:has(> td.actions),
body.cdmx-woo-cart table.shop_table tr.actions-row {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 18px 0 0 !important;
    grid-template-columns: none !important;
    transform: none !important;
}
body.cdmx-woo-cart table.shop_table td.actions {
    display: flex !important;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    background: #F7F9FB !important;
    padding: 18px 20px !important;
    border-radius: var(--wp-radius) !important;
    border: 1px dashed var(--wp-border) !important;
    grid-column: 1 / -1 !important;
}
body.cdmx-woo-cart .coupon {
    display: flex;
    gap: 10px;
    flex: 1 1 260px;
    min-width: 220px;
    align-items: center;
}
body.cdmx-woo-cart .coupon label { display: none !important; }
body.cdmx-woo-cart .coupon input#coupon_code {
    flex: 1;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700 !important;
    min-height: 44px !important;
}
body.cdmx-woo-cart .coupon button.button[name="apply_coupon"] {
    padding: 12px 20px !important;
    font-size: 0.78rem !important;
    min-height: 44px;
}
body.cdmx-woo-cart button[name="update_cart"] { min-height: 44px; }

/* =======================================================================
   CARRITO — Layout 2 columnas (productos/acciones | totales sticky)
   ======================================================================= */
body.cdmx-woo-cart .cdmx-woo-container > .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr);
    gap: 32px;
    align-items: start;
}
/* Notices cross both columns */
body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}
/* Form de productos (col izquierda) */
body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > form.woocommerce-cart-form,
body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > form.checkout_coupon {
    grid-column: 1;
    min-width: 0;
    margin: 0 !important;
}
/* Totales (col derecha) — sticky */
body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > .cart-collaterals {
    grid-column: 2;
    width: 100%;
    margin: 0 !important;
    display: block !important;
    position: sticky;
    top: 100px;
}

body.cdmx-woo-cart .cart_totals,
body.cdmx-woo-page .woocommerce .cart-collaterals .cart_totals,
body.cdmx-woo-page .woocommerce-page .cart-collaterals .cart_totals {
    float: right;
    width: 100%;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: var(--wp-radius);
    border: 1px solid var(--wp-border);
    box-shadow: var(--wp-shadow-md);
    box-sizing: border-box;
}
body.cdmx-woo-cart .cart_totals h2 {
    margin: 0 0 18px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wp-petrol) !important;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--wp-border);
    white-space: nowrap;
}
body.cdmx-woo-cart .cart_totals table.shop_table {
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 18px !important;
    border-spacing: 0;
}
body.cdmx-woo-cart .cart_totals table.shop_table th,
body.cdmx-woo-cart .cart_totals table.shop_table td {
    background: transparent !important;
    border: 0 !important;
    padding: 10px 0 !important;
    font-size: 0.9rem;
}
body.cdmx-woo-cart .cart_totals table th { color: var(--wp-muted) !important; font-weight: 600 !important; }
body.cdmx-woo-cart .cart_totals tr.order-total th,
body.cdmx-woo-cart .cart_totals tr.order-total td {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--wp-border) !important;
    color: var(--wp-petrol) !important;
}
body.cdmx-woo-cart .wc-proceed-to-checkout { margin-top: 6px !important; }
body.cdmx-woo-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    padding: 16px 28px !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
}

/* =======================================================================
   CHECKOUT — Secciones con iconos + Trust badges
   ======================================================================= */

/* Layout principal: 2 cols (datos | resumen sticky) */
body.cdmx-woo-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
body.cdmx-woo-checkout #customer_details { grid-column: 1; min-width: 0; }
body.cdmx-woo-checkout #order_review_heading,
body.cdmx-woo-checkout #order_review { grid-column: 2; min-width: 0; }

/* Heading "Tu pedido" (encima del resumen) — ahora elegante */
body.cdmx-woo-checkout #order_review_heading {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--wp-petrol) !important;
    letter-spacing: -0.3px;
    text-transform: none !important;
}
body.cdmx-woo-checkout #order_review_heading::before {
    content: "\f07a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    width: 36px; height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--wp-teal) 0%, var(--wp-teal-dark) 100%);
    box-shadow: 0 8px 18px -6px rgba(25, 142, 139, 0.5);
    flex-shrink: 0;
}

/* Billing y Shipping: stack vertical (cada uno su card) */
body.cdmx-woo-checkout #customer_details .col-1,
body.cdmx-woo-checkout #customer_details .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
}
body.cdmx-woo-checkout #customer_details .col-2:last-child { margin-bottom: 0 !important; }

/* Cada sección como card */
body.cdmx-woo-checkout .woocommerce-billing-fields,
body.cdmx-woo-checkout .woocommerce-shipping-fields,
body.cdmx-woo-checkout .woocommerce-additional-fields {
    background: #fff;
    padding: 28px;
    border-radius: var(--wp-radius);
    border: 1px solid var(--wp-border);
    box-shadow: var(--wp-shadow-sm);
    position: relative;
    counter-increment: cdmx-section;
}

/* Trust badges antes del botón place order */
body.cdmx-woo-checkout .cdmx-checkout-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0 4px;
    padding: 14px;
    background: linear-gradient(180deg, #F7F9FB 0%, #eff3f6 100%);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-sm);
}
body.cdmx-woo-checkout .cdmx-checkout-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
}
body.cdmx-woo-checkout .cdmx-checkout-trust__item i {
    color: var(--wp-teal);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(25, 142, 139, 0.1);
    flex-shrink: 0;
}
body.cdmx-woo-checkout .cdmx-checkout-trust__item span {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.2;
}
body.cdmx-woo-checkout .cdmx-checkout-trust__item strong {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--wp-petrol);
    letter-spacing: 0.2px;
}
body.cdmx-woo-checkout .cdmx-checkout-trust__item small {
    font-size: 0.68rem;
    color: var(--wp-muted);
    font-weight: 500;
}

body.cdmx-woo-checkout .woocommerce-billing-fields h3,
body.cdmx-woo-checkout .woocommerce-shipping-fields h3,
body.cdmx-woo-checkout .woocommerce-additional-fields h3 {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: var(--wp-petrol) !important;
    margin: 0 0 20px !important;
    padding: 0 0 14px 50px;
    border-bottom: 1px solid var(--wp-border);
    letter-spacing: -0.3px;
    position: relative;
    min-height: 40px;
    display: flex;
    align-items: center;
}
body.cdmx-woo-checkout .woocommerce-billing-fields h3::before,
body.cdmx-woo-checkout .woocommerce-shipping-fields h3::before,
body.cdmx-woo-checkout .woocommerce-additional-fields h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.95rem;
    color: #fff;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wp-teal) 0%, var(--wp-teal-dark) 100%);
    box-shadow: 0 8px 18px -6px rgba(25, 142, 139, 0.5);
    position: absolute;
    left: 0;
    top: 0;
}
body.cdmx-woo-checkout .woocommerce-billing-fields h3::before    { content: "\f007"; }  /* user */
body.cdmx-woo-checkout .woocommerce-shipping-fields h3::before   { content: "\f0d1"; }  /* truck */
body.cdmx-woo-checkout .woocommerce-additional-fields h3::before { content: "\f4ad"; }  /* comment */

body.cdmx-woo-checkout .woocommerce-billing-fields__field-wrapper,
body.cdmx-woo-checkout .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
}
body.cdmx-woo-checkout p.form-row {
    width: 100% !important;
    margin: 0 0 6px !important;
    float: none !important;
}
body.cdmx-woo-checkout p.form-row-wide,
body.cdmx-woo-checkout p.form-row.form-row-wide,
body.cdmx-woo-checkout p.form-row#billing_company_field,
body.cdmx-woo-checkout p.form-row#billing_address_1_field,
body.cdmx-woo-checkout p.form-row#billing_address_2_field,
body.cdmx-woo-checkout p.form-row#billing_email_field,
body.cdmx-woo-checkout p.form-row#billing_phone_field,
body.cdmx-woo-checkout p.form-row#shipping_company_field,
body.cdmx-woo-checkout p.form-row#shipping_address_1_field,
body.cdmx-woo-checkout p.form-row#shipping_address_2_field,
body.cdmx-woo-checkout p.form-row#order_comments_field {
    grid-column: 1 / -1 !important;
}

/* Order review (resumen sticky) */
body.cdmx-woo-checkout #order_review {
    position: sticky;
    top: 100px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: var(--wp-radius);
    border: 1px solid var(--wp-border);
    box-shadow: var(--wp-shadow-md);
}
body.cdmx-woo-checkout #order_review table.shop_table {
    background: transparent !important;
    border: 0 !important;
    width: 100%;
    margin: 0 0 14px !important;
}
body.cdmx-woo-checkout #order_review table.shop_table th,
body.cdmx-woo-checkout #order_review table.shop_table td {
    background: transparent !important;
    border: 0 !important;
    padding: 10px 0 !important;
    font-size: 0.88rem !important;
    vertical-align: middle;
}
body.cdmx-woo-checkout #order_review table.shop_table thead th {
    color: var(--wp-muted) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--wp-border) !important;
}
body.cdmx-woo-checkout #order_review table.shop_table .product-name {
    color: var(--wp-petrol);
    font-weight: 600;
}
body.cdmx-woo-checkout #order_review table.shop_table tfoot tr th,
body.cdmx-woo-checkout #order_review table.shop_table tfoot tr td {
    border-top: 1px solid var(--wp-border) !important;
    padding: 12px 0 !important;
}
body.cdmx-woo-checkout #order_review tr.order-total th,
body.cdmx-woo-checkout #order_review tr.order-total td {
    font-weight: 800 !important;
    font-size: 1.12rem !important;
    color: var(--wp-petrol) !important;
}

/* Payment methods */
body.cdmx-woo-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
    margin-top: 8px;
}
body.cdmx-woo-checkout #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 16px;
    border: 0 !important;
    list-style: none;
}
body.cdmx-woo-checkout #payment ul.payment_methods li {
    background: #fff;
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius-sm) !important;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
}
body.cdmx-woo-checkout #payment ul.payment_methods li:has(input:checked) {
    border-color: var(--wp-teal) !important;
    background: rgba(25, 142, 139, 0.04) !important;
}
body.cdmx-woo-checkout #payment ul.payment_methods li label {
    display: inline !important;
    font-weight: 700 !important;
    color: var(--wp-petrol) !important;
    margin: 0 0 0 6px !important;
    cursor: pointer;
}
body.cdmx-woo-checkout #payment .payment_box {
    background: #F7F9FB !important;
    padding: 14px !important;
    border-radius: var(--wp-radius-sm) !important;
    margin: 12px 0 0 !important;
    border: 1px dashed var(--wp-border) !important;
    font-size: 0.84rem;
    color: var(--wp-muted);
}
body.cdmx-woo-checkout #payment .payment_box::before { display: none !important; }

/* Botón "Realizar pedido" — prominente y claro */
body.cdmx-woo-checkout #place_order {
    width: 100% !important;
    margin-top: 14px !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    padding: 16px 28px !important;
    border-radius: 12px !important;
    letter-spacing: 0.2px !important;
}
/* Icono lock antes del texto del botón (para reforzar seguridad) */
body.cdmx-woo-checkout #place_order::before {
    content: "\f023"; /* lock */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.88rem;
    margin-right: 4px;
    opacity: 0.95;
}

body.cdmx-woo-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 14px 0 4px;
    font-size: 0.84rem;
    color: var(--wp-muted);
}

/* Login & coupon toggles */
body.cdmx-woo-checkout .woocommerce-form-coupon-toggle,
body.cdmx-woo-checkout .woocommerce-form-login-toggle { margin-bottom: 12px; }
body.cdmx-woo-checkout form.woocommerce-form-coupon,
body.cdmx-woo-checkout form.woocommerce-form-login {
    background: #F7F9FB !important;
    border: 1px dashed var(--wp-border) !important;
    border-radius: var(--wp-radius-sm) !important;
    padding: 22px !important;
    margin: 0 0 22px !important;
}

/* Thank-you page */
body.cdmx-woo-checkout .woocommerce-thankyou-order-received {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--wp-petrol) !important;
    margin: 0 0 16px !important;
}
body.cdmx-woo-checkout .woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 12px !important;
    padding: 22px !important;
    background: #F7F9FB !important;
    border-radius: var(--wp-radius) !important;
    border: 1px solid var(--wp-border) !important;
    list-style: none !important;
    margin: 0 0 24px !important;
}
body.cdmx-woo-checkout .woocommerce-order-overview li {
    border: 0 !important;
    padding: 0 !important;
    font-size: 0.78rem !important;
    color: var(--wp-muted) !important;
    font-weight: 600 !important;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
body.cdmx-woo-checkout .woocommerce-order-overview li strong {
    display: block !important;
    color: var(--wp-petrol) !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
}

/* =======================================================================
   MI CUENTA — LOGIN FORM (sin sesión)
   Markup real: <div class="woocommerce"> <form class="woocommerce-form-login"> ... </form> </div>
   ======================================================================= */
body.cdmx-woo-account .cdmx-woo-container > .woocommerce {
    max-width: none;
}
body.cdmx-woo-account .woocommerce-form-login {
    max-width: 460px;
    margin: 0 auto !important;
    padding: 38px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow-md);
    position: relative;
}
body.cdmx-woo-account .woocommerce-form-login::before {
    content: "\f2f6";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    font-size: 1.6rem;
    color: var(--wp-teal);
    margin-bottom: 10px;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    border-radius: 16px;
    background: rgba(25, 142, 139, 0.1);
    margin-bottom: 18px;
}
body.cdmx-woo-account .woocommerce-form-login p.form-row { margin-bottom: 14px !important; }
body.cdmx-woo-account .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem !important;
    color: var(--wp-muted) !important;
    font-weight: 500 !important;
    margin-bottom: 14px !important;
}
body.cdmx-woo-account .woocommerce-form-login__rememberme input { margin: 0 !important; }
body.cdmx-woo-account .woocommerce-form-login__submit {
    width: 100%;
}
body.cdmx-woo-account .woocommerce-LostPassword {
    margin: 16px 0 0 !important;
    text-align: center;
    font-size: 0.84rem !important;
}
body.cdmx-woo-account .woocommerce-LostPassword a {
    color: var(--wp-teal) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
body.cdmx-woo-account .woocommerce-LostPassword a:hover { text-decoration: underline !important; }

/* =======================================================================
   LOGIN + REGISTER — Split Screen Premium
   Card claro (login) + card oscuro con acento mint (register)
   ======================================================================= */

/* Container más compacto para las 2 cards */
body.cdmx-woo-login .cdmx-woo-container {
    max-width: 1080px;
    padding: 44px !important;
}

/* Neutralizar clearfix legacy de WooCommerce (display:table en pseudos)
   — este era el bug que tiraba el register al siguiente row */
body.cdmx-woo-login .col2-set::before,
body.cdmx-woo-login .col2-set::after,
body.cdmx-woo-login .u-columns::before,
body.cdmx-woo-login .u-columns::after,
body.cdmx-woo-account .col2-set::before,
body.cdmx-woo-account .col2-set::after,
body.cdmx-woo-account .u-columns::before,
body.cdmx-woo-account .u-columns::after,
body.cdmx-woo-page .col2-set::before,
body.cdmx-woo-page .col2-set::after {
    display: none !important;
    content: none !important;
}

/* Grid 2 columnas */
body.cdmx-woo-login .u-columns.col2-set,
body.cdmx-woo-account .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset de cada columna — luego se estiliza como card */
body.cdmx-woo-login .u-column1,
body.cdmx-woo-login .u-column2,
body.cdmx-woo-account .u-column1,
body.cdmx-woo-account .u-column2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 44px 38px !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s;
    animation: cdmxLoginIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
    min-width: 0;
}
body.cdmx-woo-login .u-column2,
body.cdmx-woo-account .u-column2 { animation-delay: 0.08s; }
@keyframes cdmxLoginIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card LOGIN (claro) */
body.cdmx-woo-login .u-column1,
body.cdmx-woo-account .u-column1 {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafb 100%);
    border: 1px solid var(--wp-border);
    box-shadow: var(--wp-shadow-md);
}
body.cdmx-woo-login .u-column1:hover,
body.cdmx-woo-account .u-column1:hover {
    transform: translateY(-4px);
    box-shadow: var(--wp-shadow-lg);
}

/* Card REGISTER (oscuro con halo mint) */
body.cdmx-woo-login .u-column2,
body.cdmx-woo-account .u-column2 {
    background:
        radial-gradient(circle at 90% -10%, rgba(148, 222, 165, 0.22) 0%, transparent 55%),
        radial-gradient(circle at -10% 100%, rgba(25, 142, 139, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #0B0C0C 0%, #042C3E 55%, #023D54 100%);
    color: #fff;
    border: 1px solid rgba(148, 222, 165, 0.18);
    box-shadow: 0 24px 54px -18px rgba(2, 61, 84, 0.55);
}
body.cdmx-woo-login .u-column2:hover,
body.cdmx-woo-account .u-column2:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 64px -16px rgba(2, 61, 84, 0.65);
}
/* Pattern sutil de puntos mint en el card oscuro */
body.cdmx-woo-login .u-column2::before,
body.cdmx-woo-account .u-column2::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 222, 165, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.6;
    pointer-events: none;
}
/* Badge "NUEVO AQUÍ" en el card oscuro */
body.cdmx-woo-login .u-column2::after,
body.cdmx-woo-account .u-column2::after {
    content: "NUEVO AQUÍ";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.8px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(148, 222, 165, 0.18);
    color: var(--wp-mint);
    border: 1px solid rgba(148, 222, 165, 0.3);
    backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

/* Reset del card interno cuando vive dentro de u-columns */
body.cdmx-woo-login .u-columns .woocommerce-form-login,
body.cdmx-woo-login .u-columns .woocommerce-form-register,
body.cdmx-woo-account .u-columns .woocommerce-form-login,
body.cdmx-woo-account .u-columns .woocommerce-form-register {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.cdmx-woo-login .u-columns .woocommerce-form-login::before,
body.cdmx-woo-login .u-columns .woocommerce-form-register::before,
body.cdmx-woo-account .u-columns .woocommerce-form-login::before,
body.cdmx-woo-account .u-columns .woocommerce-form-register::before { display: none !important; content: none !important; }

/* Títulos H2 — layout block con ícono absolute + subtítulo block normal */
body.cdmx-woo-login .u-columns h2,
body.cdmx-woo-account .u-columns h2 {
    position: relative;
    z-index: 2;
    display: block !important;
    padding: 6px 0 0 68px !important;
    min-height: 52px;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    margin: 0 0 28px !important;
    border: 0 !important;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
body.cdmx-woo-login .u-columns .col-1 h2,
body.cdmx-woo-account .u-columns .col-1 h2 { color: var(--wp-petrol) !important; }
body.cdmx-woo-login .u-columns .col-2 h2,
body.cdmx-woo-account .u-columns .col-2 h2 { color: #fff !important; }

/* Ícono pill (absolute top-left del h2) */
body.cdmx-woo-login .u-columns .col-1 h2::before,
body.cdmx-woo-account .u-columns .col-1 h2::before {
    content: "\f2f6";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.15rem;
    color: #fff;
    width: 52px; height: 52px;
    line-height: 52px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wp-teal) 0%, var(--wp-teal-dark) 100%);
    box-shadow: 0 12px 28px -8px rgba(25, 142, 139, 0.55);
    position: absolute;
    left: 0;
    top: 0;
}
body.cdmx-woo-login .u-columns .col-2 h2::before,
body.cdmx-woo-account .u-columns .col-2 h2::before {
    content: "\f234";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--wp-petrol);
    width: 52px; height: 52px;
    line-height: 52px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--wp-mint) 0%, #6bc78a 100%);
    box-shadow: 0 12px 28px -8px rgba(148, 222, 165, 0.5);
    position: absolute;
    left: 0;
    top: 0;
}

/* Subtítulo como block normal debajo del texto del h2 (sin position absolute) */
body.cdmx-woo-login .u-columns .col-1 h2::after,
body.cdmx-woo-account .u-columns .col-1 h2::after {
    content: "Accede para ver pedidos, direcciones y seguimiento";
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wp-muted);
    letter-spacing: 0;
    line-height: 1.45;
}
body.cdmx-woo-login .u-columns .col-2 h2::after,
body.cdmx-woo-account .u-columns .col-2 h2::after {
    content: "Crea tu cuenta en menos de 30 segundos";
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: 0;
    line-height: 1.45;
}

/* Forms dentro de las columns — layout normal */
body.cdmx-woo-login .u-columns form,
body.cdmx-woo-account .u-columns form {
    position: relative;
    z-index: 2;
    margin: 0 !important;
}

/* Inputs del card OSCURO (register) */
body.cdmx-woo-page.cdmx-woo-login .u-column2 label,
body.cdmx-woo-page.cdmx-woo-account .u-column2 label,
body.cdmx-woo-page.cdmx-woo-login .u-column2 .woocommerce label:not(.woocommerce-form__label-for-checkbox),
body.cdmx-woo-page.cdmx-woo-account .u-column2 .woocommerce label:not(.woocommerce-form__label-for-checkbox) {
    color: #ffffff !important;
}
body.cdmx-woo-login .u-column2 .required,
body.cdmx-woo-account .u-column2 .required { color: var(--wp-mint) !important; }

body.cdmx-woo-login .u-column2 input[type="text"],
body.cdmx-woo-login .u-column2 input[type="email"],
body.cdmx-woo-login .u-column2 input[type="password"],
body.cdmx-woo-account .u-column2 input[type="text"],
body.cdmx-woo-account .u-column2 input[type="email"],
body.cdmx-woo-account .u-column2 input[type="password"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    box-shadow: none !important;
}
body.cdmx-woo-login .u-column2 input::placeholder,
body.cdmx-woo-account .u-column2 input::placeholder { color: rgba(255, 255, 255, 0.35); }
body.cdmx-woo-login .u-column2 input:focus,
body.cdmx-woo-account .u-column2 input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--wp-mint) !important;
    box-shadow: 0 0 0 3px rgba(148, 222, 165, 0.22) !important;
    color: #fff !important;
}

/* Texto de política de privacidad dentro del register */
body.cdmx-woo-login .u-column2 .woocommerce-privacy-policy-text,
body.cdmx-woo-account .u-column2 .woocommerce-privacy-policy-text {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 10px 0 16px;
}
body.cdmx-woo-login .u-column2 .woocommerce-privacy-policy-text a,
body.cdmx-woo-account .u-column2 .woocommerce-privacy-policy-text a {
    color: var(--wp-mint) !important;
    font-weight: 700 !important;
}

/* Botón LOGIN — teal (card claro) */
body.cdmx-woo-login .u-column1 button.woocommerce-form-login__submit,
body.cdmx-woo-login .u-column1 button[name="login"],
body.cdmx-woo-account .u-column1 button.woocommerce-form-login__submit,
body.cdmx-woo-account .u-column1 button[name="login"] {
    width: 100% !important;
    margin-top: 8px;
}

/* Botón REGISTER — mint (card oscuro) para alto contraste */
body.cdmx-woo-login .u-column2 button.woocommerce-form-register__submit,
body.cdmx-woo-login .u-column2 button[name="register"],
body.cdmx-woo-account .u-column2 button.woocommerce-form-register__submit,
body.cdmx-woo-account .u-column2 button[name="register"] {
    width: 100% !important;
    background: linear-gradient(135deg, var(--wp-mint) 0%, #6bc78a 100%) !important;
    color: var(--wp-petrol) !important;
    box-shadow: 0 10px 28px -6px rgba(148, 222, 165, 0.55) !important;
    font-weight: 800 !important;
    margin-top: 8px;
}
body.cdmx-woo-login .u-column2 button.woocommerce-form-register__submit:hover,
body.cdmx-woo-account .u-column2 button.woocommerce-form-register__submit:hover {
    background: linear-gradient(135deg, #a4e8b5 0%, var(--wp-mint) 100%) !important;
    box-shadow: 0 16px 34px -6px rgba(148, 222, 165, 0.72) !important;
    color: var(--wp-petrol) !important;
    transform: translateY(-2px);
}


/* LostPassword dentro del card claro */
body.cdmx-woo-login .u-column1 .woocommerce-LostPassword,
body.cdmx-woo-account .u-column1 .woocommerce-LostPassword {
    margin: 16px 0 0 !important;
    text-align: center;
    font-size: 0.82rem !important;
}

/* Responsive del split */
@media (max-width: 900px) {
    body.cdmx-woo-login .cdmx-woo-container { padding: 24px 18px !important; }
    body.cdmx-woo-login .u-columns.col2-set,
    body.cdmx-woo-account .u-columns.col2-set {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    body.cdmx-woo-login .u-column1,
    body.cdmx-woo-login .u-column2,
    body.cdmx-woo-account .u-column1,
    body.cdmx-woo-account .u-column2 {
        padding: 32px 24px !important;
        border-radius: 16px;
    }
    body.cdmx-woo-login .u-columns h2,
    body.cdmx-woo-account .u-columns h2 {
        font-size: 1.25rem !important;
        padding-left: 60px !important;
        min-height: 46px;
        margin-bottom: 22px !important;
    }
    body.cdmx-woo-login .u-columns .col-1 h2::before,
    body.cdmx-woo-login .u-columns .col-2 h2::before,
    body.cdmx-woo-account .u-columns .col-1 h2::before,
    body.cdmx-woo-account .u-columns .col-2 h2::before {
        width: 46px; height: 46px; line-height: 46px; font-size: 1rem;
        border-radius: 13px;
    }
    body.cdmx-woo-login .u-columns .col-1 h2::after,
    body.cdmx-woo-login .u-columns .col-2 h2::after,
    body.cdmx-woo-account .u-columns .col-1 h2::after,
    body.cdmx-woo-account .u-columns .col-2 h2::after {
        font-size: 0.74rem;
        margin-top: 2px;
    }
    body.cdmx-woo-login .u-column2::after,
    body.cdmx-woo-account .u-column2::after {
        top: 14px; right: 14px;
        font-size: 0.56rem;
        padding: 5px 10px;
    }
}

/* =======================================================================
   MI CUENTA — DASHBOARD (con sesión)
   Body class `cdmx-woo-dashboard` añadida desde page-woo.php cuando hay
   sesión. Sin esa clase es solo login form (single col).
   ======================================================================= */
/* Layout dashboard: flex más robusto que grid contra los floats de Woo */
body.cdmx-woo-dashboard .cdmx-woo-container > .woocommerce,
body.cdmx-woo-dashboard .cdmx-woo-container > div.woocommerce {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    align-items: flex-start !important;
    width: 100%;
}
/* Neutralizar el clearfix default de WooCommerce que rompe flex */
body.cdmx-woo-dashboard .cdmx-woo-container > .woocommerce::before,
body.cdmx-woo-dashboard .cdmx-woo-container > .woocommerce::after {
    display: none !important;
    content: none !important;
}
body.cdmx-woo-login .cdmx-woo-container > .woocommerce { display: block; }

/* Loading overlay durante AJAX nav */
body.cdmx-woo-dashboard .woocommerce-MyAccount-content {
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s;
}
body.cdmx-woo-dashboard .woocommerce-MyAccount-content.cdmx-woo-loading {
    opacity: 0.5;
    pointer-events: none;
}
body.cdmx-woo-dashboard .woocommerce-MyAccount-content.cdmx-woo-loading::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 3px solid rgba(25, 142, 139, 0.15);
    border-top-color: var(--wp-teal);
    border-radius: 50%;
    animation: cdmxWooSpin 0.7s linear infinite;
}
@keyframes cdmxWooSpin { to { transform: rotate(360deg); } }

body.cdmx-woo-account .woocommerce-MyAccount-navigation {
    float: none !important;
    flex: 0 0 260px !important;
    width: 260px !important;
    max-width: 260px !important;
    padding: 18px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow-sm);
    margin: 0 !important;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
}
body.cdmx-woo-account .woocommerce-MyAccount-content {
    float: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 4px;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation li { border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    color: var(--wp-text) !important;
    text-decoration: none !important;
    border-radius: var(--wp-radius-sm) !important;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
    letter-spacing: 0.1px;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation li a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.82rem;
    color: var(--wp-muted);
    width: 18px;
    text-align: center;
    transition: color 0.2s;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--dashboard a::before       { content: "\f0e4"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--orders a::before          { content: "\f291"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--downloads a::before       { content: "\f019"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--edit-address a::before    { content: "\f3c5"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "\f09d"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--edit-account a::before    { content: "\f007"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation li a:hover {
    background: rgba(25, 142, 139, 0.07) !important;
    color: var(--wp-teal) !important;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation li a:hover::before { color: var(--wp-teal) !important; }
body.cdmx-woo-account .woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, rgba(25, 142, 139, 0.12) 0%, rgba(148, 222, 165, 0.05) 100%) !important;
    color: var(--wp-teal) !important;
    border-left-color: var(--wp-teal);
    font-weight: 700 !important;
}
body.cdmx-woo-account .woocommerce-MyAccount-navigation li.is-active a::before { color: var(--wp-teal) !important; }

/* Dashboard content */
body.cdmx-woo-account .woocommerce-MyAccount-content > p { font-size: 0.94rem; line-height: 1.7; color: var(--wp-text); margin-bottom: 14px; }
body.cdmx-woo-account .woocommerce-MyAccount-content > p:first-of-type {
    background: linear-gradient(135deg, rgba(25, 142, 139, 0.06) 0%, rgba(148, 222, 165, 0.04) 100%);
    padding: 20px 24px;
    border-radius: var(--wp-radius);
    border-left: 4px solid var(--wp-teal);
    font-size: 0.96rem;
}
body.cdmx-woo-account .woocommerce-MyAccount-content a { color: var(--wp-teal); font-weight: 600; text-decoration: none; }
body.cdmx-woo-account .woocommerce-MyAccount-content a:hover { text-decoration: underline; }

/* Orders table */
body.cdmx-woo-account .woocommerce-orders-table {
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius) !important;
    overflow: hidden;
    width: 100%;
    background: #fff;
    border-spacing: 0 !important;
}
body.cdmx-woo-account .woocommerce-orders-table thead th {
    background: #F7F9FB !important;
    color: var(--wp-muted) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--wp-border) !important;
    border-right: 0 !important;
}
body.cdmx-woo-account .woocommerce-orders-table tbody td {
    padding: 16px !important;
    vertical-align: middle;
    font-size: 0.88rem !important;
    color: var(--wp-text) !important;
    border-top: 1px solid var(--wp-border) !important;
    background: #fff !important;
}
body.cdmx-woo-account .woocommerce-orders-table tbody tr:hover td { background: #F7F9FB !important; }
body.cdmx-woo-account .woocommerce-orders-table .woocommerce-button {
    padding: 8px 16px !important;
    font-size: 0.76rem !important;
    min-height: 34px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

/* Formulario de editar dirección / cuenta — responsive grid */
body.cdmx-woo-account .woocommerce-address-fields__field-wrapper,
body.cdmx-woo-account .woocommerce-address-fields,
body.cdmx-woo-account .woocommerce-EditAccountForm,
body.cdmx-woo-account form.edit-account,
body.cdmx-woo-account form.woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    width: 100%;
    max-width: 720px;
}
/* Default: todos los form-row ocupan 1 col (half width) */
body.cdmx-woo-account .woocommerce-address-fields p.form-row,
body.cdmx-woo-account .woocommerce-EditAccountForm p.form-row,
body.cdmx-woo-account form.edit-account p.form-row {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    grid-column: span 1;
}
/* Estos campos son full width (1 / -1) */
body.cdmx-woo-account p.form-row.form-row-wide,
body.cdmx-woo-account p.form-row[id*="address_1"],
body.cdmx-woo-account p.form-row[id*="address_2"],
body.cdmx-woo-account p.form-row[id*="company"],
body.cdmx-woo-account p.form-row[id*="country"],
body.cdmx-woo-account p.form-row[id*="state"],
body.cdmx-woo-account p.form-row[id*="email"],
body.cdmx-woo-account p.form-row[id*="password"],
body.cdmx-woo-account p.form-row#account_display_name_field {
    grid-column: 1 / -1 !important;
}

/* Botón submit siempre ocupa todo el ancho y va al final */
body.cdmx-woo-account .woocommerce-EditAccountForm p:last-child,
body.cdmx-woo-account form.edit-account p:last-child,
body.cdmx-woo-account .woocommerce-address-fields ~ p.form-row:last-child {
    grid-column: 1 / -1 !important;
    margin-top: 14px !important;
}
body.cdmx-woo-account .woocommerce-EditAccountForm button[type="submit"],
body.cdmx-woo-account form.edit-account button[type="submit"],
body.cdmx-woo-account .woocommerce-address-fields button[type="submit"] {
    min-width: 200px;
}

/* Password strength meter */
body.cdmx-woo-account .woocommerce-password-strength,
body.cdmx-woo-account .woocommerce-password-hint {
    grid-column: 1 / -1 !important;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
    background: #F7F9FB;
    color: var(--wp-muted);
    margin: -4px 0 0 !important;
}
body.cdmx-woo-account .woocommerce-password-strength.strong { background: rgba(148, 222, 165, 0.15); color: #14746F; }
body.cdmx-woo-account .woocommerce-password-strength.short  { background: rgba(220, 53, 69, 0.1); color: #DC3545; }

/* Fieldsets (Cambiar contraseña) */
body.cdmx-woo-account fieldset {
    grid-column: 1 / -1 !important;
    border: 1px solid var(--wp-border);
    border-radius: var(--wp-radius-sm);
    padding: 20px;
    margin: 8px 0 0 !important;
    background: #F7F9FB;
}
body.cdmx-woo-account fieldset legend {
    padding: 0 10px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--wp-petrol);
    letter-spacing: 0.2px;
}
body.cdmx-woo-account .woocommerce-MyAccount-content h3,
body.cdmx-woo-account .woocommerce-MyAccount-content h2 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: var(--wp-petrol) !important;
    margin: 24px 0 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--wp-border);
    letter-spacing: -0.3px;
}
body.cdmx-woo-account .woocommerce-MyAccount-content h3:first-child,
body.cdmx-woo-account .woocommerce-MyAccount-content h2:first-child { margin-top: 0 !important; }

/* Direcciones de facturación/envío */
body.cdmx-woo-account .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
    margin: 0 !important;
}
body.cdmx-woo-account .woocommerce-Addresses .woocommerce-Address {
    width: 100% !important;
    float: none !important;
    padding: 24px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--wp-border) !important;
    border-radius: var(--wp-radius);
    box-shadow: var(--wp-shadow-sm);
}
body.cdmx-woo-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wp-border);
}
body.cdmx-woo-account .woocommerce-Address-title h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 1rem !important;
}
body.cdmx-woo-account .woocommerce-Address-title .edit {
    font-size: 0.78rem !important;
    background: rgba(25, 142, 139, 0.08);
    color: var(--wp-teal) !important;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s;
}
body.cdmx-woo-account .woocommerce-Address-title .edit:hover {
    background: var(--wp-teal);
    color: #fff !important;
}
body.cdmx-woo-account address {
    font-style: normal;
    font-size: 0.88rem;
    color: var(--wp-text);
    line-height: 1.7;
}

/* =======================================================================
   RESPONSIVE TABLET (≤ 1024)
   ======================================================================= */
@media (max-width: 1024px) {
    body.cdmx-woo-page .cdmx-woo-hero { padding: 50px 0 96px; }
    body.cdmx-woo-page .cdmx-woo-container { padding: 32px 28px; }

    /* Carrito tablet: layout 1 col (totales abajo), sidebar no sticky */
    body.cdmx-woo-cart .cdmx-woo-container > .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > form.woocommerce-cart-form,
    body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > .cart-collaterals {
        grid-column: 1 !important;
    }
    body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > .cart-collaterals {
        position: static !important;
        max-width: 480px;
        margin-left: auto !important;
    }

    body.cdmx-woo-checkout form.checkout { grid-template-columns: 1fr; gap: 28px; }
    body.cdmx-woo-checkout #order_review_heading,
    body.cdmx-woo-checkout #order_review,
    body.cdmx-woo-checkout #customer_details { grid-column: 1; }
    body.cdmx-woo-checkout #order_review { position: static; }

    body.cdmx-woo-dashboard .cdmx-woo-container > .woocommerce {
        flex-wrap: wrap !important;
        gap: 18px !important;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-content {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    body.cdmx-woo-account .u-columns.col2-set { grid-template-columns: 1fr; }
    body.cdmx-woo-account .woocommerce-Addresses { grid-template-columns: 1fr !important; }
    /* Formularios en tablet: ya en 2 cols es OK */
}

/* =======================================================================
   RESPONSIVE MOBILE (≤ 768)
   ======================================================================= */
@media (max-width: 768px) {
    /* Hero compacto */
    body.cdmx-woo-page .cdmx-woo-hero { padding: 32px 0 72px; }
    body.cdmx-woo-page .cdmx-woo-hero__inner { padding: 0 16px; }
    body.cdmx-woo-page .cdmx-woo-hero__head { gap: 12px; align-items: center; }
    body.cdmx-woo-page .cdmx-woo-hero__icon {
        width: 48px; height: 48px;
        font-size: 1.15rem;
        border-radius: 12px;
        flex-shrink: 0;
    }
    body.cdmx-woo-page .cdmx-woo-hero__title {
        font-size: 1.35rem !important;
        letter-spacing: -0.4px;
        line-height: 1.2;
    }
    body.cdmx-woo-page .cdmx-woo-hero__subtitle {
        font-size: 0.82rem !important;
        line-height: 1.45;
        margin-top: 4px !important;
    }
    body.cdmx-woo-page .cdmx-woo-breadcrumb {
        font-size: 0.68rem;
        padding: 4px 10px;
        margin-bottom: 16px;
        gap: 6px;
    }

    /* Container: más aire lateral, padding interno cómodo */
    body.cdmx-woo-page .cdmx-woo-main { padding: 0 12px 48px; margin-top: -48px; }
    body.cdmx-woo-page .cdmx-woo-container { padding: 20px 16px; border-radius: 16px; }

    /* Formularios: todo 1 col en mobile */
    body.cdmx-woo-account .woocommerce-address-fields__field-wrapper,
    body.cdmx-woo-account .woocommerce-address-fields,
    body.cdmx-woo-account .woocommerce-EditAccountForm,
    body.cdmx-woo-account form.edit-account,
    body.cdmx-woo-account form.woocommerce-EditAccountForm { grid-template-columns: 1fr !important; gap: 12px !important; max-width: 100%; }
    body.cdmx-woo-account .woocommerce-address-fields p.form-row,
    body.cdmx-woo-account .woocommerce-EditAccountForm p.form-row,
    body.cdmx-woo-account form.edit-account p.form-row { grid-column: 1 / -1 !important; }
    body.cdmx-woo-account fieldset { padding: 16px !important; }
    body.cdmx-woo-account .woocommerce-EditAccountForm button[type="submit"],
    body.cdmx-woo-account form.edit-account button[type="submit"],
    body.cdmx-woo-account .woocommerce-address-fields button[type="submit"] { width: 100% !important; min-width: 0 !important; }

    /* Inputs 16px para evitar zoom iOS */
    body.cdmx-woo-page .woocommerce-form input,
    body.cdmx-woo-page .woocommerce form .form-row input.input-text,
    body.cdmx-woo-page .woocommerce form .form-row textarea,
    body.cdmx-woo-page .woocommerce form .form-row select,
    body.cdmx-woo-page .cdmx-woo-container input,
    body.cdmx-woo-page .cdmx-woo-container textarea,
    body.cdmx-woo-page .cdmx-woo-container select {
        font-size: 16px !important;
    }

    /* Cart mobile: sidebar totales full-width abajo */
    body.cdmx-woo-cart .cdmx-woo-container > .woocommerce > .cart-collaterals {
        max-width: 100% !important;
        margin: 0 !important;
    }
    body.cdmx-woo-cart .cart_totals { padding: 22px; }

    /* Cart mobile: 2 columnas — izq (img + ×) | der (nombre/precio/qty/subtotal) */
    body.cdmx-woo-cart table.shop_table tr.cart_item,
    body.cdmx-woo-cart table.shop_table tr.woocommerce-cart-form__cart-item {
        grid-template-columns: 80px minmax(0, 1fr) !important;
        grid-template-areas:
            "img    name"
            "img    price"
            "img    qty"
            "remove subtotal" !important;
        gap: 6px 14px !important;
        padding: 14px !important;
        align-items: center !important;
    }
    /* Mostrar precio unitario en mobile (col derecha) */
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-price { display: block !important; }

    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-thumbnail {
        grid-area: img;
        justify-self: start;
        align-self: center;
    }
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-remove {
        grid-area: remove;
        justify-self: center;
        align-self: center;
        padding-top: 8px !important;
    }
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-name {
        grid-area: name;
        align-self: end;
    }
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-price {
        grid-area: price;
        align-self: center;
        font-size: 0.82rem !important;
        color: var(--wp-muted) !important;
        font-weight: 500 !important;
    }
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-quantity {
        grid-area: qty;
        justify-self: start !important;
        align-self: center;
    }
    body.cdmx-woo-cart table.shop_table tr.cart_item td.product-subtotal {
        grid-area: subtotal;
        justify-self: end;
        text-align: right;
        align-self: center;
        padding-top: 8px !important;
        border-top: 1px solid rgba(2, 61, 84, 0.06);
    }

    /* Thumbnail uniforme 80px en mobile */
    body.cdmx-woo-cart table.shop_table .product-thumbnail a {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
    }
    /* Título más legible */
    body.cdmx-woo-cart table.shop_table .product-name a {
        font-size: 0.95rem !important;
        line-height: 1.35;
    }
    /* Remove (×) un poco más pequeño en mobile */
    body.cdmx-woo-cart table.shop_table .product-remove a,
    body.cdmx-woo-cart table.shop_table a.remove {
        width: 30px !important;
        height: 30px !important;
    }
    body.cdmx-woo-cart table.shop_table .product-name a { font-size: 0.9rem !important; }
    body.cdmx-woo-cart table.shop_table .product-price { font-size: 0.8rem !important; }
    body.cdmx-woo-cart table.shop_table .product-subtotal,
    body.cdmx-woo-cart table.shop_table .product-subtotal .amount { font-size: 1rem !important; }

    /* Quantity compacta */
    body.cdmx-woo-cart .quantity input.qty {
        width: 52px !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 16px !important; /* anti-zoom iOS */
    }

    /* Actions row: stack vertical */
    body.cdmx-woo-cart table.shop_table td.actions {
        display: flex !important;
        flex-direction: column !important;
        padding: 14px !important;
        gap: 10px;
        align-items: stretch !important;
    }
    body.cdmx-woo-cart .coupon {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    body.cdmx-woo-cart .coupon input#coupon_code { min-width: 0; }
    body.cdmx-woo-cart button[name="update_cart"] { width: 100%; }

    body.cdmx-woo-checkout .woocommerce-billing-fields__field-wrapper,
    body.cdmx-woo-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }

    /* Trust badges stack vertical cuando no caben horizontal */
    body.cdmx-woo-checkout .cdmx-checkout-trust {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    body.cdmx-woo-checkout .cdmx-checkout-trust__item strong { font-size: 0.8rem; }
    body.cdmx-woo-checkout .cdmx-checkout-trust__item small { font-size: 0.72rem; }

    /* Cards checkout con menos padding */
    body.cdmx-woo-checkout .woocommerce-billing-fields,
    body.cdmx-woo-checkout .woocommerce-shipping-fields,
    body.cdmx-woo-checkout .woocommerce-additional-fields {
        padding: 20px 18px;
    }
    body.cdmx-woo-checkout .woocommerce-billing-fields h3,
    body.cdmx-woo-checkout .woocommerce-shipping-fields h3,
    body.cdmx-woo-checkout .woocommerce-additional-fields h3 {
        font-size: 1rem !important;
        padding-left: 46px;
        min-height: 36px;
    }
    body.cdmx-woo-checkout .woocommerce-billing-fields h3::before,
    body.cdmx-woo-checkout .woocommerce-shipping-fields h3::before,
    body.cdmx-woo-checkout .woocommerce-additional-fields h3::before {
        width: 34px; height: 34px; line-height: 34px; font-size: 0.85rem;
        border-radius: 10px;
    }

    /* Order review con menos padding en mobile */
    body.cdmx-woo-checkout #order_review { padding: 22px 18px; }
    body.cdmx-woo-account .woocommerce-address-fields,
    body.cdmx-woo-account .woocommerce-EditAccountForm { grid-template-columns: 1fr; }

    /* Account login standalone */
    body.cdmx-woo-account .woocommerce-form-login { padding: 26px 22px !important; max-width: 100%; }
    body.cdmx-woo-account .woocommerce-form-login::before {
        width: 48px; height: 48px;
        line-height: 48px;
        font-size: 1.3rem;
        border-radius: 12px;
        margin-bottom: 14px !important;
    }

    /* Dashboard: sidebar como barra sticky de tabs horizontales arriba */
    body.cdmx-woo-dashboard .cdmx-woo-container > .woocommerce {
        flex-direction: column !important;
        gap: 16px !important;
    }
    /* Nav wrapper: scroll horizontal con fades indicando más contenido */
    body.cdmx-woo-account .woocommerce-MyAccount-navigation {
        padding: 6px !important;
        position: sticky !important;
        top: 64px !important;
        z-index: 5;
        background: #fff !important;
        margin: -4px -4px 4px -4px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    /* Fades laterales (sugieren scroll horizontal) */
    body.cdmx-woo-account .woocommerce-MyAccount-navigation::before,
    body.cdmx-woo-account .woocommerce-MyAccount-navigation::after {
        content: "";
        position: absolute;
        top: 6px;
        bottom: 6px;
        width: 28px;
        z-index: 3;
        pointer-events: none;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation::before {
        left: 6px;
        background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.75) 55%, transparent 100%);
        border-radius: 12px 0 0 12px;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation::after {
        right: 6px;
        background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0.75) 55%, transparent 100%);
        border-radius: 0 12px 12px 0;
    }
    /* Lista scrollable */
    body.cdmx-woo-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding: 2px 20px !important; /* espacio para el fade */
        margin: 0 !important;
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
        touch-action: pan-x;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation li a {
        white-space: nowrap !important;
        border-left: 0 !important;
        border-bottom: 0 !important;
        padding: 10px 16px !important;
        font-size: 0.78rem !important;
        border-radius: 999px !important;
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation li.is-active a {
        border-left: 0 !important;
        background: linear-gradient(135deg, var(--wp-teal) 0%, var(--wp-teal-dark) 100%) !important;
        color: #fff !important;
        box-shadow: 0 6px 14px -4px rgba(25, 142, 139, 0.4);
        scroll-snap-align: center;
    }
    body.cdmx-woo-account .woocommerce-MyAccount-navigation li.is-active a::before { color: #fff !important; }

    /* Orders table → cards */
    body.cdmx-woo-account .woocommerce-orders-table,
    body.cdmx-woo-account .woocommerce-orders-table thead,
    body.cdmx-woo-account .woocommerce-orders-table tbody,
    body.cdmx-woo-account .woocommerce-orders-table tr,
    body.cdmx-woo-account .woocommerce-orders-table td { display: block !important; width: 100% !important; border: 0 !important; }
    body.cdmx-woo-account .woocommerce-orders-table thead { display: none !important; }
    body.cdmx-woo-account .woocommerce-orders-table tbody tr {
        padding: 16px !important;
        margin-bottom: 10px !important;
        background: #fff !important;
        border: 1px solid var(--wp-border) !important;
        border-radius: var(--wp-radius) !important;
    }
    body.cdmx-woo-account .woocommerce-orders-table tbody td {
        padding: 4px 0 !important;
        font-size: 0.84rem !important;
    }
    body.cdmx-woo-account .woocommerce-orders-table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: var(--wp-muted);
        font-size: 0.68rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-right: 6px;
    }
    body.cdmx-woo-account .woocommerce-orders-table tbody td.order-actions { margin-top: 10px; }

    body.cdmx-woo-account .woocommerce-Addresses { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    body.cdmx-woo-page .cdmx-woo-container { padding: 20px 14px; }
    body.cdmx-woo-cart table.shop_table tbody tr.cart_item {
        grid-template-columns: 60px 1fr auto;
        gap: 4px 10px;
        padding: 12px !important;
    }
    body.cdmx-woo-cart table.shop_table .product-thumbnail img { width: 60px !important; height: 60px !important; }
    body.cdmx-woo-checkout #order_review { padding: 20px; }
    body.cdmx-woo-account .woocommerce-form-login { padding: 24px !important; }
}
