/* OI Shopping Cart Styles */

/* Product Display */
.oi-product {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.oi-product-card {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.oi-product-inline {
    display: flex;
    gap: 20px;
    align-items: center;
}

.oi-product-image {
    position: relative;
    margin-bottom: 15px;
}

.oi-product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.oi-out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d63638;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.oi-product-title {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.oi-product-description {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.oi-product-price {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.oi-price-label {
    color: #666;
    margin-right: 5px;
}

.oi-price-amount {
    font-weight: bold;
    color: #2271b1;
}

.oi-product-deposit {
    margin-bottom: 10px;
    padding: 10px;
    background: #f0f6fc;
    border-left: 3px solid #2271b1;
    font-size: 1.1em;
}

.oi-deposit-label {
    color: #666;
    margin-right: 5px;
}

.oi-deposit-amount {
    font-weight: bold;
    color: #2271b1;
}

.oi-deposit-percent {
    color: #666;
    font-size: 0.9em;
}

.oi-product-stock {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.oi-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.oi-qty-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.oi-add-to-cart-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.oi-add-to-cart-btn:hover {
    background: #135e96;
}

.oi-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.oi-goto-cart-btn {
    background: #46b450;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.oi-goto-cart-btn:hover {
    background: #2e7d32;
}

.oi-cart-feedback {
    color: #46b450;
    font-weight: bold;
}

/* Cart Widget */
.oi-cart-widget {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.oi-cart-widget h3 {
    margin-top: 0;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 10px;
}

.oi-cart-items {
    margin-bottom: 20px;
}

.oi-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

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

.oi-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

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

.oi-cart-item-details h4 {
    margin: 0 0 5px 0;
}

.oi-cart-item-price {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.oi-cart-qty-update {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0;
}

.oi-cart-item-subtotal {
    font-weight: bold;
    margin: 5px 0;
}

.oi-remove-from-cart {
    position: absolute;
    top: 10px;
    right: 0;
    background: #d63638;
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.oi-remove-from-cart:hover {
    background: #b32d2e;
}

.oi-cart-total {
    padding: 15px;
    background: #f0f6fc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.oi-cart-total p {
    margin: 5px 0;
}

.oi-cart-actions {
    text-align: center;
}

.oi-checkout-btn {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.oi-checkout-btn:hover {
    background: #135e96;
    color: #fff;
}

/* Checkout Page */
.oi-checkout {
    max-width: 900px;
    margin: 0 auto;
}

.oi-checkout h2 {
    border-bottom: 3px solid #2271b1;
    padding-bottom: 10px;
}

.oi-checkout h3 {
    margin-top: 30px;
    color: #2271b1;
}

.oi-checkout-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.oi-checkout-items {
    width: 100%;
    border-collapse: collapse;
}

.oi-checkout-items th,
.oi-checkout-items td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.oi-checkout-items thead {
    background: #f0f0f0;
}

.oi-checkout-items tfoot {
    background: #f9f9f9;
    font-weight: bold;
}

.oi-checkout-items tfoot td {
    border-top: 2px solid #2271b1;
}

.form-table {
    width: 100%;
    margin-bottom: 20px;
}

.form-table th {
    width: 200px;
    text-align: left;
    padding: 15px 10px;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-table textarea {
    resize: vertical;
}

.oi-checkout-note {
    background: #f0f6fc;
    padding: 15px;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .oi-product-inline {
        flex-direction: column;
    }
    
    .oi-cart-item {
        flex-direction: column;
    }
    
    .oi-cart-item-image {
        width: 100%;
        height: auto;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
    }
    
    .oi-checkout-items {
        font-size: 14px;
    }
    
    .oi-checkout-items th,
    .oi-checkout-items td {
        padding: 8px;
    }
}

/* Loading state */
.oi-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error messages */
.oi-message {
    padding: 12px 20px;
    border-radius: 4px;
    margin: 15px 0;
}

.oi-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.oi-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
