/* =========================================================
   APHAREL — CHECKOUT
========================================================= */


/* =========================================================
   PRODUCTO EN RESUMEN DEL PEDIDO
========================================================= */

.woocommerce-checkout-review-order-table
.apharel-checkout-product {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 220px;

}


/* =========================================================
   IMAGEN
========================================================= */

.apharel-checkout-product-image {

    position: relative;

    width: 64px;
    height: 78px;

    flex: 0 0 64px;

    overflow: hidden;

    border-radius: 10px;

    background: #f5f5f5;

}


.apharel-checkout-product-image img {

    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: cover;

}


/* =========================================================
   CANTIDAD
========================================================= */

.apharel-checkout-product-quantity {

    position: absolute;

    top: -5px;
    right: -5px;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border-radius: 50%;

    background: #111;

    color: #fff;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    line-height: 1;

}


/* =========================================================
   INFORMACIÓN
========================================================= */

.apharel-checkout-product-info {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.apharel-checkout-product-name {

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 600;

    line-height: 1.35;

}


/* =========================================================
   VARIACIONES
========================================================= */

.apharel-checkout-product-variation {

    display: flex;

    flex-direction: column;

    gap: 2px;

    color: #777;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    line-height: 1.35;

}


/* =========================================================
   TABLA DEL PEDIDO
========================================================= */

.woocommerce-checkout-review-order-table {

    border-collapse: separate !important;

    border-spacing: 0;

}


.woocommerce-checkout-review-order-table
.product-name {

    vertical-align: middle;

}


.woocommerce-checkout-review-order-table
.product-total {

    vertical-align: middle;

    white-space: nowrap;

}


/* =========================================================
   DISEÑO GENERAL CHECKOUT
========================================================= */


/* =========================================================
   FONDO Y CONTENEDOR
========================================================= */

.woocommerce-checkout {

    background: #fff;

}


.woocommerce-checkout .woocommerce {

    max-width: 1280px;

    margin: 0 auto;

}


/* =========================================================
   TÍTULO CHECKOUT
========================================================= */

/* 🔴 CAMBIO:
   Bebas Neue Cyrillic ahora usa peso 700
   para acercarse al grosor visual del logo APHAREL.
   Se mantiene el espaciado positivo.
*/

.woocommerce-checkout .entry-title {

    margin: 0 0 45px;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 42px;

    /* 🔴 CAMBIO */
    font-weight: 700;

    line-height: .95;

    letter-spacing: 1.8px;

}


/* =========================================================
   CUPÓN
========================================================= */

.woocommerce-checkout .woocommerce-form-coupon-toggle {

    margin-bottom: 35px;

}


.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info {

    margin: 0;

    padding: 18px 22px;

    border: 0;

    border-top: 2px solid #111;

    border-radius: 0 0 12px 12px;

    background: #f7f6f4;

    color: #333;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    line-height: 1.5;

}


.woocommerce-checkout
.woocommerce-form-coupon-toggle
.woocommerce-info::before {

    color: #111;

}


/* =========================================================
   COLUMNAS
========================================================= */

.woocommerce-checkout .col2-set {

    width: 58%;

}


.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {

    width: 100%;

    float: none;

}


/* =========================================================
   DETALLES DE FACTURACIÓN
========================================================= */

/* 🔴 CAMBIO:
   Los encabezados de sección usan Bebas Neue Cyrillic
   con peso 700 para mantener la jerarquía visual.
*/

.woocommerce-checkout
.woocommerce-billing-fields
h3 {

    margin: 0 0 28px;

    padding-bottom: 16px;

    border-bottom: 1px solid #e5e5e5;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 28px;

    /* 🔴 CAMBIO */
    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.2px;

}


/* =========================================================
   ETIQUETAS
========================================================= */

.woocommerce-checkout form .form-row label {

    margin-bottom: 8px;

    color: #222;

    font-family: var(--apharel-font-body);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: .02em;

}


/* =========================================================
   CAMPOS
========================================================= */

.woocommerce-checkout form .form-row {

    margin-bottom: 20px;

}


.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {

    min-height: 50px;

    padding: 13px 15px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: #fafafa;

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    line-height: 1.4;

    box-shadow: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}


/* =========================================================
   FOCUS
========================================================= */

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {

    outline: none;

    border-color: #111;

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(0, 0, 0, .04);

}


/* =========================================================
   NOMBRE / APELLIDO
========================================================= */

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {

    width: 48%;

}


/* =========================================================
   RESUMEN DEL PEDIDO
========================================================= */

.woocommerce-checkout #order_review {

    width: 38%;

    margin-top: 0;

    padding: 28px;

    border: 1px solid #eee;

    border-radius: 18px;

    background: #f8f7f5;

}


/* =========================================================
   TÍTULO DEL RESUMEN
========================================================= */

/* 🔴 CAMBIO:
   Bebas Neue Cyrillic con peso 700
   para mantener el mismo estilo de títulos.
*/

.woocommerce-checkout #order_review_heading {

    width: 38%;

    margin: 0 0 16px;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 28px;

    /* 🔴 CAMBIO */
    font-weight: 700;

    line-height: 1;

    letter-spacing: 1.2px;

}


/* =========================================================
   TABLA
========================================================= */

.woocommerce-checkout #order_review table.shop_table {

    margin: 0;

    border: 0;

    background: transparent;

}


.woocommerce-checkout
#order_review
table.shop_table th,
.woocommerce-checkout
#order_review
table.shop_table td {

    padding: 16px 0;

    border-color: #deddd9;

    background: transparent;

    font-family: var(--apharel-font-body);

}


/* =========================================================
   CABECERA TABLA
========================================================= */

.woocommerce-checkout
#order_review
table.shop_table
thead th {

    color: #555;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .08em;

}


/* =========================================================
   PRODUCTO
========================================================= */

.woocommerce-checkout
#order_review
.apharel-checkout-product-name {

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 600;

    line-height: 1.35;

}


/* =========================================================
   PRECIO PRODUCTO
========================================================= */

.woocommerce-checkout
#order_review
.product-total {

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 600;

}


/* =========================================================
   SUBTOTAL
========================================================= */

.woocommerce-checkout
#order_review
.cart-subtotal th,
.woocommerce-checkout
#order_review
.cart-subtotal td {

    padding-top: 20px;

}


/* =========================================================
   TOTAL
========================================================= */

.woocommerce-checkout
#order_review
.order-total th,
.woocommerce-checkout
#order_review
.order-total td {

    padding-top: 20px;

    padding-bottom: 20px;

    border-top: 1px solid #cfcfcf;

    font-family: var(--apharel-font-body);

}


.woocommerce-checkout
#order_review
.order-total .amount {

    color: #111;

    font-family: var(--apharel-font-body);

    font-size: 21px;

    font-weight: 700;

}


/* =========================================================
   MÉTODOS DE PAGO
========================================================= */

.woocommerce-checkout #payment {

    margin-top: 22px;

    padding: 18px;

    border: 1px solid #e2e2e2;

    border-radius: 12px;

    background: #fff;

}


/* =========================================================
   MENSAJE SIN MÉTODOS DE PAGO
========================================================= */

.woocommerce-checkout
#payment
.woocommerce-info {

    margin: 0;

    padding: 18px;

    border: 0;

    border-radius: 10px;

    background: #f5f5f5;

    color: #555;

    font-family: var(--apharel-font-body);

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   BOTÓN FINALIZAR COMPRA
========================================================= */

.woocommerce-checkout #place_order {

    width: 100%;

    min-height: 56px;

    margin-top: 18px;

    border: 0;

    border-radius: 12px;

    background: #111;

    color: #fff;

    font-family: var(--apharel-font-body);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: .08em;

    text-transform: uppercase;

    transition:
        background .2s ease,
        transform .2s ease;

}


.woocommerce-checkout #place_order:hover {

    background: #2a2a2a;

    transform: translateY(-1px);

}


/* =========================================================
   NOTAS DEL PEDIDO
========================================================= */

.woocommerce-checkout
.woocommerce-additional-fields {

    margin-top: 30px;

}


.woocommerce-checkout
.woocommerce-additional-fields
h3 {

    margin: 0 0 18px;

    color: #111;

    font-family: var(--apharel-font-title);

    font-size: 24px;

    /* 🔴 CAMBIO */
    font-weight: 700;

    line-height: 1;

    letter-spacing: 1px;

}


/* =========================================================
   SEGUIR COMPRANDO — CHECKOUT
========================================================= */

.woocommerce-checkout
.apharel-checkout-continue-shopping {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 16px;

    color: #111 !important;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-align: center;

    text-decoration: none !important;

    transition: opacity .2s ease;

}


.woocommerce-checkout
.apharel-checkout-continue-shopping:hover {

    opacity: .55;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .woocommerce-checkout .col2-set {

        width: 100%;

    }


    .woocommerce-checkout #order_review_heading {

        width: 100%;

        margin-top: 35px;

    }


    .woocommerce-checkout #order_review {

        width: 100%;

    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .woocommerce-checkout .woocommerce {

        padding-right: 16px;

        padding-left: 16px;

    }


    /* -----------------------------------------------------
       TÍTULO
    ----------------------------------------------------- */

    /* 🔴 CAMBIO:
       Bebas Neue Cyrillic mantiene peso 700 en móvil.
    */

    .woocommerce-checkout .entry-title {

        margin-bottom: 30px;

        font-size: 34px;

        /* 🔴 CAMBIO */
        font-weight: 700;

        letter-spacing: 1.3px;

    }


    /* -----------------------------------------------------
       CAMPOS
    ----------------------------------------------------- */

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {

        width: 100%;

        float: none;

    }


    /* -----------------------------------------------------
       FACTURACIÓN
    ----------------------------------------------------- */

    .woocommerce-checkout
    .woocommerce-billing-fields
    h3 {

        margin-bottom: 22px;

        font-size: 24px;

        /* 🔴 CAMBIO */
        font-weight: 700;

        letter-spacing: 1px;

    }


    /* -----------------------------------------------------
       RESUMEN
    ----------------------------------------------------- */

    .woocommerce-checkout #order_review_heading {

        font-size: 24px;

        margin-top: 30px;

        /* 🔴 CAMBIO */
        font-weight: 700;

        letter-spacing: 1px;

    }


    .woocommerce-checkout #order_review {

        padding: 20px;

        border-radius: 14px;

    }


    /* -----------------------------------------------------
       BOTÓN
    ----------------------------------------------------- */

    .woocommerce-checkout #place_order {

        min-height: 54px;

    }


    /* -----------------------------------------------------
       SEGUIR COMPRANDO
    ----------------------------------------------------- */

    .woocommerce-checkout
    .apharel-checkout-continue-shopping {

        margin-top: 14px;

        font-size: 10px;

    }

}


/* =========================================================
   MOBILE — PRODUCTO DEL PEDIDO
========================================================= */

@media (max-width: 767px) {

    .woocommerce-checkout-review-order-table
    .apharel-checkout-product {

        gap: 10px;

    }


    .apharel-checkout-product-image {

        width: 56px;

        height: 68px;

        flex-basis: 56px;

        border-radius: 8px;

    }


    .apharel-checkout-product-name {

        font-size: 13px;

    }


    .apharel-checkout-product-variation {

        font-size: 10px;

    }

}