/* Modern Cart Items Design */

.wpsc-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--wpsc-transition);
    position: relative;
    border: 1px solid #f3f4f6;
}

.wpsc-cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #e5e7eb;
}

.wpsc-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

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

.wpsc-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpsc-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wpsc-text-color);
    line-height: 1.4;
}

.wpsc-item-name a {
    color: inherit;
    text-decoration: none;
}

.wpsc-item-name a:hover {
    color: var(--wpsc-primary-color);
}

.wpsc-item-price {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.wpsc-item-price del {
    color: #9ca3af;
    margin-right: 6px;
}

.wpsc-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.wpsc-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wpsc-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpsc-qty-btn:hover {
    background: var(--wpsc-primary-color);
    color: var(--wpsc-secondary-color);
    border-color: var(--wpsc-primary-color);
}

.wpsc-qty-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    background: #f9fafb;
}

.wpsc-item-subtotal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--wpsc-primary-color);
}

.wpsc-remove-item {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.wpsc-cart-item:hover .wpsc-remove-item {
    opacity: 1;
}

.wpsc-remove-item:hover {
    background: #dc2626;
    color: #ffffff;
    transform: rotate(90deg);
}

/* Savings Badge */
.wpsc-savings-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #dcfce7;
    color: #166534;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

/* Coupon Section */
.wpsc-coupon-section-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpsc-coupon-section-wrapper:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.wpsc-coupon-icon {
    flex-shrink: 0;
    color: #6b7280;
}

.wpsc-coupon-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--wpsc-text-color);
    font-weight: 500;
}

.wpsc-coupon-input::placeholder {
    color: #9ca3af;
}

.wpsc-coupon-input:focus {
    outline: none;
}

/* Totals Section */
.wpsc-cart-totals {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.wpsc-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.wpsc-totals-label {
    color: #6b7280;
    font-weight: 500;
}

.wpsc-totals-value {
    color: var(--wpsc-text-color);
    font-weight: 600;
}

.wpsc-totals-row.wpsc-total {
    border-top: 2px solid #e5e7eb;
    margin-top: 12px;
    padding-top: 16px;
    font-size: 18px;
}

.wpsc-totals-row.wpsc-total .wpsc-totals-label,
.wpsc-totals-row.wpsc-total .wpsc-totals-value {
    color: var(--wpsc-primary-color);
    font-weight: 700;
}

.wpsc-totals-row.wpsc-discount .wpsc-totals-value {
    color: #059669;
}

/* Savings Summary */
.wpsc-savings-summary {
    background: #ecfdf5;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    text-align: center;
}

.wpsc-savings-summary-text {
    font-size: 13px;
    color: #065f46;
    font-weight: 600;
}

.wpsc-savings-summary-text strong {
    font-size: 16px;
    color: #047857;
}

/* Responsive */
@media (max-width: 480px) {
    .wpsc-cart-item {
        gap: 12px;
        padding: 12px;
    }
    
    .wpsc-item-image {
        width: 70px;
        height: 70px;
    }
    
    .wpsc-item-name {
        font-size: 14px;
    }
    
    .wpsc-item-subtotal {
        position: static;
        margin-top: 8px;
    }
}
