/*
Theme Name: Seventy Blue - Secciones Editables
Template: seventy-blue
Version: 1.0.0
Description: Child theme con sistema de secciones editables mediante metaboxes
Author: Christian Laurian
*/

/*--------------------------------------------------------------
Estilos para Secciones Personalizadas
--------------------------------------------------------------*/

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #2271b1;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.4);
}

.hero-button:hover {
    background-color: #135e96;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.6);
    text-decoration: none;
    color: #fff;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.about-text p {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #2d3748;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature-text {
    color: #718096;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #fff;
    color: #764ba2;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}


/* ═══════════════════════════════════════════════
   MFH KNITS — CSS PÁGINA DE COTIZACIÓN
   Pegar en: Apariencia → Personalizar → CSS Adicional
   ═══════════════════════════════════════════════ */

/* Back link */
.mfhq-back { padding: 14px 0; }
.mfhq-back a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #666; text-decoration: none; }
.mfhq-back a:hover { color: #111; }

/* Layout principal */
.mfhq-wrap { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; max-width: 1200px; margin: 0 auto; padding: 20px 0 60px; }
@media (max-width: 860px) { .mfhq-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Título */
.mfhq-page-title { font-size: 22px; font-weight: 800; letter-spacing: .04em; margin-bottom: 4px; }
.mfhq-page-sub { font-size: 13px; color: #888; margin-bottom: 24px; }

/* Tarjeta de producto */
.mfhq-card { display: grid; grid-template-columns: 120px 1fr 36px; gap: 16px; align-items: start; background: #fff; border: 1px solid #e8e8e8; padding: 16px; margin-bottom: 12px; }
.mfhq-card-img { width: 120px; height: 100px; background: #f5f5f5; overflow: hidden; border: 1px solid #eee; }
.mfhq-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfhq-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #bbb; letter-spacing: .1em; text-transform: uppercase; }

/* Info del producto */
.mfhq-card-code { font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 3px; }
.mfhq-card-mat  { font-size: 12px; color: #555; margin-bottom: 2px; }
.mfhq-card-col  { font-size: 12px; color: #555; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mfhq-card-col em { font-style: normal; font-weight: 600; }

/* Fila de cantidad */
.mfhq-qty-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mfhq-qty-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #888; text-transform: uppercase; }
.mfhq-qbtn { width: 28px; height: 28px; background: black; border: 1px solid #ddd; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; padding: 0; font-weight: 400; }
.mfhq-qbtn:hover { background: #e0e0e0; }
.mfhq-qinput { width: 56px; height: 28px; border: 1px solid #ddd; text-align: center; font-size: 13px; font-weight: 700; outline: none; }
.mfhq-qinput:focus { border-color: #111; }
.mfhq-qinput::-webkit-inner-spin-button, .mfhq-qinput::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Botón eliminar */
.mfhq-del { background: none; border: none; font-size: 16px; cursor: pointer; color: #aaa; padding: 4px; transition: color .15s; align-self: start; line-height: 1; }
.mfhq-del:hover { color: #e53935; }

/* Carrito vacío */
.mfhq-empty-msg { text-align: center; padding: 40px 20px; font-size: 14px; color: #888; border: 2px dashed #ddd; }
.mfhq-empty-msg a { color: #111; font-weight: 600; }

/* Totales */
.mfhq-totals { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f9f9f9; border: 1px solid #eee; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-top: 8px; }
.mfhq-totals span { color: #888; }
.mfhq-totals strong { color: #111; font-weight: 800; }

/* ── FORMULARIO ─────────────────────────────── */
.mfhq-right { background: #fff; border: 1px solid #e8e8e8; padding: 28px; }

.mfhq-form-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 16px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.mfhq-right .mfhq-form-title:first-of-type { margin-top: 0; }

.mfhq-field { margin-bottom: 14px; }
.mfhq-field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #888; margin-bottom: 6px; }
.mfhq-field input[type="text"],
.mfhq-field input[type="email"],
.mfhq-field input[type="tel"] { width: 100%; padding: 10px 12px; border: 1px solid #ddd; font-size: 13px; font-family: inherit; color: #111; outline: none; border-radius: 0; -webkit-appearance: none; transition: border-color .2s; }
.mfhq-field input:focus { border-color: #111; }
.mfhq-field input::placeholder { color: #bbb; }

/* Checkbox */
.mfhq-check-field { margin-bottom: 14px; }
.mfhq-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: #333; }
.mfhq-check-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: #111; cursor: pointer; flex-shrink: 0; }

/* Aviso */
.mfhq-notice { background: #f9f9f9; border: 1px solid #e8e8e8; padding: 14px 16px; font-size: 12px; line-height: 1.7; color: #666; margin: 18px 0; }

/* Submit */
.mfhq-submit { width: 100%; padding: 16px; background: #111; color: #fff; border: none; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s; margin-bottom: 16px; }
.mfhq-submit:hover:not(:disabled) { background: #333; }
.mfhq-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Footer del form */
.mfhq-form-footer { text-align: center; font-size: 12px; color: #888; line-height: 1.9; }
.mfhq-form-footer strong { color: #111; }
.mfhq-secure { font-size: 11px; letter-spacing: .04em; }
.mfhq-form-footer small { font-size: 10px; }

/* Mensajes de error/éxito */
#mfh-form-messages { margin-bottom: 14px; }
#mfh-form-messages [data-mfh-msg="error"]   { background: #fdecea; border: 1px solid #ef5350; color: #c62828; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
#mfh-form-messages [data-mfh-msg="success"] { background: #e8f5e9; border: 1px solid #4caf50; color: #2e7d32; padding: 12px 14px; font-size: 13px; }



/* ═══════════════════════════════════════════════
   MFH KNITS — CSS PÁGINA DE CONFIRMACIÓN
   Pegar en: Apariencia → Personalizar → CSS Adicional
   ═══════════════════════════════════════════════ */

/* Back link */
.mfhc-back { padding: 14px 0; }
.mfhc-back a { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #666; text-decoration: none; }
.mfhc-back a:hover { color: #111; }

/* ── HERO ──────────────────────────────────────── */
.mfhc-hero { text-align: center; padding: 48px 20px 36px; border-bottom: 1px solid #e8e8e8; margin-bottom: 32px; }
.mfhc-icon { width: 60px; height: 60px; border: 2px solid #111; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 20px; color: #111; }
.mfhc-hero-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.mfhc-hero-sub { font-size: 14px; color: #666; margin: 2px 0; }

/* ── TARJETA DE REFERENCIA ─────────────────────── */
.mfhc-ref-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 1px solid #ddd; padding: 24px 28px; margin-bottom: 36px; background: #fff; }
@media (max-width: 640px) { .mfhc-ref-card { grid-template-columns: 1fr; } }
.mfhc-ref-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #888; margin-bottom: 8px; }
.mfhc-ref-number { font-size: 26px; font-weight: 800; letter-spacing: .02em; color: #111; margin-bottom: 4px; word-break: break-all; }
.mfhc-ref-hint { font-size: 11px; color: #aaa; }
.mfhc-ref-date { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 4px; }
.mfhc-ref-contact { font-size: 13px; color: #333; line-height: 1.7; }
.mfhc-ref-contact strong { color: #111; }

/* ── GRID PRINCIPAL ────────────────────────────── */
.mfhc-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .mfhc-grid { grid-template-columns: 1fr; } }

/* ── SECCIÓN TÍTULO ────────────────────────────── */
.mfhc-section-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 24px; padding-bottom: 0; border-bottom: none; color: #000; }

/* ── PRODUCTO ITEM ─────────────────────────────── */
.mfhc-product-item { 
    display: grid; 
    grid-template-columns: 80px 1fr; 
    gap: 20px; 
    padding: 20px; 
    border: 1px solid #ccc; /* Full border for each item */
    background: #fff; 
    margin-bottom: 15px; /* Space between items */
}
.mfhc-product-item:last-of-type { border-bottom: 1px solid #ccc; } /* Restore border for last item if needed, but the rule above covers it */

.mfhc-item-img { width: 80px; height: 100px; border: 1px solid #eee; background: #f5f5f5; overflow: hidden; flex-shrink: 0; }
.mfhc-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfhc-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #ccc; text-transform: uppercase; letter-spacing: .1em; }

.mfhc-item-code-sm { font-size: 11px; color: #777; letter-spacing: .02em; margin-bottom: 2px; text-transform: uppercase; }
.mfhc-item-code { font-size: 16px; font-weight: 900; margin-bottom: 4px; color: #000; letter-spacing: -.02em; }
.mfhc-item-mat { font-size: 13px; color: #333; margin-bottom: 8px; }
.mfhc-item-meta { font-size: 13px; font-weight: 700; color: #000; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mfhc-dot { font-size: 16px; line-height: 1; color: #888; margin: 0 4px; }

/* Total */
.mfhc-total-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 30px; 
    background: #f2f2f2; /* Darker gray like Image 1 */
    border: 1px solid #ccc; 
    font-size: 13px; 
    text-transform: uppercase; 
    margin-top: 25px; 
    margin-bottom: 30px; 
    width: 100%;
    max-width: 480px; /* Reduced width */
}
.mfhc-total-row span { color: #555; font-weight: 600; letter-spacing: .05em; }
.mfhc-total-row strong { color: #000; font-weight: 900; font-size: 18px; }

/* Descarga PDF */
.mfhc-download-wrap { 
    margin-bottom: 40px; 
    width: 100%;
    max-width: 480px; /* Reduced width */
}
.mfhc-download-wrap a, #mfh-pdf-link { display: block; width: 100%; padding: 14px 16px; background: #fff; border: 1px solid #111; color: #111; text-align: center; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; }
.mfhc-download-wrap a:hover, #mfh-pdf-link:hover { background: #111; color: #fff; }

/* ── SIDEBAR ───────────────────────────────────── */
.mfhc-right { display: flex; flex-direction: column; gap: 16px; }

.mfhc-sidebar-card { background: #fff; border: 1px solid #e8e8e8; padding: 22px; }
.mfhc-sidebar-title { font-size: 13px; font-weight: 800; letter-spacing: .04em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }

/* Pasos */
.mfhc-steps { padding: 0; margin: 0; list-style: none; counter-reset: mfhc-steps; display: flex; flex-direction: column; gap: 14px; }
.mfhc-steps li { counter-increment: mfhc-steps; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }
.mfhc-steps li::before { content: counter(mfhc-steps); min-width: 24px; height: 24px; border-radius: 50%; background: #111; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.mfhc-steps li strong { display: block; font-weight: 700; margin-bottom: 2px; }
.mfhc-steps li p { margin: 0; color: #777; font-size: 12px; line-height: 1.5; }

/* Caja de respuesta */
.mfhc-response-box { background: #111; color: #fff; padding: 20px 22px; }
.mfhc-rb-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.mfhc-rb-time { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.mfhc-rb-sub { font-size: 11px; color: rgba(255,255,255,.6); }

/* Contacto */
.mfhc-contact-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.mfhc-contact-row:last-child { border-bottom: none; }
.mfhc-contact-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #aaa; }
.mfhc-contact-val { font-size: 13px; color: #111; text-decoration: none; font-weight: 500; }
a.mfhc-contact-val:hover { text-decoration: underline; }
.mfhc-contact-hours { font-size: 11px; color: #aaa; }

/* Botones CTA */
.mfhc-btn-primary { display: block; text-align: center; padding: 14px 16px; background: #111; color: #fff; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.mfhc-btn-primary:hover { background: #333; color: #fff; }
.mfhc-btn-outline { display: block; text-align: center; padding: 13px 16px; background: #fff; color: #111; border: 1px solid #ccc; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s; }
.mfhc-btn-outline:hover { border-color: #111; }

/* Aviso email */
.mfhc-email-notice { background: #f9f9f9; border: 1px solid #e8e8e8; padding: 12px 14px; font-size: 12px; color: #777; text-align: center; line-height: 1.6; }
.mfhc-email-notice strong { color: #111; }

/* ═══════════════════════════════════════════════
   MFH KNITS — VARIANTS STYLES
   ═══════════════════════════════════════════════ */
.mfh-variant-option {
    transition: all 0.2s ease-in-out;
}
.mfh-variant-option:hover {
    transform: scale(1.1);
}
.mfh-variant-option.active {
    border-color: #000 !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════
   MFH KNITS — GALLERY STYLES
   ═══════════════════════════════════════════════ */

/* Wrapper for Gallery + Main Image */
.mfh-single-image-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Vertical Gallery Column */
.mfh-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px; /* Fixed width for thumbnails column */
    flex-shrink: 0;
}

/* Individual Thumbnail Item */
.mfh-thumb-item {
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 2px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.mfh-thumb-item:hover {
    border-color: #999;
}

.mfh-thumb-item.active {
    border-color: #000 !important;
}

.mfh-thumb-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Image Container */
.mfh-product-img {
    flex-grow: 1;
    overflow: hidden; /* For zoom effect */
    cursor: crosshair; /* Indicate zoom availability */
}

.mfh-product-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease-out; /* Smooth zoom */
    transform-origin: center center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mfh-single-image-wrapper {
        flex-direction: column-reverse;
    }
    
    .mfh-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .mfh-thumb-item {
        width: 60px;
        flex-shrink: 0;
    }
}


/* Filtros */
.mfh-filters-wrap {
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.mfh-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: #111;
}

.mfh-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mfh-filter-btn {
    background: none;
    border: none;
    font-size: 13px;
    color: #777;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s, font-weight 0.2s;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mfh-filter-btn:hover,
.mfh-filter-btn.active {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Contador */
.mfh-catalog-count {
    font-size: 12px;
    color: #666;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mfh-catalog-count strong {
    color: #000;
}

/* Grid Final */
.mfh-final-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* Tarjeta Final */
.mfh-product-card.final-card {
    border: none;
    background: transparent;
    box-shadow: none;
}

.mfh-product-card.final-card:hover {
    transform: none;
    box-shadow: none;
}

.mfh-product-card.final-card .mfh-product-img {
    margin-bottom: 15px;
    background: #f4f4f4;
}

/* Badge New Arrival */
.mfh-badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* Info Final */
.mfh-product-info-final {
    text-align: left;
}

.mfh-code-final {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mfh-material-final {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.mfh-swatches-final {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.mfh-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: inline-block;
    cursor: help; /* Show tooltip cursor */
    transition: transform 0.2s, border-color 0.2s;
}

.mfh-swatch:hover {
    transform: scale(1.2);
    border-color: #000;
}

.mfh-color-code {
    font-size: 11px;
    color: #777;
}

.mfh-color-text {
    font-size: 11px;
    color: #777;
}

/* Botones Final */
.mfh-actions-final {
    display: flex;
    gap: 10px;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.mfh-product-card.final-card:hover .mfh-actions-final {
    opacity: 1;
}

.mfh-btn-view-more,
.mfh-btn-view-details {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #000;
    transition: all 0.2s;
}

.mfh-btn-view-more {
    background: #000;
    color: #fff;
}

.mfh-btn-view-more:hover {
    background: #333;
    border-color: #333;
}

.mfh-btn-view-details {
    background: #fff;
    color: #000;
}

.mfh-btn-view-details:hover {
    background: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mfh-actions-final {
        opacity: 1; /* Always show on mobile */
    }
    
    .mfh-final-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}


.mfh-catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mfh-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.mfh-catalog-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.mfh-catalog-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.mfh-go-quote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.mfh-go-quote:hover {
    background: #333;
    color: #fff;
}

.mfh-badge {
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    min-width: 20px;
    text-align: center;
}

/* Grid */
.mfh-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Card */
.mfh-product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.mfh-product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: #ddd;
}

.mfh-product-img {
    position: relative;
    padding-bottom: 120%; /* Aspect ratio portrait */
    background: #f9f9f9;
    overflow: hidden;
}

.mfh-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.mfh-product-card:hover .mfh-product-img img {
    transform: scale(1.05);
}

.mfh-product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mfh-product-code {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #aaa;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.mfh-product-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mfh-product-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Actions */
.mfh-product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.mfh-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 0 10px;
    width: 80px;
}

.mfh-qty-wrap label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #aaa;
    margin-right: 6px;
}

.mfh-qty-wrap input {
    width: 100%;
    border: none;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 8px 0;
    outline: none;
    background: transparent;
}

.mfh-add-btn {
    flex-grow: 1;
    background: #111;
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.mfh-add-btn:hover {
    background: #333;
}

.mfh-add-btn.added {
    background: #2e7d32; /* Green for success feedback */
}

/* Sticky Bar */
.mfh-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 100;
}

/* Single Product Specifics */
.single-producto .mfh-qty-wrap {
    width: 140px; /* Wider for single product page */
    padding: 0 15px;
    height: 46px; /* Taller */
}
.single-producto .mfh-qty-wrap input {
    font-size: 16px; /* Larger font */
}

/* Single Product Image Zoom */
.single-producto .mfh-single-image .mfh-product-img {
    position: relative;
    overflow: hidden !important; /* Force clip */
    clip-path: inset(0) !important; 
    cursor: zoom-in;
    
    /* Force specific dimensions with !important to override theme/plugin styles */
    width: 100% !important;
    max-width: 500px !important; /* Limit width */
    height: 400px !important;    /* Force height back to reasonable size */
    
    background-color: #f9f9f9; 
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Center the container itself */
    
    /* Remove any phantom spacing */
    line-height: 0;
    font-size: 0;
    transform: translate3d(0,0,0);
    z-index: 1;
    border: 1px solid #eee; /* Visual debugging aid */
}

.single-producto .mfh-single-image .mfh-product-img img {
    width: 100% !important;
    height: 100% !important; 
    object-fit: cover !important; /* Make image fill the container completely */
    display: block !important;
    transition: transform 0.1s linear; 
    transform-origin: center center;
    max-width: 100% !important; 
    will-change: transform; 
    backface-visibility: hidden; 
}

.single-producto .mfh-single-image .mfh-product-img:hover img {
    transform: scale(2); 
}

.mfh-sticky-bar.visible {
    transform: translateY(0);
}

.mfh-sticky-bar p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.mfh-sticky-bar a {
    background: #111;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .mfh-catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mfh-products-grid {
        grid-template-columns: 1fr;
    }
    
    .mfh-sticky-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Container for Cotización Enviada */
.mfhc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* Ensure Download Button is White with Icon */
.mfhc-download-wrap a, 
#mfh-pdf-link,
#mfh-pdf-btn,
.mfhc-pdf-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important; /* Thicker border like Image 1 */
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 13px; /* Slightly larger */
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all .2s;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 0 !important;
}

.mfhc-download-wrap a:hover, 
#mfh-pdf-link:hover,
#mfh-pdf-btn:hover,
.mfhc-pdf-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Icon using pseudo-element */
.mfhc-download-wrap a::before,
#mfh-pdf-link::before,
#mfh-pdf-btn::before,
.mfhc-pdf-btn::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ── LINKS CATALOGO ────────────────────────────── */
.mfh-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.mfh-product-link-title {
    display: block;
    text-decoration: none;
    color: inherit;
}
.mfh-product-link-title:hover .mfh-product-name {
    color: #667eea; /* Color de hover para el título */
}