/* Tienda Depot V70: solo portada y navegación pública; no afecta Administración. */
.td-primary-nav.td-nav-v70 {
  position:sticky!important;top:0;z-index:1100!important;width:100%!important;
  background:#0750b8!important;box-shadow:0 3px 14px rgba(8,34,68,.13);
  display:flex!important;align-items:center!important;min-height:48px;
}
.td-primary-nav.td-nav-v70 .td-nav-small-logo{display:none;align-items:center;flex:0 0 auto;align-self:stretch;padding:4px 14px 4px 4px;text-decoration:none;background:#fff;}
.td-primary-nav.td-nav-v70 .td-nav-small-logo img{display:block;width:108px;height:36px;max-width:none;object-fit:contain;}
body.td-nav-compact .td-primary-nav.td-nav-v70 .td-nav-small-logo{display:flex!important;}
/* Se deja visible y desplazable toda la navegación, especialmente el menú de categorías. */
@media(max-width:800px){
 .td-primary-nav.td-nav-v70{overflow-x:auto!important;overflow-y:visible!important;flex-wrap:nowrap!important;padding-left:0!important;}
 .td-primary-nav.td-nav-v70 .td-nav-small-logo img{width:80px;height:31px;}
}
/* Categorías de la portada: dos tarjetas visibles por desplazamiento. */
html.td-home-page .tdh-categories-controls{display:flex;align-items:center;gap:12px;width:100%;max-width:100%;}
html.td-home-page .tdh-categories-section .tdh-categories{
 display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;
 flex:1 1 auto;min-width:0;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;
 scroll-behavior:smooth;scrollbar-width:none;padding:6px 2px 14px;
}
html.td-home-page .tdh-categories-section .tdh-categories::-webkit-scrollbar{display:none;}
html.td-home-page .tdh-categories-section .tdh-category{
 box-sizing:border-box;flex:0 0 calc((100% - 18px)/2);width:calc((100% - 18px)/2);
 height:210px!important;scroll-snap-align:start;padding:20px 12px!important;
}
html.td-home-page .tdh-categories-section .tdh-category img{height:118px!important;max-width:80%;object-fit:contain;}
html.td-home-page .tdh-categories-section .tdh-category span{font-size:62px;}
html.td-home-page .tdh-categories-section .tdh-category strong{font-size:15px;}
html.td-home-page .tdh-cats-arrow{flex:0 0 42px;width:42px;height:46px;border:1px solid #d5e0ee;border-radius:12px;background:#fff;color:#0955a8;font-size:32px;cursor:pointer;box-shadow:0 3px 12px #0d36691a;}
html.td-home-page .tdh-cats-arrow:disabled{opacity:.4;cursor:default;}
html.td-home-page .tdh-cats-arrow:hover:not(:disabled){background:#eaf4ff;}
html.td-home-page .tdh-products-intro .tdh-header{margin-bottom:16px;}
html.td-home-page .tdh-products-intro .tdh-header a{font-size:14px;font-weight:800;white-space:nowrap;}
@media(max-width:600px){
 html.td-home-page .tdh-categories-controls{gap:5px;}
 html.td-home-page .tdh-cats-arrow{width:30px;flex-basis:30px;height:42px;}
 html.td-home-page .tdh-categories-section .tdh-category{height:160px!important;flex-basis:calc((100% - 8px)/2);width:calc((100% - 8px)/2);padding:8px!important;}
 html.td-home-page .tdh-categories-section .tdh-categories{gap:8px;}
 html.td-home-page .tdh-categories-section .tdh-category img{height:85px!important;max-width:100%;}
 html.td-home-page .tdh-categories-section .tdh-category span{font-size:38px;}
 html.td-home-page .tdh-categories-section .tdh-category strong{font-size:11px;}
}

/* V73: categorías en cuadrícula visual tipo catálogo, dos filas con 6 columnas en escritorio. */
.tdh-categories-controls{display:block!important;overflow:visible!important}
.tdh-categories-controls>.tdh-cats-arrow{display:none!important}
.tdh-categories{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;overflow:visible!important;gap:14px!important;scroll-snap-type:none!important;flex-wrap:unset!important}
.tdh-categories>.tdh-category{width:auto!important;min-width:0!important;max-width:none!important;flex:initial!important;height:230px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:13px!important;background:#fff!important;border:1px solid #e4e8ed!important;border-radius:6px!important}
.tdh-categories .tdh-category img{width:96%!important;height:145px!important;object-fit:contain!important}
.tdh-categories .tdh-category strong{font-size:14px!important;color:#0761bd!important}
@media(max-width:1100px){.tdh-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:700px){.tdh-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.tdh-categories>.tdh-category{height:170px!important}.tdh-categories .tdh-category img{height:100px!important}}

/* V77: elimina el conflicto entre las tarjetas de carrusel V70 y el grid V75.
   Cada tarjeta tiene la misma geometría, sea cual sea el tamaño de su foto. */
html.td-home-page body .tdh-categories-section .tdh-categories-controls{
 display:block!important;max-width:100%!important;width:100%!important;overflow:visible!important;
}
html.td-home-page body .tdh-categories-section .tdh-categories-controls > .tdh-cats-arrow{display:none!important}
html.td-home-page body .tdh-categories-section .tdh-categories{
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 grid-auto-flow:row!important;grid-auto-columns:auto!important;
 flex:none!important;flex-wrap:unset!important;gap:14px!important;
 overflow:visible!important;overflow-x:visible!important;min-width:0!important;
 scroll-snap-type:none!important;scroll-behavior:auto!important;padding:0!important;
}
html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
 height:230px!important;min-height:230px!important;max-height:230px!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:space-between!important;flex:none!important;gap:7px!important;
 padding:15px 10px 16px!important;overflow:hidden!important;
 border:1px solid #dfe7f0!important;border-radius:10px!important;background:#fff!important;
 scroll-snap-align:none!important;
}
html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category img{
 display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;
 height:158px!important;min-height:0!important;max-height:158px!important;
 object-fit:contain!important;object-position:center!important;flex:0 0 158px!important;
}
html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category span{
 display:flex!important;align-items:center!important;justify-content:center!important;
 height:158px!important;min-height:0!important;flex:0 0 158px!important;font-size:54px!important;
}
html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category strong{
 width:100%!important;max-width:100%!important;font-size:14px!important;line-height:1.25!important;
 min-height:34px!important;max-height:36px!important;overflow:hidden!important;text-align:center!important;
 overflow-wrap:break-word!important;
}
@media(max-width:1150px){html.td-home-page body .tdh-categories-section .tdh-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:700px){
 html.td-home-page body .tdh-categories-section .tdh-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category{height:195px!important;min-height:195px!important;max-height:195px!important;padding:12px 8px!important}
 html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category img,
 html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category span{height:128px!important;max-height:128px!important;flex-basis:128px!important}
 html.td-home-page body .tdh-categories-section .tdh-categories > .tdh-category strong{font-size:12px!important}
}
