/*checkout page*/

.mobile-cart-only {
    display: none;
}

.mobile-cart-wrap {
    padding: 0 15px 10px;
    background: #fff;
}

.mobile-cart-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #ececec;
}

.mobile-cart-card:last-child {
    border-bottom: none;
}

.mobile-cart-image {
    width: 95px;
    min-width: 95px;
}

.mobile-cart-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #f1f1f1;
    border-radius: 2px;
}

.mobile-cart-details {
    flex: 1;
    min-width: 0;
}

.mobile-cart-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.mobile-cart-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: #222;
    word-break: break-word;
}

.mobile-cart-remove a {
    color: #555;
    font-size: 20px;
    text-decoration: none;
}

.mobile-cart-order-type {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.mobile-cart-note {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.mobile-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-cart-row:last-child {
    margin-bottom: 0;
}

.mobile-cart-label {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.mobile-cart-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    line-height: 1.3;
}

.new-price {
    font-size: 14px;
    font-weight: 700;
    color: #1f3f93;
    line-height: 1.4;
}

.discount-badge {
    font-size: 11px;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.mobile-qty-row {
    align-items: center;
}

.mobile-qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    padding: 0;
}

.mobile-qty-input {
    width: 52px;
    height: 36px;
    border: 1px solid #e5e5e5;
    background: #fff;
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 0 4px;
}

@media (max-width: 767px) {
    .desktop-cart-table,
    .table-responsive-xl {
        display: none !important;
    }

    .mobile-cart-only {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-cart-only {
        display: none !important;
    }
}

/*review page*/

    #delivery-delay-popup {
        display: none;
        font-size: 16px;
        /*color: #f20976;*/
        color: #fff;
        font-weight: 600;
        position: absolute;
        right: 45%;
        top: 64%;
        width: 400px;
        min-height: 210px;
        background-color: rgba(43, 51, 64, 0.85);
        text-align: center;
        z-index: 10;
        line-height: 30px;
        border-radius: 2px;
    }

    .popout {
        animation: popout 1s ease-in;
        -webkit-animation: popout 1s ease-in;
    }
    @keyframes popout {
        from{
            transform:scale(0)
        }
        70%{
            transform:scale(1.2)
        }
        to{
            transform:scale(1)
        }
    }
    @-webkit-keyframes popout {
        from{
            -webkit-transform:scale(0)
        }
        70%{
            -webkit-transform:scale(1.2)
        }
        to{
            -webkit-transform:scale(1)
        }
    }
    .specialSmallText{
        visibility: hidden;
    }

    @media screen and (max-width: 600px){
        #delivery-delay-popup{
            visibility: hidden;
        }
    }
    @media screen and (max-width: 600px){
        .specialSmallText{
            visibility: visible;
        }
    }

    /*delivery delay post*/

    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .popup-content {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        width: 90%;
        max-width: 450px;
        animation: fadeIn 0.3s ease-in-out;
    }

    .popup-content img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        margin-bottom: 15px;
    }

    .popup-content button {
        width: 100%;
        padding: 10px 20px;
        border: none;
        background-color: #007BFF;
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

    .popup-content button:hover {
        background-color: #0056b3;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Responsive Design */
    @media (max-width: 600px) {
        .popup-content {
            padding: 15px;
        }

        .popup-content button {
            font-size: 14px;
            padding: 8px 16px;
        }
    }

/*items list*/

.orderline-summary-wrap {
        width: 100%;
    }

    .orderline-summary-wrap .summary-title {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .orderline-summary-wrap .table-responsive {
        border: 0;
    }

    .orderline-summary-wrap .cart-tabl {
        width: 100%;
    }

    .orderline-summary-wrap .cart-tabl .td-img img {
        width: 70px;
        height: 90px;
        object-fit: cover;
    }

    .orderline-summary-wrap .cart-tabl .td-name {
        white-space: normal;
    }

    .mobile-cart-wrap {
        padding: 0 15px 10px;
        background: #fff;
    }

    .mobile-cart-card {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 0;
        border-bottom: 1px solid #ececec;
    }

    .mobile-cart-card:last-child {
        border-bottom: none;
    }

    .mobile-cart-image {
        width: 95px;
        min-width: 95px;
    }

    .mobile-cart-image img {
        width: 92%;
        height: auto;
        display: block;
        border: 1px solid #f1f1f1;
        border-radius: 2px;
    }

    .mobile-cart-details {
        flex: 1;
        min-width: 0;
    }

    .mobile-cart-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    .mobile-cart-title {
        font-size: 12px;
        line-height: 1.4;
        font-weight: 600;
        color: #222;
        word-break: break-word;
        padding-top: 2px;
    }

    .mobile-cart-remove a {
        color: #555;
        font-size: 22px;
        line-height: 1;
        text-decoration: none;
    }

    .mobile-cart-remove a:hover,
    .mobile-cart-remove a:focus {
        color: #333;
        text-decoration: none;
    }

    .mobile-cart-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .mobile-cart-row:last-child {
        margin-bottom: 0;
    }

    .mobile-cart-label {
        font-size: 13px;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        letter-spacing: .2px;
        margin: 0;
        white-space: nowrap;
    }

    .mobile-cart-value {
        font-size: 14px;
        font-weight: 600;
        color: #1f3f93;
        text-align: right;
    }

    /*.mobile-cart-price small,*/
    /*.mobile-cart-subtotal small {*/
    /*    display: block;*/
    /*    color: #8a8a8a;*/
    /*    font-size: 12px;*/
    /*    font-weight: 400;*/
    /*    line-height: 1.4;*/
    /*}*/

    .mobile-qty-box {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-qty-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #e5e5e5;
        border-radius: 50%;
        background: #fff;
        color: #333;
        font-size: 22px;
        line-height: 30px;
        text-align: center;
        padding: 0;
        outline: none;
        box-shadow: none;
    }

    .mobile-qty-btn:hover,
    .mobile-qty-btn:focus {
        background: #f8f8f8;
    }

    .mobile-qty-input {
        width: 56px;
        height: 42px;
        border: 1px solid #e5e5e5;
        background: #fff;
        text-align: center;
        font-size: 18px;
        color: #666;
        padding: 0 6px;
    }
    
    /*--------------------------------*/
    
    .mobile-cart-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 12px;
    font-weight: 700;
    color: #1f3f93;
}

.discount-badge {
    font-size: 11px;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
}

    @media (max-width: 767px) {
        .orderline-summary-wrap .desktop-cart-table {
            display: none !important;
        }
    }

    @media (min-width: 768px) {
        .orderline-summary-wrap .mobile-cart-wrap {
            display: none !important;
        }
    }
    
    /*Home page*/
    
    .product-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 460px;
}


.product-detail {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* DO NOT force price layout */
.product-detail .sold {
    margin: 0;
}
/* If old/new prices are in separate tags, this helps stack them neatly */
.product-detail .sold .price {
    display: block;
    width: 100%;
}

/* Keep stock spacing stable (optional but helpful) */
.product-rating {
    min-height: 25px;
}


.add-to-cart-box {
    margin-top: auto;
}

.add-to-cart-box a {
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 767px) {
    
    .product-box {
        min-height: 320px;
    }
    
    .product-detail .sold {
        min-height: 55px;
    }

    .product-rating {
        min-height: 20px;
    }
}

/*special_category page*/

/* Even product card details */
/*.product-box-3 {*/
/*    height: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

/*.product-header {*/
/*    height: 230px;*/
/*    display: flex;*/
/*    align-items: flex-start;*/
/*    justify-content: center;*/
/*}*/

/*.product-image {*/
/*    text-align: center;*/
/*}*/

/*.product-image img {*/
/*    width: 140px;*/
/*    height: 220px;*/
/*    object-fit: contain;*/
/*}*/

/*.product-footer {*/
/*    flex: 1;*/
/*    display: flex;*/
/*}*/

/*.product-detail {*/
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    text-align: center;*/
/*}*/

/*.product-detail .name {*/
/*    min-height: 48px;*/
/*    line-height: 24px;*/
/*    margin-bottom: 8px;*/
/*    margin-top: 20px;*/
/*}*/

/*.product-detail .product-content {*/
/*    min-height: 42px;*/
/*    line-height: 21px;*/
/*    margin-bottom: 8px !important;*/
/*}*/

/*.product-rating {*/
/*    display: none;*/
/*}*/

/*.product-detail .price {*/
/*    min-height: 45px;*/
/*    margin-top: auto;*/
/*    margin-bottom: 10px;*/
/*}*/

/*.add-to-cart-box {*/
/*    margin-top: 0;*/
/*}*/

/*.add-to-cart-box .btn-sub {*/
/*    min-height: 38px;*/
/*    display: flex !important;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*@media (max-width: 767px) {*/
/*    .product-header {*/
/*        height: 185px;*/
/*    }*/

/*    .product-image img {*/
/*        width: 115px !important;*/
/*        height: 175px !important;*/
/*        object-fit: contain;*/
/*    }*/

/*    .product-detail .name {*/
/*        min-height: 52px;*/
/*        font-size: 14px;*/
/*        line-height: 20px;*/
/*    }*/

/*    .product-detail .product-content {*/
/*        min-height: 44px;*/
/*        font-size: 13px;*/
/*        line-height: 20px;*/
/*    }*/

/*    .product-detail .price {*/
/*        min-height: 45px;*/
/*    }*/

/*    .add-to-cart-box .btn-sub {*/
/*        min-height: 38px;*/
/*    }*/
/*}*/


