/* =========================================================
   ROF CENTER
   CARRITO
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

.cart-page {

    --cart-blue: #1026d8;
    --cart-blue-dark: #0719a8;

    --cart-green: #19b900;
    --cart-whatsapp: #25d366;

    --cart-text: #111936;
    --cart-muted: #687084;

    --cart-border: #e4e7ee;
    --cart-bg: #f6f7fb;

    background: var(--cart-bg);
    color: var(--cart-text);

}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.cart-page .cart-container {

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

}


/* =========================================================
   HEADER
   ========================================================= */

.cart-header {

    background: #ffffff;

    border-bottom: 1px solid var(--cart-border);

    position: relative;

    z-index: 20;

}


.cart-header-inner {

    min-height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* LOGO */

.cart-logo {

    width: 150px;

    display: flex;

    align-items: center;

    flex-shrink: 0;

}


.cart-logo img {

    width: 100%;

    max-width: 150px;

    height: auto;

    max-height: 70px;

    object-fit: contain;

    display: block;

}


/* TITULO */

.cart-page-title {

    display: flex;

    align-items: center;

    gap: 14px;

    flex: 1;

}


.cart-page-title-icon {

    width: 48px;

    height: 48px;

    border-radius: 50%;

    background: #eef1ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 23px;

}


.cart-page-title h1 {

    margin: 0;

    font-size: 24px;

    line-height: 1.2;

    font-weight: 750;

}


.cart-page-title p {

    margin: 5px 0 0;

    color: var(--cart-muted);

    font-size: 13px;

}


/* VOLVER */

.cart-back-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    min-height: 44px;

    padding: 0 20px;

    border: 1px solid #d8dce7;

    border-radius: 6px;

    background: #fff;

    color: var(--cart-text);

    text-decoration: none;

    font-size: 14px;

    font-weight: 650;

    transition: .2s ease;

}


.cart-back-button:hover {

    border-color: var(--cart-blue);

    color: var(--cart-blue);

    transform: translateY(-1px);

}


.cart-back-button span {

    font-size: 19px;

}


/* =========================================================
   MAIN
   ========================================================= */

.cart-main {

    min-height: 650px;

    padding: 25px 0 60px;

}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.cart-breadcrumb {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 25px;

    font-size: 13px;

    color: var(--cart-muted);

}


.cart-breadcrumb a {

    color: var(--cart-muted);

    text-decoration: none;

}


.cart-breadcrumb a:hover {

    color: var(--cart-blue);

}


.cart-breadcrumb strong {

    color: var(--cart-text);

}


.cart-breadcrumb span {

    color: #a4a9b5;

}


/* =========================================================
   TITULO
   ========================================================= */

.cart-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;

    margin-bottom: 22px;

}


.cart-heading h2 {

    margin: 0;

    font-size: 30px;

    font-weight: 750;

}


.cart-heading p {

    margin: 6px 0 0;

    color: var(--cart-muted);

    font-size: 14px;

}


.cart-clear-button {

    border: 0;

    background: transparent;

    color: #c1121f;

    font-size: 13px;

    font-weight: 650;

    cursor: pointer;

    padding: 8px 4px;

}


.cart-clear-button:hover {

    text-decoration: underline;

}


/* =========================================================
   LAYOUT
   ========================================================= */

.cart-layout {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 370px;

    align-items: start;

    gap: 25px;

}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.cart-products-card {

    background: #ffffff;

    border: 1px solid var(--cart-border);

    border-radius: 8px;

    overflow: hidden;

}


/* HEADER PRODUCTOS */

.cart-products-header {

    min-height: 82px;

    padding: 18px 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    border-bottom: 1px solid var(--cart-border);

}


.cart-products-header h3 {

    margin: 0;

    font-size: 18px;

}


.cart-products-header p {

    margin: 5px 0 0;

    color: var(--cart-muted);

    font-size: 13px;

}


.cart-items-badge {

    white-space: nowrap;

    background: #f0f2f7;

    border-radius: 30px;

    padding: 7px 12px;

    font-size: 12px;

    font-weight: 700;

    color: #4b5366;

}


/* =========================================================
   PRODUCTO
   ========================================================= */

.cart-item {

    display: grid;

    grid-template-columns: 145px minmax(0, 1fr);

    gap: 22px;

    padding: 24px;

    border-bottom: 1px solid var(--cart-border);

}


.cart-item:last-child {

    border-bottom: 0;

}


/* IMAGEN */

.cart-item-image {

    width: 145px;

    height: 145px;

    border: 1px solid #e7e9ef;

    border-radius: 7px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.cart-item-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 10px;

}


/* INFORMACION */

.cart-item-info {

    min-width: 0;

    display: flex;

    flex-direction: column;

}


.cart-item-brand {

    margin-bottom: 5px;

    color: var(--cart-blue);

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .3px;

}


.cart-item-name {

    margin: 0 0 7px;

    color: var(--cart-text);

    font-size: 17px;

    line-height: 1.35;

    font-weight: 700;

}


.cart-item-sku {

    color: var(--cart-muted);

    font-size: 12px;

    margin-bottom: 13px;

}


/* PRECIO */

.cart-item-price {

    display: flex;

    align-items: baseline;

    gap: 9px;

    margin-bottom: 15px;

}


.cart-item-current-price {

    color: #bf0d1c;

    font-size: 22px;

    font-weight: 800;

}


.cart-item-old-price {

    color: #727889;

    font-size: 13px;

    text-decoration: line-through;

}


/* PARTE INFERIOR */

.cart-item-bottom {

    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


/* CANTIDAD */

.cart-quantity {

    display: inline-flex;

    align-items: center;

    height: 40px;

    border: 1px solid #cfd4df;

    border-radius: 5px;

    overflow: hidden;

    background: #fff;

}


.cart-quantity button {

    width: 38px;

    height: 40px;

    border: 0;

    background: #fff;

    color: var(--cart-text);

    font-size: 20px;

    cursor: pointer;

}


.cart-quantity button:hover {

    background: #f1f3f7;

}


.cart-quantity span {

    width: 42px;

    text-align: center;

    font-size: 14px;

    font-weight: 700;

}


/* ELIMINAR */

.cart-remove {

    border: 0;

    background: transparent;

    color: #737a8a;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

}


.cart-remove:hover {

    color: #c1121f;

}


/* =========================================================
   RESUMEN
   ========================================================= */

.cart-summary-card {

    position: sticky;

    top: 20px;

    background: #ffffff;

    border: 1px solid var(--cart-border);

    border-radius: 8px;

    padding: 24px;

    box-shadow: 0 3px 16px rgba(15, 26, 70, .05);

}


.cart-summary-header {

    margin-bottom: 20px;

}


.cart-summary-header > span {

    display: block;

    margin-bottom: 5px;

    color: var(--cart-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

}


.cart-summary-header h3 {

    margin: 0;

    font-size: 22px;

}


/* FILAS */

.cart-summary-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 9px 0;

    color: #454d60;

    font-size: 14px;

}


.cart-summary-row strong {

    color: var(--cart-text);

}


.cart-summary-muted {

    color: var(--cart-muted);

}


/* DIVISOR */

.cart-summary-divider {

    height: 1px;

    background: var(--cart-border);

    margin: 12px 0 18px;

}


/* TOTAL */

.cart-summary-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

}


.cart-summary-total span {

    font-size: 14px;

    font-weight: 700;

}


.cart-summary-total strong {

    color: #bf0d1c;

    font-size: 27px;

    font-weight: 850;

}


/* WHATSAPP */

.cart-whatsapp-button {

    width: 100%;

    min-height: 52px;

    border: 0;

    border-radius: 5px;

    background: var(--cart-whatsapp);

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 10px 15px;

    font-size: 14px;

    font-weight: 750;

    cursor: pointer;

    transition: .2s ease;

}


.cart-whatsapp-button:hover {

    background: #1eb85a;

    transform: translateY(-1px);

}


.cart-whatsapp-icon {

    font-size: 19px;

}


/* NOTA */

.cart-summary-note {

    margin: 13px 0 0;

    color: var(--cart-muted);

    font-size: 11px;

    line-height: 1.5;

    text-align: center;

}


/* SEGURIDAD */

.cart-secure-box {

    margin-top: 20px;

    padding: 14px;

    background: #f0f9f1;

    border-radius: 6px;

    display: flex;

    align-items: flex-start;

    gap: 10px;

}


.cart-secure-box > span {

    color: #159947;

    font-weight: 900;

}


.cart-secure-box strong {

    display: block;

    font-size: 12px;

}


.cart-secure-box p {

    margin: 3px 0 0;

    color: #6a756d;

    font-size: 11px;

}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.cart-benefits {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 15px;

}


.cart-benefit {

    background: #ffffff;

    border: 1px solid var(--cart-border);

    border-radius: 7px;

    padding: 15px;

    display: flex;

    gap: 11px;

}


.cart-benefit-icon {

    width: 32px;

    height: 32px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eef8ef;

    color: #159947;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

}


.cart-benefit strong {

    display: block;

    font-size: 12px;

    line-height: 1.3;

}


.cart-benefit p {

    margin: 4px 0 0;

    color: var(--cart-muted);

    font-size: 11px;

    line-height: 1.4;

}


/* =========================================================
   CONTINUAR
   ========================================================= */

.cart-continue-link {

    display: inline-flex;

    margin-top: 22px;

    color: var(--cart-blue);

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

}


.cart-continue-link:hover {

    text-decoration: underline;

}


/* =========================================================
   CARRITO VACIO
   ========================================================= */

.empty-cart {

    max-width: 600px;

    margin: 40px auto 80px;

    padding: 60px 30px;

    background: #ffffff;

    border: 1px solid var(--cart-border);

    border-radius: 8px;

    text-align: center;

}


.empty-cart-icon {

    font-size: 55px;

    margin-bottom: 15px;

}


.empty-cart h2 {

    margin: 0;

    font-size: 25px;

}


.empty-cart p {

    margin: 9px 0 25px;

    color: var(--cart-muted);

}


.empty-cart-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 0 25px;

    border-radius: 5px;

    background: var(--cart-blue);

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 750;

}


/* =========================================================
   FOOTER
   ========================================================= */

.cart-footer {

    background: #10162b;

    color: #ffffff;

    padding: 45px 0 0;

}


.cart-footer-grid {

    display: grid;

    grid-template-columns: 1.4fr 1fr 1fr 1fr;

    gap: 35px;

    padding-bottom: 35px;

}


.cart-footer-grid > div {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.cart-footer-logo {

    width: 140px;

    max-width: 140px;

    height: auto;

    max-height: 65px;

    object-fit: contain;

    margin-bottom: 15px;

}


.cart-footer-grid p {

    margin: 4px 0;

    color: #b7bdcd;

    font-size: 12px;

    line-height: 1.6;

}


.cart-footer-grid h4 {

    margin: 0 0 13px;

    font-size: 14px;

}


.cart-footer-grid a {

    margin: 4px 0;

    color: #b7bdcd;

    text-decoration: none;

    font-size: 12px;

}


.cart-footer-grid a:hover {

    color: #ffffff;

}


.cart-footer-bottom {

    padding: 18px 0;

    border-top: 1px solid rgba(255,255,255,.1);

    color: #8d95a8;

    text-align: center;

    font-size: 11px;

}


/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */

.cart-floating-whatsapp {

    position: fixed;

    right: 22px;

    bottom: 22px;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: var(--cart-whatsapp);

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    font-size: 27px;

    box-shadow: 0 4px 15px rgba(0,0,0,.2);

    z-index: 100;

    transition: .2s ease;

}


.cart-floating-whatsapp:hover {

    transform: scale(1.06);

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .cart-layout {

        grid-template-columns: 1fr;

    }


    .cart-summary-card {

        position: static;

    }

}


@media (max-width: 750px) {

    .cart-header-inner {

        min-height: 85px;

        flex-wrap: wrap;

        padding: 15px 0;

    }


    .cart-logo {

        width: 110px;

    }


    .cart-logo img {

        max-width: 110px;

        max-height: 55px;

    }


    .cart-page-title {

        order: 3;

        width: 100%;

    }


    .cart-page-title h1 {

        font-size: 20px;

    }


    .cart-page-title p {

        display: none;

    }


    .cart-back-button {

        margin-left: auto;

        padding: 0 12px;

        font-size: 12px;

    }


    .cart-heading {

        align-items: flex-start;

        flex-direction: column;

    }


    .cart-item {

        grid-template-columns: 105px minmax(0, 1fr);

        gap: 15px;

        padding: 16px;

    }


    .cart-item-image {

        width: 105px;

        height: 105px;

    }


    .cart-item-name {

        font-size: 14px;

    }


    .cart-item-current-price {

        font-size: 18px;

    }


    .cart-item-bottom {

        align-items: flex-start;

        flex-direction: column;

    }


    .cart-benefits {

        grid-template-columns: 1fr;

    }


    .cart-footer-grid {

        grid-template-columns: 1fr 1fr;

    }

}


@media (max-width: 500px) {

    .cart-page .cart-container {

        width: min(100% - 24px, 1180px);

    }


    .cart-main {

        padding-top: 15px;

    }


    .cart-breadcrumb {

        margin-bottom: 18px;

    }


    .cart-heading h2 {

        font-size: 24px;

    }


    .cart-products-header {

        padding: 15px;

    }


    .cart-products-header p {

        display: none;

    }


    .cart-item {

        grid-template-columns: 82px minmax(0, 1fr);

    }


    .cart-item-image {

        width: 82px;

        height: 82px;

    }


    .cart-item-brand {

        font-size: 10px;

    }


    .cart-item-name {

        font-size: 13px;

    }


    .cart-item-sku {

        font-size: 10px;

        margin-bottom: 7px;

    }


    .cart-item-price {

        margin-bottom: 9px;

    }


    .cart-item-current-price {

        font-size: 16px;

    }


    .cart-item-old-price {

        font-size: 10px;

    }


    .cart-summary-card {

        padding: 18px;

    }


    .cart-footer-grid {

        grid-template-columns: 1fr;

    }


    .cart-floating-whatsapp {

        width: 52px;

        height: 52px;

        right: 15px;

        bottom: 15px;

    }

}