/**
 * MinandoVoy Cart Redesign - Pixel Perfect
 * Based on Figma Design
 */

/* Variables - Based on Tailwind Reference */
:root {
    --mv-blue-dark: #0a1045;
    --mv-button-blue: #5d85a6;
    --mv-button-blue-hover: #4a7291;
    --mv-blue-50: #e8f4fc;
    --mv-blue-100: #d1e9f9;
    --mv-orange: #ff9800;
    --mv-orange-hover: #e68900;
    --mv-green: #00A651;
    --mv-gray-bg: #f4f7f6;
    --mv-gray-border: #e5e5e5;
    --mv-text-dark: #0a1045;
    --mv-text-gray: #4b5563;
    --mv-text-light: #999999;
}

/* ===== CART PAGE CONTAINER ===== */
.woocommerce-cart .woocommerce-cart-form__contents {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== CART TABS ===== */
.mv-cart-tabs {
    display: flex;
    margin-bottom: 30px;
    gap: 0;
    border-bottom: none;
}

.mv-cart-tabs .mv-tab {
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border: none;
    background: #f3f4f6;
    cursor: default;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
    margin-right: 2px;
}

.mv-cart-tabs .mv-tab.active {
    background: var(--mv-blue-dark) !important;
    color: #fff !important;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
}

/* ===== TWO COLUMN LAYOUT ===== */
.woocommerce-cart .cart-content {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .woocommerce-cart .cart-content {
        grid-template-columns: 1fr !important;
    }
}

/* ===== PRODUCTS LIST ===== */
.woocommerce-cart .products-list {
    background: #fff;
}

.woocommerce-cart .woocommerce-cart-form__cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart .woocommerce-cart-form__cart-item:first-of-type {
    padding-top: 10px;
}

.woocommerce-cart .woocommerce-cart-form__cart-item:last-of-type {
    border-bottom: 1px solid #e5e7eb;
}

/* Product Thumbnail */
.woocommerce-cart .product-thumbnail {
    flex-shrink: 0;
    width: 130px;
    height: auto;
    min-height: 80px;
}

.woocommerce-cart .product-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Product Name & Price */
.woocommerce-cart .product-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.woocommerce-cart .product-name a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--mv-blue-dark) !important;
    text-decoration: none !important;
    line-height: 1.3;
}

.woocommerce-cart .product-name a:hover {
    color: #1a1a6e !important;
    text-decoration: none !important;
}

.woocommerce-cart .product-name .product-price {
    display: block;
}

.woocommerce-cart .product-name .product-price .woocommerce-Price-amount,
.woocommerce-cart .product-name .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--mv-orange) !important;
    background: none !important;
    background-color: transparent !important;
}

.woocommerce-cart .product-name .woocommerce-Price-currencySymbol {
    color: var(--mv-orange) !important;
    background: none !important;
    background-color: transparent !important;
}

.woocommerce-cart .product-name .product-price,
.woocommerce-cart .product-name .product-price bdi {
    background: none !important;
    background-color: transparent !important;
}

/* Product Remove - Trash Icon */
.woocommerce-cart .product-remove {
    flex-shrink: 0;
    order: 2;
    margin-right: 15px;
}

.woocommerce-cart .product-remove .remove,
.woocommerce-cart .product-remove a.remove {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    text-decoration: none !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 20px 20px !important;
    background-color: transparent !important;
}

.woocommerce-cart .product-remove .remove::before,
.woocommerce-cart .product-remove .remove::after,
.woocommerce-cart .product-remove a.remove::before,
.woocommerce-cart .product-remove a.remove::after {
    content: none !important;
    display: none !important;
}

.woocommerce-cart .product-remove .remove:hover,
.woocommerce-cart .product-remove a.remove:hover {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") !important;
}

/* ===== QUANTITY CONTROLS ===== */
.woocommerce-cart .product-quantity {
    flex-shrink: 0;
    order: 3;
}

.woocommerce-cart .quantity-container {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    gap: 0 !important;
    background: #fff !important;
    width: auto !important;
    max-width: 130px;
}

.woocommerce-cart .quantity-container .quantity {
    margin: 0 !important;
    width: auto !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
}

.woocommerce-cart .quantity-container .quantity::before,
.woocommerce-cart .quantity-container .quantity::after {
    content: none !important;
    display: none !important;
}

.woocommerce-cart .quantity-container input.qty {
    width: 45px !important;
    height: 38px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--mv-text-dark) !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce-cart .quantity-container input.qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity-container input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce-cart .button-quantity,
.woocommerce-cart .quantity-container .button-quantity {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8f9fa !important;
    color: var(--mv-orange) !important;
    border: none !important;
    cursor: pointer;
    font-size: 20px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease;
    line-height: 1 !important;
    position: relative !important;
    border-radius: 0 !important;
}

.woocommerce-cart .button-quantity:hover,
.woocommerce-cart .quantity-container .button-quantity:hover {
    background: var(--mv-orange) !important;
    color: #fff !important;
}

/* IMPORTANT: Remove the lines created by ::before and ::after in style.css */
.woocommerce-cart .button-quantity::before,
.woocommerce-cart .button-quantity::after,
.woocommerce-cart .quantity-container .button-quantity::before,
.woocommerce-cart .quantity-container .button-quantity::after,
.woocommerce-cart .quantity-container .minus-quantity::before,
.woocommerce-cart .quantity-container .minus-quantity::after,
.woocommerce-cart .quantity-container .plus-quantity::before,
.woocommerce-cart .quantity-container .plus-quantity::after,
.quantity-container .minus-quantity::before,
.quantity-container .plus-quantity::before,
.quantity-container .plus-quantity::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    position: static !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure button text is visible */
.woocommerce-cart .quantity-container .button-quantity {
    font-family: system-ui, -apple-system, sans-serif !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

.woocommerce-cart .quantity-container .button-quantity span {
    display: block !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: inherit !important;
    position: relative !important;
    z-index: 2;
}

/* ===== DETAIL SIDEBAR ===== */
.woocommerce-cart .mv-box-lateral-wrapper {
    width: 100%;
}

.woocommerce-cart .mv-box-lateral {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px 24px;
    position: sticky;
    top: 120px;
    box-sizing: border-box;
}

.woocommerce-cart .mv-box-lateral-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--mv-orange);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Sidebar Table */
.woocommerce-cart .mv-box-lateral-body table {
    width: 100%;
    border-collapse: collapse;
    border: none !important;
    border-spacing: 0;
}

.woocommerce-cart .mv-box-lateral-body table tr {
    border: none !important;
    background: transparent !important;
}

.woocommerce-cart .mv-box-lateral-body tbody tr,
.woocommerce-cart .mv-box-lateral-body tfoot tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border: none !important;
    border-bottom: none !important;
}

.woocommerce-cart .mv-box-lateral-body th,
.woocommerce-cart .mv-box-lateral-body td {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-cart .mv-box-lateral-body th {
    font-weight: 500;
    font-size: 14px;
    color: var(--mv-text-dark);
    text-align: left;
}

.woocommerce-cart .mv-box-lateral-body td {
    font-weight: 600;
    font-size: 14px;
    color: var(--mv-blue-dark);
    text-align: right;
}

.woocommerce-cart .mv-box-lateral-body tfoot {
    border-top: 1px solid #e5e7eb !important;
    margin-top: 12px;
    padding-top: 12px;
    display: block;
}

.woocommerce-cart .mv-box-lateral-body .order-total th {
    font-weight: 700;
    font-size: 16px;
}

.woocommerce-cart .mv-box-lateral-body .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--mv-orange) !important;
}

.woocommerce-cart .mv-box-lateral-body .order-total td .woocommerce-Price-amount,
.woocommerce-cart .mv-box-lateral-body .order-total td .woocommerce-Price-currencySymbol {
    color: var(--mv-orange) !important;
}

/* Remove any extra borders or lines in sidebar */
.woocommerce-cart .mv-box-lateral-body table::before,
.woocommerce-cart .mv-box-lateral-body table::after,
.woocommerce-cart .mv-box-lateral-body tbody::before,
.woocommerce-cart .mv-box-lateral-body tbody::after,
.woocommerce-cart .mv-box-lateral-body tfoot::before,
.woocommerce-cart .mv-box-lateral-body tfoot::after {
    content: none !important;
    display: none !important;
}

/* ===== COUPON SECTION ===== */
.woocommerce-cart .mv-coupon-sidebar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-cart .mv-coupon-sidebar input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fff !important;
    width: 100%;
}

.woocommerce-cart .mv-coupon-sidebar input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.woocommerce-cart .mv-coupon-sidebar button {
    padding: 12px 16px !important;
    background: var(--mv-button-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.woocommerce-cart .mv-coupon-sidebar button:hover {
    background: var(--mv-button-blue-hover) !important;
}

/* ===== CHECKOUT BUTTONS ===== */
.woocommerce-cart .mv-box-lateral .buttons {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout {
    margin: 0;
    padding: 0;
}

.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout::before,
.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout::after {
    display: none !important;
}

.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    padding: 14px 20px !important;
    text-align: center;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    text-decoration: none;
    background: var(--mv-blue-dark) !important;
    color: #fff !important;
    border: none !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.woocommerce-cart .mv-box-lateral .wc-proceed-to-checkout a.checkout-button:hover {
    background: #1a1a6e !important;
}

/* Or Divider */
.woocommerce-cart .mv-or-divider {
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 10px 0;
}

/* PayPal Button */
.woocommerce-cart .mv-paypal-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px !important;
    background: var(--mv-orange) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.woocommerce-cart .mv-paypal-button:hover {
    background: var(--mv-orange-hover) !important;
}

.woocommerce-cart .mv-paypal-button img {
    height: 18px;
    width: auto;
}

/* ===== HIDE ACTIONS ===== */
.woocommerce-cart .actions,
.woocommerce-cart h1,
.woocommerce-cart button[name="update_cart"] {
    display: none !important;
}

/* ===== RELATED PRODUCTS ===== */
.woocommerce-cart .related_products {
    background: #f3f4f6;
    padding: 50px 0;
    margin-top: 40px;
}

.woocommerce-cart .related_products h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--mv-text-dark);
    margin-bottom: 30px;
}

.woocommerce-cart .related_products .products_container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .woocommerce-cart .related_products .products_container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce-cart .related_products .products_container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.woocommerce-cart .related_products .product {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.woocommerce-cart .related_products .product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.woocommerce-cart .related_products .product .woocommerce-loop-product__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--mv-text-dark);
    padding: 10px 10px 5px;
    margin: 0;
}

.woocommerce-cart .related_products .product .price {
    padding: 0 10px 10px;
    color: var(--mv-orange);
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-cart .related_products .product .add_to_cart_button {
    display: block;
    width: calc(100% - 16px);
    margin: 0 8px 8px;
    padding: 10px 8px;
    background: var(--mv-orange);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.woocommerce-cart .related_products .product .add_to_cart_button:hover {
    background: var(--mv-orange-hover);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .mv-cart-tabs {
        flex-wrap: wrap;
    }

    .mv-cart-tabs .mv-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .woocommerce-cart .woocommerce-cart-form__cart-item {
        flex-wrap: wrap;
        position: relative;
        padding-right: 35px;
    }

    .woocommerce-cart .product-thumbnail {
        width: 70px;
        height: 55px;
    }

    .woocommerce-cart .product-name {
        flex-basis: calc(100% - 85px);
    }

    .woocommerce-cart .product-remove {
        position: absolute;
        right: 0;
        top: 20px;
        margin: 0;
    }

    .woocommerce-cart .product-quantity {
        margin-left: 85px;
        margin-top: 10px;
    }

    .woocommerce-cart .mv-box-lateral-wrapper {
        max-width: 100%;
    }

    .woocommerce-cart .mv-coupon-sidebar {
        flex-direction: column;
    }

    .woocommerce-cart .mv-coupon-sidebar button {
        width: 100%;
    }
}

/* ===== SEQURA WIDGET FIXES ===== */
.woocommerce-cart .mv-box-lateral .sequra-promotion-widget,
.woocommerce-cart .sequra-cart-widget-wrapper,
.woocommerce-cart .sequra-promotion-widget {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Hide duplicate Sequra widgets - keep only one */
.woocommerce-cart .mv-box-lateral + .sequra-cart-widget-wrapper,
.woocommerce-cart .cart_totals + .sequra-cart-widget-wrapper {
    display: none !important;
}

/* Style the Sequra widget better */
.woocommerce-cart .sequra-promotion-widget * {
    font-size: 13px !important;
}

/* ===== IMPROVED COUPON SECTION ===== */
.woocommerce-cart .mv-coupon-sidebar {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-cart .mv-coupon-sidebar input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    background: #fff !important;
    width: 100%;
}

.woocommerce-cart .mv-coupon-sidebar input:focus {
    border-color: var(--mv-orange) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1);
}

.woocommerce-cart .mv-coupon-sidebar input::placeholder {
    color: #9ca3af;
    font-size: 12px;
}

.woocommerce-cart .mv-coupon-sidebar button {
    padding: 10px 14px !important;
    background: var(--mv-button-blue) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.woocommerce-cart .mv-coupon-sidebar button:hover {
    background: var(--mv-button-blue-hover) !important;
}

/* ===== IMPROVED TRASH ICON ===== */
.woocommerce-cart .product-remove {
    flex-shrink: 0;
    order: 2;
    margin-right: 10px;
}

.woocommerce-cart .product-remove .remove,
.woocommerce-cart .product-remove a.remove {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    text-decoration: none !important;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    overflow: hidden;
    background-color: #f3f4f6 !important;
    border-radius: 6px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
}

.woocommerce-cart .product-remove .remove::before,
.woocommerce-cart .product-remove .remove::after,
.woocommerce-cart .product-remove a.remove::before,
.woocommerce-cart .product-remove a.remove::after {
    content: none !important;
    display: none !important;
}

.woocommerce-cart .product-remove .remove:hover,
.woocommerce-cart .product-remove a.remove:hover {
    opacity: 1;
    background-color: #fee2e2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E") !important;
}
