/**
 * Custom Cart Page Styles
 *
 * @package Genesis_Block_Theme_Child
 */

/* Cart Container */
/* Hide entry header on cart page */
body.woocommerce-cart #content {
    background: var(--brand-colors-background-section-colors-off-white, #F7F7F7);
    min-height: calc(100vh - 640px);
}
.woocommerce-cart .entry-header {
    display: none !important;
}
.woocommerce-cart div[data-block-name="woocommerce/classic-shortcode"] {
    width:100%;
    margin:unset;
}
#primary{
    max-width:100%;
    width:100%;
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.cart-title {
    color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);
    text-align: center;
    
    /* Desktop Typography/H2 */
  
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%; /* 60px */
}

/* Cart Tabs */
.cart-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    background: white;
    
    padding: 4px;
    
    max-width: fit-content;
    margin: 0 auto;
}

.cart-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    
    cursor: pointer;
    transition: all 0.3s ease;
    
    font-weight: 500;
}
.cart-tab span{
    color: #888;
}
.cart-tab.active {
    background: var(--Brand-Colors-Primary-Colors-Clay-tint, #FDEBEB);
    color: white;
}

.cart-tab svg {
    width: 16px;
    height: 16px;
}
.cart-tab.active span{
    color:#ED2224;
}
/* Empty Cart */
.empty-cart-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-cart-icon {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.empty-cart-message h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart-message p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Cart Items Section */
.cart-items-section {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.cart-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Cart Item Cards */
.cart-item-card {
    background: white;
    border-radius: 0;
    
    padding: 32px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

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

.cart-item-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.cart-item-remove {
    background: #000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding:0;
    top: -15px;
    left: -15px;
    position: absolute;
    z-index: 1;
}

body .custom-cart-container .cart-item-price, .cart-item-quantity, .cart-item-subtotal{
    justify-content: space-between;
}

body .custom-cart-container .price-label, .qty-label, .subtotal-label{
    font-size: 14px!important;
    color: var(--Brand-Colors-Text-Colors-Warm-Grey, #888);
    text-align: right;

    /* Desktop Typography/Button Text */


    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 19.2px */
}

.cart-item-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #e9ecef;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);

    /* Desktop Typography/Body Large */
 
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 27px */
}

.cart-item-name a {
    color: #2c3e50;
    text-decoration: none;
}

.cart-item-name a:hover {
    color: #dc3545;
}

.cart-item-attributes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-attribute {
    color: var(--Brand-Colors-Text-Colors-Warm-Grey, #888);

    /* Desktop Typography/Numbers */
  
    font-size: 16px;
    font-style: normal;
    font-weight: 325;
    line-height: 125%; /* 20px */
}

.attribute-label {
    color: #6c757d;
    font-weight: 500;
}

.attribute-value {
    color: #888;
}

.cart-item-right {
    display: flex;

    column-gap:32px;
    min-width: 400px;
    justify-content: end;
}

.cart-item-price,
.cart-item-quantity,
.cart-item-subtotal,
.cart-item-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 22px;
}

.cart-item-promo {
    align-items: center;
}
.price-label,
.qty-label,
.subtotal-label,
.promo-label {
    color: var(--Brand-Colors-Text-Colors-Warm-Grey, #888);
    text-align: right;
    
    /* Desktop Typography/Button Text */

    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 19.2px */
}

body .custom-cart-container .price-label {
    text-align: center;
    width: 100%;        
}
.price-amount,
.subtotal-amount {
    color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);
    text-align: right;
    
    /* Desktop Typography/Numbers */
 
    font-size: 16px;
    font-style: normal;
    font-weight: 325;
    line-height: 125%; /* 20px */
}
.promo-text {
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-text .promo-code {
    position: relative;
    background-color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 125%; /* 20px */
}
.promo-text .promo-code::before,
.promo-text .promo-code::after {
    content: '';
    position: absolute;
    top: calc(50% - 8px); /* Position near the middle vertical axis */
    width: 16px;
    height: 16px;
    border-radius: 50%; /* Make them perfect circles */
    z-index: 2;
    /* Match the body/page background color so they appear as "cutouts" */
    background-color: white; /* Use your page's background color */
}
.promo-text .promo-code::before {
    left: -10px;
}
.promo-text .promo-code::after {
    right: -10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    /* border: 1px solid #ced4da; */
    border-radius: 0;
    overflow: hidden;
}

.quantity-controls .quantity {
    display: flex;
    align-items: center;
    margin: 0;
}
.qty-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-around;
    width: 100%;
}
.cart-item-quantity input[type="number"],
.cart-item-quantity select {
    border-radius: 0 !important;
    background: none;
    background-color: var(--brand-colors-background-section-colors-off-white, #F7F7F7);
    font-size: 16px;
    font-weight: 325;
    line-height: 125%; 
    text-align: center;
    border: 0 none;
    width: 55px;
    padding: 4px 2px 4px 10px;
    height: 40px;
}

.quantity-controls .quantity .qty {
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
}

.quantity-controls .quantity .minus,
.quantity-controls .quantity .plus {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-controls .quantity .minus:hover,
.quantity-controls .quantity .plus:hover {
    background: #e9ecef;
    color: #2c3e50;
}

/* Cart Table */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.woocommerce-cart-form__contents thead th {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce-cart-form__contents tbody td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.woocommerce-cart-form__contents tbody tr:hover {
    background-color: #f8f9fa;
}

/* Product Remove */
.product-remove {
    width: 50px;
    text-align: center;
}

.product-remove .remove {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-remove .remove:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Product Thumbnail */
.product-thumbnail {
    width: 100px;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0;
    border: 1px solid #e9ecef;
}

/* Product Name */
.product-name {
    font-weight: 600;
    color: #2c3e50;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
}

.product-name a:hover {
    color: #007bff;
}

/* Product Price */
.product-price {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
}

/* Product Quantity */
.product-quantity {
    width: 150px;
}

.product-quantity .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0;
    overflow: hidden;
}

/* Product Subtotal */
.product-subtotal {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Cart Actions */
.cart-actions {
    background: transparent;
    border: none;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.actions {
    padding: 2rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.coupon {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.coupon input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0;
    font-size: 1rem;
}

.actions button[name="update_cart"] {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.actions button[name="update_cart"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.actions button[name="update_cart"].loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 2rem;
}

/* Order Summary Card */
.order-summary-card {
    background: white;
    border-radius: 0;
    
    padding: 32px;
    margin-bottom: 2rem;
}

.order-summary-title {
    color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);

    /* Desktop Typography/H4 */
 
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%; /* 31.2px */
}

.order-summary-content {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #EAEAEA;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
}
.summary-row.total-row .summary-label{
    color: var(--Brand-Colors-Text-Colors-Charcoal, #37373E);

font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 150%; /* 30px */
}
.summary-label {
    color: #6c757d;
    font-weight: 500;
}

.summary-amount {
    color: #2c3e50;
    font-weight: 600;
}

.total-row .summary-amount {
    font-size: 20px;
    font-weight: 600;
    line-height: 150%; 
}

.checkout-button-wrapper {
    margin-top: 0;
}
.checkout-button-wrapper .checkout-button {
    width: 100%;
}
/*.return-to-shop-button,
.update-cart-button,
.checkout-button {
    border-radius: 0;
    display: block;
    width: 100%;
    background: var(--Brand-Colors-Primary-Colors-Red-Clay, #ED2224);
   
    padding: 1rem 2rem;
    border: none;

    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;

    color: var(--Brand-Colors-Text-Colors-White, #FFF);
  
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; 
}
.return-to-shop-button:hover,
.update-cart-button:hover,
.checkout-button:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}
*/
.cart-collaterals {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Cart Totals */
.custom-cart-totals .totals-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.custom-cart-totals .totals-content > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.custom-cart-totals .order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    border-top: 2px solid #e9ecef;
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
}

.checkout-button {
    margin-top: 2rem;
}

.checkout-button .button {
    width: 100%;
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.checkout-button .button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Sidebar Widgets */
.sidebar-widgets > div {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widgets h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.sidebar-widgets p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-icon {
    color: #28a745;
    flex-shrink: 0;
}

.support-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.support-link:hover {
    text-decoration: underline;
}

/* Cart Item Card Hover Effects */
.cart-item-card.hovered {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}


/* Responsive Design */
@media (max-width: 991.98px) {
    .cart-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .cart-item-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item-right {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .custom-cart-container {
        padding: 1rem 0;
    }
    
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-tabs {
        max-width: 100%;
        margin: 0 1rem;
    }
    .cart-items-wrapper {
        gap: 16px;
    }
    .cart-item-card {
        padding: 1rem;
    }
    
    .cart-item-left {
        align-items: top;
        text-align: center;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-right {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0.5rem;
        min-width: fit-content;
    }
    .cart-item-details {
        text-align: left;
    }
    .cart-item-name {
        margin-bottom: 8px;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f8f9fa;
    }
    .cart-item-quantity {
        flex-direction: column;
        order: 0;
    }
    .cart-item-quantity input[type="number"], .cart-item-quantity select {
        width: calc(50% - 16px);
    }
    .cart-item-price {
        order: 1;
    }
    body .custom-cart-container .price-label {
        text-align: left;
        width: auto;        
    }
    .cart-item-subtotal {
        order: 2;
    }
    .quantity-controls {
        width: 100%;
    }
    .quantity-controls .wc-midland-quantity-inputs {
        justify-content: space-around;
        width: 100%;
        display: flex;
    }
    
    .cart-item-price:last-child,
    .cart-item-quantity:last-child,
    .cart-item-subtotal:last-child {
        border-bottom: none;
    }
    
    .coupon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-actions {
        text-align: center;
    }
    .order-summary-card {
        padding: 16px;
    }
    .order-summary-title {
        font-size: 20px;
        margin-bottom: 0;
    }
    .summary-row,
    .cart-discount {
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .summary-label,
    .summary-amount {
        font-size: 14px;
        line-height: 100%;
    }
    .summary-row.total-row .summary-label,
    .summary-row.total-row .summary-amount {
        font-size: 16px;
    }
    .cart-actions {
        flex-direction: column;
        align-items: center;
    }
    .cart-actions .coupon {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        order: 1;
        width: 100%;
    }
    .update-cart-button-wrapper,
    .cart-actions button[name="update_cart"] {
        width: 100%;
    }

}

/* Mobile Layout */
@media (max-width: 767.98px) {
    .woocommerce-cart-form__contents.mobile-layout {
        display: block;
    }
    
    .woocommerce-cart-form__contents.mobile-layout thead {
        display: none;
    }
    
    .woocommerce-cart-form__contents.mobile-layout tbody tr {
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 0;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
    }
    
    .woocommerce-cart-form__contents.mobile-layout tbody td {
        display: block;
        border: none;
        padding: 0.5rem 0;
    }
    
    .woocommerce-cart-form__contents.mobile-layout .product-remove {
        text-align: right;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .woocommerce-cart-form__contents.mobile-layout .product-thumbnail {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .woocommerce-cart-form__contents.mobile-layout .product-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .woocommerce-cart-form__contents.mobile-layout .product-price,
    .woocommerce-cart-form__contents.mobile-layout .product-subtotal {
        display: inline-block;
        margin-right: 1rem;
    }
    
    .woocommerce-cart-form__contents.mobile-layout .product-quantity {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Animation */
.woocommerce-cart-form__cart-item {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

