/*================================================================================
  Cart Redesign CSS (Premium 2-Column E-commerce Layout)
================================================================================*/

.cart-redesign-section {
    position: relative;
    padding-top: 50px;
    padding-bottom: 100px;
    background-color: #F5F5F7;
    font-family: 'Jost', sans-serif;
}

.cart-redesign-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Empty State */
.empty-cart-state {
    padding: 80px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.empty-cart-state h3 {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Layout Grid */
.cart-layout-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    align-items: flex-start;
}

.cart-left-col {
    width: 66.6666%;
    padding: 0 15px;
}

.cart-right-col {
    width: 33.3333%;
    padding: 0 15px;
    position: sticky;
    top: 100px;
}

/* Cart Header */
.cart-header-title {
    margin-bottom: 25px;
}
.cart-header-title h2 {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
}
.cart-header-title h2 span {
    color: #777;
    font-size: 18px;
    font-weight: 400;
}

/* Cart Item Card */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-card {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    align-items: center;
}

.cart-item-image {
    width: 90px;
    height: 120px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-brand {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.cart-item-name {
    margin: 0 0 5px 0;
}
.cart-item-name a {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    transition: all 0.3s ease;
}
.cart-item-name a:hover {
    color: #3D745F;
}

.cart-item-variant,
.cart-item-ref {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 2px;
}

.cart-item-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.action-btn:hover {
    color: #1a1a1a;
}
.action-btn.delete-btn:hover {
    color: #e74c3c;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    transition: background 0.3s;
}
.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 40px;
    height: 30px;
    border: none;
    background: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 0;
}

/* Right Column Summary */
.cart-summary-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.summary-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.checkout-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.checkout-progress .step {
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.checkout-progress .step span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.checkout-progress .step.active {
    color: #1a1a1a;
}
.checkout-progress .step.active span {
    background: #1a1a1a;
    color: #fff;
}

.promo-code-toggle {
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}
.promo-code-toggle:hover {
    text-decoration: underline;
}

.summary-totals {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}
.summary-row.text-success {
    color: #3D745F;
}

.summary-row.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-weight: 600;
    color: #1a1a1a;
    align-items: flex-end;
}
.summary-row.total-row small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}
.total-price {
    font-size: 22px;
}

/* Partial styles */
.cost-box li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.cost-box li h4 {
    font-size: 15px;
    color: #555;
    font-weight: 400;
}
.cost-box li h4 span {
    font-size: 15px;
    color: #555;
}
.total-box {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.total-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.total-box h4#checkout-total-price {
    font-size: 22px;
}

.promo-countdown-box {
    background: #FFF0F9;
    border: 1px solid #FFD6F0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.promo-countdown-box h4 {
    color: #E84393;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}
.promo-countdown-box p {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
.time-block {
    background: #fff;
    border-radius: 4px;
    padding: 5px;
    min-width: 45px;
    font-size: 10px;
    color: #777;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.time-block span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #E84393;
    margin-bottom: 2px;
}
.discover-btn {
    display: inline-block;
    background: #E84393;
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
}
.discover-btn:hover {
    background: #d63080;
    color: #fff;
}

.checkout-cta-btn {
    display: block;
    width: 100%;
    background: #3D745F;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.checkout-cta-btn:hover {
    background: #2c5646;
    color: #fff;
}

/* Newsletter Mini */
.newsletter-mini-card {
    background: url('/assets/images/resource/newsletter-bg.jpg') center/cover;
    background-color: #fcebd7; /* fallback */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.newsletter-mini-card h5 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}
.newsletter-mini-card p {
    font-size: 14px;
    margin-bottom: 15px;
}
.join-btn {
    display: inline-block;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.join-btn:hover {
    background: #3D745F;
    color: #fff;
}

/* Picks of the week */
.picks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.picks-header h3 {
    font-size: 22px;
    font-weight: 500;
}
.picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pick-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.pick-img {
    width: 80px;
    height: 100px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pick-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pick-info {
    flex: 1;
}
.pick-brand {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}
.pick-info h5 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}
.pick-info h5 a {
    color: #1a1a1a;
}
.pick-price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}
.preview-btn {
    display: inline-block;
    border: 1px solid #3D745F;
    color: #3D745F;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}
.preview-btn:hover {
    background: #3D745F;
    color: #fff;
}

/* Service Benefits */
.service-benefits-strip {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    justify-content: space-between;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.benefit-item i {
    font-size: 30px;
    color: #3D745F;
}
.benefit-item h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}
.benefit-item p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* ==========================================================================
   Checkout Billing Card & Form Styles
   ========================================================================== */

.checkout-billing-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.billing-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
}

.checkout-form-group {
    margin-bottom: 20px;
}

.checkout-form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.checkout-form-group label span {
    color: #e74c3c;
}

.checkout-form-group input,
.checkout-form-group select {
    width: 100%;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: all 0.3s ease;
}

.checkout-form-group input:focus,
.checkout-form-group select:focus {
    border-color: #3D745F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 116, 95, 0.1);
}

.error-text {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Checkout Order Product Partial Styling */
.single-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0f0f0;
}

.single-item .product-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.single-item .image-box {
    width: 60px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.single-item .image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.single-item h6 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.single-item h6 a {
    color: #1a1a1a;
}

.product-right-box {
    text-align: right;
}

.product-right-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.checkout-item-remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}
.checkout-item-remove-btn:hover {
    color: #e74c3c;
}

/* Coupon Box */
.coupon-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.coupon-box .form-group {
    display: flex;
    gap: 10px;
    margin: 0;
}
.coupon-box input {
    flex: 1;
    height: 42px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 13px;
}
.coupon-box button {
    height: 42px;
    padding: 0 20px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}
.coupon-box button:hover {
    background: #3D745F;
}

.applied-coupon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eafff5;
    border: 1px solid #b7ecd0;
    padding: 10px 15px;
    border-radius: 6px;
}
.applied-coupon span {
    font-size: 13px;
    color: #3D745F;
    font-weight: 500;
}
.applied-coupon button {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}


/* Responsive */
@media (max-width: 1024px) {
    .picks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cart-left-col,
    .cart-right-col {
        width: 100%;
        padding: 0;
    }
    
    .cart-right-col {
        margin-top: 40px;
        position: static;
    }
    
    .picks-grid {
        grid-template-columns: 1fr;
    }
    
    .service-benefits-strip {
        flex-wrap: wrap;
        gap: 20px;
    }
    .benefit-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 575px) {
    .cart-item-card, .checkout-billing-card {
        padding: 15px;
    }
    .cart-item-image {
        width: 70px;
        height: 90px;
        margin-right: 15px;
    }
    .cart-item-details {
        height: auto;
        gap: 10px;
    }
    .benefit-item {
        width: 100%;
    }
    .checkout-progress .step {
        font-size: 10px;
    }
    .checkout-progress .step span {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .coupon-box .form-group {
        flex-direction: column;
    }
    .coupon-box button {
        width: 100%;
    }
}
