/* Dentisfyer — identidad visual propia sobre el bundle base KTmetronic/Bootstrap */

:root {
    --dtf-g900: #16212C;   /* gris-pizarra oscuro (como la barra de Apolonia) — cabecera, titulares */
    --dtf-g800: #1C2B3A;
    --dtf-g700: #233242;   /* gris-pizarra algo más claro — degradado de cabecera */
    --dtf-g500: #0E76BC;   /* azul marca — botones, enlaces, iconos */
    --dtf-g500-hover: #0B5E97;
    --dtf-g500-active: #094A78;
    --dtf-g400: #00A3A6;   /* teal — acentos, estados positivos */
    --dtf-lime: #18BFF2;   /* cian — detalles, hover, highlights puntuales */
    --dtf-bg: #F2F7FB;     /* fondo general, azul casi imperceptible */
    --dtf-line: #DCE8F0;   /* bordes sutiles */
    --dtf-text: #16232E;   /* texto principal, casi negro con base azul */
    --dtf-text-muted: #5B6B7A;

    /* El bundle KTmetronic/Bootstrap usa estas variables --bs-primary-* en
       casi todos sus componentes (botones, badges, focus rings, bg-light-primary...).
       Sobrescribirlas aquí retematiza todo eso de golpe sin pelear selector
       a selector contra la especificidad del bundle. */
    --bs-primary: #0E76BC;
    --bs-primary-rgb: 14, 118, 188;
    --bs-primary-active: #0B5E97;
    --bs-primary-inverse: #ffffff;
    --bs-link-color: #0E76BC;
    --bs-link-hover-color: #0B5E97;
}

* { box-sizing: border-box; }

body#kt_app_body {
    background: var(--dtf-bg);
    color: var(--dtf-text);
    font-size: 1.05rem;
}

/* Sticky footer — el cuerpo ocupa toda la ventana y el contenedor
   crece para empujar el pie siempre al fondo */
body#kt_app_body.dtf_flex_body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dtf_flex_grow { flex: 1 0 auto; }

#dtf_footer { flex-shrink: 0; }

a { color: var(--dtf-g500); }
a:hover { color: var(--dtf-g500-hover); }

.text-dark { color: var(--dtf-g900) !important; }
.text-muted { color: var(--dtf-text-muted) !important; }

/* ══════════════════════════════════════════════════════════════════════
   Cabecera estilo "marketplace" — logo + buscador integrado + accesos
   ══════════════════════════════════════════════════════════════════════ */
#dtf_header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--dtf-g900) 0%, var(--dtf-g700) 100%);
    box-shadow: 0 2px 10px rgba(27, 67, 50, 0.18);
}

#dtf_header_top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.75rem;
    max-width: 1320px;
    margin: 0 auto;
}

.dtf_brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    text-decoration: none;
    color: #fff;
}

.dtf_brand_mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dtf_brand_mark i {
    color: #fff !important;
    font-size: 1.8rem !important;
}

.dtf_brand_word {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
}

#dtf_header_center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

#dtf_form {
    flex: 1 1 auto;
    display: flex;
}

.dtf_supplier_btn {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
}

#dtf_scope {
    height: 46px;
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
    background: #e9eaec;
    color: #555;
    padding: 0 6px 0 13px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 10px 0 0 10px !important;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 148px;
    outline: none;
    appearance: auto;
    -webkit-appearance: auto;
}

#dtf_form input {
    border-radius: 10px 0 0 10px !important;
    border: none !important;
    height: 46px;
    font-size: 0.95rem;
}

#dtf_scope + input {
    border-radius: 0 !important;
}

#dtf_form button {
    border-radius: 0 10px 10px 0 !important;
    background: var(--dtf-lime) !important;
    border: none !important;
    color: var(--dtf-g900) !important;
    width: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#dtf_form button:hover { background: #13A7D6 !important; }

#dtf_header_actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.dtf_header_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
}

.dtf_header_link i { font-size: 1.6rem; }
.dtf_header_link:hover { color: #fff; }

.dtf_header_user {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

/* ── Nav blocks estilo Amazon ──────────────────────────────────────────────── */
.dtf_nav_block {
    display: flex;
    flex-direction: column;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: border-color 0.15s;
    cursor: pointer;
    line-height: 1;
}
.dtf_nav_block:hover,
.dtf_account_dropdown:hover .dtf_nav_block { border-color: rgba(255,255,255,0.55); color: #fff; }

.dtf_nav_block_sub {
    font-size: 0.71rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 2px;
}
.dtf_nav_block_main {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
}

/* ── Dropdown de cuenta ────────────────────────────────────────────────────── */
.dtf_account_dropdown {
    position: relative;
}
.dtf_account_menu {
    display: none;
    position: absolute;
    top: 100%;          /* sin gap — el área de hover no se interrumpe */
    right: 0;
    min-width: 215px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 0.5rem 0;
    z-index: 300;
    padding-top: 0.25rem;
}
.dtf_account_dropdown:hover .dtf_account_menu,
.dtf_account_dropdown.is-open .dtf_account_menu { display: block; }
.dtf_account_menu_title {
    padding: 0.5rem 1.1rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dtf_account_menu a {
    display: block;
    padding: 0.55rem 1.1rem;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.1s;
}
.dtf_account_menu a:hover { background: #f4f6fa; }
.dtf_account_logout { color: #c0392b !important; }
.dtf_account_logout:hover { background: #fff5f5 !important; }
.dtf_account_menu hr { margin: 0.4rem 0; border: none; border-top: 1px solid #eee; }

/* ── Carrito en nav ────────────────────────────────────────────────────────── */
.dtf_nav_cart {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: border-color 0.15s;
    white-space: nowrap;
}
.dtf_nav_cart:hover { border-color: rgba(255,255,255,0.55); color: #fff; }
.dtf_cart_icon_wrap {
    position: relative;
    display: inline-flex;
}
.dtf_cart_icon_wrap i { font-size: 1.7rem; color: #fff; }
#dtf_cart_badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--dtf-lime);
    color: var(--dtf-g900);
    border-radius: 10px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
}

.dtf_btn_header {
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 1.15rem;
    text-decoration: none;
    white-space: nowrap;
}

.dtf_btn_header.is-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.dtf_btn_header.is-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.dtf_btn_header.is-solid { background: var(--dtf-lime); color: var(--dtf-g900); }
.dtf_btn_header.is-solid:hover { background: #13A7D6; }

@media (max-width: 900px) {
    #dtf_header_top { flex-wrap: wrap; padding: 0.75rem 1.1rem; }
    #dtf_header_center { order: 3; flex: 1 0 100%; flex-wrap: wrap; margin-top: 0.6rem; gap: 0.6rem; }
    #dtf_form { flex: 1 0 100%; max-width: none; }
    #dtf_header_actions { gap: 0; }
    .dtf_header_link span.dtf_header_link_label { display: none; }
    .dtf_supplier_btn { display: none !important; }
    #dtf_scope { min-width: 115px; font-size: 0.78rem; padding-left: 9px; }
    .dtf_nav_block_sub { font-size: 0.65rem; }
    .dtf_nav_block, .dtf_nav_cart { padding: 0.3rem 0.45rem; }
    .dtf_account_menu { right: -60px; }
}

/* ══════════════════════════════════════════════════════════════════════
   Botones
   ══════════════════════════════════════════════════════════════════════ */
.btn { border-radius: 8px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════
   Hero / propuesta de valor (página principal, antes de buscar)
   ══════════════════════════════════════════════════════════════════════ */
#dtf_hero_wrap {
    min-height: calc(100vh - 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0;
}

.dtf_hero_banner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dtf_hero_title {
    font-size: 2.85rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dtf-g900);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.dtf_hero_title .dtf_hero_highlight {
    background: linear-gradient(90deg, var(--dtf-g500), var(--dtf-g400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dtf_hero_tagline {
    color: var(--dtf-text-muted);
    font-size: 1.2rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Pasos explicativos ─────────────────────────────────────────────── */
.dtf_steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.dtf_step {
    background: #fff;
    border: 1px solid var(--dtf-line);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dtf_step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(27, 67, 50, 0.1);
    border-color: transparent;
}

.dtf_step_icon {
    margin: 0 auto 1.5rem;
}

/* El framework de iconos fija font-size/color directamente en .ki-outline (el
   propio <i>), así que hay que sobreescribirlo ahí, no en el contenedor padre. */
.dtf_step_icon i {
    font-size: 6rem !important;
    color: var(--dtf-g500) !important;
    line-height: 1 !important;
}

.dtf_step_num {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--dtf-g500);
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.dtf_step_title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--dtf-g900);
    margin-bottom: 0.5rem;
}

.dtf_step_desc {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--dtf-text-muted);
}

@media (max-width: 768px) {
    .dtf_steps { grid-template-columns: 1fr; }
}

/* ── Página "Cómo funciona" — título de sección + grid de funcionalidades ── */
.dtf_section_title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.dtf_section_title h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dtf-g900);
    margin-bottom: 0.5rem;
}

.dtf_section_title p {
    color: var(--dtf-text-muted);
    font-size: 1.1rem;
}

.dtf_features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dtf_feature {
    background: #fff;
    border: 1px solid var(--dtf-line);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dtf_feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(27, 67, 50, 0.1);
    border-color: transparent;
}

@media (max-width: 1100px) {
    .dtf_features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .dtf_features { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   Tarjetas (resultados, carrito, proveedores, pedidos)
   ══════════════════════════════════════════════════════════════════════ */
.card {
    border: 1px solid var(--dtf-line);
    border-radius: 14px;
    transition: box-shadow 0.2s ease;
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--dtf-line);
    padding: 1.1rem 1.75rem;
}

.card-body {
    padding: 1.5rem 1.75rem;
}

/* Tablas dentro de cards: padding generoso en celdas,
   más en la primera y última columna para no pegar con el borde */
.card .table th,
.card .table td {
    padding: 1rem 1.25rem;
}

.card .table th:first-child,
.card .table td:first-child { padding-left: 1.75rem; }

.card .table th:last-child,
.card .table td:last-child  { padding-right: 1.75rem; }

.badge-light-success { background: #E6F6EA !important; color: var(--dtf-g700) !important; }
.badge-light-info { background: var(--dtf-bg) !important; color: var(--dtf-text-muted) !important; }

/* ── Estado de proveedor / pedido ──────────────────────────────────────── */
.dtf_estado_badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dtf_estado_conectado { background: #E6F6EA; color: #1F7A3F; }
.dtf_estado_manual    { background: #EFF6FF; color: #1D4ED8; }
.dtf_estado_error      { background: #FCE9EA; color: #B3303D; }
.dtf_estado_pendiente  { background: var(--dtf-bg); color: var(--dtf-text-muted); }

/* ══════════════════════════════════════════════════════════════════════
   Pie de página
   ══════════════════════════════════════════════════════════════════════ */
#dtf_footer {
    background: var(--dtf-g900);
    margin-top: 3rem;
}

#dtf_footer_inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.65rem 2rem;
    text-align: center;
}

.dtf_footer_brand {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

#dtf_footer_inner p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.dtf_footer_links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.dtf_footer_links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.dtf_footer_links a:hover { color: #fff; }
.dtf_footer_links span { color: rgba(255, 255, 255, 0.3); }

/* ══════════════════════════════════════════════════════════════════════
   Login / registro — tarjeta centrada dentro del layout normal
   (con cabecera+buscador y pie de página, no a pantalla completa)
   ══════════════════════════════════════════════════════════════════════ */
.dtf_auth_wrap {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
}

/* ══════════════════════════════════════════════════════════════════════
   Notificaciones (sustituyen a alert() nativo)
   ══════════════════════════════════════════════════════════════════════ */
#dtf_toast_container {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
    width: calc(100vw - 3.5rem);
}

.dtf_toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #fff;
    border-left: 4px solid var(--dtf-g500);
}

.dtf_toast.dtf_toast_visible { opacity: 1; transform: translateY(0); }

.dtf_toast_icon {
    font-size: 1.35rem !important;
    flex-shrink: 0;
    line-height: 1.4;
}

.dtf_toast_text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dtf-text);
    line-height: 1.45;
}

.dtf_toast_close {
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--dtf-text-muted);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    margin-top: -2px;
}
.dtf_toast_close:hover { color: var(--dtf-text); }

.dtf_toast_info    { border-left-color: var(--dtf-g500); }
.dtf_toast_info    .dtf_toast_icon { color: var(--dtf-g500) !important; }
.dtf_toast_success { border-left-color: #1F7A3F; }
.dtf_toast_success .dtf_toast_icon { color: #1F7A3F !important; }
.dtf_toast_warning { border-left-color: #C27B00; }
.dtf_toast_warning .dtf_toast_icon { color: #C27B00 !important; }
.dtf_toast_error   { border-left-color: #B3303D; }
.dtf_toast_error   .dtf_toast_icon { color: #B3303D !important; }

/* ══════════════════════════════════════════════════════════════════════
   Tiles de producto en resultados de búsqueda
   ══════════════════════════════════════════════════════════════════════ */
.dtf_prod_tile {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dtf_prod_tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 45, 74, 0.1);
    border-color: var(--dtf-g500) !important;
}
.dtf_prod_precio { color: var(--dtf-g500); font-size: 1.05rem; }

/* Tiles deshabilitados durante búsqueda activa */
#dtf_resultados.dtf_searching .dtf_prod_tile {
    pointer-events: none;
    opacity: 0.55;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════════════════
   Modal de producto
   ══════════════════════════════════════════════════════════════════════ */
.dtf_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 45, 74, 0.55);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.dtf_modal_box {
    background: #fff;
    border-radius: 18px;
    max-width: 860px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dtf_modal_close {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--dtf-text-muted);
    cursor: pointer;
    z-index: 1;
}
.dtf_modal_close:hover { color: var(--dtf-text); }

/* ── Cabecera del modal: imagen + nombre ─────────────────────────────── */
.dtf_modal_header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--dtf-line);
    background: var(--dtf-bg);
    flex-shrink: 0;
}

#dtf_modal_img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--dtf-line);
    flex-shrink: 0;
}

.dtf_modal_header_info { flex: 1; }

.dtf_modal_deposito {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dtf-g500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.dtf_modal_nombre {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dtf-g900);
    margin: 0;
    line-height: 1.3;
}

/* ── Contenido (tabla de variantes) ──────────────────────────────────── */
#dtf_modal_content {
    overflow-y: auto;
    flex: 1;
    padding: 1.25rem 1.75rem;
}

.dtf_modal_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--dtf-text-muted);
}

.dtf_oferta_banner {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: #7c5a00;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.5;
}
.dtf_oferta_banner i { color: #d48806; flex-shrink: 0; margin-top: 1px; }
.dtf_var_row_disabled { opacity: 0.45; pointer-events: none; }
.dtf_var_row_disabled td { color: var(--dtf-text-muted) !important; }
.dtf_no_disp_label { font-size: 0.8rem; color: var(--dtf-text-muted); font-style: italic; }
.dtf_var_table { margin-bottom: 0; }
.dtf_var_table th { background: var(--dtf-bg); font-size: 0.82rem; font-weight: 700; color: var(--dtf-text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.dtf_var_table td { vertical-align: middle; }
.dtf_var_precio { font-weight: 700; color: var(--dtf-g500); }

/* ── Controles de cantidad por variante ─────────────────────────────── */
.dtf_modal_qty_row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dtf_modal_qty_btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--dtf-line);
    background: var(--dtf-bg);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dtf-g500);
    transition: background 0.15s;
    padding: 0;
    line-height: 1;
}
.dtf_modal_qty_btn:hover { background: var(--dtf-g500); color: #fff; border-color: var(--dtf-g500); }

.dtf_modal_qty_input {
    text-align: center;
    border: 1px solid var(--dtf-line);
    border-radius: 6px;
    height: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
}

/* ── Footer del modal ────────────────────────────────────────────────── */
.dtf_modal_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--dtf-line);
    flex-shrink: 0;
}

.dtf_modal_ver_deposito {
    font-size: 0.85rem;
    color: var(--dtf-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.dtf_modal_ver_deposito:hover { color: var(--dtf-g500); }
.dtf_modal_ver_deposito i { font-size: 1rem !important; }

@media (max-width: 560px) {
    .dtf_modal_header { flex-direction: column; align-items: flex-start; }
    .dtf_modal_footer { flex-direction: column; gap: 0.75rem; }
    .dtf_modal_footer .btn { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   Layout dos columnas: contenido principal + sidebar de proveedores
   ══════════════════════════════════════════════════════════════════════ */
#dtf_main_layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

#dtf_main_content {
    flex: 1 1 0;
    min-width: 0;
}

#dtf_providers_sidebar {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   Panel de selección de proveedores
   ══════════════════════════════════════════════════════════════════════ */
.dtf_prov_panel {
    background: #fff;
    border: 1px solid var(--dtf-line);
    border-radius: 14px;
    overflow: hidden;
}

.dtf_prov_panel_header {
    padding: 0.9rem 1.1rem 0.7rem;
    border-bottom: 1px solid var(--dtf-line);
    background: var(--dtf-bg);
}

.dtf_prov_panel_title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dtf-g900);
    margin: 0 0 0.15rem;
}

.dtf_prov_panel_sub {
    font-size: 0.76rem;
    color: var(--dtf-text-muted);
}

.dtf_prov_panel_sub .dtf_prov_count_highlight {
    color: var(--dtf-g500);
    font-weight: 700;
}

.dtf_prov_panel_sub .dtf_prov_count_max {
    color: #B3303D;
    font-weight: 700;
}

.dtf_prov_list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
}

.dtf_prov_item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    cursor: pointer;
    transition: background 0.1s;
    user-select: none;
}

.dtf_prov_item:hover { background: var(--dtf-bg); }

.dtf_prov_item.dtf_prov_disabled {
    opacity: 0.38;
    cursor: default;
    pointer-events: none;
}

.dtf_prov_logo {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: contain;
}

.dtf_prov_check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 2px solid #c8d3dc;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
}

.dtf_prov_item.is-checked .dtf_prov_check {
    background: var(--dtf-g500);
    border-color: var(--dtf-g500);
}

.dtf_prov_item.is-checked .dtf_prov_check::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.dtf_prov_name {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--dtf-text);
    line-height: 1.3;
    flex: 1;
}

.dtf_prov_item.is-checked .dtf_prov_name {
    font-weight: 700;
    color: var(--dtf-g500);
}

.dtf_prov_clear {
    display: block;
    width: 100%;
    padding: 0.55rem 1.1rem;
    background: none;
    border: none;
    border-top: 1px solid var(--dtf-line);
    font-size: 0.78rem;
    color: var(--dtf-text-muted);
    cursor: pointer;
    text-align: center;
    transition: background 0.1s, color 0.1s;
}

.dtf_prov_clear:hover { background: var(--dtf-bg); color: #B3303D; }

/* Estado "ninguno seleccionado" — resalta el panel como call-to-action */
.dtf_prov_panel.dtf_prov_empty .dtf_prov_panel_header {
    background: #EEF5FF;
    border-bottom-color: var(--dtf-g500);
}

.dtf_prov_hint {
    display: block;
    padding: 0.5rem 1.1rem 0.6rem;
    font-size: 0.76rem;
    color: var(--dtf-g500);
    font-weight: 600;
    border-bottom: 1px solid var(--dtf-line);
    background: #f6faff;
}

/* Animación shake para llamar la atención */
@keyframes dtf_shake {
    0%, 100% { transform: translateX(0); }
    15%  { transform: translateX(-7px); }
    35%  { transform: translateX(7px); }
    55%  { transform: translateX(-4px); }
    75%  { transform: translateX(4px); }
}

.dtf_prov_panel.dtf_prov_shake {
    animation: dtf_shake 0.5s ease;
    outline: 2px solid var(--dtf-g500);
    border-radius: 14px;
}

/* ── Categorías en panel lateral ────────────────────────────────────── */
.dtf_cat_section { border-bottom: 1px solid var(--dtf-line); }
.dtf_cat_section:last-of-type { border-bottom: none; }

.dtf_cat_header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dtf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}
.dtf_cat_header:hover { background: var(--dtf-bg); }
.dtf_cat_arrow { font-size: 0.7rem; width: 0.8rem; text-align: center; }
.dtf_cat_body { margin: 0; padding: 0 0 0.3rem; }
.dtf_cat_body.dtf_cat_collapsed { display: none; }

/* ── Responsive sidebar ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    #dtf_main_layout { flex-direction: column; }
    #dtf_providers_sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }
    .dtf_prov_panel { border-radius: 10px; }
    .dtf_prov_list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        padding: 0.65rem 0.75rem;
    }
    .dtf_prov_item {
        padding: 0.3rem 0.7rem;
        border: 1px solid var(--dtf-line);
        border-radius: 20px;
        background: var(--dtf-bg);
        gap: 0.35rem;
    }
    .dtf_prov_item.is-checked {
        background: #EEF5FF;
        border-color: var(--dtf-g500);
    }
    .dtf_prov_item:hover { background: #EEF5FF; }
    .dtf_prov_item.dtf_prov_disabled { opacity: 0.4; }
    .dtf_prov_clear {
        border-top: none;
        padding-top: 0;
        padding-bottom: 0.65rem;
    }
}

/* ── Página de producto propia ───────────────────────────────────────── */

/* Provider strip */
.dtf_product_provider_strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--dtf-prov-color, #1976d2);
    border-radius: 10px;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}
.dtf_product_back {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.dtf_product_back:hover { color: #fff; }
.dtf_product_provider_id {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}
.dtf_product_provider_logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}
.dtf_product_provider_name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.dtf_product_open_original {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    transition: background 0.15s;
}
.dtf_product_open_original:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Layout principal producto */
.dtf_product_layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Columna imagen */
.dtf_product_image_col {
    flex: 0 0 340px;
    min-width: 0;
}
.dtf_product_image_wrap {
    border: 1px solid var(--dtf-line);
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.dtf_product_img_placeholder,
.dtf_product_img_empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 280px;
    color: #b0c4d8;
}
.dtf_product_image_wrap img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    padding: 1rem;
}

/* Columna info */
.dtf_product_info_col {
    flex: 1;
    min-width: 0;
}
.dtf_product_offer_badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 20px;
    padding: 0.25rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.dtf_product_title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dtf-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.dtf_product_price_area {
    margin-bottom: 1.25rem;
}
.dtf_product_price_main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dtf-g500);
}

/* Tabla variantes */
.dtf_product_variantes_wrap {
    margin-bottom: 1.5rem;
}
.dtf_var_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--dtf-line);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.88rem;
}
.dtf_var_table thead th {
    background: var(--dtf-bg);
    color: var(--dtf-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--dtf-line);
}
.dtf_var_table tbody tr { border-bottom: 1px solid var(--dtf-line); }
.dtf_var_table tbody tr:last-child { border-bottom: none; }
.dtf_var_table tbody td { padding: 0.65rem 0.9rem; vertical-align: middle; }
.dtf_var_name { color: var(--dtf-text); font-weight: 500; }
.dtf_qty_ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.dtf_qty_btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--dtf-line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dtf-text);
    transition: background 0.1s;
}
.dtf_qty_btn:hover { background: var(--dtf-bg); }
.dtf_qty_inp {
    border: 1px solid var(--dtf-line);
    border-radius: 6px;
    padding: 0.2rem 0.3rem;
    font-size: 0.9rem;
    height: 28px;
}

/* Acciones */
.dtf_product_actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 768px) {
    .dtf_product_layout { flex-direction: column; }
    .dtf_product_image_col { flex: none; width: 100%; }
}

/* ── Checkout confirm ────────────────────────────────────────────────── */
.dtf_checkout_prov_badge {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Información del producto (vista rápida) ─────────────────────────────── */
.dtf_zoom_btn {
    position: absolute; top: 4px; right: 4px;
    width: 30px; height: 30px; border: none; border-radius: 6px;
    background: rgba(255,255,255,.88); color: #009ef7;
    display: flex; align-items: center; justify-content: center;
    opacity: .8; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.18); z-index: 2;
}
.dtf_zoom_btn i { font-size: 1.1rem; }
.dtf_prod_tile:hover .dtf_zoom_btn, .dtf_zoom_btn:hover { opacity: 1; }
.dtf_zoom_btn:hover { background: #fff; color: #0073c4; }
#dtf_modal_img { cursor: zoom-in; }
#dtf_lightbox {
    position: fixed; inset: 0; z-index: 11000;
    background: rgba(0,0,0,.82);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-out;
}
#dtf_lightbox > img {
    max-width: 92vw; max-height: 92vh; object-fit: contain;
    background: #fff; border-radius: 10px; padding: 10px;
    box-shadow: 0 12px 60px rgba(0,0,0,.5);
}

/* Vista rápida: imagen grande + información del producto del proveedor */
.dtf_vr_box {
    display: flex; gap: 0; cursor: default;
    width: min(1080px, 94vw); max-height: 90vh;
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 12px 60px rgba(0,0,0,.5);
}
.dtf_vr_img {
    flex: 0 0 46%; display: flex; align-items: center; justify-content: center;
    background: #f9fafb; padding: 18px; border-right: 1px solid #f1f1f2;
}
.dtf_vr_img img { max-width: 100%; max-height: 72vh; object-fit: contain; }
.dtf_vr_info { flex: 1 1 auto; padding: 22px 24px; overflow-y: auto; }
.dtf_vr_prov { font-size: .75rem; font-weight: 700; color: #7e8299; text-transform: uppercase; letter-spacing: .04em; }
.dtf_vr_nombre { font-size: 1.15rem; font-weight: 700; color: #181c32; margin: 4px 0 8px; line-height: 1.3; }
.dtf_vr_precio { font-size: 1.5rem; font-weight: 700; color: #009ef7; }
.dtf_vr_desc { white-space: pre-line; color: #3f4254; font-size: .9rem; line-height: 1.5; margin-top: 14px; }
.dtf_vr_sec { font-size: .72rem; font-weight: 700; color: #7e8299; text-transform: uppercase; margin-top: 16px; }
@media (max-width: 860px) {
    .dtf_vr_box { flex-direction: column; width: 94vw; }
    .dtf_vr_img { flex: none; border-right: none; border-bottom: 1px solid #f1f1f2; padding: 12px; }
    .dtf_vr_img img { max-height: 38vh; }
}
#dtf_lightbox_close {
    position: fixed; top: 12px; right: 22px;
    font-size: 2.2rem; line-height: 1; color: #fff;
    background: none; border: none; cursor: pointer;
}

/* ── Añadir directo desde el tile (productos sin opciones) ───────────────── */
.dtf_quick_add .dtf_qa_qty { height: 29px; }
.dtf_quick_add .btn { line-height: 1; }
