/* =========================================================
   GALLERY SOGOLI
   CART PAGE
========================================================= */

.cart-page-body {
    min-height: 100vh;
    padding-bottom: 110px;
}


/* =========================================================
   ICON
========================================================= */

.ui-icon {
    width: 20px;
    height: 20px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}


/* =========================================================
   HEADER
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    position: relative;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255,255,255,.8);
    border-radius: 14px;

    background: rgba(255,255,255,.55);

    color: var(--text);

    text-decoration: none;

    cursor: pointer;

    backdrop-filter: blur(15px);

    transition: .25s ease;
}

.icon-button:hover {
    transform: translateY(-2px);

    background: rgba(255,255,255,.85);

    box-shadow:
        0 10px 28px rgba(70,45,60,.12);
}

.header-cart .cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    padding: 0 4px;

    border-radius: 50%;

    background: #d9789b;

    color: #fff;

    border: 2px solid #fff;

    font-size: 9px;
    font-weight: 900;
}


/* =========================================================
   MAIN
========================================================= */

.cart-main {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        28px
        0
        80px;
}


/* =========================================================
   BACK
========================================================= */

.back-to-store {
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 17px;

    margin-bottom: 26px;

    border: 1px solid rgba(255,255,255,.85);
    border-radius: 16px;

    background: rgba(255,255,255,.58);

    color: var(--text);

    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    backdrop-filter: blur(16px);

    box-shadow:
        0 12px 35px rgba(80,55,70,.08);

    transition: .25s ease;
}

.back-to-store:hover {
    transform: translateX(4px);
}

.back-to-store .ui-icon {
    width: 18px;
    height: 18px;
}


/* =========================================================
   HEADING
========================================================= */

.cart-heading {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 25px;

    margin-bottom: 24px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(240,182,200,.18),
            transparent 30%
        ),
        rgba(255,255,255,.56);

    box-shadow:
        0 20px 55px rgba(80,55,70,.08);

    backdrop-filter: blur(20px);
}

.cart-heading-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 20px;

    background: rgba(217,120,155,.1);

    color: #c77593;
}

.cart-heading-icon .ui-icon {
    width: 29px;
    height: 29px;
}

.cart-heading span {
    display: block;

    margin-bottom: 4px;

    color: #b98552;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.cart-heading h1 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 29px;
    font-weight: 950;
}

.cart-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   LAYOUT
========================================================= */

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        350px;

    gap: 22px;

    align-items: start;
}


/* =========================================================
   PRODUCTS AREA
========================================================= */

.cart-products-area {
    min-width: 0;
}

.cart-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 13px;

    padding: 0 5px;
}

.cart-list-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cart-list-header strong {
    color: var(--text);

    font-size: 14px;
    font-weight: 950;
}

.cart-list-header span {
    color: var(--muted);

    font-size: 10px;
}

.clear-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: 0;

    background: transparent;

    color: #c77893;

    font-family: inherit;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition: .2s ease;
}

.clear-cart-btn:hover {
    color: #b65478;
}

.clear-cart-btn .ui-icon {
    width: 15px;
    height: 15px;
}


/* =========================================================
   CART LIST
========================================================= */

.cart-products {
    display: flex;
    flex-direction: column;
    gap: 11px;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    display: grid;

    grid-template-columns:
        92px
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: center;

    padding: 12px;

    border: 1px solid rgba(255,255,255,.88);
    border-radius: 21px;

    background: rgba(255,255,255,.58);

    box-shadow:
        0 13px 38px rgba(80,55,70,.06);

    backdrop-filter: blur(15px);

    animation: cartItemIn .35s ease both;
}

@keyframes cartItemIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   ITEM IMAGE
========================================================= */

.cart-item-image {
    width: 92px;
    height: 92px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(255,255,255,.95),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(248,225,234,.75),
            rgba(240,235,237,.7)
        );

    color: rgba(195,123,150,.5);

    overflow: hidden;
}

.cart-item-image .ui-icon {
    width: 37px;
    height: 37px;
}


/* =========================================================
   ITEM INFO
========================================================= */

.cart-item-info {
    min-width: 0;
}

.cart-item-category {
    display: inline-block;

    margin-bottom: 5px;

    color: #bf7992;

    font-size: 8px;
    font-weight: 900;
}

.cart-item-info h3 {
    margin: 0 0 5px;

    color: var(--text);

    font-size: 13px;
    font-weight: 950;

    line-height: 1.7;
}

.cart-item-price {
    color: var(--muted);

    font-size: 10px;
}


/* =========================================================
   ITEM ACTIONS
========================================================= */

.cart-item-actions {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 12px;
}

.remove-item {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 10px;

    background: rgba(217,120,155,.08);

    color: #c77593;

    cursor: pointer;

    transition: .2s ease;
}

.remove-item:hover {
    background: rgba(217,120,155,.16);

    transform: scale(1.04);
}

.remove-item .ui-icon {
    width: 15px;
    height: 15px;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-control {
    display: flex;
    align-items: center;

    height: 34px;

    padding: 3px;

    border: 1px solid rgba(255,255,255,.8);
    border-radius: 11px;

    background: rgba(255,255,255,.58);
}

.quantity-btn {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: var(--text);

    cursor: pointer;

    transition: .2s ease;
}

.quantity-btn:hover {
    background: rgba(217,120,155,.1);

    color: #c77593;
}

.quantity-btn .ui-icon {
    width: 13px;
    height: 13px;
}

.quantity-number {
    min-width: 25px;

    text-align: center;

    color: var(--text);

    font-size: 10px;
    font-weight: 950;
}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total {
    min-width: 105px;

    text-align: left;
}

.cart-item-total span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
}

.cart-item-total strong {
    color: #bd708e;

    font-size: 12px;
    font-weight: 950;
}


/* =========================================================
   SUMMARY
========================================================= */

.cart-summary {
    position: sticky;

    top: 20px;

    padding: 20px;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(240,182,200,.15),
            transparent 30%
        ),
        rgba(255,255,255,.62);

    box-shadow:
        0 18px 55px rgba(80,55,70,.09);

    backdrop-filter: blur(20px);
}

.summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;

    color: var(--text);

    font-size: 14px;
    font-weight: 950;
}

.summary-top .ui-icon {
    width: 18px;
    height: 18px;

    color: #c77593;
}


/* =========================================================
   SUMMARY ROW
========================================================= */

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;

    color: var(--muted);

    font-size: 10px;
}

.summary-row strong {
    color: var(--text);

    font-size: 11px;
    font-weight: 900;
}

.shipping-text {
    max-width: 130px;

    color: #bd8a62 !important;

    text-align: left;

    line-height: 1.6;
}


/* =========================================================
   DIVIDER
========================================================= */

.summary-divider {
    height: 1px;

    margin: 17px 0;

    background:
        linear-gradient(
            to left,
            transparent,
            rgba(180,150,160,.3),
            transparent
        );
}


/* =========================================================
   TOTAL
========================================================= */

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;
}

.summary-total span {
    color: var(--text);

    font-size: 11px;
    font-weight: 800;
}

.summary-total strong {
    color: #bd708e;

    font-size: 17px;
    font-weight: 950;
}


/* =========================================================
   CHECKOUT
========================================================= */

.checkout-btn {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #d9789b,
            #c789a1
        );

    color: #fff;

    text-decoration: none;

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

    box-shadow:
        0 12px 30px rgba(217,120,155,.22);

    transition: .25s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 35px rgba(217,120,155,.3);
}

.checkout-btn .ui-icon {
    width: 18px;
    height: 18px;
}


/* =========================================================
   TRUST
========================================================= */

.summary-trust {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    margin-top: 13px;

    color: var(--muted);

    font-size: 8px;

    line-height: 1.8;
}

.summary-trust .ui-icon {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    color: #6eaa8b;

    margin-top: 1px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
    padding: 75px 20px;

    text-align: center;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 28px;

    background: rgba(255,255,255,.52);

    box-shadow:
        0 20px 55px rgba(80,55,70,.07);

    backdrop-filter: blur(18px);
}

.empty-cart-icon {
    width: 80px;
    height: 80px;

    display: grid;
    place-items: center;

    margin: 0 auto 18px;

    border-radius: 25px;

    background: rgba(217,120,155,.1);

    color: #c77593;
}

.empty-cart-icon .ui-icon {
    width: 34px;
    height: 34px;
}

.empty-kicker {
    display: block;

    margin-bottom: 6px;

    color: #b98552;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 2px;
}

.empty-cart h2 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 24px;
    font-weight: 950;
}

.empty-cart p {
    max-width: 430px;

    margin: 0 auto 20px;

    color: var(--muted);

    font-size: 11px;

    line-height: 2;
}

.go-products-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 45px;

    padding: 0 18px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #d9789b,
            #c789a1
        );

    color: #fff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        0 10px 25px rgba(217,120,155,.2);

    transition: .25s ease;
}

.go-products-btn:hover {
    transform: translateY(-2px);
}

.go-products-btn .ui-icon {
    width: 17px;
    height: 17px;
}


/* =========================================================
   BOTTOM BAR
========================================================= */

.bottom-control-bar {
    position: fixed;

    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    width: min(94%, 620px);
    height: 70px;

    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    align-items: center;

    padding: 7px;

    border: 1px solid rgba(255,255,255,.92);
    border-radius: 25px;

    background: rgba(255,255,255,.76);

    backdrop-filter: blur(25px);

    box-shadow:
        0 18px 55px rgba(70,45,60,.16);

    z-index: 9990;
}

.bottom-control-item {
    position: relative;

    height: 56px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    border-radius: 19px;

    color: var(--muted);

    text-decoration: none;

    font-size: 9px;
    font-weight: 800;

    transition: .25s ease;
}

.bottom-control-item:hover {
    color: var(--text);
}

.bottom-control-item.active {
    color: #c96f8f;

    background: rgba(217,120,155,.09);
}

.bottom-control-icon {
    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;
}

.bottom-control-item.active .ui-icon {
    stroke-width: 2;
}

.bottom-cart-count {
    position: absolute;

    top: 5px;
    right: calc(50% - 21px);

    min-width: 16px;
    height: 16px;

    display: grid;
    place-items: center;

    padding: 0 3px;

    border-radius: 50%;

    background: #d9789b;

    color: #fff;

    border: 2px solid rgba(255,255,255,.9);

    font-size: 8px;
    font-weight: 900;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .icon-button,
body.dark-mode .back-to-store,
body.dark-mode .cart-heading,
body.dark-mode .cart-item,
body.dark-mode .cart-summary,
body.dark-mode .empty-cart,
body.dark-mode .bottom-control-bar,
body.dark-mode .quantity-control {
    border-color: rgba(255,255,255,.08);

    background: rgba(35,31,36,.8);
}

body.dark-mode .cart-item-image {
    background:
        radial-gradient(
            circle,
            rgba(68,59,66,.95),
            rgba(43,38,42,.85)
        );
}

body.dark-mode .bottom-control-bar {
    box-shadow:
        0 18px 55px rgba(0,0,0,.35);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .cart-layout {
        grid-template-columns:
            minmax(0, 1fr)
            310px;
    }

    .cart-item {
        grid-template-columns:
            80px
            minmax(0, 1fr)
            auto;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-total {
        min-width: 90px;
    }
}


@media (max-width: 760px) {

    .cart-main {
        width: calc(100% - 20px);

        padding-top: 18px;
    }

    .cart-layout {
        display: flex;
        flex-direction: column;
    }

    .cart-products-area,
    .cart-summary {
        width: 100%;
    }

    .cart-summary {
        position: static;
    }

}


@media (max-width: 550px) {

    .cart-heading {
        padding: 18px;

        gap: 13px;
    }

    .cart-heading-icon {
        width: 52px;
        height: 52px;

        border-radius: 17px;
    }

    .cart-heading-icon .ui-icon {
        width: 24px;
        height: 24px;
    }

    .cart-heading h1 {
        font-size: 23px;
    }

    .cart-list-header {
        align-items: flex-start;
    }

    .cart-list-header > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .clear-cart-btn span {
        display: none;
    }

    .cart-item {
        grid-template-columns:
            70px
            minmax(0, 1fr);

        gap: 11px;

        padding: 10px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;

        grid-row: span 2;
    }

    .cart-item-info h3 {
        font-size: 11px;
    }

    .cart-item-actions {
        grid-column: 2;

        flex-direction: row;

        align-items: center;
        justify-content: space-between;

        width: 100%;
    }

    .cart-item-total {
        min-width: 0;

        text-align: right;
    }

    .cart-item-total span {
        display: none;
    }

    .cart-item-total strong {
        font-size: 10px;
    }

    .remove-item {
        order: 2;
    }

    .quantity-control {
        order: 1;
    }

    .bottom-control-bar {
        bottom: 8px;

        width: calc(100% - 14px);

        height: 66px;

        border-radius: 22px;
    }

    .bottom-control-item {
        height: 52px;
    }

    .bottom-control-item > span:last-of-type {
        font-size: 8px;
    }

}


@media (max-width: 380px) {

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .icon-button {
        width: 38px;
        height: 38px;
    }

    .cart-heading {
        padding: 15px;
    }

    .cart-heading p {
        display: none;
    }

}