.cart-items-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.cart-item-table {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

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

.cart-item-image-box {
    width: 110px;
    min-width: 110px;
    height: 110px;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-item-name {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.cart-item-price-each,
.cart-item-meta {
    margin-bottom: 8px;
    font-size: 15px;
}

.cart-item-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cart-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f5f5f5;
    font-size: 20px;
    cursor: pointer;
}

.cart-qty-value {
    min-width: 42px;
    text-align: center;
    font-weight: 700;
}

.cart-item-line-total {
    font-size: 18px;
    font-weight: 700;
    color: #ff5a0a;
}

.cart-remove-btn {
    border: none;
    background: #f1f1f1;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.cart-summary-title {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}

.cart-summary-table {
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    background: #fafafa;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e9e9e9;
    gap: 12px;
}

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

.cart-summary-total {
    background: #fff7f2;
    font-size: 18px;
    font-weight: 700;
}

.cart-promo-box {
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid #ececec;
    border-radius: 14px;
}

.cart-promo-label {
    display: block;
    font-weight: 800;
    font-size: 14px;
    color: #111827;
    margin-bottom: 10px;
}

.cart-promo-row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.cart-promo-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: all .2s ease;
}

.cart-promo-input:focus {
    border-color: #ff5a0a;
    box-shadow: 0 0 0 3px rgba(255,90,10,.14);
}

.cart-promo-btn,
.cart-remove-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.cart-promo-btn {
    background: linear-gradient(135deg, #ff7a18, #ff4d00);
    color: #fff;
    padding: 12px 18px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(255,90,10,.22);
}

.cart-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(255,90,10,.30);
}

.cart-remove-promo-btn {
    margin-top: 12px;
    background: #f3f4f6;
    color: #111827;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #e5e7eb;
}

.cart-remove-promo-btn:hover {
    background: #e5e7eb;
}

.cart-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.cart-promo-message {
    margin-top: 12px;
}

.promo-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
}

.promo-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.promo-alert-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.promo-alert-success .promo-alert-icon {
    background: #16a34a;
    color: #fff;
}

.promo-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.promo-alert-error .promo-alert-icon {
    background: #dc2626;
    color: #fff;
}

.promo-alert-info {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.promo-alert-info .promo-alert-icon {
    background: #f97316;
    color: #fff;
}

@media (max-width:768px){
    .cart-item-table{
        flex-direction:column-reverse;
    }

    .cart-item-image-box{
        width:100%;
        height:180px;
    }

    .cart-promo-row{
        flex-direction:column;
    }

    .cart-promo-btn,
    .cart-remove-promo-btn {
        width: 100%;
    }
}

/* Cart page fixes */
.cart-summary-row span,
.cart-summary-row strong,
.cart-summary-total span,
.cart-summary-total strong {
    color: #111827;
}

.cart-promo-row {
    align-items: stretch;
}

.cart-promo-input,
.cart-promo-btn,
.cart-remove-promo-btn {
    box-sizing: border-box;
}

.cart-promo-input {
    min-width: 0;
}

.cart-promo-btn {
    flex: 0 0 auto;
    min-width: 110px;
}

.cart-auth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.cart-auth-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 12px 10px;
    font-weight: 700;
    color: #111827;
}

.cart-auth-card.active {
    border-color: #ff5a0a;
    background: #fff4ec;
    color: #ff5a0a;
}

.cart-auth-pane,
.cart-account-box {
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
    padding: 16px;
}

.cart-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-account-links a,
.cart-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff !important;
    border: 2px solid #ff5a0a !important;
    color: #ff5a0a !important;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(255, 90, 10, 0.08);
    transition: all .2s ease;
}

.cart-account-links a:hover,
.cart-account-button:hover {
    background: linear-gradient(135deg, #ff7a18, #ff4d00);
    color: #fff !important;
    transform: translateY(-1px);
}

.cart-forgot-link {
    display: inline-flex;
    margin-top: 12px;
    color: #ff5a0a;
    font-weight: 800;
    text-decoration: none;
}

.cart-forgot-link:hover {
    color: #d94b00;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cart-auth-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark website skin for cart */
.cart-item-card,
.cart-summary-card,
.cart-promo-box,
.cart-auth-card,
.cart-auth-pane,
.cart-account-box {
    background: #0f1c2e;
    color: #eef5ff;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.cart-item-image-box,
.cart-summary-table,
.cart-summary-total,
.cart-qty-box,
.cart-qty-btn {
    background: #132238;
    border-color: rgba(148, 163, 184, 0.18);
    color: #eef5ff;
}

.cart-item-name,
.cart-summary-title,
.cart-promo-label,
.cart-summary-row span,
.cart-summary-row strong,
.cart-summary-total span,
.cart-summary-total strong,
.cart-auth-card {
    color: #eef5ff;
}

.cart-item-price-each,
.cart-item-meta {
    color: #9fb0c7;
}

.cart-summary-row {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

.cart-promo-input {
    background: #132238;
    color: #eef5ff;
    border-color: rgba(148, 163, 184, 0.18);
}

.cart-promo-input::placeholder {
    color: rgba(159, 176, 199, 0.78);
}

.cart-remove-btn,
.cart-remove-promo-btn {
    background: #132238;
    color: #eef5ff;
    border-color: rgba(148, 163, 184, 0.18);
}

.cart-auth-card.active {
    background: rgba(255, 122, 24, 0.16);
    color: #ff9a47;
}

.cart-account-links a,
.cart-account-button {
    background: transparent !important;
    color: #ff9a47 !important;
}
