/* Cart Page Styles */
.cart-main {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #2563eb;
    display: inline-block;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Left Side - Cart Items */
.cart-items-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Loading State */
.cart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.empty-cart-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 24px;
    color: #374151;
    margin-bottom: 10px;
}

.empty-cart p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* Cart Items List */
.cart-items-list {
    padding: 0;
}

/* Individual Cart Item */
.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f9fafb;
}

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

/* Product Image */
.item-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f9fafb;
}

/* Product Info */
.item-info {
    flex: 1;
    margin-right: 20px;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 8px;
}

.item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-title a:hover {
    color: #2563eb;
}

.item-brand {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 15px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-label {
    font-size: 14px;
    color: #374151;
    margin-right: 5px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.quantity-btn:active {
    background-color: #e5e7eb;
}

.quantity-btn.minus {
    border-radius: 4px 0 0 4px;
}

.quantity-btn.plus {
    border-radius: 0 4px 4px 0;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #d1d5db;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background-color: white;
    outline: none;
}

/* Remove Button */
.remove-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.remove-btn:hover {
    background-color: #fecaca;
    color: #b91c1c;
}

/* Item Total */
.item-total {
    text-align: right;
    margin-top: 10px;
}

.item-total-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.item-total-price {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Right Side - Order Summary */
.order-summary-section {
    position: sticky;
    top: 20px;
}

.order-summary-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

/* Price Breakdown */
.price-breakdown {
    margin-bottom: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.total-row {
    padding: 15px 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
}

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

.price-row.total-row .price-label {
    font-size: 16px;
    font-weight: 600;
}

.item-count {
    color: #6b7280;
    font-weight: 400;
}

.tax-note {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

.price-value {
    font-weight: 600;
    color: #1f2937;
}

.price-value.free {
    color: #059669;
}

.price-value.total {
    color: #dc2626;
    font-size: 20px;
}

/* Action Buttons */
.cart-actions {
    margin-bottom: 25px;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    margin-bottom: 12px;
}

.btn-primary {
    background-color: #059669;
    color: white;
}

.btn-primary:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Benefits Info */
.benefits-info {
    background-color: #f0f9ff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #bae6fd;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #0369a1;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    font-size: 16px;
    color: #0369a1;
    width: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary-section {
        order: -1;
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-main {
        padding: 15px 0;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .item-image {
        margin: 0 auto 15px;
    }
    
    .item-info {
        margin: 0 0 15px 0;
    }
    
    .remove-btn {
        position: static;
        margin-top: 15px;
        align-self: center;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .order-summary-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .cart-item {
        padding: 15px;
    }
    
    .item-image {
        width: 100px;
        height: 100px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .order-summary-card {
        padding: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 16px;
        font-size: 14px;
    }
}




























/* ===== CSS PARA ORDER_CONFIRMATION.HTML ===== */

.checkout-main {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px 0;
}

.checkout-layout {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-section {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required-note {
    font-size: 12px;
    color: #666;
}

/* Form Styles */
.form-container {
    padding: 20px;
}

.form-row {
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-label.required::after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #e74c3c;
    background: white;
}

.name-inputs {
    display: flex;
    gap: 10px;
}

.name-input {
    flex: 1;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.form-help a {
    color: #007bff;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.address-instruction {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
}

.form-group-inner {
    margin-bottom: 15px;
}

.sub-label {
    display: block;
    font-weight: normal;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

/* Cart Summary Styles */
.checkout-cart-list {
    border: 1px solid #ddd;
}

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

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

.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-price-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.item-price, .item-total {
    font-weight: bold;
    color: #333;
}

.checkout-total {
    background: #f8f9fa;
    padding: 15px;
    border-top: 2px solid #dee2e6;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.final-total {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 5px;
    font-weight: bold;
    font-size: 16px;
}

/* Payment Methods Styles */
.payment-methods {
    padding: 20px;
}

.payment-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #e74c3c;
    background: #fef9f9;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    gap: 12px;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

input[type="radio"]:checked + .radio-custom {
    border-color: #e74c3c;
}

input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="radio"] {
    display: none;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.payment-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-note {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.delivery-ok {
    background: #d1edff;
    color: #0066cc;
}

.delivery-no {
    background: #ffe6e6;
    color: #cc0000;
}

.payment-description {
    font-size: 12px;
    color: #666;
}

/* Payment Details Styles */
.payment-details-container {
    border-top: 1px solid #dee2e6;
}

.payment-method-details {
    padding: 20px;
}

.payment-method-details.hidden {
    display: none;
}

.payment-form-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.payment-info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.payment-info-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.payment-info-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.payment-info-content p {
    margin-bottom: 10px;
}

.bank-info {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.bank-info h4 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.bank-info p {
    margin-bottom: 5px;
    font-size: 13px;
}

.expiry-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.expiry-inputs .form-select {
    width: 80px;
}

.separator {
    font-size: 14px;
    color: #666;
}

/* Action Buttons */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.btn-secondary, .btn-primary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #c0392b;
}

.empty-cart-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 14px;
    color: #666;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #666;
}

.breadcrumbs .current {
    color: #333;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-layout {
        margin: 0 10px;
    }
    
    .name-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkout-cart-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .item-price-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .payment-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .expiry-inputs {
        flex-wrap: wrap;
    }
}












/* ===== CSS PARA ORDER_INFO.HTML ===== */

/* Reutiliza la mayoría de estilos de order_confirmation.html, agregando: */

/* Campos deshabilitados */
.form-input:disabled,
.form-select:disabled {
    background: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* Payment Confirmation Styles */
.payment-confirmation {
    padding: 20px;
}

.payment-message-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #d1edff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
}

.payment-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.payment-message-content {
    flex: 1;
}

.payment-message-text {
    font-size: 16px;
    color: #0066cc;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Order Summary Styles */
.order-summary {
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.total-row {
    background: #f8f9fa;
    margin: 10px -20px -20px;
    padding: 20px;
    border-top: 2px solid #dee2e6;
}

.total-row .summary-label,
.total-row .summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.delivery-fee {
    background: #fff3cd;
    margin: 0 -20px;
    padding: 12px 20px;
    border-left: 4px solid #ffc107;
}

.delivery-fee .summary-label {
    color: #856404;
}

.delivery-fee .summary-value {
    color: #856404;
    font-weight: bold;
}

/* Important Notice Styles */
.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    overflow: hidden;
}

.notice-header {
    background: #ffc107;
    color: #212529;
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-content {
    padding: 20px;
}

.notice-list {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.notice-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

/* Cart Items for Order Info */
#order-info-cart-items .checkout-cart-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

#order-info-cart-items .item-name {
    font-weight: 500;
    color: #495057;
}

/* Success state for confirmed order */
.order-confirmed .payment-icon {
    background: #28a745;
}

.order-confirmed .payment-message-container {
    background: #d4edda;
    border-color: #c3e6cb;
}

.order-confirmed .payment-message-text {
    color: #155724;
}

/* Loading state */
.order-loading {
    text-align: center;
    padding: 40px;
}

.order-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.order-loading p {
    color: #666;
    font-size: 16px;
}

/* Responsive Design for Order Info */
@media (max-width: 768px) {
    .payment-message-container {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-icon {
        align-self: center;
    }
    
    .summary-row {
        padding: 15px 0;
    }
    
    .notice-content {
        padding: 15px;
    }
    
    .total-row {
        margin: 10px -15px -20px;
        padding: 15px;
    }
    
    .delivery-fee {
        margin: 0 -15px;
        padding: 12px 15px;
    }
}

