/* =========================================================
   CART PAGE
========================================================= */

.cart-page-section{
    padding: 70px 0;
    background: #f8fafc;
    min-height: 100vh;
}

.cart-page-header{
    margin-bottom: 34px;
}

.cart-page-breadcrumb{
    display: inline-block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 10px;
}

.cart-page-header h1{
    color: #0f172a;
    font-size: 52px;
    line-height: 1.05;
    font-weight: 950;
    margin-bottom: 12px;
}

.cart-page-header p{
    max-width: 760px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
}

/* =========================================================
   ALERTS
========================================================= */

.cart-alert{
    padding: 18px 22px;
    border-radius: 18px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
}

.cart-alert.success{
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cart-alert.error{
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart-box{
    background: #ffffff;
    border-radius: 34px;
    padding: 90px 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.empty-cart-icon{
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
}

.empty-cart-box h2{
    color: #0f172a;
    font-size: 42px;
    font-weight: 950;
    margin-bottom: 12px;
}

.empty-cart-box p{
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.continue-shopping-btn{
    min-height: 56px;
    padding: 0 30px;
    border-radius: 16px;
    background: #2563eb;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: .25s ease;
}

.continue-shopping-btn:hover{
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================================
   CART LAYOUT
========================================================= */

.cart-layout{
    display: grid;
    grid-template-columns: minmax(0,1fr) 360px;
    gap: 28px;
    align-items: start;
}

/* =========================================================
   CART ITEMS
========================================================= */

.cart-items-area{
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cart-item-card{
    background: #ffffff;
    border-radius: 30px;
    padding: 24px;
    border: 1px solid #e2e8f0;

    display: flex;
    gap: 24px;

    transition: .25s ease;
}

.cart-item-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15,23,42,.06);
}

.cart-item-image{
    width: 180px;
    min-width: 180px;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.cart-item-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-item-category{
    display: inline-block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cart-item-top h3{
    margin-bottom: 12px;
}

.cart-item-top h3 a{
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 950;
    text-decoration: none;
}

.cart-variant-badge{
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.remove-cart-btn{
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 18px;
    cursor: pointer;
    transition: .25s ease;
}

.remove-cart-btn:hover{
    background: #dc2626;
    color: #ffffff;
}

/* =========================================================
   CART BOTTOM
========================================================= */

.cart-item-bottom{
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cart-price span,
.cart-subtotal span{
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-price strong,
.cart-subtotal strong{
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.cart-qty-form{
    margin: 0;
}

.cart-qty-box{
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-box input{
    width: 90px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

.cart-qty-box input:focus{
    outline: none;
    border-color: #2563eb;
}

.cart-qty-box button{
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.cart-qty-box button:hover{
    background: #2563eb;
}

/* =========================================================
   SUMMARY
========================================================= */

.cart-summary-area{
    position: sticky;
    top: 120px;
}

.cart-summary-card{
    background: #ffffff;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.cart-summary-card h3{
    color: #0f172a;
    font-size: 30px;
    font-weight: 950;
    margin-bottom: 28px;
}

.summary-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.summary-row span{
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.summary-row strong{
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.summary-divider{
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

.summary-row.total span,
.summary-row.total strong{
    font-size: 20px;
    color: #0f172a;
}

.checkout-btn{
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    margin-top: 26px;
    transition: .25s ease;
}

.checkout-btn:hover{
    background: #1d4ed8;
    color: #ffffff;
}

.continue-link{
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    margin-top: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 1200px){

    .cart-layout{
        grid-template-columns: 1fr;
    }

    .cart-summary-area{
        position: relative;
        top: 0;
    }
}

@media(max-width: 768px){

    .cart-page-header h1{
        font-size: 40px;
    }

    .cart-item-card{
        flex-direction: column;
    }

    .cart-item-image{
        width: 100%;
        min-width: 100%;
        height: 260px;
    }

    .cart-item-top h3 a{
        font-size: 24px;
    }
}

@media(max-width: 576px){

    .cart-page-section{
        padding: 50px 0;
    }

    .cart-page-header h1{
        font-size: 32px;
    }

    .cart-item-card{
        padding: 18px;
        border-radius: 22px;
    }

    .cart-item-bottom{
        flex-direction: column;
        align-items: stretch;
    }

    .cart-qty-box{
        width: 100%;
    }

    .cart-qty-box input{
        flex: 1;
    }

    .cart-qty-box button{
        flex: 1;
    }

    .cart-summary-card{
        padding: 22px;
        border-radius: 22px;
    }

    .empty-cart-box{
        padding: 70px 24px;
    }

    .empty-cart-box h2{
        font-size: 30px;
    }
}