/* =========================================================
   APHAREL — MINI CARRITO LATERAL
========================================================= */


/* =========================================================
   OVERLAY
========================================================= */

.apharel-mini-cart-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 99998;
}


body.apharel-mini-cart-open
.apharel-mini-cart-overlay {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   PANEL
========================================================= */

.apharel-mini-cart {

    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(430px, 100%);

    background: #ffffff;

    box-shadow:
        -15px 0 45px rgba(0, 0, 0, 0.12);

    display: flex;

    flex-direction: column;

    transform: translateX(100%);

    transition:
        transform 0.35s cubic-bezier(.22,.61,.36,1);

    z-index: 99999;

    overflow: hidden;

    /* 🔴 CAMBIO — tipografía general del mini carrito */
    font-family: var(--apharel-font-body);
}


body.apharel-mini-cart-open
.apharel-mini-cart {

    transform: translateX(0);
}


/* =========================================================
   CABECERA
========================================================= */

.apharel-mini-cart-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 28px 28px 22px;

    border-bottom: 1px solid #eeeeee;

    flex-shrink: 0;
}


.apharel-mini-cart-eyebrow {

    display: block;

    margin-bottom: 5px;

    color: #888888;

    font-family: var(--apharel-font-body);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .16em;
}


.apharel-mini-cart-header h2 {

    margin: 0;

    color: #111111;

    /* 🔴 CAMBIO — título real en Bebas Neue Cyrillic Bold */
    font-family: var(--apharel-font-title);

    font-size: 30px;

    /* 🔴 CAMBIO — peso en negrita como el logo APHAREL */
    font-weight: 700;

    line-height: 1;

    /* 🔴 CAMBIO — evita que Bebas Neue Cyrillic se vea apretada */
    letter-spacing: 1.5px;
}


/* =========================================================
   CERRAR
========================================================= */

.apharel-mini-cart-close {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f5f5f5;

    color: #111111;

    font-family: var(--apharel-font-body);

    font-size: 25px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.apharel-mini-cart-close:hover {

    background: #eeeeee;

    transform: rotate(90deg);
}


/* =========================================================
   CONTENIDO
========================================================= */

.apharel-mini-cart-content {

    flex: 1;

    min-height: 0;

    padding: 8px 28px;

    overflow-y: auto;

    overscroll-behavior: contain;
}


.apharel-mini-cart-content::-webkit-scrollbar {

    width: 5px;
}


.apharel-mini-cart-content::-webkit-scrollbar-thumb {

    background: #cccccc;

    border-radius: 10px;
}


/* =========================================================
   PRODUCTO
========================================================= */

.apharel-mini-cart-item {

    position: relative;

    display: flex;

    gap: 14px;

    padding: 20px 0;

    border-bottom: 1px solid #eeeeee;
}


/* =========================================================
   IMAGEN
========================================================= */

.apharel-mini-cart-item-image {

    width: 82px;
    height: 104px;

    flex: 0 0 82px;

    overflow: hidden;

    border-radius: 12px;

    background: #f3f3f3;
}


.apharel-mini-cart-item-image a {

    display: block;

    width: 100%;
    height: 100%;
}


.apharel-mini-cart-item-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.apharel-mini-cart-item-info {

    min-width: 0;

    flex: 1;

    padding-right: 20px;
}


.apharel-mini-cart-item-name {

    display: block;

    margin-bottom: 7px;

    color: #111111;

    /* 🔴 CAMBIO — nombre de producto en Arial */
    font-family: var(--apharel-font-body);

    font-size: 14px;

    font-weight: 600;

    line-height: 1.3;

    text-decoration: none;
}


a.apharel-mini-cart-item-name:hover {

    opacity: .65;
}


/* =========================================================
   VARIACIONES
========================================================= */

.apharel-mini-cart-variation {

    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-bottom: 8px;

    color: #777777;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    line-height: 1.3;
}


/* =========================================================
   PRECIO
========================================================= */

.apharel-mini-cart-item-price {

    color: #555555;

    font-family: var(--apharel-font-body);

    font-size: 12px;

    line-height: 1.4;
}


.apharel-mini-cart-item-price del {

    color: #999999;
}


.apharel-mini-cart-item-price ins {

    color: #111111;

    text-decoration: none;
}


/* =========================================================
   CANTIDAD / SUBTOTAL
========================================================= */

.apharel-mini-cart-item-bottom {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;
}


.apharel-mini-cart-quantity {

    color: #777777;

    font-family: var(--apharel-font-body);

    font-size: 11px;
}


.apharel-mini-cart-subtotal {

    color: #111111;

    font-family: var(--apharel-font-body);

    font-size: 12px;

    font-weight: 600;
}


/* =========================================================
   ELIMINAR
========================================================= */

.apharel-mini-cart-remove {

    position: absolute;

    top: 20px;
    right: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    color: #777777;

    font-family: var(--apharel-font-body);

    font-size: 20px;

    font-weight: 300;

    line-height: 1;

    text-decoration: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


.apharel-mini-cart-remove:hover {

    color: #111111;

    transform: scale(1.1);
}


/* =========================================================
   CARRITO VACÍO
========================================================= */

.apharel-mini-cart-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 100%;

    padding: 40px 20px;

    text-align: center;
}


.apharel-mini-cart-empty-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    margin-bottom: 20px;

    border-radius: 50%;

    background: #f5f5f5;
}


.apharel-mini-cart-empty-icon svg {

    width: 27px;
    height: 27px;

    fill: none;

    stroke: #111111;

    stroke-width: 1.4;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.apharel-mini-cart-empty h3 {

    margin: 0 0 8px;

    color: #111111;

    /* 🔴 CAMBIO — título real en Bebas Neue Cyrillic Bold */
    font-family: var(--apharel-font-title);

    font-size: 50px;

    /* 🔴 CAMBIO — peso en negrita como el logo APHAREL */
    font-weight: 700;

    line-height: 1;

    letter-spacing: 3px;
}


.apharel-mini-cart-empty p {

    max-width: 280px;

    margin: 0 0 24px;

    color: #777777;

    font-family: var(--apharel-font-body);

    font-size: 13px;

    line-height: 1.6;
}


.apharel-mini-cart-empty-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 999px;

    background: #111111;

    color: #ffffff;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .12em;

    text-decoration: none;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.apharel-mini-cart-empty-button:hover {

    color: #ffffff;

    opacity: .85;

    transform: translateY(-1px);
}


/* =========================================================
   FOOTER
========================================================= */

.apharel-mini-cart-footer {

    flex-shrink: 0;

    padding: 20px 28px 25px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;

    box-shadow:
        0 -8px 20px rgba(0, 0, 0, .03);
}


/* =========================================================
   SUBTOTAL
========================================================= */

.apharel-mini-cart-subtotal-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 8px;

    color: #111111;

    font-family: var(--apharel-font-body);

    font-size: 14px;
}


.apharel-mini-cart-subtotal-row strong {

    font-family: var(--apharel-font-body);

    font-size: 16px;

    font-weight: 600;
}


/* =========================================================
   NOTA
========================================================= */

.apharel-mini-cart-note {

    margin: 0 0 18px;

    color: #888888;

    font-family: var(--apharel-font-body);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================================
   BOTONES
========================================================= */

.apharel-mini-cart-actions {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.apharel-mini-cart-continue,
.apharel-mini-cart-checkout {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 48px;

    padding: 0 20px;

    box-sizing: border-box;

    border-radius: 999px;

    font-family: var(--apharel-font-body);

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .12em;

    text-align: center;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.apharel-mini-cart-continue {

    border: 1px solid #111111;

    background: #ffffff;

    color: #111111;
}


.apharel-mini-cart-continue:hover {

    background: #f5f5f5;

    color: #111111;
}


.apharel-mini-cart-checkout {

    border: 1px solid #111111;

    background: #111111;

    color: #ffffff;
}


.apharel-mini-cart-checkout:hover {

    background: #333333;

    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   VER CARRITO
========================================================= */

.apharel-mini-cart-view {

    display: block;

    margin-top: 15px;

    color: #777777;

    font-family: var(--apharel-font-body);

    font-size: 10px;

    font-weight: 500;

    letter-spacing: .08em;

    text-align: center;

    text-decoration: underline;

    text-underline-offset: 3px;
}


.apharel-mini-cart-view:hover {

    color: #111111;
}


/* =========================================================
   TABLET / MÓVIL
========================================================= */

@media (max-width: 600px) {

    .apharel-mini-cart {

        width: 100%;

        max-width: 100%;
    }


    .apharel-mini-cart-header {

        padding:
            22px
            20px
            18px;
    }


    .apharel-mini-cart-header h2 {

        /* 🔴 CAMBIO — ajuste del título Bebas Neue Cyrillic en móvil */
        font-size: 27px;

        letter-spacing: 1px;

        /* 🔴 CAMBIO — mantener título en negrita en móvil */
        font-weight: 700;
    }


    .apharel-mini-cart-content {

        padding:
            5px
            20px;
    }


    .apharel-mini-cart-footer {

        padding:
            18px
            20px
            20px;
    }


    .apharel-mini-cart-item-image {

        width: 74px;
        height: 94px;

        flex-basis: 74px;
    }

}


/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .apharel-mini-cart-overlay,
    .apharel-mini-cart,
    .apharel-mini-cart-close,
    .apharel-mini-cart-remove,
    .apharel-mini-cart-empty-button,
    .apharel-mini-cart-continue,
    .apharel-mini-cart-checkout {

        transition: none;
    }

}