.cart-page {
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px clamp(16px, 4vw, 40px);
    background: #000000;
    border-bottom: 1px solid #22c55e;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cart-logo {
    color: #eab308;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-decoration: none;
}

.cart-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.cart-nav a {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-nav a:hover {
    color: #eab308;
}

.cart-continue-top {
    padding: 9px 14px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #0a0a0a;
    color: #eab308;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.cart-continue-top:hover {
    border-color: #eab308;
}

.cart-container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 40px 0 55px;
    flex: 1;
}

.cart-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.cart-eyebrow {
    margin: 0 0 9px;
    color: #eab308;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.cart-page-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 40px);
    color: #ffffff;
}

.cart-page-heading p:last-child {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.cart-items-badge {
    padding: 9px 15px;
    border: 1px solid #1f2937;
    border-radius: 20px;
    background: #000000;
    color: #eab308;
    font-size: 13px;
    font-weight: 600;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
}

.cart-items-panel,
.cart-summary-panel {
    min-width: 0;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: rgba(12, 12, 12, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cart-items-panel {
    padding: 24px;
}

.cart-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 17px;
    border-bottom: 1px solid #1f2937;
}

.cart-panel-heading h2,
.cart-summary-panel h2 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.cart-clear-button {
    padding: 7px 12px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-clear-button:hover {
    background: rgba(239, 68, 68, 0.18);
}

.cart-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    padding: 23px 0;
    border-bottom: 1px solid #1f2937;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    display: grid;
    place-items: center;
    width: 105px;
    height: 105px;
    overflow: hidden;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #000000;
    color: #eab308;
    font-size: 35px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-category {
    margin: 0 0 7px;
    color: #eab308;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-item-details h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    color: #ffffff;
}

.cart-item-condition {
    margin: 0 0 10px;
    color: #9ca3af;
    font-size: 12px;
}

.cart-item-stock {
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
}

.cart-item-price {
    margin: 0 0 13px;
    color: #22c55e;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #1f2937;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.cart-quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-quantity-control button:hover {
    background: #1f2937;
}

.cart-quantity-control span {
    min-width: 31px;
    text-align: center;
    font-size: 13px;
    color: #ffffff;
}

.cart-remove-button {
    padding: 5px 0;
    border: none;
    background: transparent;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cart-remove-button:hover {
    text-decoration: underline;
}

.cart-line-total {
    align-self: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-bottom-links {
    padding-top: 20px;
}

.cart-bottom-links a {
    color: #eab308;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cart-bottom-links a:hover {
    text-decoration: underline;
}

.cart-empty-state {
    padding: 45px 18px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 43px;
    margin-bottom: 14px;
}

.cart-empty-state h2 {
    margin: 0 0 10px;
    font-size: 21px;
    color: #ffffff;
}

.cart-empty-state p {
    max-width: 380px;
    margin: 0 auto 22px;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.7;
}

.cart-primary-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #eab308;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cart-primary-button:hover {
    background: #fde047;
    transform: translateY(-1px);
}

.cart-summary-panel {
    padding: 24px;
    position: sticky;
    top: 90px;
}

.cart-summary-panel h2 {
    padding-bottom: 20px;
    border-bottom: 1px solid #1f2937;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    color: #9ca3af;
    font-size: 13px;
}

.cart-summary-row strong {
    max-width: 55%;
    color: #ffffff;
    text-align: right;
    overflow-wrap: anywhere;
}

.cart-discount-row strong {
    color: #22c55e;
}

.cart-summary-divider {
    height: 1px;
    background: #1f2937;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.cart-total-row strong {
    color: #22c55e;
    font-size: 21px;
    text-align: right;
}

.cart-summary-note {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.6;
}

.cart-checkout-button {
    width: 100%;
    padding: 14px 12px;
    border: none;
    border-radius: 8px;
    background: #eab308;
    color: #000000;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.cart-checkout-button:hover:not(:disabled) {
    background: #fde047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.cart-checkout-button:disabled {
    background: #1f2937;
    color: #6b7280;
    cursor: not-allowed;
}

.cart-secure-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 18px;
}

.cart-secure-note span {
    color: #22c55e;
    font-weight: 800;
}

.cart-secure-note p {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.6;
}

.cart-payment-note {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #000000;
}

.cart-payment-note strong {
    color: #eab308;
    font-size: 12px;
}

.cart-payment-note p {
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.6;
}

.cart-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.cart-benefits > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: rgba(12, 12, 12, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.cart-benefit-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #000000;
    border: 1px solid #1f2937;
    color: #eab308;
}

.cart-benefits strong {
    font-size: 12px;
    color: #ffffff;
}

.cart-benefits p {
    margin: 6px 0 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.5;
}

.cart-status-message {
    display: none;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #000000;
    color: #eab308;
    font-size: 13px;
    line-height: 1.6;
}

.cart-status-message.is-visible {
    display: block;
}

.cart-footer {
    padding: 24px 6%;
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
    font-size: 12px;
    background-color: #000000;
}

/* CART RESPONSIVE LAYOUT */

@media (max-width: 950px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 16px;
    }

    .cart-item {
        grid-template-columns: 85px minmax(0, 1fr);
    }

    .cart-item-image {
        width: 85px;
        height: 85px;
    }

    .cart-line-total {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .cart-header {
        padding: 12px 16px;
    }

    .cart-nav {
        gap: 13px;
    }

    .cart-nav a {
        font-size: 12px;
    }

    .cart-container {
        width: 94%;
        padding-top: 28px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-panel {
        position: static;
    }

    .cart-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .cart-items-panel {
        padding: 15px;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-image {
        width: 68px;
        height: 68px;
    }

    .cart-item-details h3 {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-actions {
        gap: 9px;
    }
}
/* Additions for Cart Item Selection & Interactive Tabs */

.cart-item {
    display: grid;
    grid-template-columns: 30px 105px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 23px 0;
    border-bottom: 1px solid #1f2937;
}

.cart-item-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #eab308;
    cursor: pointer;
}

#selectAllCheckbox {
    width: 18px;
    height: 18px;
    accent-color: #eab308;
    cursor: pointer;
}

/* Interactive Benefit Cards */
.benefit-card {
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.1s ease;
}

.benefit-card:hover {
    border-color: #eab308;
    transform: translateY(-2px);
}

/* Modal Styling */
.benefit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.benefit-modal[hidden] {
    display: none;
}

.benefit-modal-content {
    background: #0c0c0c;
    border: 1px solid #1f2937;
    border-radius: 12px;
    width: min(550px, 90%);
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.benefit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.benefit-modal-header h3 {
    margin: 0;
    color: #eab308;
    font-size: 18px;
}

.benefit-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
}

.benefit-close-btn:hover {
    color: #ffffff;
}

.benefit-modal-body {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.modal-item-detail {
    padding: 12px 0;
    border-bottom: 1px solid #1f2937;
}

.modal-item-detail:last-child {
    border-bottom: none;
}

.modal-item-detail strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 950px) {
    .cart-item {
        grid-template-columns: 30px 85px minmax(0, 1fr);
    }
    .cart-line-total {
        grid-column: 3;
        justify-self: start;
    }
}