/* 
    Professional Shopping Cart Stylesheet
    24-06-2026
 */

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --bg-light: #f8f9fa;
    --border-color: #eef1f6;
    --text-dark: #1a1e21;
    --text-muted: #6e7a8a;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.05);
    --radius-lg: 16px;
    --radius-md: 10px;
}

/* Page wrapper */
.cart-wrapper {
    padding: 50px 0 100px;
    background-color: #fcfdfe;
}

/* Breadcrumb Section styling */
.breadcrumb-section {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;
    position: relative;
    background-color: #343a40;
}

.breadcrumb-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 30, 33, 0.65);
    z-index: 1;
}

.breadcrumb__text {
    position: relative;
    z-index: 2;
}

.breadcrumb__text h2 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.breadcrumb__option a,
.breadcrumb__option span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    text-decoration: none;
}

.breadcrumb__option a:hover {
    color: #ffffff;
}

.breadcrumb__option a::after {
    content: '>';
    font-family: inherit;
    margin-left: 8px;
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

/* Cards and containers */
.cart-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.cart-card:hover {
    box-shadow: var(--shadow-md);
}

.cart-card-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Quick Add Product Card */
.quick-add-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px 30px;
    margin-bottom: 30px;
}

.quick-add-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-add-input {
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    transition: all 0.2s ease;
}

.quick-add-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
}

.btn-quick-add {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

.btn-quick-add:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

/* Modern Table Design */
.table-modern {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
}

.table-modern th {
    background-color: #fafbfc;
    color: #5c6873;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
}

.table-modern td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Product details formatting */
.cart-product-item {
    /* display: flex; */
    align-items: center;
    gap: 20px;
}

.cart-product-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 8px;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.cart-product-img:hover {
    transform: scale(1.04);
}

.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-product-name {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.cart-product-name:hover {
    color: var(--primary-color);
}

/* Badges */
.badge-mnp {
    background-color: #e6f0fa;
    /* Light blue tint matching #007bff */
    color: var(--primary-color);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-availability {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.badge-in-stock {
    background-color: #e6f6ec;
    color: #1a7f37;
}

.badge-out-of-stock {
    background-color: #ffebe9;
    color: #cf222e;
}

/* Specs column */
.cart-product-specs {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.spec-item {
    margin-bottom: 4px;
    font-size: 0.8em;
}

.spec-label {
    font-weight: 700;
    color: #495057;
}

/* Modern Quantity Selector */
.modern-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #dcdfe6;
    border-radius: 50px;
    padding: 0px;
    background: #ffffff;
    width: fit-content;
    transition: border-color 0.2s ease;
}

.modern-qty-selector:focus-within {
    border-color: var(--primary-color);
}

.modern-qty-selector .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #495057;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-qty-selector .qty-btn:hover {
    background-color: #f1f3f5;
    color: var(--primary-color);
}

.modern-qty-selector .qty-input {
    width: 35px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-dark);
    background: transparent;
}

.modern-qty-selector .qty-input:focus {
    outline: none;
}

/* Hide HTML5 number spinner arrows */
.modern-qty-selector .qty-input::-webkit-outer-spin-button,
.modern-qty-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modern-qty-selector .qty-input {
    -moz-appearance: textfield;
}

/* Prices and totals */
.cart-price-bold {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.cart-total-bold {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 17px;
}

/* Trash action button */
.btn-remove-item {
    color: var(--text-muted);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-remove-item:hover {
    color: #cf222e;
    background-color: #fff0f0;
    transform: scale(1.05);
}

/* Summary Card Sidebar (Sticky) */
.summary-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    position: sticky;
    top: 30px;
    transition: box-shadow 0.3s ease;
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-row span:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

.summary-row.total-row {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.summary-row.total-row span:last-child {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: #ffffff;
    width: 100%;
    border: none;
    border-radius: 50px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 24px;
}

.btn-checkout:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.35);
    transform: translateY(-2px);
}

.btn-checkout:active {
    transform: translateY(0);
}

/* Trust Signals */
.trust-badge-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.trust-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.trust-badge-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 2px;
}

.trust-badge-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

/* Empty Cart State */
.empty-cart-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 80px 40px;
    text-align: center;
}

.empty-cart-img {
    max-width: 140px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-shopping {
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50px;
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.btn-shopping:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

/* Responsive grid overrides */
@media (max-width: 991.98px) {
    .summary-card {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {

    .table-modern,
    .table-modern tbody,
    .table-modern tr,
    .table-modern td,
    .table-modern th {
        display: block;
    }

    .table-modern thead {
        display: none;
    }

    .table-modern td {
        border-bottom: 1px solid var(--border-color);
        padding: 14px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    .table-modern td:first-child {
        display: block;
        text-align: left;
        border-bottom: none;
        padding-top: 24px;
    }

    .table-modern td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 11px;
        color: var(--text-muted);
        float: left;
        text-align: left;
        margin-right: 15px;
    }

    .table-modern td:first-child::before {
        display: none;
    }

    .table-modern td:last-child {
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 24px;
    }

    .cart-product-item {
        justify-content: flex-start;
    }
}