/* Cart Page Styles */
.spc-cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.spc-empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.spc-empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.spc-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.spc-cart-table th {
    background: #f5f5f5;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
}

.spc-cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.spc-product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.spc-product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.spc-product-name a:hover {
    color: #3498db;
}

.spc-product-sku {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.spc-product-price,
.spc-product-subtotal {
    font-weight: 600;
    color: #333;
}

.spc-product-quantity .spc-quantity-control {
    display: inline-flex;
    align-items: center;
}

.spc-product-quantity .spc-quantity-input {
    width: 50px;
    height: 34px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

.spc-product-quantity .spc-quantity-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-product-quantity .spc-quantity-btn:hover {
    background: #f5f5f5;
}

.spc-product-remove .spc-remove-item {
    width: 30px;
    height: 30px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spc-product-remove .spc-remove-item:hover {
    background: #c0392b;
}

.spc-cart-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.spc-cart-totals {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
}

.spc-totals-table {
    width: 100%;
}

.spc-totals-table th,
.spc-totals-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spc-totals-table tr:last-child th,
.spc-totals-table tr:last-child td {
    border-bottom: none;
}

.spc-totals-table th {
    text-align: left;
    font-weight: 400;
}

.spc-totals-table td {
    text-align: right;
    font-weight: 600;
}

.spc-total-price {
    font-size: 20px;
    color: #e74c3c;
}

/* Checkout Page Styles */
.spc-checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.spc-checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.spc-checkout-form h3,
.spc-order-review h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #333;
    margin-bottom: 20px;
}

.spc-form-group {
    margin-bottom: 20px;
}

.spc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.spc-form-group input,
.spc-form-group textarea,
.spc-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.spc-payment-methods label {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.spc-payment-methods label:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.spc-payment-methods input[type="radio"] {
    margin-right: 10px;
}

.spc-order-review {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    align-self: start;
}

.spc-order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spc-order-item:last-child {
    border-bottom: none;
}

.spc-order-item-name {
    flex: 1;
}

.spc-order-item-size {
    color: #666;
    font-size: 12px;
}

.spc-order-item-quantity {
    color: #666;
}

.spc-order-item-price {
    font-weight: 600;
}

.spc-order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.spc-order-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.spc-order-total {
    font-size: 18px;
    font-weight: 600;
    color: #e74c3c;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
}

.spc-btn-checkout-submit {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 20px;
}

/* Success Modal */
.spc-success-icon {
    width: 60px;
    height: 60px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.spc-order-success {
    text-align: center;
}

.spc-order-success h4 {
    color: #27ae60;
    margin-bottom: 15px;
}

.spc-success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .spc-cart-table {
        display: block;
        overflow-x: auto;
    }

    .spc-checkout-container {
        grid-template-columns: 1fr;
    }

    .spc-cart-actions {
        flex-direction: column;
    }

    .spc-success-actions {
        flex-direction: column;
    }
}

/* Cart Widget */
.spc-cart-widget {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px 0 0 8px;
    z-index: 1000;
}

.spc-cart-toggle {
    background: #3498db;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.spc-cart-toggle:hover {
    background: #2980b9;
}

.spc-cart-count {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.spc-cart-dropdown {
    display: none;
    padding: 20px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.spc-cart-widget:hover .spc-cart-dropdown {
    display: block;
}

.spc-cart-dropdown-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spc-cart-dropdown-item:last-child {
    border-bottom: none;
}

.spc-cart-dropdown-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.spc-cart-dropdown-item-info {
    flex: 1;
}

.spc-cart-dropdown-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.spc-cart-dropdown-item-details {
    font-size: 12px;
    color: #666;
}

.spc-cart-dropdown-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.spc-cart-dropdown-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.spc-cart-dropdown-actions .spc-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}