/* ==========================================================================
   Cart Page Redesign (V3)
   ========================================================================== */

/* ---- Breadcrumb ---- */
.co-breadcrumb {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 20px;
    font-size: 0.9rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.co-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.co-breadcrumb a:hover {
    color: #111;
}

.co-breadcrumb .co-sep {
    color: #999;
    margin: 0 8px;
    font-size: 0.7rem;
}

.co-breadcrumb .co-current {
    color: #111;
    font-weight: 500;
}

/* ========================================================================= */
/* CART PAGE REDESIGN                                                        */
/* ========================================================================= */

.cart-page-redesign {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.cart-promo-input-group,
.cart-promo-input,
.cart-promo-btn {
    box-sizing: border-box !important;
}

/* Cart Table Header */
.cart-table-wrapper {
    border-bottom: 1px solid #e0e0e0;
}
.cart-table-header {
    display: grid;
    grid-template-columns: 1fr 280px 150px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e0e0e0;
}
.cart-table-header .cart-col-product,
.cart-table-header .cart-col-quantity,
.cart-table-header .cart-col-total {
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.cart-table-header .cart-col-quantity {
    text-align: center;
}
.cart-table-header .cart-col-total {
    text-align: right;
}

/* Cart Row */
.cart-row-v3 {
    display: grid;
    grid-template-columns: 1fr 280px 150px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-row-v3:last-child {
    border-bottom: none;
}

/* Product Info */
.cart-product-info-v3 {
    display: flex;
    align-items: center;
    gap: 20px;
}
.cart-product-img-v3 {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #eee;
    background: #f9f9f9;
    flex-shrink: 0;
}
.cart-product-details-v3 {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cart-product-category {
    font-size: 0.8rem;
    color: #555;
}
.cart-product-name-v3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
}
.cart-product-name-v3:hover {
    text-decoration: underline;
}
.cart-product-variant {
    font-size: 0.8rem;
    color: #555;
}

/* Quantity Column */
.cart-col-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.cart-qty-control-v3 {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    height: 40px;
}
.cart-qty-btn-v3 {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    font-size: 1.1rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-qty-btn-v3:hover {
    background: #f5f5f5;
}
.cart-qty-input-v3 {
    width: 40px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    background: #fff;
}
.cart-remove-btn-v3 {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 1.1rem;
    padding: 8px;
    transition: color 0.2s;
}
.cart-remove-btn-v3:hover {
    color: #111;
}

/* Total Column */
.cart-col-total {
    text-align: right;
}
.cart-item-total-v3 {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
}

/* ---- Cart Footer Grid ---- */
.cart-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.cart-footer-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
    margin-bottom: 12px;
}
.cart-footer-label i {
    margin-left: 5px;
    color: #999;
}

/* Order Notes */
.cart-notes-textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    resize: vertical;
    min-height: 130px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.cart-notes-textarea:focus {
    outline: none;
    border-color: #111;
}

/* Estimate Shipping */
.cart-shipping-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #555;
    background: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.cart-shipping-zip {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: #333;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.cart-shipping-zip:focus,
.cart-shipping-select:focus {
    outline: none;
    border-color: #111;
}
.cart-shipping-calc-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.2s;
}
.cart-shipping-calc-btn:hover {
    background: #333;
}

/* Subtotal & Checkout */
.cart-footer-summary {
    text-align: right;
}
.cart-subtotal-row {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 6px;
}
.cart-subtotal-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}
.cart-subtotal-amount {
    font-size: 1.15rem;
    font-weight: 500;
    color: #111;
}
.cart-tax-note {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 20px 0;
}
.cart-checkout-btn-v3 {
    display: inline-block;
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s;
}
.cart-checkout-btn-v3:hover {
    background: #333;
    color: #fff;
}

/* Cart Page Responsive */
@media (max-width: 991px) {
    .cart-page-redesign {
        padding: 0 10px 60px 10px !important;
        box-sizing: border-box !important;
    }
    .cart-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cart-footer-summary {
        text-align: left;
    }
    .cart-subtotal-row {
        justify-content: space-between;
    }
}
@media (max-width: 767px) {
    .cart-page-redesign {
        padding: 0 10px 40px 10px !important;
        box-sizing: border-box !important;
    }
    .cart-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 480px;
        contain: layout;
    }
    .cart-table-header {
        display: none;
    }
    .cart-row-v3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 20px 0;
    }
    .cart-col-product {
        flex: 1;
        min-width: 0;
    }
    .cart-product-info-v3 {
        gap: 12px;
    }
    .cart-product-name-v3 {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .cart-product-price-mob {
        display: block !important;
        margin-top: 5px;
    }
    .cart-col-quantity {
        justify-content: flex-end;
        align-items: flex-end;
        flex-direction: column;
        gap: 12px;
        flex: 0 0 auto;
    }
    .cart-qty-control-v3 {
        height: 35px;
    }
    .cart-qty-btn-v3, .cart-qty-input-v3 {
        height: 35px;
        width: 35px;
    }
    .cart-promo-input {
        width: auto !important;
        min-width: 0 !important;
    }
    .cart-col-total {
        display: none !important;
    }
    .cart-product-img-v3 {
        width: 70px;
        height: 70px;
    }
    .cart-checkout-btn-v3 {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 20px;
        border-radius: 30px;
    }
    .cart-shipping-calc-btn {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    
    .co-breadcrumb {
        padding: 0 10px;
        margin-top: 15px;
        font-size: 0.85rem;
    }
}