/* ==========================================================================
   scgstakles.lt: visos svetainės dizainas (child tema, assets/css/scg-site.css)
   Kraunamas po visų senų stilių. Seni stiliai naudoja #id ir !important,
   todėl čia selektoriai pradedami „html body“.
   Turinys:
     1. Spalvos ir bendri dalykai
     2. Antraštė ir meniu (kompiuteris)
     3. Meniu telefone (Max Mega Menu)
     4. Katalogas: kategorijos puslapis, kortelės, puslapiavimas
     5. Prekės puslapis
     6. Formos, puslapiai, poraštė
     7. Telefonas
   ========================================================================== */

/* ---------- 1. Spalvos ir bendri dalykai ---------- */
:root {
  --scg-navy: #004e68;
  --scg-navy-dark: #003347;
  --scg-ink: #0d2633;
  --scg-body: #3d4f5a;
  --scg-muted: #5b6b75;
  --scg-line: #dce5e8;
  --scg-bg: #f3f6f7;
  --scg-tint: #e9f1f4;
  --scg-orange: #ec6830;
  --scg-btn: #b74b15;
  --scg-btn-hover: #983c0e;
  --scg-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html body { font-family: var(--scg-font); color: var(--scg-body); -webkit-font-smoothing: antialiased; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { color: var(--scg-ink); letter-spacing: -.01em; }
@media (min-width: 1200px) {
  html body .container, html body .row:not(.row-collapse):not(.row-full-width) { max-width: 1360px; }
}

/* ---------- 2. Antraštė ir meniu (kompiuteris) ---------- */
html body #masthead { border-bottom: 1px solid var(--scg-line) !important; }
html body #header .header-main { height: 84px; }
html body #header #logo { width: 150px; }
html body #header #logo img { max-height: 46px; width: auto; }
html body #header.has-sticky .stuck .header-main { height: 64px !important; }
html body #header .stuck #logo img { max-height: 38px !important; }
html body #header .header-wrapper.stuck { box-shadow: 0 6px 18px rgba(13,38,51,.12); }
html body #masthead { box-shadow: none; border-bottom: 1px solid var(--scg-line); }

/* Dešinė pusė: e. parduotuvė, el. paštas, telefonas su numeriu */
html body #header .header-button .button {
  min-height: 40px; margin: 0; padding: 0 16px; border: 1.5px solid var(--scg-line) !important; border-radius: 8px;
  background: #fff !important; color: var(--scg-navy) !important; font: 700 14px/37px var(--scg-font); text-transform: none; letter-spacing: 0;
}
html body #header .header-button .button span { text-transform: none; }
html body #header .header-button .button:hover { border-color: var(--scg-navy) !important; background: var(--scg-tint) !important; }
html body #header #header-contact > li > a { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: var(--scg-navy) !important; font: 700 15px/1 var(--scg-font); text-transform: none; }
html body #header #header-contact > li > a i { color: var(--scg-orange) !important; font-size: 18px !important; }
html body #header #header-contact > li > a.scg-has-label span { display: inline !important; }
html body #header #header-contact > li > a:hover { color: var(--scg-btn) !important; }

/* Pagrindinis meniu (Flatsome) */
@media (min-width: 850px) {
  html body #masthead .header-nav-main > li > a.nav-top-link {
    position: relative; padding: 0 4px; color: var(--scg-ink) !important; font: 700 15px/1 var(--scg-font) !important;
    text-transform: none !important; letter-spacing: 0 !important;
  }
  html body #masthead .header-nav-main > li { margin: 0 12px; }
  html body #masthead .header-nav-main > li > a.nav-top-link::before { display: none !important; }
  html body #masthead .header-nav-main > li > a.nav-top-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; border-radius: 3px;
    background: var(--scg-orange); transform: scaleX(0); transition: transform .2s;
  }
  html body #masthead .header-nav-main > li:hover > a.nav-top-link::after,
  html body #masthead .header-nav-main > li.active > a.nav-top-link::after,
  html body #masthead .header-nav-main > li.current-menu-ancestor > a.nav-top-link::after { transform: scaleX(1); }
  html body #masthead .header-nav-main > li:hover > a.nav-top-link, html body #masthead .header-nav-main > li.active > a.nav-top-link { color: var(--scg-navy) !important; }

  /* „Used machinery“ išskleidžiamas blokas */
  html body #masthead .header-nav-main .menu-item-has-block > .nav-dropdown {
    padding: 26px 30px !important; border: 1px solid var(--scg-line) !important; border-radius: 16px !important;
    box-shadow: 0 24px 48px rgba(13,38,51,.16) !important; background: #fff !important;
  }
  html body #masthead .nav-dropdown .ux-menu-link__link {
    min-height: 0; padding: 8px 10px !important; border-radius: 8px; color: var(--scg-ink) !important;
    font: 700 14.5px/1.3 var(--scg-font) !important; text-transform: none !important;
  }
  html body #masthead .nav-dropdown .ux-menu-link__link:hover { background: var(--scg-tint); color: var(--scg-navy) !important; }
  html body #masthead .nav-dropdown .ux-menu-link__icon { color: var(--scg-orange); }
  html body #masthead .nav-dropdown .ux-menu--divider-solid .ux-menu-link:not(:last-of-type) .ux-menu-link__link { border-bottom: 0 !important; }

  /* Kalbos vėliavėlės kaip aiškus perjungiklis */
  html body #masthead .header-nav-main > li.wpml-ls-item > a { padding: 6px 8px !important; border: 1px solid var(--scg-line); border-radius: 8px; }
  html body #masthead .header-nav-main > li.wpml-ls-item { margin: 0 3px; }
  html body #masthead .header-nav-main > li.wpml-ls-current-language > a { border-color: var(--scg-navy); }
  html body #masthead .header-nav-main > li.wpml-ls-item > a::after { display: none; }
}

/* ---------- 3. Meniu telefone (Flatsome šoninis meniu) ---------- */
html body .off-canvas-left .mfp-content, html body .off-canvas-right .mfp-content { width: min(360px, 88vw) !important; background: #fff !important; }
html body #main-menu .nav-sidebar > li { border-bottom: 1px solid #edf2f4 !important; }
html body #main-menu .nav-sidebar > li > a {
  display: flex !important; align-items: center; min-height: 54px; padding: 0 56px 0 20px !important;
  color: var(--scg-ink) !important; font: 700 16px/1.3 var(--scg-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
html body #main-menu .nav-sidebar > li.active > a { color: var(--scg-navy) !important; background: var(--scg-tint); }
html body #main-menu .nav-sidebar > li > .toggle, html body #main-menu .nav-sidebar > li > .scg-sub-toggle {
  position: absolute; top: 7px; right: 8px; width: 40px; height: 40px; margin: 0; border: 0; border-radius: 8px;
  background: var(--scg-bg); color: var(--scg-navy); opacity: 1; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
html body #main-menu .nav-sidebar > li { position: relative; }
html body #main-menu .scg-sub-toggle svg { flex: 0 0 18px; width: 18px !important; height: 18px !important; max-width: none; transition: transform .2s; }
html body #main-menu li.scg-open > .scg-sub-toggle svg { transform: rotate(180deg); }
html body #main-menu .scg-mobile-cats { display: none; margin: 0; padding: 4px 0 10px; list-style: none; }
html body #main-menu li.scg-open > .scg-mobile-cats { display: block; }
html body #main-menu .scg-mobile-cats a { display: block; padding: 10px 20px 10px 32px; color: var(--scg-body); font: 400 15px/1.35 var(--scg-font); }
html body #main-menu .scg-mobile-cats a:hover { color: var(--scg-btn); }
html body #main-menu .nav-sidebar .wpml-ls-item { display: block; border: 0 !important; }
html body #main-menu .nav-sidebar .wpml-ls-item > a { min-height: 46px; margin: 10px 20px 0 !important; padding: 0 14px !important; border: 1px solid var(--scg-line); border-radius: 10px; font-size: 15px !important; }
html body #main-menu .nav-sidebar .wpml-ls-item-en > a::after { content: "English"; margin-left: 8px; }
html body #main-menu .nav-sidebar .wpml-ls-item-lt > a::after { content: "Lietuvių"; margin-left: 8px; }
html body #main-menu .nav-sidebar .wpml-ls-current-language > a { border-color: var(--scg-navy); }
html body #main-menu .searchform-wrapper { padding: 16px 20px 8px !important; }
html body #main-menu .scg-mobile-contact { display: grid; gap: 8px; padding: 18px 20px 24px; }
html body #main-menu .scg-mobile-contact a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; background: var(--scg-bg); color: var(--scg-ink); font: 700 15px/1.2 var(--scg-font); }
html body #main-menu .scg-mobile-contact a.is-primary { background: var(--scg-btn); color: #fff; justify-content: center; }
@media (max-width: 849px) {
  html body #header .header-main { height: 64px; }
  html body #header #logo { width: 110px; }
  html body #header #logo img { max-height: 36px; }
  html body #header .mobile-nav .icon-menu { color: var(--scg-navy); font-size: 24px; }
}

/* ---------- 4. Katalogas ---------- */
/* Kategorijos antraštė */
html body .shop-page-title.category-page-title .page-title-inner { padding-top: 28px; padding-bottom: 10px; }
html body .shop-page-title h1 { color: var(--scg-ink) !important; font: 700 clamp(28px, 3.2vw, 40px)/1.12 var(--scg-font) !important; letter-spacing: -.02em !important; text-transform: none !important; }
html body .shop-page-title .woocommerce-breadcrumb { margin-bottom: 8px; font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
html body .shop-page-title .woocommerce-breadcrumb a { color: var(--scg-muted) !important; }
html body .shop-page-title .woocommerce-result-count { font-size: 13px; color: var(--scg-muted); }

/* Subkategorijų nuorodos */
html body .scg-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
html body .scg-subcats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--scg-line); border-radius: 30px; background: #fff; color: var(--scg-ink); font: 700 14px/1.2 var(--scg-font); transition: border-color .15s, background .15s; }
html body .scg-subcats a span { padding: 2px 7px; border-radius: 20px; background: var(--scg-bg); color: var(--scg-muted); font-size: 12px; font-weight: 700; }
html body .scg-subcats a:hover { border-color: var(--scg-navy); color: var(--scg-navy); }
html body .scg-subcats a.is-active { background: var(--scg-navy); border-color: var(--scg-navy); color: #fff; }
html body .scg-subcats a.is-active span { background: rgba(255,255,255,.18); color: #fff; }

/* Šoninė juosta */
html body #shop-sidebar .widget_product_categories { padding: 18px; border: 1px solid var(--scg-line); border-radius: 14px; background: #fff; }
html body #shop-sidebar .widget-title { color: var(--scg-ink); font: 700 15px/1.3 var(--scg-font); letter-spacing: 0; text-transform: none; }
html body #shop-sidebar .widget_product_categories li.cat-item > a { color: var(--scg-ink); font-weight: 400; text-transform: none; }
html body #shop-sidebar .widget_product_categories li.current-cat > a { color: var(--scg-btn); font-weight: 700; text-decoration: none; }

/* Prekių kortelės */
html body .products.has-shadow .col-inner, html body .products .product-small .box { box-shadow: none !important; }
html body .products .product-small.col > .col-inner {
  height: 100%; border: 1px solid var(--scg-line) !important; border-radius: 14px !important; background: #fff !important; overflow: hidden;
  transition: border-color .2s, box-shadow .2s; cursor: pointer;
}
html body .products .product-small.col > .col-inner:hover { border-color: #b7cad2 !important; box-shadow: 0 14px 32px rgba(13,38,51,.09) !important; }
html body .products .product-small .box-image { padding: 0 !important; padding-top: 0 !important; border-bottom: 1px solid #edf2f4; border-radius: 0 !important; background: #fff; }
html body .products .product-small .box-image .image-fade-out a, html body .products .product-small .box-image > div > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
html body .products .product-small .box-image img { position: static !important; width: 100% !important; height: 100% !important; object-fit: cover !important; margin: 0 !important; transition: transform .3s ease; }
html body .products .product-small.col:hover .box-image img { transform: scale(1.04); }
html body .products .product-small .box-image .back-image, html body .products .product-small .image-tools { display: none !important; }
html body .products .product-small .box-text { display: flex; flex-direction: column; gap: 6px; height: auto !important; padding: 14px 16px 16px !important; text-align: left !important; background: #fff !important; }
html body .products .product-small .box-text .title-wrapper, html body .products .product-small .box-text .name, html body .products .product-small .box-text .price-wrapper, html body .products .product-small .box-text [itemprop] { text-align: left !important; margin-left: 0 !important; margin-right: 0 !important; }
html body .scg-card-spec { margin: 0; color: var(--scg-muted); font-size: 13px; line-height: 1.45; }
html body .products .product-small .box-image .out-of-stock-label, html body .products .badge-container .badge { z-index: 2; }
html body .products .product-small .out-of-stock-label { top: 12px; left: 12px; right: auto; bottom: auto; width: auto; padding: 5px 10px; border-radius: 20px; background: rgba(13,38,51,.85); color: #fff; font: 700 12px/1 var(--scg-font); text-transform: uppercase; letter-spacing: .04em; opacity: 1; }
html body .scg-card-brand { font: 700 12px/1.2 var(--scg-font); letter-spacing: .06em; text-transform: uppercase; color: var(--scg-btn); }
html body .products .product-small .product-title { margin: 0; font: 700 14.5px/1.35 var(--scg-font) !important; }
html body .products .product-small .product-title a { color: var(--scg-ink) !important; }
html body .products .product-small .price-wrapper { height: auto !important; }
html body .products .product-small .short-description-products {
  position: static !important; display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important;
  background: transparent !important; color: var(--scg-muted) !important; opacity: 1 !important; font-size: 13px !important; line-height: 1.45 !important; text-align: left !important;
}
html body .products .product-small .short-description-products span { font-size: 13px !important; }

/* Kategorijų kortelės (Įrengimai, kategorijos su subkategorijomis) */
html body .products .product-category > .col-inner > a { border-color: var(--scg-line) !important; border-radius: 14px !important; }
html body .products .product-category .header-title { color: var(--scg-ink) !important; font-weight: 700 !important; text-transform: none !important; }
html body .products .product-category .count { display: none; }

/* Puslapiavimas */
html body .woocommerce-pagination ul.page-numbers { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 8px !important; padding: 0 !important; }
html body .woocommerce-pagination ul.page-numbers > li { margin: 0 !important; }
html body .woocommerce-pagination ul li .page-number { display: inline-flex !important; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 6px !important; background: #fff !important; border: 1px solid var(--scg-line) !important; border-radius: 10px !important; color: var(--scg-ink) !important; font: 700 15px/1 var(--scg-font) !important; }
html body .woocommerce-pagination ul li a.page-number:hover { border-color: var(--scg-navy) !important; color: var(--scg-navy) !important; }
html body .woocommerce-pagination ul li .page-number.current { background: var(--scg-navy) !important; border-color: var(--scg-navy) !important; color: #fff !important; }

/* Kategorijos aprašymas po prekėmis */
html body.tax-product_cat .term-description { display: none; } /* rodomas scg-term-text po prekėmis */
html body .scg-term-text { margin: 36px 0 12px; padding: 28px 32px; border: 1px solid var(--scg-line); border-radius: 16px; background: #fff; color: var(--scg-body); font-size: 15px; line-height: 1.7; }
html body .scg-term-text h2 { margin-bottom: 10px; font-size: 22px; }
html body .scg-term-text h3 { font-size: 18px; }
html body .scg-term-text p:last-child { margin-bottom: 0; }

/* ---------- 5. Prekės puslapis ([scg_product]) ---------- */
html body .sm-el--product { background: var(--scg-bg); padding: 28px 0 0; }
html body .sm-pp { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
html body .sm-pp__gallery { padding: 20px; border: 1px solid var(--scg-line); border-radius: 18px; background: #fff; }
html body .sm-pp__gallery .product-images { margin-bottom: 12px !important; }
html body .sm-pp__gallery .woocommerce-product-gallery__image img { width: 100%; max-height: 520px; object-fit: contain !important; }
html body .sm-pp__gallery .product-thumbnails .col { padding: 0 4px !important; }
html body .sm-pp__gallery .product-thumbnails a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 6px; border: 1px solid var(--scg-line); border-radius: 10px; background: #fff; overflow: hidden; }
html body .sm-pp__gallery .product-thumbnails img { width: 100%; height: 100%; object-fit: contain !important; opacity: 1 !important; }
html body .sm-pp__gallery .product-thumbnails .is-nav-selected a { border-color: var(--scg-navy); box-shadow: 0 0 0 1px var(--scg-navy); }
html body .sm-pp__info { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; padding: 30px; border: 1px solid var(--scg-line); border-radius: 18px; background: #fff; }
html body .sm-pp__crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--scg-muted); }
html body .sm-pp__crumbs a { color: var(--scg-muted); }
html body .sm-pp__crumbs a:hover { color: var(--scg-navy); }
html body .sm a.sm-pp__brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 12px 6px 6px; border: 1px solid var(--scg-line); border-radius: 10px; color: var(--scg-ink); font-weight: 700; font-size: 14px; }
html body .sm-pp__brand img { width: auto !important; height: 34px; max-width: 90px; object-fit: contain !important; border-radius: 6px; }
html body .sm .sm-pp__title { color: var(--scg-ink); font: 700 clamp(24px, 2.4vw, 32px)/1.18 var(--scg-font); letter-spacing: -.015em; text-transform: none; }
html body .sm-pp__spec { padding: 12px 14px; border-radius: 10px; background: var(--scg-bg); color: var(--scg-ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
html body .sm-pp__ctas { display: grid; gap: 10px; }
html body .sm-pp__ctas .sm-btn { width: 100%; }
html body .sm-pp__mail { font-size: 14px; color: var(--scg-muted); }
html body .sm-pp__points { padding-top: 14px; border-top: 1px solid #edf2f4; }
html body .sm-pp__cat { font-size: 14px; color: var(--scg-muted); }

/* Skirtukai */
html body .sm-pp__tabs { margin-top: 32px; }
html body .sm-pp__tabs .woocommerce-tabs { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 1px solid var(--scg-line); border-radius: 18px; background: #fff; overflow: hidden; }
html body .sm-pp__tabs .woocommerce-tabs .tabs, html body .woocommerce-tabs .product-tabs {
  display: flex; justify-content: flex-start !important; flex-wrap: nowrap; gap: 4px; margin: 0 !important; padding: 10px 14px 0 !important;
  border-bottom: 1px solid var(--scg-line); background: var(--scg-bg); overflow-x: auto; scrollbar-width: none;
}
html body .woocommerce-tabs .product-tabs::-webkit-scrollbar { display: none; }
html body .woocommerce-tabs .product-tabs > li { margin: 0 !important; }
html body .woocommerce-tabs .product-tabs > li > a {
  display: block; padding: 12px 18px !important; border: 1px solid transparent !important; border-bottom: 0 !important; border-radius: 10px 10px 0 0;
  background: transparent !important; color: var(--scg-body) !important; font: 700 15px/1.2 var(--scg-font) !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap;
}
html body .woocommerce-tabs .product-tabs > li > a::before { display: none !important; }
html body .woocommerce-tabs .product-tabs > li.active > a { margin-bottom: -1px; border-color: var(--scg-line) !important; background: #fff !important; color: var(--scg-navy) !important; }
html body .sm-pp__tabs .tab-panels { padding: 28px 30px !important; }
html body .sm-pp__tabs .tab-panels .panel { padding: 0 !important; font-size: 15px; line-height: 1.7; color: var(--scg-body); }
html body .sm-pp__tabs .tab-panels h2, html body .sm-pp__tabs .tab-panels h3 { margin: 18px 0 8px; color: var(--scg-ink); font-size: 18px; text-transform: none; }
html body .sm-pp__tabs .tab-panels h3:first-child, html body .sm-pp__tabs .tab-panels h2:first-child { margin-top: 0; }
html body .woocommerce-tabs table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; }
html body .woocommerce-tabs table th, html body .woocommerce-tabs table td { padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid #edf2f4 !important; text-align: left; vertical-align: top; }
html body .woocommerce-tabs table thead th, html body .woocommerce-tabs table thead td, html body .woocommerce-tabs table:not(:has(thead)) tr:first-child td { background: var(--scg-navy) !important; color: #fff !important; font-weight: 700; }
html body .woocommerce-tabs table tbody th { background: transparent !important; color: var(--scg-ink) !important; }
html body .woocommerce-tabs table tbody tr:nth-child(even) td { background: var(--scg-bg); }
html body .woocommerce-tabs table td:first-child { color: var(--scg-ink); }
html body .sm-pp__tabs .tab-panels .panel { overflow-x: auto; }

/* Užklausa prekės puslapyje */
html body .sm-pp__request { margin-top: 32px; }
html body .sm-el--product .sm-section { padding-top: 64px; }
html body #uzklausa { scroll-margin-top: 90px; }
html body .sm-request__form .wpcf7 .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
html body .sm-request__form .wpcf7 .row > .col { max-width: none; flex: none; width: auto; }
html body .sm-request__form .wpcf7 br { display: none; }
html body .sm-request__form .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 6px; }

/* Lipni juosta telefone */
html body .scg-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(13,38,51,.14); transform: translateY(110%); transition: transform .25s ease; }
html body .scg-buybar.is-visible { transform: none; }
html body .scg-buybar__btn { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 10px; background: var(--scg-btn); color: #fff !important; font: 700 16px/1 var(--scg-font); }
html body .scg-buybar__call { display: flex; align-items: center; justify-content: center; width: 54px; border: 1.5px solid var(--scg-navy); border-radius: 10px; color: var(--scg-navy) !important; }
html body.scg-has-buybar .back-to-top, html body.scg-has-buybar .cky-btn-revisit-wrapper { bottom: 84px !important; }

/* Senas prekės išdėstymas (kol blokas nepakeistas į [scg_product]) */
html body.single-product .custom-product-page .product-title-container h1 { color: var(--scg-ink); font: 700 clamp(22px, 2.2vw, 30px)/1.2 var(--scg-font); text-transform: none; }
html body.single-product .custom-product-page a.button.primary[href="#uzklausa"] { min-height: 50px; padding: 0 24px; border-radius: 10px; background: var(--scg-btn) !important; font: 700 16px/50px var(--scg-font); text-transform: none; letter-spacing: 0; }

/* ---------- 6. Formos, puslapiai, poraštė ---------- */
html body .wpcf7 input[type="text"], html body .wpcf7 input[type="email"], html body .wpcf7 input[type="tel"], html body .wpcf7 textarea { border: 1px solid #c4d0d5; border-radius: 10px; box-shadow: none; }
html body .wpcf7 input[type="submit"] { border-radius: 10px; text-transform: none; letter-spacing: 0; }
html body .button.primary, html body input[type="submit"].button.primary { background-color: var(--scg-btn); }
html body .button.primary:hover { background-color: var(--scg-btn-hover); }

/* Kai poraštės bloke naudojamas [scg_footer], Flatsome apatinė juosta nereikalinga */
html body #footer:has(.sm-el--footer) > .absolute-footer { display: none; }
html body #footer .sm-el--footer { margin: 0; }
html body #footer .text:has(> .sm-el--footer) { margin: 0; }

/* ---------- 7. Telefonas ---------- */
@media (max-width: 849px) {
  html body .shop-page-title.category-page-title .page-title-inner { padding-top: 16px; padding-bottom: 0; }
  html body .shop-page-title .category-filtering { padding: 4px 0 0; }
  html body .shop-page-title .filter-button { min-height: 40px; padding: 0 16px; border-radius: 10px; text-transform: none !important; letter-spacing: 0; font: 700 14px/40px var(--scg-font); }
  html body .category-page-row { padding-top: 14px !important; }
  html body .scg-subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -15px 16px; padding: 0 15px 4px; scrollbar-width: none; }
  html body .scg-subcats::-webkit-scrollbar { display: none; }
  html body .scg-subcats a { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; font-size: 13.5px; }
  html body .products .product-small .box-text { padding: 10px 12px 12px !important; gap: 4px; }
  html body .products .product-small .product-title { font-size: 13px !important; }
  html body .scg-card-spec { margin: 0; color: var(--scg-muted); font-size: 13px; line-height: 1.45; }
html body .products .product-small .box-image .out-of-stock-label, html body .products .badge-container .badge { z-index: 2; }
html body .products .product-small .out-of-stock-label { top: 12px; left: 12px; right: auto; bottom: auto; width: auto; padding: 5px 10px; border-radius: 20px; background: rgba(13,38,51,.85); color: #fff; font: 700 12px/1 var(--scg-font); text-transform: uppercase; letter-spacing: .04em; opacity: 1; }
html body .scg-card-brand { font-size: 11px; }
  html body .products .product-small .short-description-products { display: none !important; }
  html body .scg-term-text { padding: 20px 18px; font-size: 14.5px; }

  html body .sm-el--product { padding-top: 12px; }
  html body .sm-pp { grid-template-columns: 1fr; gap: 12px; }
  html body .sm-pp__gallery { padding: 10px; border-radius: 14px; }
  html body .sm-pp__info { position: static; padding: 18px; border-radius: 14px; gap: 12px; }
  html body .sm-pp__tabs { margin-top: 16px; }
  html body .sm-pp__tabs .woocommerce-tabs { border-radius: 14px; }
  html body .woocommerce-tabs .product-tabs > li > a { padding: 11px 14px !important; font-size: 14px !important; }
  html body .sm-pp__tabs .tab-panels { padding: 18px 16px !important; }
  html body .woocommerce-tabs table { font-size: 13px; }
  html body .woocommerce-tabs table th, html body .woocommerce-tabs table td { padding: 8px 10px !important; }
  html body .sm-request__form .wpcf7 .row { grid-template-columns: 1fr; }
  html body .sm-pp__request { margin-top: 16px; }
}

/* ---------- Seni Flatsome puslapiai (Apie mus, Parduokite stakles): tekstas tamsiuose blokuose ---------- */
html body .dark :is(h1, h2, h3, h4, h5, h6), html body .dark :is(h1, h2, h3, h4, h5, h6) a { color: #fff; }
html body .dark p, html body .dark li { color: rgba(255, 255, 255, .92); }
/* Puslapyje „SCG machines“ užrašas „Since 2003“ buvo beveik baltas ant šviesiai pilko fono */
html body #content h3 > span[style*="#f2f2f2"] { color: var(--scg-navy) !important; }
