/**
 * BalticCommerce — Cart Page & Mini-Cart Drawer Component Styles
 * Slaugita Design System Tokens
 *
 * @package bc-theme
 */

@layer components {
/* ==========================================================================
   1. Mini-Cart Drawer Styles (Defined in cart-drawer.css)
   ========================================================================== */

/* ==========================================================================
   2. Full Cart Page Styles
   ========================================================================== */

.bc-cart-breadcrumb-current {
    color: var(--navy);
}

.bc-cart-section {
    padding-top: 32px;
    padding-bottom: 64px;
}

.bc-cart-progress-wrap {
    margin-bottom: 32px;
}

.bc-cart-heading {
    font-size: 28px;
    font-weight: var(--fw-black);
    color: var(--navy);
    margin-bottom: 24px;
}

.bc-cart-heading-count {
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: var(--gray-accessible);
}

.bc-cart-shipping-banner {
    background: var(--teal-light);
    border: 1.5px solid var(--badge-teal-bg);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 28px;
}

.bc-cart-shipping-text {
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bc-cart-progress-track {
    height: 8px;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.bc-cart-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bc-cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .bc-cart-layout-grid {
        grid-template-columns: 1fr;
    }
}

.bc-cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.bc-cart-table-head-tr {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.bc-cart-th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: var(--fw-bold);
    color: var(--navy);
}

.bc-cart-th-empty {
    padding: 14px 18px;
}

.bc-cart-item-tr {
    border-bottom: 1px solid var(--line);
}

.bc-cart-td {
    padding: 18px;
}

.bc-cart-item-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bc-cart-item-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

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

.bc-cart-item-title {
    font-size: 14.5px;
    font-weight: var(--fw-bold);
    color: var(--navy);
    line-height: 1.3;
    text-decoration: none;
    display: block;
}

.bc-cart-td-price {
    padding: 18px;
    font-weight: var(--fw-bold);
    color: var(--navy);
    font-size: 14.5px;
}

.bc-cart-td-subtotal {
    padding: 18px;
    font-weight: var(--fw-black);
    color: var(--red);
    font-size: 16px;
}

.bc-cart-td-remove {
    padding: 18px;
    text-align: right;
}

.bc-cart-remove-link {
    color: var(--red);
    font-weight: var(--fw-semibold);
    font-size: 13px;
    text-decoration: none;
}

.bc-cart-td-actions {
    padding: 16px;
    background: var(--bg);
    text-align: right;
}

.bc-cart-update-btn {
    padding: 10px 20px;
    font-size: 13px;
}

.bc-cart-totals-sidebar {
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: sticky;
    top: 110px;
    z-index: 10;
}

.bc-cart-totals-title {
    font-size: 18px;
    font-weight: var(--fw-black);
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.bc-cart-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--ink);
}

.bc-cart-totals-val {
    font-weight: var(--fw-bold);
}

.bc-cart-shipping-wrap {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.bc-cart-totals-final-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: var(--fw-black);
    color: var(--navy);
    border-top: 1.5px solid var(--line);
    padding-top: 14px;
    margin-top: 14px;
}

.bc-cart-totals-final-price {
    color: var(--red);
}

.bc-cart-checkout-wrap {
    margin-top: 20px;
}

.bc-cart-checkout-btn {
    width: 100%;
    height: 52px;
    font-size: 16px;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
}

.bc-cart-cross-sells {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.bc-cart-cross-sells-title {
    font-size: 20px;
    font-weight: var(--fw-black);
    color: var(--navy);
    margin-bottom: 20px;
}

.bc-cart-cross-sells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bc-cart-cross-sell-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

.bc-cart-cross-sell-img-link {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 4px;
}

.bc-cart-cross-sell-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bc-cart-cross-sell-details {
    flex: 1;
    min-width: 0;
}

.bc-cart-cross-sell-item-title {
    font-size: 13.5px;
    font-weight: var(--fw-semibold);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-cart-cross-sell-item-link {
    color: var(--ink);
    text-decoration: none;
}

.bc-cart-cross-sell-item-price {
    font-size: 14px;
    font-weight: var(--fw-bold);
    color: var(--navy);
}

.bc-cart-cross-sell-form {
    margin: 0;
}

.bc-cart-cross-sell-add-btn {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-cart-empty-wrap {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 16px;
}

.bc-cart-empty-icon {
    margin-bottom: 16px;
}

.bc-cart-empty-title {
    font-size: 22px;
    font-weight: var(--fw-black);
    color: var(--navy);
    margin-bottom: 8px;
}

.bc-cart-empty-text {
    font-size: 14px;
    color: var(--gray-accessible);
    margin-bottom: 24px;
}

.bc-cart-empty-btn {
    padding: 12px 30px;
    font-size: 15px;
    display: inline-block;
}
}
