/* Sitmobel Core — Quote Mode */

/* Ocultar columna de precios en carrito y checkout */
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal,
.woocommerce-cart table.cart thead .product-price,
.woocommerce-cart table.cart thead .product-subtotal,
.woocommerce-checkout .woocommerce-checkout-review-order .product-total,
.woocommerce-checkout .woocommerce-checkout-review-order thead .product-total {
    display: none;
}

/* Ocultar totales (precio total no aplica para cotización) */
.woocommerce-cart .cart-collaterals .cart_totals .order-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total {
    display: none;
}

/* Ocultar sección de métodos de pago */
.woocommerce-checkout #payment {
    display: none !important;
}

/* Nota informativa en checkout */
.sitmobel-quote-note {
    background: #f0f4ff;
    border-left: 4px solid #3b5bdb;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.sitmobel-quote-payment-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* Botón "Agregar a cotización" */
.woocommerce a.button.add_to_cart_button,
.woocommerce button.single_add_to_cart_button {
    /* hereda estilos del tema; solo overrides si es necesario */
}

/* Cart: ocultar coupon (descuentos no aplican en cotización) */
.woocommerce-cart .coupon {
    display: none;
}

/* ══════════════════════════════════════════════════════════════
   OCULTAR NOTICES DE WOOCOMMERCE
   ══════════════════════════════════════════════════════════════ */

.woocommerce-notices-wrapper { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════ */

.sitmobel-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-24px);
    background: #7D6148;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999999;
    opacity: 0;
    pointer-events: none;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    max-width: calc(100vw - 32px);
    text-align: center;
}

.sitmobel-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   BOTÓN COTIZAR (HEADER)
   ══════════════════════════════════════════════════════════════ */

.sitmobel-cart-btn-wrap {
    position: relative;
    display: inline-flex;
}

.sitmobel-cart-btn {
    background: #7D6148 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px 6px 6px 6px !important;
    padding: 6px 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0px !important;
    font-family: "Montserrat", Sans-serif !important;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
    box-shadow: none !important;
    text-decoration: none !important;
}

.sitmobel-cart-btn[type=button]:hover {
    background-color: #6a5040 !important;
    color: #fff !important;
    border-radius: 6px !important;
}
.sitmobel-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 22px;
    height: 22px;
    background: #E05D2A;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
    transition: transform .2s;
}

.sitmobel-cart-count.is-empty { display: none; }

/* ══════════════════════════════════════════════════════════════
   PANEL LATERAL DEL CARRITO
   ══════════════════════════════════════════════════════════════ */

/* Wrapper fijo */
.sitmobel-cart-panel-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
}
.sitmobel-cart-panel-wrap.is-open { pointer-events: all; }

/* Overlay */
.sitmobel-cart-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}
.sitmobel-cart-panel-wrap.is-open .sitmobel-cart-panel-overlay {
    background: rgba(0,0,0,.45);
}

/* Panel */
.sitmobel-cart-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(480px, 100vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sitmobel-cart-panel-wrap.is-open .sitmobel-cart-panel {
    transform: translateX(0);
}

/* Inner (actualizado por fragmentos) */
.sitmobel-cart-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Cabecera */
.sitmobel-cp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 20px 16px;
    flex-shrink: 0;
}
.sitmobel-cp-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111;
}
.sitmobel-cp-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}
.sitmobel-cp-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #6b7280 !important;
    padding: 0 !important;
    line-height: 1;
    transition: color .15s;
    box-shadow: none !important;
}
.sitmobel-cp-close:hover { color: #111; }

.sitmobel-cp-divider {
    height: 1px;
    background: #f0f0f0;
    flex-shrink: 0;
}

/* Lista de items (scrolleable) */
.sitmobel-cp-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
}
.sitmobel-cp-empty {
    text-align: center;
    padding: 24px 0;
}

.sitmobel-cp-empty-text {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px;
}

.sitmobel-cp-empty-hint {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0;
}

.sitmobel-cp-empty-hint a {
    color: #7D6148;
    font-weight: 600;
    text-decoration: underline;
}

.sitmobel-cp-empty-hint a:hover {
    color: #6a5040;
}

/* Item */
.sitmobel-cp-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sitmobel-cp-item:last-child { border-bottom: none; }

.sitmobel-cp-img-link { flex-shrink: 0; }
.sitmobel-cp-img-link img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.sitmobel-cp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.sitmobel-cp-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}
.sitmobel-cp-attrs {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}
.sitmobel-cp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}
.sitmobel-cp-qty {
    font-size: 0.875rem;
    color: #374151;
}
.sitmobel-cp-qty strong { font-weight: 700; }

.sitmobel-cp-remove {
    font-size: 0.875rem;
    font-weight: 600;
    color: #7D6148;
    text-decoration: none;
    transition: opacity .15s;
}
.sitmobel-cp-remove:hover { opacity: .7; color: #7D6148; }

/* Footer fijo */
.sitmobel-cp-footer {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.sitmobel-cp-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: #7D6148;
    color: #fff !important;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: .08em;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .15s;
}
.sitmobel-cp-cta:hover { background: #6a5040; }
