/* TAC Aragón v1.5 — catálogo fiel al diseño anterior de PrestaShop.
   Todas las reglas de catálogo están aisladas para no modificar la portada. */
body.tac-theme{--tac-catalogue-blue:#244c7d;--tac-catalogue-bg:#f7f7f7;--tac-catalogue-border:#e7e7e7}
body.tac-theme .topbar-inner .tac-head-search{flex:1;max-width:510px;min-width:120px;display:flex;align-items:center;height:39px;margin-left:30px;background:#ffff4c;border:1px solid #d8dfb8}
body.tac-theme .tac-head-search input[type=search]{width:100%;min-width:0;flex:1;margin:0;padding:8px 13px;background:transparent;color:#273a4e;border:0;border-radius:0;outline:0;box-shadow:none;font-size:15px}
body.tac-theme .tac-head-search input[type=search]::placeholder{color:#7f8793}
body.tac-theme .tac-head-search button{border:0;border-radius:0;background:transparent;color:#14396b;font-size:29px;line-height:1;min-width:42px;height:36px;padding:0 6px}
body.tac-theme .tac-head-search:focus-within{outline:2px solid #295387;outline-offset:2px}
body.tac-theme .topbar .top-budget{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#fff!important}
body.tac-theme .topbar .top-budget .tac-quote-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:1px 5px;background:#fff;color:#244c7d;border-radius:2px;font-size:12px}
body.tac-theme .navbar{z-index:65}
body.tac-theme .nav-links .tac-nav-product{display:flex;align-items:stretch;position:static}
body.tac-theme .tac-nav-product>.nav-item{display:flex;align-items:center;font-weight:600;color:#fff;padding:13px 5px 13px 14px;white-space:nowrap;font-size:14px}
body.tac-theme .tac-nav-product>.nav-item:hover{color:#fff;background:#1b3454}
body.tac-theme .tac-mega-toggle{padding:0 9px 2px 1px;background:none;border:0;border-radius:0;color:#fff;font-size:20px;line-height:1;min-height:48px}
body.tac-theme .tac-mega-toggle:hover,body.tac-theme .tac-mega-toggle[aria-expanded=true]{background:#1b3454;color:#fff}
body.tac-theme .tac-mega-panel{display:none;position:absolute;left:0;right:0;top:100%;z-index:80;max-height:min(72vh,790px);overflow:auto;background:#f9f9f9;border:1px solid #ededed;border-top:0;box-shadow:0 12px 28px #102b4c2b;color:#555}
body.tac-theme .tac-nav-product:is(:hover,:focus-within,.is-expanded) .tac-mega-panel{display:block}
body.tac-theme .tac-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:46px;row-gap:26px;padding:34px max(26px,calc((100vw - 1280px)/2 + 16px)) 38px}
body.tac-theme .tac-mega-col{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px}
body.tac-theme .tac-mega-col a{font-size:13px;line-height:1.45;color:#686868;overflow-wrap:anywhere;text-decoration:none}
body.tac-theme .tac-mega-col a:hover{text-decoration:underline;color:#244c7d}
body.tac-theme .tac-mega-col .tac-mega-title{color:#244c7d;text-transform:uppercase;font-size:14px;font-weight:500;line-height:1.35;margin-bottom:3px}
/* Layout original: breadcrumb, sidebar izquierda y contenido a la derecha. */
body.tac-theme .tac-catalogue{background:#fff;font-size:13px;color:#666;line-height:1.45;padding:0 0 50px}
body.tac-theme .tac-catalogue .tac-shop-wrap{max-width:1280px;margin:0 auto;padding-top:13px}
body.tac-theme .tac-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:26px;margin:0 0 20px;color:#979797;font-size:12px}
body.tac-theme .tac-crumb a{color:#949494}
body.tac-theme .tac-crumb a:hover{color:#244c7d;text-decoration:underline}
body.tac-theme .tac-shop-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:27px;align-items:start}
body.tac-theme .tac-catalogue-aside{font-size:12px;max-width:100%}
body.tac-theme .tac-aside-box{background:#f7f7f7;padding:15px 14px 20px;margin-bottom:20px}
body.tac-theme .tac-aside-box h2{margin:0 0 12px;color:#555;font-size:14px;font-weight:600;line-height:1.35}
body.tac-theme .tac-side-list,.tac-catalogue .tac-side-children{list-style:none;padding:0;margin:0}
body.tac-theme .tac-side-node{padding:0;list-style:none}
body.tac-theme .tac-side-row{display:flex;align-items:start;justify-content:space-between;gap:4px;min-height:25px}
body.tac-theme .tac-side-row>a{font-size:12px;line-height:1.45;flex:1;color:#244c7d;padding:4px 0;overflow-wrap:anywhere}
body.tac-theme .tac-side-row>a:hover,body.tac-theme .tac-side-node.is-current>.tac-side-row>a{font-weight:600;text-decoration:underline}
body.tac-theme .tac-side-toggle{flex:none;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#777;padding:0;width:22px;height:24px;font-size:19px}
body.tac-theme .tac-side-toggle[aria-expanded=true]{transform:rotate(180deg)}
body.tac-theme .tac-side-children{margin:0 0 4px 11px;border-left:1px solid #e1e1e1;padding-left:10px}
body.tac-theme .tac-side-children[hidden]{display:none}
body.tac-theme .tac-aside-link a{color:#244c7d}
body.tac-theme .tac-shop-content{min-width:0}
body.tac-theme .tac-page-title{margin:0;text-align:center;text-transform:uppercase;font-size:19px;color:#244c7d;font-weight:700;line-height:1.35}
body.tac-theme .tac-title-rule{height:2px;width:35px;background:#8fa9c5;margin:13px auto 23px}
/* Categorías según PrestaShop: tarjetas blancas, imagen y texto centrado. */
body.tac-theme .tac-categories-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:center;gap:7px;margin:0 auto 29px;max-width:100%}
body.tac-theme .tac-category-card{display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-width:0;min-height:224px;padding:7px 8px 10px;background:#fff;border:1px solid #e6e6e6;text-decoration:none;transition:border-color .15s}
body.tac-theme .tac-category-card:hover{border-color:#9db5ce}
body.tac-theme .tac-category-photo{display:flex;align-items:center;justify-content:center;width:100%;height:180px;overflow:hidden}
body.tac-theme .tac-category-photo img{width:100%;height:100%;max-width:100%;object-fit:contain}
body.tac-theme .tac-category-name{display:block;text-align:center;text-transform:uppercase;font-size:12px;line-height:1.32;color:#244c7d;font-weight:600;overflow-wrap:anywhere}
body.tac-theme .tac-no-image{font-size:12px;color:#a2a2a2;text-align:center}
body.tac-theme .tac-shop-products{border-top:1px solid #e7e7e7;margin-top:21px;padding-top:22px}
body.tac-theme .tac-catalogue-section-title{color:#244c7d;font-size:18px;line-height:1.3;font-weight:700;text-align:center;margin:0 0 25px}
body.tac-theme .tac-shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:33px;margin-bottom:21px}
body.tac-theme .tac-shop-view{font-size:21px;line-height:1;color:#244c7d}
body.tac-theme .tac-shop-sort-controls{margin-left:auto;display:flex;align-items:center;gap:13px;font-size:12px}
body.tac-theme .tac-shop-count{color:#8c8c8c;white-space:nowrap}
body.tac-theme .tac-sort-form{margin:0}
body.tac-theme .tac-sort-form select{display:block;width:130px;min-height:30px;font-size:12px;color:#666;border:1px solid #e2e2e2;background:#fff;border-radius:0;padding:3px 5px}
body.tac-theme .tac-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 8px}
body.tac-theme .tac-product-card{min-width:0;max-width:100%;font-size:12px;color:#244c7d}
body.tac-theme .tac-product-card-link{display:block;text-decoration:none;color:#244c7d}
body.tac-theme .tac-product-thumb{height:215px;display:flex;justify-content:center;align-items:center;border:1px solid #eee;background:#fff;overflow:hidden;padding:9px}
body.tac-theme .tac-product-thumb img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
body.tac-theme .tac-product-name{display:block;min-height:35px;font-size:12px;line-height:1.27;text-transform:uppercase;font-weight:400;color:#244c7d;margin:7px 6px 0;overflow-wrap:anywhere}
body.tac-theme .tac-product-card-link:hover .tac-product-name{text-decoration:underline}
body.tac-theme .tac-product-ref{display:block;color:#9b9b9b;font-size:11px;margin:3px 6px}
body.tac-theme .tac-pagination{margin:32px auto 16px;display:flex;justify-content:center}
body.tac-theme .tac-pagination ul{padding:0;list-style:none;display:flex;gap:6px;margin:0}
body.tac-theme .tac-pagination .page-numbers li{list-style:none;margin:0}
body.tac-theme .tac-pagination a,body.tac-theme .tac-pagination span.current{display:inline-flex;justify-content:center;align-items:center;min-width:26px;min-height:28px;padding:3px 7px;border:1px solid #d8e1ea;color:#244c7d;text-decoration:none;font-size:12px}
body.tac-theme .tac-pagination .current{background:#244c7d;color:#fff!important;border-color:#244c7d}
body.tac-theme .tac-empty-products{background:#f7f7f7;padding:22px}
body.tac-theme .tac-category-description{padding-top:21px;border-top:1px solid #eee;margin-top:20px;color:#888}
/* Ficha: gran fotografía a la izquierda, bloque gris de datos a la derecha. */
body.tac-theme .tac-catalogue-single .tac-shop-wrap{max-width:1280px}
body.tac-theme .tac-single-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.94fr);gap:42px;align-items:start;padding-top:10px}
body.tac-theme .tac-single-media{min-width:0}
body.tac-theme .tac-main-photo-link{display:flex;align-items:center;justify-content:center;min-height:365px;width:100%;background:#fff;text-decoration:none;overflow:hidden}
body.tac-theme .tac-main-photo{display:block;max-height:420px;width:100%;object-fit:contain}
body.tac-theme .tac-single-thumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
body.tac-theme .tac-photo-select{width:68px;height:68px;display:flex;justify-content:center;align-items:center;overflow:hidden;border:1px solid #e7e7e7;border-radius:0;background:#fff;padding:3px}
body.tac-theme .tac-photo-select:hover,body.tac-theme .tac-photo-select:focus-visible{border-color:#244c7d}
body.tac-theme .tac-photo-select img{max-width:100%;max-height:100%;object-fit:contain}
body.tac-theme .tac-single-summary{background:#f7f7f7;padding:24px 26px 28px;min-height:315px;color:#666}
body.tac-theme .tac-single-summary h1{color:#244c7d;font-size:25px;line-height:1.2;font-weight:800;text-transform:uppercase;overflow-wrap:anywhere;margin:0 0 11px}
body.tac-theme .tac-single-sku{font-size:13px;margin:0 0 22px;color:#727272}
body.tac-theme .tac-single-shortdesc{font-size:14px;line-height:1.4;padding:16px 0 19px;margin:0 0 13px;border-top:1px solid #e3e3e3;border-bottom:1px solid #e3e3e3;min-height:100px}
body.tac-theme .tac-single-shortdesc p{margin:0 0 10px}
body.tac-theme .tac-add-quote{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:0}
body.tac-theme .tac-add-quote label{display:block;width:100%;color:#5b5b5b;font-size:12px;margin:0}
body.tac-theme .tac-add-quote input[type=number]{width:65px;height:38px;border:1px solid #aaa;border-radius:0;background:#fff;padding:7px;color:#333;margin:0}
body.tac-theme .tac-blue-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;background:#244c7d!important;color:#fff!important;border:0!important;border-radius:0!important;padding:9px 17px!important;font-size:13px!important;font-weight:700!important;text-decoration:none!important;line-height:1.35;cursor:pointer}
body.tac-theme .tac-blue-button:hover{background:#15375e!important}
body.tac-theme .tac-quote-link{display:inline-block;margin:13px 0 0;color:#244c7d;text-decoration:underline;font-size:13px}
body.tac-theme .tac-note-success{padding:10px;margin-top:10px;background:#e5f3e8;color:#1f612c;font-weight:600}
body.tac-theme .tac-single-description{margin-top:34px;min-height:125px;color:#666}
body.tac-theme .tac-single-description h2{border-bottom:1px solid #e7e7e7;margin:0 0 16px;padding-bottom:11px;color:#244c7d;font-size:14px;font-weight:700}
body.tac-theme .tac-single-description p{font-size:14px;line-height:1.5;margin:0 0 8px}
body.tac-theme .tac-single-description ul{padding-left:20px}
body.tac-theme .tac-related-section{border-top:1px solid #ededed;margin-top:48px;padding-top:15px}
body.tac-theme .tac-related-section>h2{font-size:18px;color:#244c7d;border-bottom:2px solid #244c7d;padding:0 0 9px;margin:0 0 24px}
body.tac-theme .tac-related-products{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Lista de presupuesto y formulario (página propia, sin carrito/checkout). */
body.tac-theme .tac-quote-page{padding:24px 0 70px}
body.tac-theme .tac-quote-page .tac-page-title{text-align:left;margin:5px 0 26px}
body.tac-theme .tacq-wrapper{max-width:1000px;font-size:15px}
body.tac-theme .tacq-wrapper h2{margin:26px 0 14px;font-size:19px;color:#244c7d}
body.tac-theme .tacq-wrapper>p{font-size:15px}
body.tac-theme .tacq-wrapper a{color:#244c7d;text-decoration:underline}
body.tac-theme .tacq-table-wrap{max-width:100%;overflow-x:auto}
body.tac-theme .tacq-table{width:100%;min-width:530px;border-collapse:collapse;font-size:14px;background:#fff;margin-bottom:12px}
body.tac-theme .tacq-table th,body.tac-theme .tacq-table td{padding:11px;border:1px solid #e3e3e3;text-align:left;vertical-align:middle}
body.tac-theme .tacq-table th{background:#f7f7f7;color:#244c7d;font-size:13px}
body.tac-theme .tacq-table input[type=number]{max-width:75px;min-height:34px;padding:5px;border-radius:0;border:1px solid #b7b7b7}
body.tac-theme .tacq-outline{min-height:38px;padding:7px 14px;border:1px solid #244c7d;border-radius:0;background:#fff;color:#244c7d;font-weight:600}
body.tac-theme .tacq-outline:hover{background:#f1f6fa}
body.tac-theme .tacq-remove{width:32px;height:32px;padding:0;border:0;background:#f3f3f3;color:#a12427;border-radius:0;font-size:23px;line-height:1}
body.tac-theme .tacq-hidden-form{display:none}
body.tac-theme .tacq-contact-form{background:#f8f8f8;padding:24px;margin-top:12px}
body.tac-theme .tacq-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:13px;margin-bottom:13px}
body.tac-theme .tacq-contact-form label{display:block;font-size:13px;color:#555;font-weight:600}
body.tac-theme .tacq-contact-form input:not([type=checkbox]),body.tac-theme .tacq-contact-form textarea{display:block;width:100%;padding:9px 11px;margin-top:5px;border:1px solid #ccc;border-radius:0;background:#fff;color:#222;font-size:14px}
body.tac-theme .tacq-contact-form textarea{resize:vertical;min-height:110px}
body.tac-theme .tacq-contact-form .tacq-privacy{display:flex;align-items:start;gap:8px;margin:17px 0;color:#555;font-size:13px;font-weight:400}
body.tac-theme .tacq-contact-form .tacq-privacy input{flex:none;margin-top:2px;accent-color:#244c7d}
body.tac-theme .tacq-honey{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
body.tac-theme .tacq-alert{padding:15px 17px;margin:12px 0 22px;border-left:4px solid #c19e4f;background:#fff6e1;color:#5c4b25}
body.tac-theme .tacq-success{background:#e8f6eb;border-left-color:#338b48;color:#215a2d}
/* En pantallas medianas reducimos columnas manteniendo proporciones. */
@media(max-width:1180px){
 body.tac-theme .nav-links .nav-item,body.tac-theme .tac-nav-product>.nav-item{font-size:12px;padding-inline:9px}
 body.tac-theme .tac-mega-toggle{padding-right:7px}
 body.tac-theme .tac-shop-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}
 body.tac-theme .tac-product-thumb{height:170px}
 body.tac-theme .tac-category-photo{height:150px}
 body.tac-theme .tac-category-card{min-height:193px}
}
@media(max-width:920px){
 body.tac-theme .tac-head-search{margin-left:0!important;max-width:420px!important}
 body.tac-theme .menu{max-height:calc(100dvh - 120px);overflow-y:auto}
 body.tac-theme .nav-links .tac-nav-product{display:flex;flex-wrap:wrap}
 body.tac-theme .tac-nav-product>.nav-item{flex:1;padding:12px 14px;font-size:15px}
 body.tac-theme .tac-mega-toggle{flex:0 0 45px;font-size:25px;min-height:45px}
 body.tac-theme .tac-mega-panel{position:static;flex:0 0 100%;width:100%;max-height:none;overflow:visible;box-shadow:none;background:#f4f4f4}
 body.tac-theme .tac-mega-grid{padding:18px 14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
 body.tac-theme .tac-nav-product:hover:not(.is-expanded) .tac-mega-panel{display:none}
 body.tac-theme .tac-nav-product.is-expanded .tac-mega-panel{display:block}
 body.tac-theme .tac-shop-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}
 body.tac-theme .tac-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.tac-theme .tac-category-photo{height:130px}
 body.tac-theme .tac-category-card{min-height:180px}
 body.tac-theme .tac-single-layout{grid-template-columns:1fr 1fr;gap:20px}
 body.tac-theme .tac-single-summary h1{font-size:21px}
 body.tac-theme .tac-related-products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 body.tac-theme .topbar-inner .tac-head-search{height:36px;min-width:0;flex:1}
 body.tac-theme .tac-head-search input[type=search]{font-size:12px;padding:6px}
 body.tac-theme .tac-head-search button{min-width:30px;height:32px;font-size:23px}
 body.tac-theme .topbar .top-budget{font-size:12px;padding-inline:8px;min-width:0}
 body.tac-theme .tac-shop-layout{display:flex;flex-direction:column-reverse;gap:15px}
 body.tac-theme .tac-catalogue-aside{width:100%}
 body.tac-theme .tac-shop-content{width:100%}
 body.tac-theme .tac-aside-box{margin-bottom:5px}
 body.tac-theme .tac-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 9px}
 body.tac-theme .tac-product-thumb{height:190px}
 body.tac-theme .tac-category-photo{height:150px}
 body.tac-theme .tac-page-title{font-size:18px}
 body.tac-theme .tac-single-layout{grid-template-columns:1fr}
 body.tac-theme .tac-single-media{order:0}
 body.tac-theme .tac-single-summary{order:1}
 body.tac-theme .tac-main-photo-link{min-height:240px}
 body.tac-theme .tac-single-shortdesc{min-height:0}
 body.tac-theme .tac-single-description{margin-top:22px}
 body.tac-theme .tac-related-products{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tac-theme .tacq-form-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
 body.tac-theme .topbar-inner .tac-head-search{margin-left:0;max-width:none}
 body.tac-theme .tac-head-search input[type=search]::placeholder{font-size:0}
 body.tac-theme .topbar .site-logo{width:88px;flex:none}
 body.tac-theme .topbar .site-logo img{width:88px}
 body.tac-theme .topbar .top-budget{min-height:36px;font-size:11px;padding-inline:6px}
 body.tac-theme .topbar .top-budget .tac-quote-count{font-size:10px;min-width:17px;height:17px}
 body.tac-theme .tac-mega-grid{grid-template-columns:1fr}
 body.tac-theme .tac-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tac-theme .tac-category-photo{height:125px}
 body.tac-theme .tac-category-card{min-height:165px}
 body.tac-theme .tac-shop-toolbar{flex-wrap:wrap}
 body.tac-theme .tac-shop-count{white-space:normal}
 body.tac-theme .tac-shop-sort-controls{flex-wrap:wrap;justify-content:flex-end}
 body.tac-theme .tac-product-thumb{height:145px}
 body.tac-theme .tac-product-name{font-size:11px}
 body.tac-theme .tac-single-summary{padding:18px}
 body.tac-theme .tacq-contact-form{padding:16px}
}

/* v1.4: recuperar familias reales y navegación de PrestaShop. */
body.tac-theme .tac-catalogue-aside .tac-aside-box h2 a{font-size:inherit;font-weight:inherit;color:inherit;text-decoration:none}
body.tac-theme .tac-side-all{margin:13px 0 0;padding-top:10px;border-top:1px solid #e2e2e2;font-size:11px}
body.tac-theme .tac-side-all a{color:#244c7d;text-decoration:underline}
body.tac-theme .tac-shop-content .tac-categories-grid{margin-bottom:35px}
body.tac-theme .tac-category-card:focus-visible,body.tac-theme .tac-product-card-link:focus-visible{outline:2px solid #244c7d;outline-offset:2px}
body.tac-theme .tac-shop-products .tac-catalogue-section-title{padding-bottom:8px}
body.tac-theme .tac-quote-page .tac-shop-wrap{max-width:1050px}
body.tac-theme .tac-quote-page .tacq-wrapper{max-width:100%;margin:0 auto}
body.tac-theme .tac-quote-page .tacq-contact-form{border:1px solid #ececec}
body.tac-theme .tac-quote-page .tacq-table th{font-weight:700}
@media(max-width:700px){
 body.tac-theme .tac-catalogue .tac-shop-wrap{padding-left:15px;padding-right:15px}
 body.tac-theme .tac-shop-layout{flex-direction:column}
 body.tac-theme .tac-catalogue-aside{order:2}
 body.tac-theme .tac-shop-content{order:1}
 body.tac-theme .tac-quote-page .tacq-table-wrap{margin-right:0}
}

/* v1.5: megamenú en cuatro columnas independientes como PrestaShop. */
body.tac-theme .tac-mega-grid{align-items:start;column-gap:38px;row-gap:18px;padding-top:25px;padding-bottom:26px}
body.tac-theme .tac-mega-column{display:flex;flex-direction:column;align-items:stretch;gap:23px;min-width:0}
body.tac-theme .tac-mega-col{gap:3px}
body.tac-theme .tac-mega-col a{line-height:1.35}
body.tac-theme .tac-mega-col .tac-mega-title{margin-bottom:3px}
@media(max-width:920px){
  body.tac-theme .tac-mega-grid{column-gap:20px;row-gap:18px;padding:18px 14px}
  body.tac-theme .tac-mega-column{gap:18px}
}
@media(max-width:480px){
  body.tac-theme .tac-mega-column{gap:16px}
}

/* v1.6: páginas interiores más próximas al catálogo PrestaShop 47-FRENTES.
   Se mantienen intactas las tarjetas grandes de la portada general. */
@media(min-width:921px){
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:16px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px;align-items:center;justify-items:stretch;min-height:78px;padding:7px 8px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:72px;height:62px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo img{width:100%;height:100%;object-fit:contain}
 body.tac-theme .tac-catalogue-interior .tac-category-name{text-align:left;font-size:11px;font-weight:600;line-height:1.25}
 body.tac-theme .tac-catalogue-interior .tac-shop-products{margin-top:15px;padding-top:15px}
 body.tac-theme .tac-catalogue-interior .tac-catalogue-section-title{margin-bottom:18px}
 body.tac-theme .tac-catalogue-interior .tac-shop-toolbar{margin-bottom:14px}
}
@media(min-width:701px) and (max-width:920px){
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{display:grid;grid-template-columns:70px minmax(0,1fr);gap:7px;align-items:center;min-height:75px;padding:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:70px;height:62px}
 body.tac-theme .tac-catalogue-interior .tac-category-name{text-align:left;font-size:11px}
}
@media(max-width:700px){
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{display:flex;flex-direction:column;justify-content:center;min-height:110px;padding:7px;gap:4px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{height:75px;width:100%}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:10px;line-height:1.3}
}
/* Estructura de ficha con la proporción y separación de la web antigua. */
@media(min-width:921px){
 body.tac-theme .tac-single-layout{grid-template-columns:minmax(0,1fr) minmax(390px,.95fr);gap:30px;padding-top:6px}
 body.tac-theme .tac-single-summary{padding:19px 23px 22px;min-height:0}
 body.tac-theme .tac-single-summary h1{font-size:23px;line-height:1.2}
 body.tac-theme .tac-main-photo-link{min-height:320px}
 body.tac-theme .tac-main-photo{max-height:355px}
 body.tac-theme .tac-single-description{margin-top:24px}
}
/* Filas de navegación ligeramente más compactas. */
body.tac-theme .tac-catalogue-aside .tac-side-row{min-height:22px}
body.tac-theme .tac-catalogue-aside .tac-side-row>a{padding-top:3px;padding-bottom:3px}


/* v1.7 — comparación con capturas PrestaShop: navegación y presentación. */
body.tac-theme .tac-catalogue-interior .tac-categories-grid{margin-bottom:15px}
body.tac-theme .tac-product-details{display:block;min-width:0}
body.tac-theme .tac-shop-view{display:inline-flex;align-items:center;gap:5px;font-size:15px}
body.tac-theme .tac-shop-view .tac-view-link{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;color:#244c7d;text-decoration:none;border:1px solid transparent;border-radius:0;font-size:18px;line-height:1}
body.tac-theme .tac-shop-view .tac-view-link:hover,body.tac-theme .tac-shop-view .tac-view-link:focus-visible{border-color:#a8bfd8}
body.tac-theme .tac-shop-view .tac-view-link.is-active{color:#244c7d;background:#eff4f8;border-color:#d4dfe9}
body.tac-theme .tac-catalogue .tac-products-grid.tac-view-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
body.tac-theme .tac-view-list .tac-product-card-link{display:flex;align-items:flex-start;gap:16px;border:1px solid #ececec;padding:9px;background:#fff}
body.tac-theme .tac-view-list .tac-product-thumb{flex:0 0 155px;width:155px;height:125px;border:0;padding:0}
body.tac-theme .tac-view-list .tac-product-details{padding:17px 5px 0 0}
body.tac-theme .tac-view-list .tac-product-name{min-height:0;margin:0;font-size:13px;line-height:1.4}
body.tac-theme .tac-view-list .tac-product-ref{margin:8px 0 0;font-size:12px}
body.tac-theme .tac-photo-select[aria-pressed=true]{border-color:#244c7d;box-shadow:inset 0 0 0 1px #244c7d}
/* El catálogo histórico mostraba tres tarjetas en la primera fila y la cuarta centrada. */
@media(min-width:921px){
 body.tac-theme .tac-catalogue-interior .tac-categories-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-card{grid-template-columns:64px minmax(0,1fr);min-height:61px;padding:5px 8px;gap:7px}
 body.tac-theme .tac-catalogue-interior .tac-category-photo{width:64px;height:52px}
 body.tac-theme .tac-catalogue-interior .tac-category-card:last-child:nth-child(3n + 1):not(:first-child){grid-column:2}
 body.tac-theme .tac-catalogue-interior .tac-category-name{font-size:11px;line-height:1.27}
 body.tac-theme .tac-catalogue-interior .tac-shop-products{margin-top:15px;padding-top:14px}
 body.tac-theme .tac-catalogue-interior .tac-catalogue-section-title{margin-bottom:16px}
 body.tac-theme .tac-catalogue-interior .tac-shop-toolbar{margin-bottom:12px}
}
@media(max-width:920px){
 body.tac-theme .tac-catalogue-interior .tac-category-card:last-child{grid-column:auto}
}
@media(max-width:480px){
 body.tac-theme .tac-view-list .tac-product-card-link{gap:10px;padding:7px}
 body.tac-theme .tac-view-list .tac-product-thumb{flex-basis:112px;width:112px;height:104px}
 body.tac-theme .tac-view-list .tac-product-details{padding-top:7px}
 body.tac-theme .tac-view-list .tac-product-name{font-size:11px}
}
