/**
 * Cart Display Styles
 */

.ccd-cart-wrapper {
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

.ccd-cart-items {
    flex: 1;
    overflow-y: auto;
}

.ccd-loading,
.ccd-empty,
.ccd-error {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

.ccd-error {
    color: #e74c3c;
}

.ccd-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: opacity 0.2s;
}

.ccd-cart-item:last-child {
    margin-bottom: 0;
}

.ccd-item-thumb {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ccd-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ccd-item-details {
    flex: 1;
    min-width: 0;
}

.ccd-item-name {
    display: block;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 3px;
    line-height: 1.3;
}

.ccd-item-name:hover {
    color: #000;
    text-decoration: underline;
}

.ccd-item-var {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.ccd-item-price {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.ccd-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ccd-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: #e0e0e0;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.ccd-qty-btn:hover {
    background: #d0d0d0;
}

.ccd-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ccd-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.ccd-qty-text {
    font-size: 13px;
    color: #666;
}

.ccd-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ccd-item-subtotal {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ccd-remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s;
}

.ccd-remove-btn:hover {
    color: #e74c3c;
}

.ccd-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 12px;
    border-top: 2px solid #eee;
    font-size: 16px;
}

.ccd-subtotal-label {
    font-weight: 600;
    color: #333;
}

.ccd-subtotal-value {
    font-weight: 700;
    color: #333;
}

.ccd-cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.ccd-btn {
    flex: 1;
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    color: #fff;
    background: #333;
}

.ccd-btn:hover {
    background: #555;
    color: #fff;
}

.ccd-btn-checkout {
    background: #27ae60;
}

.ccd-btn-checkout:hover {
    background: #219a52;
}

.ccd-cart-items::-webkit-scrollbar {
    width: 5px;
}

.ccd-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ccd-cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .ccd-cart-item {
        gap: 10px;
        padding: 10px;
    }
    
    .ccd-item-thumb {
        width: 55px;
        height: 55px;
    }
    
    .ccd-cart-actions {
        flex-direction: column;
    }
    
    .ccd-btn {
        width: 100%;
    }
}
