
/* =========================================================
   SHREE GANPATI INFOTECH
   CART PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.cart-page {

    min-height: 70vh;

    padding: 65px 0 90px;

    background:
        linear-gradient(
            180deg,
            #f7f9f9 0%,
            #ffffff 40%,
            #ffffff 100%
        );

}


.cart-container {

    width: min(1280px, 92%);

    margin: 0 auto;

}


/* =========================================================
   PAGE HEADING
========================================================= */

.cart-heading {

    text-align: center;

    margin-bottom: 48px;

}


.cart-eyebrow {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-bottom: 13px;

    color: #df8d28;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .16em;

    text-transform: uppercase;

}


.cart-eyebrow::before,
.cart-eyebrow::after {

    content: "";

    width: 24px;

    height: 1px;

    background: #f3a847;

}


.cart-heading h1 {

    margin: 0;

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -.04em;

}


.cart-heading p {

    max-width: 570px;

    margin: 14px auto 0;

    color: #596267;

    font-family: "Inter", sans-serif;

    font-size: 14px;

    line-height: 1.7;

}


/* =========================================================
   CART LAYOUT
========================================================= */

.cart-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    gap: 32px;

    align-items: start;

}


/* =========================================================
   CART ITEMS SECTION
========================================================= */

.cart-items-section {

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e7ebec;

    border-radius: 18px;

    overflow: hidden;

}


/* =========================================================
   CART ITEMS HEADER
========================================================= */

.cart-items-header {

    min-height: 82px;

    padding: 18px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #e7ebec;

}


.cart-items-header > div {

    display: flex;

    align-items: baseline;

    gap: 12px;

}


.cart-items-header h2 {

    margin: 0;

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 20px;

    font-weight: 800;

}


.cart-items-header span {

    color: #8a9498;

    font-size: 11px;

    font-weight: 600;

}


.clear-cart {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #e05252;

    font-size: 11px;

    font-weight: 700;

    transition: color .2s ease;

}


.clear-cart:hover {

    color: #b82f2f;

}


.clear-cart i {

    font-size: 12px;

}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {

    position: relative;

    display: grid;

    grid-template-columns: 125px minmax(0, 1fr) auto;

    gap: 22px;

    padding: 24px 25px;

    border-bottom: 1px solid #edf0f1;

}


.cart-item:last-of-type {

    border-bottom: none;

}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cart-item-image {

    width: 125px;

    height: 125px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #f5f7f7;

}


.cart-item-image a {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}


.cart-item-image img {

    width: 100%;

    height: 100%;

    padding: 12px;

    display: block;

    object-fit: contain;

    transition: transform .3s ease;

}


.cart-item-image:hover img {

    transform: scale(1.05);

}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.cart-item-details {

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

}


.cart-item-details h3 {

    margin: 0 0 9px;

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 17px;

    font-weight: 800;

    line-height: 1.4;

}


.cart-item-details h3 a {

    color: inherit;

    transition: color .2s ease;

}


.cart-item-details h3 a:hover {

    color: #df8d28;

}


.cart-item-price {

    margin-bottom: 20px;

    color: #596267;

    font-size: 13px;

    font-weight: 600;

}


/* =========================================================
   ITEM BOTTOM
========================================================= */

.cart-item-bottom {

    display: flex;

    align-items: center;

    gap: 22px;

}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-control {

    width: 112px;

    height: 38px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #dfe5e6;

    border-radius: 8px;

    background: #ffffff;

}


.quantity-btn {

    width: 34px;

    height: 100%;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    background: #ffffff;

    color: #0f3b44;

    cursor: pointer;

    font-size: 10px;

    transition:
        background .2s ease,
        color .2s ease;

}


.quantity-btn:hover {

    background: #edf4f5;

    color: #df8d28;

}


.quantity-input {

    width: 44px;

    height: 100%;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #0f3b44;

    text-align: center;

    font-size: 12px;

    font-weight: 700;

}


/* Remove browser arrows */

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {

    margin: 0;

    -webkit-appearance: none;

}


.quantity-input {

    -moz-appearance: textfield;

}


/* =========================================================
   REMOVE ITEM
========================================================= */

.remove-item {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #929da1;

    font-size: 11px;

    font-weight: 600;

    transition:
        color .2s ease;

}


.remove-item:hover {

    color: #e05252;

}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total {

    min-width: 105px;

    padding-top: 7px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 6px;

}


.cart-item-total span {

    color: #9aa3a6;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

}


.cart-item-total strong {

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 16px;

    font-weight: 800;

}


/* =========================================================
   UPDATE CART
========================================================= */

.cart-update-row {

    padding: 18px 25px;

    display: flex;

    justify-content: flex-end;

    border-top: 1px solid #edf0f1;

    background: #fbfcfc;

}


.update-cart-btn {

    min-height: 40px;

    padding: 0 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border: 1px solid #dfe5e6;

    border-radius: 8px;

    background: #ffffff;

    color: #0f3b44;

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}


.update-cart-btn:hover {

    border-color: #0f3b44;

    background: #0f3b44;

    color: #ffffff;

}


/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.back-shopping {

    margin: 0 25px 25px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #0f3b44;

    font-size: 12px;

    font-weight: 700;

    transition:
        color .2s ease,
        gap .2s ease;

}


.back-shopping:hover {

    color: #df8d28;

    gap: 11px;

}


/* =========================================================
   CART SUMMARY
========================================================= */

.cart-summary {

    position: sticky;

    top: 125px;

    padding: 27px;

    background: #ffffff;

    border: 1px solid #e7ebec;

    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(15, 59, 68, .07);

}


/* =========================================================
   SUMMARY HEADER
========================================================= */

.summary-header {

    padding-bottom: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #edf0f1;

}


.summary-header span {

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 18px;

    font-weight: 800;

}


.summary-header i {

    color: #f3a847;

    font-size: 17px;

}


/* =========================================================
   SUMMARY ROW
========================================================= */

.summary-row {

    padding: 17px 0 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.summary-row span {

    color: #697478;

    font-size: 12px;

}


.summary-row strong {

    color: #0f3b44;

    font-size: 13px;

    font-weight: 800;

}


/* =========================================================
   FREE SHIPPING
========================================================= */

.free-shipping {

    color: #27835c !important;

    font-size: 11px !important;

    font-weight: 800 !important;

    text-transform: uppercase;

}


/* =========================================================
   SHIPPING MESSAGE
========================================================= */

.shipping-message {

    margin-top: 17px;

    padding: 12px 13px;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    border-radius: 9px;

    background: #fff7eb;

    color: #a96718;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.5;

}


.shipping-message i {

    flex-shrink: 0;

    margin-top: 1px;

    color: #df8d28;

}


.shipping-message.success {

    background: #edf8f3;

    color: #27835c;

}


.shipping-message.success i {

    color: #27835c;

}


/* =========================================================
   DIVIDER
========================================================= */

.summary-divider {

    height: 1px;

    margin: 22px 0;

    background: #e7ebec;

}


/* =========================================================
   TOTAL
========================================================= */

.summary-total {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.summary-total span {

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 15px;

    font-weight: 800;

}


.summary-total strong {

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 23px;

    font-weight: 800;

}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-btn {

    width: 100%;

    min-height: 53px;

    margin-top: 24px;

    padding: 0 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    border-radius: 10px;

    background: #0f3b44;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.checkout-btn:hover {

    background: #f3a847;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(243, 168, 71, .22);

}


.checkout-btn i {

    font-size: 12px;

}


/* =========================================================
   TRUST ITEMS
========================================================= */

.cart-trust {

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #edf0f1;

    display: flex;

    flex-direction: column;

    gap: 13px;

}


.trust-item {

    display: flex;

    align-items: center;

    gap: 10px;

}


.trust-item i {

    width: 29px;

    height: 29px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: #f3f7f7;

    color: #0f3b44;

    font-size: 11px;

}


.trust-item span {

    color: #697478;

    font-size: 10px;

    font-weight: 600;

}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {

    width: min(680px, 100%);

    margin: 15px auto 0;

    padding: 70px 35px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e7ebec;

    border-radius: 22px;

    box-shadow:
        0 18px 50px rgba(15, 59, 68, .06);

}


.empty-cart-icon {

    width: 86px;

    height: 86px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #fff4e4;

    color: #df8d28;

    font-size: 29px;

}


.empty-cart h2 {

    margin: 0 0 11px;

    color: #0f3b44;

    font-family: "Manrope", sans-serif;

    font-size: 26px;

    font-weight: 800;

}


.empty-cart p {

    max-width: 470px;

    margin: 0 auto 28px;

    color: #596267;

    font-size: 13px;

    line-height: 1.75;

}


.continue-shopping-btn {

    min-height: 49px;

    padding: 0 26px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 10px;

    background: #0f3b44;

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.continue-shopping-btn:hover {

    background: #f3a847;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(243, 168, 71, .20);

}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .cart-layout {

        grid-template-columns:
            minmax(0, 1fr)
            340px;

        gap: 22px;

    }


    .cart-item {

        grid-template-columns:
            110px
            minmax(0, 1fr);

        gap: 18px;

    }


    .cart-item-image {

        width: 110px;

        height: 110px;

    }


    .cart-item-total {

        grid-column: 2;

        grid-row: 1;

        align-self: start;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .cart-page {

        padding: 50px 0 70px;

    }


    .cart-layout {

        grid-template-columns: 1fr;

    }


    .cart-summary {

        position: static;

    }


    .cart-item {

        grid-template-columns:
            115px
            minmax(0, 1fr)
            auto;

    }


    .cart-item-total {

        grid-column: auto;

        grid-row: auto;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .cart-page {

        padding: 42px 0 60px;

    }


    .cart-container {

        width: 92%;

    }


    .cart-heading {

        margin-bottom: 32px;

    }


    .cart-heading h1 {

        font-size: 34px;

    }


    .cart-heading p {

        font-size: 13px;

    }


    .cart-items-header {

        min-height: 70px;

        padding: 16px 18px;

    }


    .cart-items-header h2 {

        font-size: 17px;

    }


    .cart-items-header > div {

        gap: 8px;

    }


    .clear-cart {

        font-size: 10px;

    }


    .cart-item {

        grid-template-columns:
            88px
            minmax(0, 1fr);

        gap: 15px;

        padding: 18px;

    }


    .cart-item-image {

        width: 88px;

        height: 88px;

    }


    .cart-item-image img {

        padding: 8px;

    }


    .cart-item-details h3 {

        font-size: 14px;

    }


    .cart-item-price {

        margin-bottom: 14px;

        font-size: 12px;

    }


    .cart-item-bottom {

        flex-wrap: wrap;

        gap: 12px;

    }


    .cart-item-total {

        grid-column: 2;

        grid-row: auto;

        min-width: 0;

        padding-top: 0;

        align-items: flex-start;

        flex-direction: row;

        gap: 8px;

    }


    .cart-item-total span {

        font-size: 8px;

    }


    .cart-item-total strong {

        font-size: 14px;

    }


    .cart-update-row {

        padding: 15px 18px;

    }


    .back-shopping {

        margin: 0 18px 20px;

    }


    .cart-summary {

        padding: 22px;

    }


    .empty-cart {

        padding: 55px 22px;

    }


    .empty-cart h2 {

        font-size: 23px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .cart-container {

        width: 94%;

    }


    .cart-items-header {

        padding: 15px;

    }


    .cart-items-header > div {

        display: flex;

        flex-direction: column;

        gap: 2px;

    }


    .cart-item {

        grid-template-columns:
            75px
            minmax(0, 1fr);

        gap: 12px;

        padding: 15px;

    }


    .cart-item-image {

        width: 75px;

        height: 75px;

    }


    .cart-item-details h3 {

        font-size: 13px;

    }


    .quantity-control {

        width: 105px;

        height: 36px;

    }


    .quantity-btn {

        width: 31px;

    }


    .quantity-input {

        width: 43px;

    }


    .remove-item {

        font-size: 10px;

    }


    .cart-item-total {

        grid-column: 2;

    }


    .cart-summary {

        padding: 20px;

    }


    .summary-total strong {

        font-size: 21px;

    }


    .empty-cart {

        padding: 45px 18px;

    }


    .empty-cart-icon {

        width: 75px;

        height: 75px;

        font-size: 25px;

    }

}
