


/* =====================================================
   GENERAL
===================================================== */

.cart-page {
    background: #f5f6f8;
    padding: 25px 0 35px;
}

.cart-page .container {
    max-width: 1280px;
}

.cart-heading {
    font-size: 26px;
    font-weight: 700;
    color: #172b4d;
    margin-bottom: 20px;
}

.item-count {
    color: #777f89;
    font-size: 15px;
    font-weight: 500;
}

/* =====================================================
   ADDRESS CARD
===================================================== */

.delivery-address-card {
    background: #ffffff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.delivery-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.delivery-address-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #172b4d;
    font-size: 17px;
    font-weight: 700;
}

.delivery-address-title i {
    color: #103f77;
    font-size: 20px;
}

.change-address-btn {
    border: none;
    background: transparent;
    color: #2874f0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px;
}

.change-address-btn:hover {
    text-decoration: underline;
}

.selected-address {
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 13px;
    background: #ffffff;
}

.address-user-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 7px;
}

.address-user-name {
    color: #202b3a;
    font-size: 14px;
    font-weight: 700;
}

.address-mobile {
    color: #4d5662;
    font-size: 13px;
}

.address-badge {
    background: #f0f4fa;
    color: #4b5b70;
    border-radius: 3px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
}

.address-text {
    color: #4d5662;
    font-size: 13px;
    line-height: 1.7;
}

.address-pincode {
    color: #172b4d;
    font-weight: 700;
}

/* Address Dropdown */

.address-dropdown-wrapper {
    display: none;
    margin-top: 15px;
    border-top: 1px solid #edf0f4;
    padding-top: 15px;
}

.address-dropdown-wrapper.active {
    display: block;
}

.address-dropdown-label {
    display: block;
    color: #26384e;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.address-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5dce5;
    border-radius: 6px;
    background: #ffffff;
    color: #26384e;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.address-select:focus {
    border-color: #2874f0;
}

.no-address-message {
    background: #fff8e5;
    border: 1px solid #f3df9e;
    color: #795600;
    padding: 12px;
    border-radius: 5px;
    font-size: 13px;
}

.add-address-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 10px 15px;
    background: #2874f0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
}

.add-address-btn:hover {
    background: #1557c0;
    color: #ffffff;
}

/* =====================================================
   CART TABLE
===================================================== */

.cart-table-wrapper {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.cart-table thead {
    background: #f8f9fb;
}

.cart-table th {
    padding: 17px 20px;
    color: #202b3a;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.cart-table td {
    padding: 17px 20px;
    border-top: 1px solid #edf0f4;
    vertical-align: middle;
    font-size: 14px;
    color: #262d36;
}

/* Product */

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 245px;
}

.cart-product-image {
    width: 88px;
    height: 88px;
    padding: 6px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e7ebf0;
    border-radius: 7px;
    flex-shrink: 0;
}

.cart-product-details {
    min-width: 0;
}

.cart-product-name {
    color: #0d559e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 5px;
}

.cart-product-description {
    color: #5d6672;
    font-size: 13px;
    line-height: 1.5;
}

.cart-stock {
    color: #159447;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.cart-stock.out-of-stock {
    color: #dc2626;
}

.mobile-product-price {
    display: none;
}

/* Quantity */

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce2e9;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.quantity-control button {
    width: 38px;
    height: 39px;
    border: none;
    background: #ffffff;
    color: #26384e;
    font-size: 18px;
    cursor: pointer;
}

.quantity-control button:hover {
    background: #eef4fa;
}

.quantity-control button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-control input {
    width: 42px;
    height: 39px;
    padding: 0;
    border: none;
    border-left: 1px solid #e2e7ed;
    border-right: 1px solid #e2e7ed;
    outline: none;
    text-align: center;
    color: #202b3a;
    font-size: 14px;
    background: #ffffff;
}

/* Actions */

.cart-actions-cell {
    white-space: nowrap;
}

.remove-item-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f19d96;
    background: #ffffff;
    color: #ef3434;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.remove-item-btn:hover {
    background: #fff0f0;
    color: #c90000;
}

/* =====================================================
   CART ACTION BUTTONS
===================================================== */

.cart-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
}

.continue-shopping-btn,
.clear-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.continue-shopping-btn {
    color: #103f77;
    background: #ffffff;
    border: 1px solid #103f77;
    text-decoration: none;
}

.continue-shopping-btn:hover {
    color: #ffffff;
    background: #103f77;
}

.clear-cart-btn {
    color: #ef4141;
    background: #ffffff;
    border: 1px solid #ef4141;
    cursor: pointer;
}

.clear-cart-btn:hover {
    color: #ffffff;
    background: #ef4141;
}

/* =====================================================
   ORDER SUMMARY
===================================================== */

.order-summary {
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.order-summary-title {
    color: #172b4d;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #313842;
    font-size: 14px;
    margin-bottom: 18px;
}

.summary-row strong {
    font-weight: 500;
    color: #20252c;
}

.summary-divider {
    border: none;
    border-top: 1px solid #e5e9ef;
    margin: 22px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: #172b4d;
    font-size: 22px;
    font-weight: 700;
}

.summary-total span:last-child {
    color: #103f77;
}

.shipping-notice {
    padding: 13px;
    margin: 20px 0;
    border-radius: 6px;
    background: #eaf7e9;
    color: #244f2d;
    font-size: 13px;
    line-height: 1.7;
}

.shipping-notice i {
    color: #2b9147;
    font-size: 17px;
    margin-right: 5px;
}

.checkout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 5px;
    background: #103f77;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.checkout-btn:hover {
    background: #082c56;
    color: #ffffff;
}

.checkout-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.summary-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
}

.summary-feature {
    flex: 1;
    text-align: center;
    color: #3c444e;
    font-size: 11px;
}

.summary-feature i {
    display: block;
    color: #172b4d;
    font-size: 18px;
    margin-bottom: 6px;
}

/* =====================================================
   BENEFITS
===================================================== */

.cart-benefits {
    margin-top: 32px;
    padding: 28px 20px;
    background: #f0f7fe;
    border-radius: 8px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px;
    border-right: 1px solid #d5e1ed;
}

.benefit-item:last-child {
    border-right: none;
}

.benefit-icon {
    color: #103f77;
    font-size: 34px;
    flex-shrink: 0;
}

.benefit-title {
    color: #102f55;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.benefit-description {
    color: #525c68;
    font-size: 13px;
}

/* Empty Cart */

.empty-cart {
    padding: 65px 20px;
    background: #ffffff;
    border: 1px solid #e5e9ef;
    border-radius: 8px;
    text-align: center;
}

.empty-cart i {
    display: block;
    color: #103f77;
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #172b4d;
    font-size: 25px;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #737c87;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Alert */

.cart-alert {
    display: none;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 13px;
}

.cart-alert.success {
    display: block;
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.cart-alert.error {
    display: block;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .cart-page {
        padding-top: 20px;
    }

    .order-summary {
        margin-top: 10px;
    }

    .benefit-item {
        margin-bottom: 25px;
        border-right: none;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .cart-page {
        padding: 6px 0 15px;
        background: #f1f3f6;
    }

    .cart-page .container {
        width: 100%;
        padding-left: 5px;
        padding-right: 5px;
    }

    .cart-heading {
        background: #ffffff;
        border-radius: 3px;
        padding: 11px 9px;
        margin-bottom: 6px;
        font-size: 19px;
    }

    .item-count {
        font-size: 12px;
    }

    .delivery-address-card {
        padding: 12px 10px;
        border-radius: 4px;
        margin-bottom: 6px;
    }

    .delivery-address-header {
        margin-bottom: 10px;
    }

    .delivery-address-title {
        font-size: 14px;
    }

    .change-address-btn {
        font-size: 12px;
    }

    .selected-address {
        padding: 10px;
    }

    .address-user-name {
        font-size: 12px;
    }

    .address-mobile,
    .address-text {
        font-size: 11px;
    }

    .address-dropdown-wrapper {
        margin-top: 10px;
        padding-top: 10px;
    }

    .address-select {
        padding: 10px;
        font-size: 11px;
    }

    .cart-table-wrapper {
        overflow: visible;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .cart-table {
        width: 100%;
        min-width: 0;
        display: block;
        border-collapse: separate;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: block;
        width: 100%;
    }

    .cart-table tr.cart-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 65px;
        grid-template-rows: auto auto;
        width: 100%;
        margin-bottom: 5px;
        padding: 6px;
        background: #ffffff;
        border: 1px solid #dfe5eb;
        border-radius: 3px;
    }

    .cart-table td {
        display: block;
        padding: 0;
        border: none;
        min-width: 0;
        font-size: 11px;
    }

    .cart-table td:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .cart-product {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        min-width: 0;
    }

    .cart-product-image {
        width: 46px;
        height: 46px;
        padding: 2px;
        border-radius: 4px;
    }

    .cart-product-details {
        min-width: 0;
        flex: 1;
    }

    .cart-product-name {
        color: #172b4d;
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cart-product-description {
        font-size: 10px;
        line-height: 1.25;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-product-price {
        display: block;
        color: #172b4d;
        font-size: 12px;
        font-weight: 700;
    }

    .cart-stock {
        display: none;
    }

    .cart-table td:nth-child(2),
    .cart-table td:nth-child(4) {
        display: none;
    }

    .cart-table td:nth-child(3) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1;
        grid-row: 2;
        padding-top: 5px;
    }

    .quantity-control {
        height: 22px;
        border-radius: 2px;
    }

    .quantity-control button {
        width: 21px;
        height: 21px;
        font-size: 13px;
        padding: 0;
    }

    .quantity-control input {
        width: 25px;
        height: 21px;
        font-size: 11px;
    }

    .cart-table td.cart-actions-cell {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 0 0 0 4px;
    }

    .remove-item-btn {
        width: 100%;
        height: 20px;
        padding: 0 1px;
        border-radius: 2px;
        color: #202b3a;
        border: 1px solid #f19d96;
        font-size: 7px;
        line-height: 18px;
    }

    .desktop-delete-icon {
        display: none;
    }

    .mobile-delete-text {
        display: inline;
    }

    .cart-action-buttons {
        display: flex;
        flex-direction: row;
        gap: 5px;
        margin: 7px 0;
    }

    .continue-shopping-btn,
    .clear-cart-btn {
        width: 50%;
        padding: 9px 3px;
        font-size: 10px;
        border-radius: 3px;
    }

    .order-summary {
        margin-top: 6px;
        padding: 16px 10px;
        border: none;
        border-radius: 3px;
        box-shadow: none;
    }

    .order-summary-title {
        font-size: 19px;
        margin-bottom: 18px;
    }

    .summary-row {
        font-size: 12px;
        margin-bottom: 13px;
    }

    .summary-total {
        font-size: 19px;
    }

    .shipping-notice {
        padding: 10px;
        margin: 15px 0;
        font-size: 11px;
    }

    .checkout-btn {
        padding: 13px 8px;
        font-size: 13px;
        border-radius: 3px;
    }

    .summary-features {
        gap: 4px;
        margin-top: 20px;
    }

    .summary-feature {
        font-size: 8px;
    }

    .summary-feature i {
        font-size: 16px;
    }

    .cart-benefits {
        padding: 15px 10px;
        margin-top: 8px;
        border-radius: 3px;
    }

    .benefit-item {
        padding: 12px 0;
        margin: 0;
        border-right: none;
        border-bottom: 1px solid #d5e1ed;
    }

    .benefit-item:last-child {
        border-bottom: none;
    }

    .benefit-icon {
        font-size: 28px;
    }

    .benefit-title {
        font-size: 13px;
    }

    .benefit-description {
        font-size: 12px;
    }

    .empty-cart {
        padding: 45px 15px;
        border-radius: 3px;
    }

    .empty-cart i {
        font-size: 50px;
    }

    .empty-cart h3 {
        font-size: 21px;
    }
}

@media (min-width: 768px) {
    .mobile-delete-text {
        display: none;
    }
}

