/* =========================================================
   CANARYMX · WOOCOMMERCE · CARRITO
   Página de carrito y mini-cart/off-canvas.
   ========================================================= */

/* =========================================================
   CANARYMX - CART PAGE
   Adaptación visual del carrito a la estética general
   ========================================================= */


/* =========================================================
   1. FONDO GENERAL DEL CARRITO
   Mantiene continuidad con Home / Shop / Product
   ========================================================= */

body.woocommerce-cart {
    background-color: #111 !important;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.68),
            rgba(0, 0, 0, 0.78)
        ),
        url('/wp-content/uploads/2026/09/banner.png') !important;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}


/* =========================================================
   2. WRAPPERS TRANSPARENTES
   Elimina el gran lienzo blanco exterior
   ========================================================= */

body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart .site-content,
body.woocommerce-cart .ast-container,
body.woocommerce-cart .content-area,
body.woocommerce-cart .site-main,
body.woocommerce-cart article,
body.woocommerce-cart .woocommerce {
    background: transparent !important;
}


/* =========================================================
   3. CONTENEDOR PRINCIPAL
   ========================================================= */

body.woocommerce-cart .site-content {
    padding-top: calc(var(--canarymx-header-height-scrolled) + 42px);
    padding-bottom: 70px;
}

body.woocommerce-cart .site-main {
    background: rgba(10, 10, 10, 0.78) !important;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    padding: 34px !important;

    color: #fff;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   4. TÍTULO DEL CARRITO
   ========================================================= */

body.woocommerce-cart .entry-title,
body.woocommerce-cart h1 {
    font-family: "Racing Sans One", sans-serif !important;

    font-size: clamp(42px, 4vw, 58px) !important;
    line-height: 1 !important;

    color: #fff !important;

    margin-bottom: 28px !important;

    text-transform: uppercase;
}


/* =========================================================
   5. TABLA DEL CARRITO
   ========================================================= */

body.woocommerce-cart table.shop_table {
    background: transparent !important;

    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;

    overflow: hidden;

    color: #fff !important;
}

body.woocommerce-cart table.shop_table thead {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.woocommerce-cart table.shop_table th {
    color: rgba(255, 255, 255, 0.65) !important;

    font-size: 12px;
    font-weight: 600;

    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.woocommerce-cart table.shop_table td {
    color: #fff !important;

    border-color: rgba(255, 255, 255, 0.08) !important;

    background: transparent !important;
}


/* =========================================================
   6. PRODUCTO EN EL CARRITO
   ========================================================= */

body.woocommerce-cart .product-name a {
    color: #fff !important;

    font-weight: 600;

    text-decoration: none;
}

body.woocommerce-cart .product-name a:hover {
    color: #e6433a !important;
}

body.woocommerce-cart .product-thumbnail img {
    background: rgba(255, 255, 255, 0.95);

    border-radius: 5px;

    padding: 4px;
}


/* =========================================================
   7. PRECIO Y SUBTOTAL
   ========================================================= */

body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal {
    color: #fff !important;

    font-weight: 600;
}


/* =========================================================
   8. CANTIDAD
   ========================================================= */

body.woocommerce-cart .quantity .qty {
    min-height: 38px;

    color: #fff !important;

    background: #181818 !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;

    border-radius: 4px;
}


/* =========================================================
   9. CUPÓN
   ========================================================= */

body.woocommerce-cart .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}

body.woocommerce-cart .coupon input {
    min-height: 38px;

    background: #181818 !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;

    color: #fff !important;
}

body.woocommerce-cart .coupon input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}


/* =========================================================
   10. BOTONES
   ========================================================= */

body.woocommerce-cart button.button,
body.woocommerce-cart .checkout-button {
    background: #e6433a !important;

    color: #fff !important;

    border-radius: 4px !important;

    text-transform: uppercase;

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

body.woocommerce-cart button.button:hover,
body.woocommerce-cart .checkout-button:hover {
    background: #c9362f !important;

    transform: translateY(-2px);
}


/* =========================================================
   11. BLOQUE DE TOTALES
   ========================================================= */

body.woocommerce-cart .cart-collaterals {
    margin-top: 28px;
}

body.woocommerce-cart .cart_totals {
    padding: 26px 28px 24px !important;

    color: var(--canarymx-white);
    background: rgba(255, 255, 255, 0.035) !important;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

body.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 20px !important;
    padding: 0 0 14px !important;

    font-family: "Racing Sans One", sans-serif !important;
    font-size: 28px !important;
    line-height: 1;

    color: var(--canarymx-white) !important;
    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;

    text-transform: uppercase;
}

body.woocommerce-cart .cart_totals > *,
body.woocommerce-cart .cart_totals table,
body.woocommerce-cart .cart_totals tbody,
body.woocommerce-cart .cart_totals tr,
body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    background-color: transparent !important;
}

body.woocommerce-cart .cart_totals table {
    width: 100%;
    margin: 0 0 20px !important;

    border-collapse: collapse;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    padding: 12px 8px !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.woocommerce-cart .cart_totals th {
    font-size: 13px;
    font-weight: 500;

    color: rgba(255, 255, 255, 0.62) !important;
    text-align: left;
}

body.woocommerce-cart .cart_totals td {
    font-size: 15px;
    font-weight: 600;

    color: var(--canarymx-white) !important;
    text-align: right;
}

body.woocommerce-cart .cart_totals strong,
body.woocommerce-cart .cart_totals span {
    color: var(--canarymx-white) !important;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
    padding-top: 16px !important;

    font-size: 16px;
    font-weight: 700;
}

/* =========================================================
   12. BOTÓN FINALIZAR COMPRA
   ========================================================= */

body.woocommerce-cart .wc-proceed-to-checkout {
    margin: 22px 0 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a {
    display: block;

    width: 100%;

    text-align: center;

    padding: 15px 20px !important;

    background: #e6433a !important;

    color: #fff !important;

    border-radius: 5px !important;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}


/* =========================================================
   13. BOTÓN ELIMINAR PRODUCTO
   ========================================================= */

body.woocommerce-cart .product-remove a {
    color: rgba(255, 255, 255, 0.45) !important;

    transition: color 0.2s ease;
}

body.woocommerce-cart .product-remove a:hover {
    color: #e6433a !important;
}


/* =========================================================
   14. RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    body.woocommerce-cart {
        background-attachment: scroll !important;
    }

    body.woocommerce-cart .site-content {
        padding-top: 85px;
    }

    body.woocommerce-cart .site-main {
        padding: 20px 16px !important;

        border-radius: 0;
    }

    body.woocommerce-cart .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    body.woocommerce-cart .coupon input,
    body.woocommerce-cart .coupon button {
        width: 100%;
    }
}

/* =========================================================
   CANARYMX - MINI CART / OFF-CANVAS CART
   Adaptación del carrito lateral al estilo oscuro global
   ========================================================= */


/* =========================================================
   1. CONTENEDOR GENERAL DEL MINI CARRITO
   ========================================================= */

.ast-site-header-cart .widget_shopping_cart,
.ast-site-header-cart .widget_shopping_cart_content,
.ast-mobile-cart-drawer,
.ast-mini-cart-empty,
.woocommerce-mini-cart {
    background: #111 !important;
    color: #fff !important;
}


/* =========================================================
   2. PANEL LATERAL / DRAWER
   ========================================================= */

.ast-mobile-cart-drawer,
.ast-header-break-point .ast-mobile-cart-drawer,
.ast-desktop .ast-mobile-cart-drawer {
    background: rgba(10, 10, 10, 0.97) !important;

    color: #fff !important;

    border-left: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        -12px 0 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   3. CABECERA DEL MINI CARRITO
   ========================================================= */

.ast-mobile-cart-drawer .astra-cart-drawer-header,
.ast-mobile-cart-drawer .cart-title,
.ast-mobile-cart-drawer h2,
.ast-mobile-cart-drawer h3,
.ast-site-header-cart .widget_shopping_cart .widgettitle {
    background: transparent !important;

    color: #fff !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}


/* =========================================================
   4. BOTÓN CERRAR
   ========================================================= */

.ast-mobile-cart-drawer .astra-cart-drawer-close,
.ast-mobile-cart-drawer .ast-cart-drawer-close,
.ast-mobile-cart-drawer button {
    color: #fff !important;
    background: transparent !important;
}


/* =========================================================
   5. PRODUCTOS DEL MINI CARRITO
   ========================================================= */

.woocommerce-mini-cart-item,
.ast-site-header-cart .woocommerce-mini-cart-item {
    background: transparent !important;

    color: #fff !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}


/* Nombre del producto */
.woocommerce-mini-cart-item a,
.ast-site-header-cart .woocommerce-mini-cart-item a {
    color: #fff !important;

    text-decoration: none;
}

.woocommerce-mini-cart-item a:hover,
.ast-site-header-cart .woocommerce-mini-cart-item a:hover {
    color: #e6433a !important;
}


/* Cantidad y precio */
.woocommerce-mini-cart-item .quantity,
.woocommerce-mini-cart-item .amount,
.ast-site-header-cart .woocommerce-mini-cart-item .quantity,
.ast-site-header-cart .woocommerce-mini-cart-item .amount {
    color: rgba(255, 255, 255, 0.78) !important;
}


/* =========================================================
   6. IMAGEN DEL PRODUCTO
   ========================================================= */

.woocommerce-mini-cart-item img,
.ast-site-header-cart .woocommerce-mini-cart-item img {
    background: rgba(255, 255, 255, 0.95) !important;

    border-radius: 5px;

    padding: 3px;
}


/* =========================================================
   7. SUBTOTAL
   ========================================================= */

.woocommerce-mini-cart__total,
.ast-site-header-cart .woocommerce-mini-cart__total {
    background: transparent !important;

    color: #fff !important;

    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.woocommerce-mini-cart__total strong,
.woocommerce-mini-cart__total .amount {
    color: #fff !important;
}


/* =========================================================
   8. BOTONES
   ========================================================= */

.woocommerce-mini-cart__buttons a,
.ast-site-header-cart .woocommerce-mini-cart__buttons a {
    display: block;

    width: 100%;

    margin-bottom: 10px;

    padding: 13px 16px !important;

    background: #e6433a !important;

    color: #fff !important;

    border-radius: 4px !important;

    text-align: center;

    text-transform: uppercase;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.woocommerce-mini-cart__buttons a:hover,
.ast-site-header-cart .woocommerce-mini-cart__buttons a:hover {
    background: #c9362f !important;

    transform: translateY(-2px);
}


/* =========================================================
   9. BOTÓN ELIMINAR PRODUCTO
   ========================================================= */

.woocommerce-mini-cart-item a.remove,
.ast-site-header-cart .woocommerce-mini-cart-item a.remove {
    color: rgba(255, 255, 255, 0.45) !important;

    background: transparent !important;
}

.woocommerce-mini-cart-item a.remove:hover,
.ast-site-header-cart .woocommerce-mini-cart-item a.remove:hover {
    color: #e6433a !important;
}


/* =========================================================
   10. TEXTO VACÍO DEL CARRITO
   ========================================================= */

.woocommerce-mini-cart__empty-message,
.ast-site-header-cart .woocommerce-mini-cart__empty-message {
    color: rgba(255, 255, 255, 0.70) !important;
}
