/* ============================================
   HISPASYS CART FULLPAGE - SOBRESCRITURA
   Para standard_cart
   ============================================ */

/* Reset básico para el carrito */
#order-standard_cart * {
    box-sizing: border-box;
}

/* Contenedor principal - sin sidebar, todo el ancho */
#order-standard_cart {
    max-width: 100%;
    width: 100%;
    float: none;
    padding: 0;
    margin: 0;
}

/* Ocultar sidebar completamente */
#order-standard_cart .cart-sidebar,
#order-standard_cart .secondary-cart-sidebar {
    display: none !important;
}

/* Cuerpo del carrito - 100% ancho */
#order-standard_cart .cart-body,
#order-standard_cart .secondary-cart-body {
    float: none;
    width: 100% !important;
    padding: 0;
    max-width: 95%;
    margin: 0 auto;
}

/* Header del carrito */
#order-standard_cart .header-lined {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff !important;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    border: none;
    border-radius: 0;
    width: 100%;
}

#order-standard_cart .header-lined h1 {
    color: #fff !important;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

#order-standard_cart .header-lined h1:before {
    content: '\f07a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 15px;
    color: #fff;
}

#order-standard_cart .header-lined * {
    color: #fff !important;
}

/* Progress Bar */
#order-standard_cart .cart-steps {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#order-standard_cart .cart-steps ol {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

#order-standard_cart .cart-steps ol:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

#order-standard_cart .cart-steps li {
    position: relative;
    z-index: 1;
    text-align: center;
}

#order-standard_cart .cart-steps li:before {
    content: counter(li);
    counter-increment: li;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: block;
    margin: 0 auto 8px;
    line-height: 40px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.2s;
}

#order-standard_cart .cart-steps li.active:before {
    background: #000;
    color: #fff;
}

#order-standard_cart .cart-steps li.done:before {
    background: #ff0000;
    color: #fff;
}

#order-standard_cart .cart-steps li span {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

#order-standard_cart .cart-steps li.active span {
    color: #000;
    font-weight: 700;
}

/* Items del carrito */
#order-standard_cart .view-cart-items {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

#order-standard_cart .view-cart-items .item {
    display: grid;
    grid-template-columns: 50px 1fr 120px 90px;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

#order-standard_cart .view-cart-items .item:hover {
    border-color: #ff0000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#order-standard_cart .view-cart-items .item .item-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#order-standard_cart .view-cart-items .item .item-icon i {
    font-size: 20px;
    color: #000;
}

#order-standard_cart .view-cart-items .item .item-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

#order-standard_cart .view-cart-items .item .item-details {
    font-size: 12px;
    color: #666;
}

#order-standard_cart .view-cart-items .item .item-price {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

#order-standard_cart .view-cart-items .item .btn-remove {
    background: #f0f0f0;
    color: #333 !important;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}

#order-standard_cart .view-cart-items .item .btn-remove:hover {
    background: #ff0000;
    color: #fff !important;
}

/* Resumen del pedido */
#order-standard_cart .order-summary-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    max-width: 450px;
    margin: 0 auto;
}

#order-standard_cart .order-summary {
    border: none;
    padding: 0;
    background: transparent;
}

#order-standard_cart .order-summary tr td,
#order-standard_cart .order-summary tr th {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

#order-standard_cart .order-summary tr:last-child td {
    border-bottom: none;
}

#order-standard_cart .order-summary .total-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* Botones de acción */
#order-standard_cart .cart-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

#order-standard_cart .cart-actions .btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

#order-standard_cart .cart-actions .btn-default {
    background: #f0f0f0;
    color: #333 !important;
    border: 1px solid #ddd;
}

#order-standard_cart .cart-actions .btn-default:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

#order-standard_cart .cart-actions .btn-primary {
    background: #000;
    color: #fff !important;
    border: none;
}

#order-standard_cart .cart-actions .btn-primary:hover {
    background: #ff0000;
    transform: none;
}

/* Promo code */
#order-standard_cart .promo-code-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

#order-standard_cart .promo-code-box input {
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

#order-standard_cart .promo-code-box .btn {
    border-radius: 6px;
    padding: 10px 25px;
}

/* Alertas */
#order-standard_cart .alert {
    border-radius: 6px;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
}

#order-standard_cart .alert-danger {
    background: #ffe6e6;
    color: #c62828;
}

#order-standard_cart .alert-warning {
    background: #fff3e0;
    color: #e65100;
}

#order-standard_cart .alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

#order-standard_cart .alert-info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Estilos generales de texto */
#order-standard_cart p,
#order-standard_cart span,
#order-standard_cart div,
#order-standard_cart label {
    color: #333;
}

#order-standard_cart a {
    color: #000;
}

#order-standard_cart a:hover {
    color: #ff0000;
}

/* Tablas */
#order-standard_cart table {
    background: #fff;
}

#order-standard_cart table tr:hover {
    background: #f9f9f9;
}

/* Inputs y formularios */
#order-standard_cart input[type="text"],
#order-standard_cart input[type="email"],
#order-standard_cart input[type="number"],
#order-standard_cart select,
#order-standard_cart textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
}

#order-standard_cart input:focus,
#order-standard_cart select:focus,
#order-standard_cart textarea:focus {
    outline: none;
    border-color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    #order-standard_cart .view-cart-items .item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #order-standard_cart .view-cart-items .item .item-icon {
        margin: 0 auto;
    }

    #order-standard_cart .cart-actions {
        flex-direction: column;
    }

    #order-standard_cart .cart-actions .btn {
        width: 100%;
    }

    #order-standard_cart .header-lined h1 {
        font-size: 24px;
    }

    #order-standard_cart .cart-steps li span {
        font-size: 10px;
    }

    #order-standard_cart .cart-steps li:before {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
}
