/* ETAP 1C: limited EShop/header compatibility styles. No T4 selectors or URLs. */
.tv-brand { min-width: 0; }
.tv-brand-link { flex-direction: column; align-items: flex-start; line-height: 1.15; color: inherit !important; }
.tv-brand-name { display:block; font-size: clamp(18px, 2.1vw, 27px); font-weight: 750; }
.tv-brand-slogan { display:block; margin-top: 3px; font-size: 11px; font-weight: 400; }
.tv-header-cart { position: relative; }
.tv-header-cart #eshop-cart .eshop-items > a.eshop-cart-toggle { display:inline-flex; align-items:center; gap:8px; text-decoration:none; white-space:nowrap; }
.tv-header-cart #eshop-cart .eshop-items svg { flex: none; }
.tv-header-cart #eshop-cart .eshop-cart-qty { position: absolute; top: -7px; left: 17px; min-width: 20px; height:20px; padding: 0 3px; border-radius: 99px; background:#2ecc71; color:#fff; font-size:12px; line-height:20px; text-align:center; font-weight:700; }
.tv-header-cart #eshop-cart .eshop-cart-sum { display:inline-block; padding-left: 10px; font-weight:700; }
.tv-header-cart #eshop-cart .eshop-content { position:absolute; z-index:1001; top:100%; right:0; width:min(92vw,460px); max-height:75vh; overflow:auto; background:#fff; padding:12px; box-shadow:0 8px 30px #0002; border:1px solid #ddd; }
.tv-header-cart #eshop-cart .eshop-content img { max-width: 70px; height:auto; }
.tv-header-search #eshop-search { position:relative; }
.tv-header-search #keyword { max-width:100%; width:100%; min-height:34px; }
.tv-header-search #eshop_result { max-width:min(85vw,450px); max-height:60vh; overflow:auto; }
.tv-navigation { background:#212529; }
.tv-navigation .tv-menu-link, .tv-navigation .tv-menu-label, .tv-navigation .tv-menu-dropdown summary { color:#abacad; font-size:15px; font-weight:700; }
.tv-navigation .tv-menu-item.is-active > .tv-menu-link,
.tv-navigation .tv-menu-link:hover, .tv-navigation .tv-menu-link:focus-visible,
.tv-navigation .tv-menu-dropdown summary:hover { color:#fff; }
.tv-navigation .tv-menu-dropdown > .tv-menu-level { background:#212529; border-color:#414950; }
.tv-navigation .tv-menu-dropdown .tv-menu-link { padding:6px 12px; white-space:normal; }
/* Existing EShop views use Bootstrap 5 grid and forms; bundled Joomla bootstrap.css is loaded first. */
.tv-component .product-info img, .tv-component .products-list-container img { max-width:100%; height:auto; }
.tv-component #main-image-area { margin-top:5px; }
.tv-component .wait img { width:16px; height:16px; }
.tv-review-stars { color:#dc9f1a; letter-spacing:.06em; }
/* Local native tabs copied from the active product override dependency. */
.tvbridge-native-product-tabs{margin:16px 0 22px;min-width:0}
.tvbridge-native-product-tabs .tvbridge-tab-list{display:flex;flex-wrap:wrap;gap:2px;align-items:end;border-bottom:1px solid #dee2e6}
.tvbridge-native-product-tabs .tvbridge-tab-option{position:relative;display:inline-flex;cursor:pointer;margin:0;font-weight:400;max-width:100%}
.tvbridge-native-product-tabs .tvbridge-tab-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tvbridge-native-product-tabs .tvbridge-tab-option span{display:block;padding:9px 13px;border:1px solid transparent;border-radius:4px 4px 0 0;color:#495057;line-height:1.25;overflow-wrap:anywhere}
.tvbridge-native-product-tabs .tvbridge-tab-option:has(input:checked) span{border-color:#dee2e6 #dee2e6 #fff;background:#fff;color:#212529;font-weight:600;margin-bottom:-1px}
.tvbridge-native-product-tabs .tvbridge-tab-option:hover span{color:#111}
.tvbridge-native-product-tabs .tvbridge-tab-option:has(input:focus-visible) span{outline:2px solid #0066c2;outline-offset:2px}
.tvbridge-native-product-tabs .tvbridge-tab-panes{padding:14px 0;min-height:1px}
.tvbridge-native-product-tabs .tvbridge-tab-pane{display:block}
@supports selector(:has(*)){.tvbridge-native-product-tabs .tvbridge-tab-pane{display:none}}
@media(max-width:480px){.tvbridge-native-product-tabs .tvbridge-tab-option span{padding:8px 9px;font-size:14px}}
@media(max-width:760px){.tv-header-cart #eshop-cart .eshop-content{right:0;width:min(92vw,400px)}.tv-brand-name{font-size:clamp(17px,5vw,22px)}.tv-brand-slogan{font-size:10px}}

/* Existing cookie acknowledgement UI, independent of the old template. */
.st-cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:9999;background:#222;color:#f5f5f5;font-size:13px;line-height:1.4;font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;box-shadow:0 -4px 16px #0005}
.st-cookie-inner{max-width:1200px;margin:auto;padding:8px 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.st-cookie-text{flex:1 1 260px}.st-cookie-actions{display:flex;gap:6px}.st-cookie-btn{border:0;padding:6px 12px;border-radius:999px;font-size:12px;cursor:pointer}.st-cookie-btn-primary{background:#007bba;color:#fff}.st-cookie-link{color:#66c0ff;text-decoration:underline}
@media(max-width:640px){.st-cookie-banner{font-size:12px}.st-cookie-inner{flex-direction:column;align-items:flex-start;padding:6px 10px}.st-cookie-text{flex:none;max-height:30vh;overflow:auto}.st-cookie-actions{align-self:flex-end}}

/* Native CSS-only mobile navigation without the old offcanvas framework. */
.tv-mobile-nav-check,.tv-mobile-nav-toggle{display:none}
@media(max-width:1199px){
 .tv-mobile-nav-check{position:absolute;opacity:0;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .tv-mobile-nav-toggle{display:flex;align-items:center;justify-content:space-between;min-height:38px;color:#fff;font-weight:600;cursor:pointer;padding:7px 4px}
 .tv-mobile-nav-check:focus-visible+.tv-mobile-nav-toggle{outline:2px solid #fff;outline-offset:-2px}
 .tv-menu-panel{display:none}
 .tv-mobile-nav-check:checked~.tv-menu-panel{display:block}
 .tv-navigation .tv-menu-level-0{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .tv-navigation .tv-menu-item{display:block}
 .tv-navigation .tv-menu-link,.tv-navigation .tv-menu-label{display:block;padding:8px 12px}
 .tv-navigation .tv-menu-dropdown{display:block}
 .tv-navigation .tv-menu-dropdown>summary{padding:2px 12px}
 .tv-navigation .tv-menu-dropdown>.tv-menu-level{display:flex;position:static;flex-direction:column;align-items:stretch;box-shadow:none;border:0;padding:0 0 6px 14px}
}

/* Native related-product grid replaces Slick: no carousel library, no JS or hidden cards.
   All related items remain visible and keyboard-accessible when relationships are added. */
#related-products .related_products{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:12px;
 align-items:start;
}
#related-products .related_products > .related_products_main{min-width:0;margin:0;}
@media(max-width:1023px){#related-products .related_products{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:599px){#related-products .related_products{grid-template-columns:repeat(2,minmax(0,1fr));}}
