.baofeng-acc-wrap,
.baofeng-acc-wrap *{
box-sizing:border-box !important;
}
.baofeng-acc-wrap{
width:100% !important;
margin:22px 0 !important;
font-family:Arial, Helvetica, sans-serif !important;
color:#1F2937 !important;
}
.baofeng-acc-frame{
background:#eef4ff !important;
border:1px solid #cfdcf4 !important;
border-radius:22px !important;
padding:14px !important;
box-shadow:0 8px 22px rgba(15,23,42,0.06) !important;
}
.baofeng-acc-head{
background:linear-gradient(135deg,#0B1220 0%,#111827 58%,#1E73BE 100%) !important;
color:#ffffff !important;
border-radius:18px !important;
padding:18px 20px !important;
margin:0 0 14px 0 !important;
}
.baofeng-acc-head-title{
font-size:23px !important;
line-height:1.2 !important;
font-weight:900 !important;
color:#ffffff !important;
margin:0 0 5px 0 !important;
}
.baofeng-acc-head-text{
font-size:14px !important;
line-height:1.45 !important;
color:#dbe5ff !important;
margin:0 !important;
}
.baofeng-acc-grid{
display:grid !important;
grid-template-columns:repeat(2,minmax(0,1fr)) !important;
gap:14px !important;
align-items:stretch !important;
}
.baofeng-acc-card{
display:grid !important;
grid-template-columns:135px minmax(0,1fr) !important;
grid-template-areas:
"title title"
"image content" !important;
gap:12px !important;
align-items:center !important;
height:100% !important;
background:#f8fbff !important;
border:1px solid #c8d5ef !important;
border-radius:18px !important;
padding:14px !important;
box-shadow:0 6px 18px rgba(15,23,42,0.05) !important;
}
.baofeng-acc-title{
grid-area:title !important;
width:100% !important;
text-align:center !important;
font-size:19px !important;
line-height:1.2 !important;
font-weight:900 !important;
color:#0B1220 !important;
margin:0 !important;
padding:0 6px !important;
}
.baofeng-acc-image{
grid-area:image !important;
width:135px !important;
min-width:135px !important;
max-width:135px !important;
}
.baofeng-acc-image a{
display:block !important;
text-decoration:none !important;
}
.baofeng-acc-image-inner{
background:#ffffff !important;
border:1px solid #dce5f3 !important;
border-radius:14px !important;
padding:8px !important;
text-align:center !important;
}
.baofeng-acc-image img{
width:100% !important;
height:auto !important;
display:block !important;
border-radius:10px !important;
}
.baofeng-acc-content{
grid-area:content !important;
min-width:0 !important;
display:flex !important;
flex-direction:column !important;
height:100% !important;
}
.baofeng-acc-price-row{
display:flex !important;
align-items:baseline !important;
justify-content:space-between !important;
gap:10px !important;
margin:0 0 8px 0 !important;
padding:0 0 8px 0 !important;
border-bottom:1px solid #dce5f3 !important;
}
.baofeng-acc-price-label{
color:#64748B !important;
font-size:12px !important;
line-height:1.2 !important;
font-weight:800 !important;
text-transform:uppercase !important;
}
.baofeng-acc-price{
color:#EA580C !important;
font-size:22px !important;
line-height:1.05 !important;
font-weight:900 !important;
white-space:nowrap !important;
text-align:right !important;
}
.baofeng-acc-text{
font-size:13px !important;
line-height:1.45 !important;
color:#1F2937 !important;
margin:0 0 9px 0 !important;
}
.baofeng-acc-text strong{
color:#0B1220 !important;
font-weight:900 !important;
}
.baofeng-acc-badges{
display:flex !important;
flex-wrap:wrap !important;
gap:7px !important;
margin:0 0 12px 0 !important;
}
.baofeng-acc-badge{
display:inline-block !important;
background:#eef4ff !important;
border:1px solid #c7d7f2 !important;
border-radius:999px !important;
padding:6px 10px !important;
color:#0B1220 !important;
font-size:12px !important;
line-height:1.2 !important;
font-weight:900 !important;
}
.baofeng-acc-btns{
display:grid !important;
grid-template-columns:1fr !important;
gap:9px !important;
align-items:stretch !important;
margin-top:auto !important;
}
.baofeng-acc-btn-cart{
display:flex !important;
align-items:center !important;
justify-content:center !important;
width:100% !important;
min-width:0 !important;
min-height:42px !important;
border:0 !important;
cursor:pointer !important;
font-size:14px !important;
line-height:1.15 !important;
font-weight:900 !important;
text-decoration:none !important;
padding:10px 12px !important;
border-radius:12px !important;
text-align:center !important;
white-space:nowrap !important;
font-family:Arial, Helvetica, sans-serif !important;
transition:all 0.18s ease !important;
}
.baofeng-acc-btn-cart{
background:#F97316 !important;
color:#0B1220 !important;
order:1 !important;
}
.baofeng-acc-btn-cart:hover{
background:#EA580C !important;
color:#0B1220 !important;
}
.baofeng-acc-btn-cart:disabled{
opacity:0.82 !important;
cursor:default !important;
}
@media only screen and (max-width:980px){
.baofeng-acc-grid{
grid-template-columns:1fr !important;
}
}
@media only screen and (max-width:768px){
.baofeng-acc-wrap{
margin:18px 0 !important;
}
.baofeng-acc-grid{
grid-template-columns:repeat(2,minmax(0,1fr)) !important;
gap:8px !important;
}
.baofeng-acc-frame{
padding:8px !important;
border-radius:18px !important;
}
.baofeng-acc-head{
padding:14px !important;
border-radius:16px !important;
margin:0 0 10px 0 !important;
}
.baofeng-acc-head-title{
font-size:18px !important;
}
.baofeng-acc-head-text{
font-size:12px !important;
}
.baofeng-acc-card{
display:flex !important;
flex-direction:column !important;
align-items:stretch !important;
gap:8px !important;
padding:9px !important;
border-radius:14px !important;
}
.baofeng-acc-title{
text-align:center !important;
font-size:14px !important;
line-height:1.18 !important;
margin:0 !important;
padding:0 !important;
}
.baofeng-acc-image{
width:100% !important;
min-width:0 !important;
max-width:none !important;
}
.baofeng-acc-image-inner{
max-width:118px !important;
margin:0 auto !important;
padding:6px !important;
border-radius:12px !important;
}
.baofeng-acc-price-row{
gap:6px !important;
margin:0 0 6px 0 !important;
padding:0 0 6px 0 !important;
}
.baofeng-acc-price-label{
font-size:10px !important;
}
.baofeng-acc-price{
font-size:17px !important;
}
.baofeng-acc-text{
font-size:11px !important;
line-height:1.32 !important;
margin:0 0 6px 0 !important;
}
.baofeng-acc-badges{
gap:5px !important;
margin:0 0 8px 0 !important;
}
.baofeng-acc-badge{
width:100% !important;
padding:5px 7px !important;
font-size:10px !important;
line-height:1.15 !important;
text-align:center !important;
}
.baofeng-acc-btns{
grid-template-columns:1fr !important;
gap:0 !important;
}
.baofeng-acc-btn-cart{
min-height:38px !important;
font-size:12px !important;
padding:8px 6px !important;
border-radius:10px !important;
}
}
Rekomenduojami priedai
Patogesniam naudojimui ir geresniam ryšiui.
50 cm lanksti antena
Kaina Kraunama...
Stabilesniam ryšiui ir didesniam veikimo atstumui lauke, miške ar sodyboje.
Populiariausias pasirinkimas
Į krepšelį
GOLD class 80 cm antena
Kaina Kraunama...
Ilgesnė antena maksimaliam veikimo atstumui ir švaresniam signalui.
Maksimaliam atstumui
Į krepšelį
(function(){
var cards = document.querySelectorAll('.baofeng-acc-card[data-price-url]');
if(!cards.length){
return;
}
function cleanPrice(value){
return String(value || '')
.replace(/ /gi,' ')
.replace(/€/gi,'\u20ac')
.replace(/\u00a0/g,' ')
.replace(/\s+/g,' ')
.trim();
}
function formatPriceNumber(value){
value = cleanPrice(value);
if(!value){
return '';
}
return value.replace('.',',') + ' \u20ac';
}
function getPriceFromElement(source){
var price = '';
if(!source){
return '';
}
price = cleanPrice(
source.getAttribute('data-price-human') ||
source.getAttribute('data-pricehuman') ||
source.textContent ||
''
);
if(!price && source.getAttribute('data-pricenew')){
price = formatPriceNumber(source.getAttribute('data-pricenew'));
}
return price;
}
function findPriceInDocument(doc){
var source =
doc.querySelector('#price') ||
doc.querySelector('#good_single_prices .price') ||
doc.querySelector('[data-price-human]') ||
doc.querySelector('[data-pricenew]') ||
doc.querySelector('strong.price');
return getPriceFromElement(source);
}
function findPriceInHtml(html){
var price = '';
var match = html.match(/id=["']price["'][^>]*data-price-human=["']([^"']+)["']/i);
if(match && match[1]){
price = cleanPrice(match[1]);
}
if(!price){
match = html.match(/id=["']price["'][^>]*data-pricehuman=["']([^"']+)["']/i);
if(match && match[1]){
price = cleanPrice(match[1]);
}
}
if(!price){
match = html.match(/id=["']price["'][^>]*data-pricenew=["']([^"']+)["']/i);
if(match && match[1]){
price = formatPriceNumber(match[1]);
}
}
if(!price){
match = html.match(/]*id=["']price["'][^>]*>([\s\S]*?)/i);
if(match && match[1]){
price = cleanPrice(match[1].replace(/]+>/g,''));
}
}
return price;
}
function normalizePath(url){
var path = '';
try{
path = new URL(url, window.location.href).pathname;
}catch(error){
path = url || '';
}
return path.replace(/\/+$/,'');
}
Array.prototype.forEach.call(cards,function(card){
var priceBox = card.querySelector('.baofeng-acc-price');
var priceUrl = card.getAttribute('data-price-url');
if(!priceBox || !priceUrl){
return;
}
var fallback = priceBox.getAttribute('data-price-fallback') || 'Kaina prek\u0117s puslapyje';
if(normalizePath(priceUrl) === normalizePath(window.location.pathname)){
var currentPagePrice = findPriceInDocument(document);
if(currentPagePrice){
priceBox.textContent = currentPagePrice;
return;
}
}
if(!window.fetch || !window.DOMParser){
priceBox.textContent = fallback;
return;
}
fetch(priceUrl,{
method:'GET',
credentials:'same-origin',
cache:'no-cache'
})
.then(function(response){
if(!response.ok){
throw new Error('Nepavyko gauti kainos');
}
return response.text();
})
.then(function(html){
var doc = new DOMParser().parseFromString(html,'text/html');
var price = findPriceInDocument(doc) || findPriceInHtml(html);
if(!price){
throw new Error('Kaina nerasta');
}
priceBox.textContent = price;
})
.catch(function(){
priceBox.textContent = fallback;
});
});
}());