/* UMJ Ecommerce Styles */

/* ================================
   Foundation Styles
   ================================ */

.umj-ecommerce-container {
    position: relative;
}

/* Buttons */
.umj-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.umj-btn-primary {
    background: #0073aa;
    color: white;
}

.umj-btn-primary:hover {
    background: #005a87;
}

.umj-btn-secondary {
    background: #666;
    color: white;
}

.umj-btn-secondary:hover {
    background: #555;
}

/* ================================
   Cart Styles
   ================================ */

/* Side Cart */
.umj-side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 999999;
    display: flex;
    flex-direction: column;
}

.umj-side-cart.open {
    right: 0;
}

.umj-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999998;
}

.umj-cart-overlay.show {
    visibility: visible;
    opacity: 1;
}

.umj-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2a8741 0%, #1e6b32 100%);
    color: white;
}

.umj-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.umj-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.umj-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.umj-cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.umj-cart-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

.umj-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.umj-cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.umj-cart-item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.umj-cart-item-price {
    color: #2a8741;
    font-weight: 600;
    font-size: 14px;
}

.umj-cart-item-qty {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.umj-cart-update-qty {
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.umj-cart-qty {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 4px;
}

.umj-cart-item-total {
    text-align: right;
}

.umj-cart-item-total-price {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 5px;
}

.umj-cart-remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

.umj-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.umj-cart-total {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.umj-cart-actions {
    display: flex;
    gap: 10px;
}

.umj-cart-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.umj-checkout-button {
    background: #0073aa;
    color: white;
}

.umj-cart-clear {
    background: #dc3545;
    color: white;
}

/* Floating Cart */
.umj-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
}

.umj-cart-toggle {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    transition: all 0.3s ease;
}

.umj-cart-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,115,170,0.4);
}

.umj-cart-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

/* ================================
   Product Styles
   ================================ */

.umj-product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.umj-add-to-cart,
.umj-buy-now {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.umj-add-to-cart {
    background: #0073aa;
    color: white;
}

.umj-buy-now {
    background: #28a745;
    color: white;
}

.umj-add-to-cart:hover {
    background: #005a87;
}

.umj-buy-now:hover {
    background: #218838;
}

.umj-quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.umj-qty-label {
    margin-right: 10px;
    font-weight: 600;
}

.umj-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.umj-qty-minus,
.umj-qty-plus {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.umj-qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* ================================
   Checkout Styles
   ================================ */

/* Checkout Page Container */
.umj-checkout-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.umj-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.umj-checkout-title {
    color: #2a8741;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.umj-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Order Summary */
.umj-order-summary {
    background: #333;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #555;
}

.umj-order-summary h2 {
    color: #2a8741;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.umj-checkout-item {
    background: #444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #666;
}

.umj-checkout-item-info h4 {
    color: #2a8741;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.umj-checkout-item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.umj-checkout-item-meta span {
    background: #555;
    color: #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.umj-checkout-item-quantity {
    color: #2a8741;
    font-weight: 600;
    margin-bottom: 10px;
}

.umj-checkout-item-price {
    color: #2a8741;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
}

/* Order Totals */
.umj-order-totals {
    background: #444;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #666;
}

.umj-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #666;
}

.umj-total-line:last-child {
    border-bottom: none;
}

.umj-total-label {
    color: #ccc;
    font-weight: 600;
}

.umj-total-amount {
    color: #2a8741;
    font-weight: 700;
    font-size: 1.1rem;
}

.umj-total-final {
    border-top: 2px solid #2a8741;
    padding-top: 15px;
    margin-top: 15px;
}

.umj-total-final .umj-total-label,
.umj-total-final .umj-total-amount {
    color: #2a8741;
    font-size: 1.3rem;
}

/* Checkout Form */
.umj-checkout-form {
    background: #333;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #555;
}

.umj-checkout-form h2 {
    color: #2a8741;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.umj-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.umj-form-group {
    margin-bottom: 20px;
}

.umj-form-group label {
    display: block;
    color: #2a8741;
    margin-bottom: 8px;
    font-weight: 600;
}

.umj-form-group input,
.umj-form-group select,
.umj-form-group textarea {
    width: 100%;
    padding: 12px;
    background: #444;
    border: 1px solid #666;
    border-radius: 8px;
    color: #2a8741;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.umj-form-group input:focus,
.umj-form-group select:focus,
.umj-form-group textarea:focus {
    outline: none;
    border-color: #2a8741;
}

.umj-form-group input::placeholder,
.umj-form-group textarea::placeholder {
    color: #888;
}

/* Payment Section */
.umj-payment-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #666;
}

.umj-payment-section h3 {
    color: #2a8741;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.umj-payment-info {
    background: #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #666;
}

.umj-payment-info p {
    color: #ccc;
    margin: 5px 0;
}

.umj-checkout-btn {
    width: 100%;
    background: linear-gradient(90deg, #2A8741 0%, #1F6A32 100%);
    color: #ffffff;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.umj-checkout-btn:hover {
    background: linear-gradient(90deg, #1F6A32 0%, #175428 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 135, 65, 0.3);
}

.umj-checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading and Error States */
.umj-loading {
    text-align: center;
    color: #2a8741;
    padding: 40px;
    font-size: 1.1rem;
}

.umj-empty-cart {
    text-align: center;
    color: #2a8741;
    padding: 40px;
}

.umj-empty-cart h3 {
    color: #2a8741;
    margin-bottom: 15px;
}

.umj-empty-cart p {
    color: #ccc;
    margin-bottom: 20px;
}

.umj-continue-shopping {
    display: inline-block;
    background: #2a8741;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.umj-continue-shopping:hover {
    background: #d4c4a0;
    transform: translateY(-2px);
}

.umj-error {
    text-align: center;
    color: #ff6b6b;
    padding: 40px;
}

.umj-error h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.umj-error p {
    color: #ff8e8e;
    margin-bottom: 20px;
}

.umj-retry-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.umj-retry-button:hover {
    background: #ff5252;
}

/* Responsive Design */
@media (max-width: 768px) {
    .umj-checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .umj-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .umj-checkout-title {
        font-size: 2rem;
    }
    
    .umj-checkout-container {
        padding: 20px 15px;
    }
}

/* Checkout Modal (for popup checkout) */
.umj-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.umj-checkout-content {
    background: black;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.umj-checkout-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: center;
}

.umj-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.umj-checkout-form input,
.umj-checkout-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.umj-checkout-form button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.umj-checkout-total {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* ================================
   Variation Popup Styles
   ================================ */

.umj-variation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.umj-variation-modal.show {
    opacity: 1;
    visibility: visible;
}

.umj-variation-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.umj-variation-options {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.umj-variation-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.umj-variation-option:hover {
    border-color: #0073aa;
}

.umj-variation-option.selected {
    border-color: #0073aa;
    background: #f0f8ff;
}

.umj-variation-option input[type="radio"] {
    margin-right: 15px;
}

.umj-variation-details {
    flex: 1;
}

.umj-variation-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.umj-variation-price {
    color: #0073aa;
    font-weight: 600;
    font-size: 18px;
}

.umj-variation-description {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* ================================
   Notifications
   ================================ */

.umj-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999999;
    max-width: 300px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.umj-notification.show {
    transform: translateX(0);
}

.umj-notification.success {
    border-left-color: #28a745;
}

.umj-notification.error {
    border-left-color: #dc3545;
}

.umj-notification.warning {
    border-left-color: #ffc107;
}

/* ================================
   Loading States
   ================================ */

.umj-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.umj-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: umj-spin 1s linear infinite;
}

@keyframes umj-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    .umj-side-cart {
        width: 100%;
        right: -100%;
    }
    
    .umj-product-actions {
        flex-direction: column;
    }
    
    .umj-checkout-content {
        width: 100%;
        padding: 10px;
    }
    
    .umj-floating-cart {
        bottom: 10px;
        right: 10px;
    }
    
    .umj-cart-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ================================
   Animation Enhancements
   ================================ */

.umj-fade-in {
    animation: umj-fadeIn 0.3s ease;
}

.umj-slide-up {
    animation: umj-slideUp 0.3s ease;
}

@keyframes umj-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes umj-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Product Page Integration
   ================================ */

.umj-ecommerce-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid #333;
}

.umj-product-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quantity Selector */
.umj-quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.umj-qty-label {
    color: #2a8741;
    font-weight: 600;
    font-size: 16px;
}

.umj-qty-controls {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #555;
}

.umj-qty-minus,
.umj-qty-plus {
    background: #444;
    border: none;
    color: #2a8741;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.umj-qty-minus:hover,
.umj-qty-plus:hover {
    background: #555;
    color: #fff;
}

.umj-qty-input {
    width: 70px;
    height: 45px;
    text-align: center;
    border: none;
    background: #333;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* Variation Selector */
.umj-variation-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.umj-variation-label {
    color: #2a8741;
    font-weight: 600;
    font-size: 16px;
}

.umj-pricing-variation {
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.umj-pricing-variation:focus {
    outline: none;
    border-color: #2a8741;
    box-shadow: 0 0 0 2px rgba(233, 216, 180, 0.2);
}

.umj-pricing-variation option {
    background: #333;
    color: #fff;
    padding: 10px;
}

/* Price Display */
.umj-price-display {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #444;
}

.umj-current-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umj-price-label {
    color: #ccc;
    font-size: 14px;
}

.umj-price-amount {
    color: #2a8741;
    font-size: 20px;
    font-weight: bold;
}

/* Action Buttons */
.umj-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.umj-add-to-cart,
.umj-buy-now {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.umj-add-to-cart {
    background: linear-gradient(90deg, #2A8741 0%, #1F6A32 100%);
    color: white;
    border: 2px solid transparent;
}

.umj-add-to-cart:hover {
    background: linear-gradient(90deg, #1F6A32 0%, #175428 100%);
    border-color: #2A8741;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.umj-buy-now {
    background: linear-gradient(90deg, #2A8741 0%, #1F6A32 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.umj-buy-now:hover {
    background: linear-gradient(90deg, #1F6A32 0%, #175428 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 135, 65, 0.3);
}

.umj-add-to-cart i,
.umj-buy-now i {
    font-size: 18px;
}

/* Loading state */
.umj-add-to-cart:disabled,
.umj-buy-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sticky Cart Integration */
.umj-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: umj-bounce 2s infinite;
}

@keyframes umj-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.umj-cart-toggle {
    background: linear-gradient(90deg, #2A8741 0%, #1F6A32 100%);
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(233, 216, 180, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.umj-cart-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(42, 135, 65, 0.6);
    background: linear-gradient(90deg, #1F6A32 0%, #175428 100%);
}

.umj-cart-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Enhanced side cart styling */
.umj-side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-left: 3px solid #2a8741;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.umj-side-cart.open {
    right: 0;
}

.umj-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.umj-cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.umj-cart-header {
    background: linear-gradient(135deg, #2a8741 0%, #1e6b32 100%);
    color: #1a1a1a;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umj-cart-header h3 {
    color: #1a1a1a;
    margin: 0;
    font-size: 18px;
}

.umj-cart-close {
    color: #1a1a1a;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umj-cart-close:hover {
    opacity: 0.7;
}

.umj-cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.umj-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #2a2a2a;
}

.umj-cart-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.umj-cart-item {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.umj-cart-item-info {
    margin-bottom: 10px;
}

.umj-cart-item-title {
    color: #00e338;
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.umj-cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.umj-cart-item-type,
.umj-cart-item-variation {
    color: #999;
    font-size: 12px;
}

.umj-cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umj-cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 5px;
}

.umj-cart-qty-decrease,
.umj-cart-qty-increase {
    background: #444;
    border: none;
    color: #2a8741;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umj-cart-qty-decrease:hover,
.umj-cart-qty-increase:hover {
    background: #555;
}

.umj-cart-qty-display {
    color: #fff;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.umj-cart-item-price {
    color: #2a8741;
    font-weight: bold;
    font-size: 14px;
}

.umj-cart-item-remove {
    background: #dc3545;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.umj-cart-item-remove:hover {
    background: #c82333;
}

.umj-cart-footer {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-top: 1px solid #2a8741;
    padding: 20px;
}

.umj-cart-total {
    color: #2a8741;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.umj-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.umj-checkout-button {
    background: linear-gradient(90deg, #2A8741 0%, #1F6A32 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.umj-checkout-button:hover {
    background: linear-gradient(90deg, #1F6A32 0%, #175428 100%);
    transform: translateY(-1px);
}

.umj-cart-clear {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.umj-cart-clear:hover {
    background: #c82333;
}

/* Floating cart button */
.umj-floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: block; /* Always visible for debugging */
}

.umj-cart-toggle {
    background: linear-gradient(135deg, #2a8741 0%, #1e6b32 100%);
    color: #1a1a1a;
    border: none;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(233, 216, 180, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.umj-cart-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 216, 180, 0.6);
}

.umj-cart-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Empty cart and error states */
.umj-empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(233, 216, 180, 0.2);
}

.umj-empty-cart h3 {
    color: #2a8741;
    margin-bottom: 15px;
}

.umj-empty-cart p {
    color: #999;
    margin-bottom: 20px;
}

.umj-continue-shopping {
    background: linear-gradient(135deg, #2a8741 0%, #1e6b32 100%);
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.umj-continue-shopping:hover {
    background: linear-gradient(135deg, #1e6b32 0%, #125525 100%);
    transform: translateY(-1px);
}

.umj-error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
}

.umj-loading {
    text-align: center;
    color: #2a8741;
    padding: 20px;
    background: rgba(233, 216, 180, 0.1);
    border-radius: 6px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .umj-side-cart {
        width: 100vw;
        right: -100vw;
    }
    
    .umj-cart-item-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* ================================
   Responsive Design Updates
   ================================ */

@media (max-width: 768px) {
    .umj-ecommerce-section {
        padding: 20px;
        margin: 15px 0;
    }
    
    .umj-action-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .umj-add-to-cart,
    .umj-buy-now {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .umj-quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .umj-floating-cart {
        bottom: 15px;
        right: 15px;
    }
    
    .umj-cart-toggle {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .umj-ecommerce-section {
        padding: 15px;
        margin: 10px 0;
    }
    
    .umj-current-price {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .umj-price-amount {
        font-size: 18px;
    }
}

/* ================================
   Theme Integration
   ================================ */

body.cart-open {
    overflow: hidden;
}

/* Ensure compatibility with existing car rental theme */
.car-rental-single-wrapper .umj-ecommerce-section {
    margin-top: 20px;
}

.excursion-container .umj-ecommerce-section {
    margin: 20px 0;
}

/* Integration with existing button styles */
.umj-btn {
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Override any conflicting styles */
.umj-ecommerce-section * {
    box-sizing: border-box;
}

/* ================================
   Places UI Integration
   ================================ */

.places-ui__ecommerce {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(233, 216, 180, 0.3);
}

.places-ui__quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 15px;
}

.places-qty-label {
    color: #2a8741;
    font-weight: 600;
    font-size: 16px;
}

.places-qty-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(233, 216, 180, 0.3);
}

.places-qty-controls .umj-qty-minus,
.places-qty-controls .umj-qty-plus {
    background: rgba(233, 216, 180, 0.2);
    border: none;
    color: #2a8741;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.places-qty-controls .umj-qty-minus:hover,
.places-qty-controls .umj-qty-plus:hover {
    background: rgba(233, 216, 180, 0.4);
    color: #fff;
}

.places-qty-controls .umj-qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.places-ui__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.places-cart-btn,
.places-book-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.places-cart-btn {
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.9) 0%, rgba(45, 55, 72, 0.9) 100%);
    color: white;
    border: 2px solid transparent;
}

.places-cart-btn:hover {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9) 0%, rgba(26, 32, 44, 0.9) 100%);
    border-color: #2a8741;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.places-book-btn {
    background: linear-gradient(135deg, rgba(233, 216, 180, 0.9) 0%, rgba(212, 193, 156, 0.9) 100%);
    color: #1a1a1a;
    border: 2px solid transparent;
}

.places-book-btn:hover {
    background: linear-gradient(135deg, rgba(212, 193, 156, 0.9) 0%, rgba(196, 176, 136, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 216, 180, 0.3);
}

.places-cart-btn i,
.places-book-btn i {
    font-size: 16px;
}

/* Places UI Mobile Responsive */
@media (max-width: 768px) {
    .places-ui__ecommerce {
        padding: 15px;
        margin-top: 15px;
    }
    
    .places-ui__quantity {
        flex-direction: column;
        gap: 10px;
    }
    
    .places-ui__actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .places-cart-btn,
    .places-book-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .places-ui__ecommerce {
        padding: 12px;
    }
    
    .places-qty-controls .umj-qty-minus,
    .places-qty-controls .umj-qty-plus {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .places-qty-controls .umj-qty-input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }
}

/* Checkout Form Debug Styles */
.umj-checkout-form {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.umj-checkout-form input.error,
.umj-checkout-form select.error,
.umj-checkout-form textarea.error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

.umj-checkout-form input.error::placeholder,
.umj-checkout-form select.error::placeholder,
.umj-checkout-form textarea.error::placeholder {
    color: #ff6b6b !important;
}

/* Notification Styles */
.umj-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.umj-notification.show {
    transform: translateX(0);
}

.umj-notification-success {
    background: #4caf50;
    border-left: 4px solid #2e7d32;
}

.umj-notification-error {
    background: #f44336;
    border-left: 4px solid #c62828;
}

.umj-notification-warning {
    background: #ff9800;
    border-left: 4px solid #ef6c00;
}

.umj-notification-info {
    background: #2196f3;
    border-left: 4px solid #1565c0;
}

.umj-notification-icon {
    margin-right: 10px;
    font-weight: bold;
}

/* Checkout Item Styles */
.umj-checkout-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.umj-checkout-item-info h4 {
    margin: 0 0 8px 0;
    color: #2a8741;
    font-size: 1.1rem;
}

.umj-checkout-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.umj-checkout-item-meta span {
    background: rgba(233, 216, 180, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.umj-checkout-item-quantity {
    color: #2a8741;
    font-weight: 600;
}

.umj-checkout-item-price {
    color: #2a8741;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Empty Cart and Error States */
.umj-empty-cart,
.umj-error {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
}

.umj-empty-cart h3,
.umj-error h3 {
    color: #2a8741;
    margin-bottom: 15px;
}

.umj-continue-shopping,
.umj-retry-button {
    display: inline-block;
    background: linear-gradient(135deg, #2a8741 0%, #1e6b32 100%);
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.umj-continue-shopping:hover,
.umj-retry-button:hover {
    background: linear-gradient(135deg, #1e6b32 0%, #125525 100%);
    transform: translateY(-2px);
    text-decoration: none;
    color: #1a1a1a;
}