/* ===== CART CSS - Estilos personalizados para el carrito ===== */

/* Layout principal */
.cart-container {
    min-height: 100vh;
    padding: 1rem 0;
    background-color: #000000;
}

@media (min-width: 640px) {
    .cart-container {
        padding: 2rem 0;
    }
}

.cart-wrapper {
    max-width: 72rem;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Layout de dos columnas responsivo */
.cart-two-column-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-two-column-layout {
        flex-direction: row;
        gap: 3rem;
        align-items: flex-start;
    }
}

/* Columna izquierda - Productos */
.cart-left-column {
    flex: 1;
    min-width: 0; /* Permite que el contenido se ajuste */
}

/* Columna derecha - Resumen */
.cart-right-column {
    width: 100%;
}

@media (min-width: 1024px) {
    .cart-right-column {
        width: 400px;
        flex-shrink: 0;
    }
}

/* Botones de acción del carrito */
.cart-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .cart-action-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cart-continue-shopping-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-align: center;
    color: #d1d5db;
    background-color: transparent;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-continue-shopping-btn:hover {
    background-color: #1f2937;
    color: #ffffff;
}

.cart-clear-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #f87171;
    background-color: transparent;
    border: 1px solid #dc2626;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-clear-btn:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* Banner de envío gratis */
.cart-shipping-banner {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #1f2937;
    border-left: 4px solid #ef4444;
    border-radius: 0.5rem;
}

.cart-shipping-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-shipping-icon {
    font-size: 1.25rem;
    color: #ef4444;
}

.cart-shipping-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #ffffff;
}

.cart-shipping-subtitle {
    font-size: 0.875rem;
    color: #d1d5db;
}

/* Título principal */
.cart-title {
    margin-bottom: 2rem;
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}

/* Carrito vacío */
.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #1f2937;
    border-radius: 0.75rem;
    border: 1px solid #374151;
}

.cart-empty-icon {
    font-size: 4rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.cart-empty-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cart-empty-subtitle {
    color: #9ca3af;
    margin-bottom: 2rem;
}

.cart-empty-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #dc2626;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cart-empty-btn:hover {
    background-color: #b91c1c;
}

/* Sección de productos */
.cart-products-section {
    background-color: #1f2937;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #374151;
}

/* Lista de productos */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Resumen del pedido - Ajustes responsivos */
.cart-summary-section {
    background-color: #1f2937;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #374151;
    position: sticky;
    top: 2rem;
}

@media (max-width: 1023px) {
    .cart-summary-section {
        position: static;
    }
}

.cart-products-section {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .cart-products-section {
        grid-column: span 2;
    }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Elementos del carrito dinámicos */
.cart-item {
    border: 1px solid #374151;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #1f2937;
    margin-bottom: 1rem;
}

.cart-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid #374151;
}

.cart-item-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0.5rem;
}

.cart-remove-btn {
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: #ef4444;
}

.cart-item-content {
    padding: 1rem;
}

.cart-item-mobile {
    display: block;
}

@media (min-width: 640px) {
    .cart-item-mobile {
        display: none;
    }
}

.cart-item-desktop {
    display: none;
}

@media (min-width: 640px) {
    .cart-item-desktop {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.cart-item-details {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cart-item-image-container {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
}

.cart-item-image-container-desktop {
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #4b5563;
    background-color: #ffffff;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info-desktop {
    flex: 1;
    min-width: 0;
}

.cart-item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: center;
}

.cart-item-detail {
    display: flex;
    flex-direction: column;
}

.cart-item-subtotal-desktop {
    text-align: right;
}

.cart-item-label {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.cart-item-value {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.cart-item-price {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.125rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
}

.cart-quantity-controls .cart-item-label {
    margin-right: 0.75rem;
}

.cart-quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #374151;
    border-radius: 0.25rem;
    border: 1px solid #4b5563;
}

.cart-quantity-buttons-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #374151;
    border-radius: 0.25rem;
    border: 1px solid #4b5563;
    width: fit-content;
}

.cart-quantity-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-quantity-btn:hover {
    background-color: #4b5563;
}

.cart-quantity-btn-desktop {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.75rem;
}

.cart-quantity-btn-desktop:hover {
    background-color: #4b5563;
}

.cart-quantity-display {
    width: 2.5rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.cart-quantity-display-desktop {
    width: 2rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.cart-item-subtotal {
    text-align: right;
}

.cart-item-total {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Resumen del pedido */
.cart-summary-section {
    grid-column: span 1;
}

.cart-summary-container {
    /*NO PONGAS ESTILOS AQUI*/
}

.cart-summary-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
}

/* Banner de envío gratis en resumen */
.cart-free-shipping-banner {
    padding: 0.75rem;
    margin-bottom: 1rem;
    background-color: rgba(6, 78, 59, 0.3);
    border: 1px solid #059669;
    border-radius: 0.5rem;
}

.cart-free-shipping-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
    color: #34d399;
}

.cart-free-shipping-text {
    font-weight: bold;
}

.cart-free-shipping-subtitle {
    font-size: 0.875rem;
    text-align: center;
    color: #6ee7b7;
}

/* Detalles de precios */
.cart-price-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #d1d5db;
}

.cart-price-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #4b5563;
}

.cart-price-label {
    color: #9ca3af;
}

.cart-original-price {
    color: #9ca3af;
    text-decoration: line-through;
}

.cart-discount-row {
    font-weight: bold;
    color: #ef4444;
}

.cart-subtotal-row {
    font-weight: bold;
    color: #ffffff;
}

.cart-shipping-row {
    font-weight: bold;
    color: #34d399;
}

.cart-divider {
    margin: 1rem 0;
    border-color: #4b5563;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: bold;
    color: #ef4444;
}

/* Elemento de urgencia */
.cart-urgency-banner {
    padding: 0.75rem;
    margin-top: 1rem;
    text-align: center;
    background-color: rgba(154, 52, 18, 0.3);
    border: 1px solid #f97316;
    border-radius: 0.5rem;
}

.cart-urgency-text {
    font-size: 0.875rem;
    font-weight: bold;
    color: #fb923c;
}

/* Botón de checkout */
.cart-checkout-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #dc2626;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cart-checkout-btn:hover {
    background-color: #b91c1c;
}

/* Testimonios */
.cart-testimonial {
    padding: 0.75rem;
    margin-top: 1rem;
    background-color: #374151;
    border-left: 4px solid #eab308;
    border-radius: 0.5rem;
}

.cart-testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
}

.cart-testimonial-stars {
    display: flex;
    font-size: 0.75rem;
    color: #fbbf24;
}

.cart-testimonial-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.cart-testimonial-text {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* Botón continuar comprando */
.cart-continue-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #ef4444;
    background-color: transparent;
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cart-continue-btn:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Elementos de confianza */
.cart-trust-elements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.cart-trust-item {
    padding: 0.5rem;
    background-color: #374151;
    border-radius: 0.5rem;
}

.cart-trust-icon {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.cart-trust-icon.secure {
    color: #10b981;
}

.cart-trust-icon.shipping {
    color: #3b82f6;
}

.cart-trust-icon.return {
    color: #eab308;
}

.cart-trust-text {
    font-size: 0.75rem;
    color: #d1d5db;
}

/* Notificaciones */
.cart-notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 50;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart-notification-success {
    background-color: #059669;
    color: #ffffff;
}

.cart-notification-error {
    background-color: #dc2626;
    color: #ffffff;
}

.cart-notification-show {
    transform: translateX(0);
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-notification-icon {
    font-size: 1rem;
}

.cart-notification-text {
    font-size: 0.875rem;
}

/* Utilidades */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.space-x-2 > * + * {
    margin-left: 0.5rem;
}

.space-x-3 > * + * {
    margin-left: 0.75rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: bold;
}

.font-medium {
    font-weight: 500;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-red-500 {
    color: #ef4444;
}

.text-green-400 {
    color: #34d399;
}

.text-orange-400 {
    color: #fb923c;
}

.text-yellow-400 {
    color: #fbbf24;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.border {
    border-width: 1px;
}

.border-gray-600 {
    border-color: #4b5563;
}

.border-gray-700 {
    border-color: #374151;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}