/**
 * ZonaCNC Product Page — Machineseeker-style Layout
 * Two-column: left (data + price) | right (seller + contact form)
 */

/* ── Hide PS e-commerce elements ── */
.product-add-to-cart,
.product-quantity,
.add-to-cart,
#add-to-cart-or-refresh,
.product-availability,
.product-out-of-stock,
.product-in-stock,
.product-last-items,
.product-minimal-quantity,
.product-additional-info .social-sharing,
.product-pack,
.product-discounts,
.product-variants,
.tax-shipping-delivery-label,
.product-prices .product-discount,
.product-prices .regular-price {
    display: none !important;
}

/* Hide PS default price — we show our own */
.product-prices {
    display: none !important;
}

/* Hide PS product flags (Nuevo, Fuera de stock badges on image) */
.product-flags,
.product-flag,
.product__flags {
    display: none !important;
}

/* Hide PS product actions (form, notify, social), bottom section, comments */
.product__actions {
    display: none !important;
}
.product__bottom {
    display: none !important;
}
.product-comments-wrapper {
    display: none !important;
}
.blockreassurance_product,
[class*="reassurance"] {
    display: none !important;
}

/* ═══════ MACHINE DATA LAYOUT (full-width below image) ═══════ */
.zcnc-product-layout {
    display: block;
    margin: 1.5rem 0 2rem;
}

/* Right column is now moved into product__right via JS — hide it in the grid */
.zcnc-product-right {
    display: none;
}

/* Make PS product__right sticky when our cards are injected */
.product__right {
    position: sticky !important;
    top: 1rem !important;
    align-self: start !important;
}

/* ── LEFT COLUMN ── */
.zcnc-product-left {
    min-width: 0;
}

/* Price Bar */
.zcnc-price-bar {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.zcnc-price-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.zcnc-price-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zcnc-price-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #c62828;
    line-height: 1.1;
}

.zcnc-price-consultar {
    color: #555;
    font-size: 1.25rem;
}

.zcnc-price-type {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.zcnc-quick-info {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.zcnc-quick-item {
    display: flex;
    flex-direction: column;
}

.zcnc-quick-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zcnc-quick-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

/* Data Section (Datos de la maquina) */
.zcnc-data-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.zcnc-data-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.zcnc-data-table {
    width: 100%;
    border-collapse: collapse;
}

.zcnc-data-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.zcnc-data-table tr:last-child {
    border-bottom: none;
}

.zcnc-dt-label {
    padding: 0.6rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    width: 40%;
    vertical-align: top;
}

.zcnc-dt-value {
    padding: 0.6rem 0;
    font-size: 0.875rem;
    color: #222;
}

/* Condition Badge */
.zcnc-condition-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.zcnc-condition-badge.condition-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.zcnc-condition-badge.condition-used {
    background: #e3f2fd;
    color: #1565c0;
}

.zcnc-condition-badge.condition-repair {
    background: #fff3e0;
    color: #e65100;
}

.zcnc-condition-badge.condition-parts {
    background: #fce4ec;
    color: #c62828;
}

/* Video button */
.zcnc-btn-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #f5f5f5;
    color: #333;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s;
}

.zcnc-btn-video:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* Seller Card */
.zcnc-seller-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.zcnc-seller-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.zcnc-seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.zcnc-seller-avatar {
    width: 48px;
    height: 48px;
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.zcnc-seller-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.zcnc-seller-name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.zcnc-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
}

.zcnc-seller-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.zcnc-seller-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #666;
}

.zcnc-seller-meta-item svg {
    flex-shrink: 0;
    color: #999;
}

.zcnc-seller-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem;
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    border: 1px solid #e0e0e0;
}

.zcnc-seller-phone-btn:hover {
    background: #e8e8e8;
    color: #333;
    text-decoration: none;
}

/* Contact Form Card */
.zcnc-contact-form-card {
    background: #1a2332;
    border-radius: 8px;
    padding: 1.25rem;
    color: #fff;
}

.zcnc-contact-form-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
}

.zcnc-inline-contact-form .zcnc-form-field {
    margin-bottom: 0.6rem;
}

.zcnc-inline-contact-form textarea,
.zcnc-inline-contact-form input[type="text"],
.zcnc-inline-contact-form input[type="email"],
.zcnc-inline-contact-form input[type="tel"] {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #3a4a5c;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.zcnc-inline-contact-form textarea:focus,
.zcnc-inline-contact-form input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}

.zcnc-inline-contact-form textarea {
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}

.zcnc-submit-solicitud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: #2e7d32;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.zcnc-submit-solicitud:hover {
    background: #1b5e20;
}

/* Description content (moved from PS accordion into our layout) */
.zcnc-desc-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
    word-break: break-word;
}

.zcnc-desc-content a {
    color: #1565c0;
}

/* ── Ensure cards fill their container ── */
.zcnc-contact-form-card,
.zcnc-seller-card {
    box-sizing: border-box;
    width: 100%;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .product__right {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .zcnc-price-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .zcnc-quick-info {
        gap: 1rem;
    }

    .zcnc-dt-label {
        width: 45%;
    }
}
