/* Išmanieji – WooCommerce ir WordPress pritaikymas (papildo base.css) */

.muted { color: var(--muted); }
.page-content { padding-bottom: 24px; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 4px 0 6px; }
.entry-content { color: var(--ink-2); }
.entry-content > :not(.kainynas):not(.alignwide):not(.alignfull) { max-width: 820px; }
.entry { padding: 16px 0; border-bottom: 1px solid var(--line); }
.custom-logo { max-height: 40px; width: auto; }
.cat-hero .cat-desc p { color: var(--ink-2); margin: 0; max-width: 620px; }
.filters-mobile-head h2 { margin: 0; font-size: 15px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header search as form */
.site-search { margin-bottom: 0; }
/* Paieškos puslapyje WordPress prideda <body class="search"> – jokių stilių šiai klasei */

/* Breadcrumbs from Woo */
.crumbs span:first-child::before { content: none; }
.crumbs > span:first-child::before { display: none; }

/* ---------- Product grid ---------- */
ul.products, .woocommerce ul.products.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none; display: none; }
@media (min-width: 700px) { ul.products, .woocommerce ul.products.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { ul.products, .woocommerce ul.products.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) and (max-width: 1239px) { .woocommerce .shop ul.products.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.woocommerce ul.products li.product.card { width: auto; margin: 0; float: none; padding: 0; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce ul.products li.product.card .price, .card .price { color: var(--ink); margin: 0; font-size: 18px; }
.woocommerce ul.products li.product.card .price.is-sale, .card .price.is-sale { color: var(--sale); }
.price del, .price s { color: var(--muted); font-weight: 600; font-size: 13px; opacity: 1; order: 2; }
.price ins { text-decoration: none; }
.price .from, .price small { font-size: 12px; font-weight: 700; color: var(--muted); }
.price .woocommerce-Price-currencySymbol { margin-left: 0; }
.card .add.loading { opacity: .6; pointer-events: none; }
.card .add.added { background: var(--ok); color: #fff; }
.card a.added_to_cart { display: none; }
.card .badge { position: absolute; }
.woocommerce span.onsale { display: none; }

/* ---------- Archive toolbar ---------- */
.toolbar .count .woocommerce-result-count { margin: 0; font-weight: 700; color: var(--ink-2); font-size: 14px; float: none; }
.woocommerce-ordering { margin: 0; float: none; }
.woocommerce-ordering select { height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 12px; font-weight: 600; font-size: 14px; }
a.check { text-decoration: none; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-inputs input { width: 100%; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; }
.price-filter .btn { padding: 10px 16px; }
.woocommerce-pagination { margin-top: 32px; }
.woocommerce nav.woocommerce-pagination ul.page-numbers, .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0; list-style: none; padding: 0; margin: 0; width: auto; height: auto; background: none; white-space: normal; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; float: none; margin: 0; padding: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li .page-numbers { min-width: 42px; padding: 0 10px !important; box-sizing: border-box; width: auto; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink); line-height: 1; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.woocommerce nav.woocommerce-pagination ul li .page-numbers.current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }

/* ---------- Single product ---------- */
.woocommerce div.product.pdp { display: grid; gap: 28px; padding-top: 8px; margin-bottom: 0; }
@media (min-width: 950px) { .woocommerce div.product.pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.woocommerce div.product .pdp-gallery .woocommerce-product-gallery { width: 100%; float: none; margin: 0; }
.woocommerce-product-gallery__image img { border-radius: 24px; }
.woocommerce div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px !important; }
.woocommerce div.product .flex-control-thumbs li { width: auto !important; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 14px; }
.woocommerce div.product .summary { width: auto; float: none; margin: 0; }
.pdp-cat { font-size: 13px; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.woocommerce div.product .product_title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 10px; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.woocommerce .star-rating { color: #f59e0b; }
.out { color: var(--sale); font-weight: 700; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 34px; font-weight: 800; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.woocommerce div.product p.price del { font-size: 18px; }
.woocommerce div.product p.price ins { color: var(--sale); }
.woocommerce-product-details__short-description { color: var(--ink-2); }
.woocommerce div.product form.cart { margin: 20px 0 16px; }
.woocommerce div.product form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.woocommerce .quantity .qty { width: 40px; height: 46px; text-align: center; border: 0; font-weight: 800; background: transparent; -moz-appearance: textfield; }
.woocommerce .quantity .qty::-webkit-inner-spin-button, .woocommerce .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-btn { width: 40px; height: 46px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--ink-2); }
/* Kai sandėlyje liko 1 vnt. (arba prekė parduodama po vieną), WooCommerce kiekio lauką paslepia – slepiame ir +/− mygtukus bei rėmelį */
.woocommerce .quantity:has(input.qty[type="hidden"]) { display: none; }
.woocommerce div.product form.cart .button.single_add_to_cart_button, .woocommerce button.button.alt { flex: 1; min-height: 50px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; font-size: 16px; padding: 14px 28px; box-shadow: 0 4px 12px rgba(15, 18, 34, .16); float: none; }
.woocommerce div.product form.cart .button.single_add_to_cart_button:hover { background: var(--grad); filter: brightness(1.06); }
.woocommerce div.product form.cart .button.disabled { opacity: .5; }
.woocommerce div.product form.cart .variations { margin-bottom: 8px; border: 0; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations th.label { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.woocommerce div.product form.cart .variations td.value { margin-bottom: 16px; }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.woocommerce-variation-price { margin-bottom: 8px; }
.woocommerce div.product .woocommerce-variation-price span.price { font-size: 30px; margin-bottom: 4px; }
.woocommerce-variation-availability p.stock { font-size: 14px; }
.opt-row .chip { padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; }
.opt-row .chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.perks { margin-top: 16px; }

/* Tabs */
.pdp-after { margin-top: 48px; }
.woocommerce div.product .woocommerce-tabs, .pdp-after .woocommerce-tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs, .woocommerce-tabs ul.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; padding: 0 !important; margin: 0 0 8px !important; list-style: none; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 18px !important; font-weight: 700 !important; color: var(--muted) !important; border-bottom: 2px solid transparent; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink) !important; border-color: var(--brand); }
.woocommerce-tabs .panel { padding: 20px 0; color: var(--ink-2); max-width: 820px; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; font-size: 14px; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; background: none !important; font-style: normal; text-align: left; }
.woocommerce table.shop_attributes th { color: var(--muted); font-weight: 600; width: 40%; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
.related, .upsells, .cross-sells { margin-top: 48px; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 20px; }
#reviews .commentlist { list-style: none; padding: 0; }

/* ---------- Cart ---------- */
.wc-content .cart-layout { margin-top: 8px; }
.cart-collaterals { width: auto; }
.woocommerce .cart-collaterals .cart_totals, .cart_totals { width: auto; float: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.cart_totals > h2 { font-size: 20px; }
.cart_totals table.shop_table { border: 0; margin: 0 0 16px; width: 100%; border-collapse: collapse; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { border: 0; padding: 8px 0; background: none; font-size: 15px; vertical-align: top; }
.cart_totals table.shop_table th { color: var(--ink-2); font-weight: 600; text-align: left; }
.cart_totals table.shop_table td { text-align: right; font-weight: 700; }
.cart_totals .order-total th, .cart_totals .order-total td { border-top: 1px solid var(--line) !important; padding-top: 16px; font-size: 20px; font-weight: 800; color: var(--ink); }
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 8px; }
.woocommerce-shipping-methods li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; }
.woocommerce-shipping-methods li:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.woocommerce-shipping-methods input { accent-color: var(--brand); }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { font-size: 13px; font-weight: 500; color: var(--muted); text-align: left; }
.wc-proceed-to-checkout { padding: 0; }
.wc-proceed-to-checkout a.checkout-button { display: flex !important; justify-content: center; border-radius: 999px; background: var(--grad) !important; color: #fff !important; font-weight: 700; padding: 16px 24px !important; font-size: 16px !important; margin: 0 !important; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cart-actions .btn[disabled] { opacity: .5; cursor: default; }
.line .quantity .qty { height: 36px; width: 32px; }
.line .qty-btn { width: 34px; height: 36px; font-size: 17px; }
.line-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.line .var .cond { margin-right: 4px; }
.line .var dl.variation { display: inline; margin: 0; }
.line .var dl.variation dt, .line .var dl.variation dd { display: inline; margin: 0; }
.line .var dl.variation dd p { display: inline; margin: 0; }
.rm.remove { display: grid; place-items: center; width: 32px; height: 32px; color: var(--muted) !important; font-size: 0 !important; }
.rm.remove:hover { background: #fee2e2 !important; color: var(--sale) !important; }
.cart-empty.woocommerce-info { text-align: center; }
.return-to-shop .button { border-radius: 999px; background: var(--grad); color: #fff; padding: 13px 24px; font-weight: 700; }

/* ---------- Notices, buttons, forms ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 1px solid #c7d2fe; border-radius: 12px; background: var(--brand-soft); padding: 14px 18px 14px 48px; margin: 0 0 20px; list-style: none; font-weight: 600; }
.woocommerce-message { background: #ecfdf5; border-color: #a7f3d0; }
.woocommerce-error { background: #fef2f2; border-color: #fecaca; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 14px; left: 18px; }
.woocommerce-message .button, .woocommerce-info .button { float: right; border-radius: 999px; padding: 6px 14px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 999px; font-weight: 700; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection--single { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 46px; background: #fff; }
.select2-container .select2-selection--single { height: 46px; }
.woocommerce-checkout #payment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce-checkout h3 { font-size: 20px; }
.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--line); background: #fff; }

/* ---------- Mobile adjustments ---------- */
@media (max-width: 949px) {
  .woocommerce div.product form.cart .button.single_add_to_cart_button { min-width: 0; }
}

/* WP administravimo juosta */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Variantinės prekės: kaina rodoma vienoje vietoje (viršuje), varianto kaina atnaujinama JS */
.woocommerce div.product.product-type-variable .woocommerce-variation-price { display: none; }

/* ---------- Remonto kainynas [kainynas] ---------- */
.kainynas { margin: 32px 0 48px; }
.kn-head { display: grid; gap: 12px 48px; align-items: end; margin-bottom: 24px; }
.kn-head h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.kn-head p { color: var(--ink-2); margin: 0; max-width: 460px; }
@media (min-width: 900px) { .kn-head { grid-template-columns: 1fr auto; } }
.kn-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.kn-tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.kn-tabs::-webkit-scrollbar { display: none; }
.kn-tabs button { flex-shrink: 0; border: 0; background: none; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.kn-tabs button:hover { background: var(--brand-soft); color: var(--brand); }
.kn-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.kn-tabs button:focus-visible, .kn-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kn-scroll { overflow-x: auto; }
.kainynas table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kainynas thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; color: var(--muted); text-align: right; padding: 14px 14px; background: var(--bg); vertical-align: bottom; border-bottom: 1px solid var(--line); }
.kainynas thead th:first-child { text-align: left; }
.kainynas tbody th { text-align: left; font-weight: 700; padding: 16px 14px 16px 20px; white-space: nowrap; }
.kainynas tbody td { text-align: right; padding: 16px 14px; font-weight: 600; white-space: nowrap; }
.kainynas tbody tr + tr > * { border-top: 1px solid var(--line); }
.kainynas tbody tr:hover > * { background: var(--brand-soft); }
.kn-none { color: var(--muted); }
.kn-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.kn-foot a { color: var(--brand); font-weight: 700; }
.kn-empty { padding: 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }

/* Telefone: kiekvienas modelis – kortelė su paslaugų sąrašu */
@media (max-width: 699px) {
  .kainynas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kainynas table, .kainynas tbody, .kainynas tr, .kainynas tbody th, .kainynas tbody td { display: block; }
  .kainynas tbody tr { padding: 14px 16px; }
  .kainynas tbody tr + tr > * { border-top: 0; }
  .kainynas tbody tr + tr { border-top: 1px solid var(--line); }
  .kainynas tbody th { padding: 0 0 8px; font-size: 16px; }
  .kainynas tbody td { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); }
  .kainynas tbody td::before { content: attr(data-label); color: var(--ink-2); font-weight: 500; }
  .kainynas tbody tr:hover > * { background: none; }
}
@media (min-width: 700px) {
  .kainynas thead th:first-child { padding-left: 20px; }
  .kainynas thead th:last-child, .kainynas tbody td:last-child { padding-right: 20px; }
  .kainynas thead th:not(:first-child) { min-width: 72px; }
}

/* Filtrai: „Rodyti daugiau“ */
.filter-more summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--brand); padding: 6px 0; list-style: none; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more summary::after { content: " ▾"; }
.filter-more[open] summary { order: 2; }
.filter-more[open] summary::after { content: " ▴"; }

/* Prekės pavadinimas kortelėje: iki 4 eilučių (WooCommerce prideda h3 vidinius tarpus, kurie „nupjauna“ paskutinę eilutę) */
.woocommerce ul.products li.product.card .card-title { padding: 0; margin: 0; font-size: 15px; line-height: 1.3; -webkit-line-clamp: 4; line-clamp: 4; }

/* Krepšelio suvestinė: „Pristatymas“ lygiuojamas su pristatymo būdo laukeliu */
.cart_totals table.shop_table tr.woocommerce-shipping-totals th { padding-top: 20px; }

/* Filtrų varnelės – tik rodymui: paspaudimas ant kvadratėlio turi veikti kaip paspaudimas ant nuorodos
   (kitaip naršyklė tik perjungia varnelę ir puslapio neperkrauna) */
a.check input[type="checkbox"] { pointer-events: none; }

/* Paieška kategorijos viduje (įrankių juostoje) */
.cat-search { position: relative; flex: 1 1 240px; max-width: 380px; margin: 0 0 0 auto; }
.cat-search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 38px 0 40px; font-size: 14px; outline: none; transition: border-color .2s; -webkit-appearance: none; }
.cat-search input:focus { border-color: var(--brand); }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search > svg { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.cat-search-clear { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.cat-search-clear:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 699px) {
  .toolbar .cat-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
}

/* Įrankių juosta: paieška ir rikiavimas vienoje linijoje, vienodo aukščio
   (WooCommerce rikiavimo formai prideda apatinę paraštę ir float) */
.woocommerce .toolbar .woocommerce-ordering, .toolbar .woocommerce-ordering { margin: 0; float: none; display: flex; }
.toolbar .woocommerce-ordering select, .toolbar .cat-search input { height: 44px; box-sizing: border-box; border-radius: 12px; }
.toolbar .woocommerce-ordering select { padding: 0 36px 0 14px; }
.toolbar .cat-search { margin-top: 0; margin-bottom: 0; }
.toolbar .cat-search > svg { top: 13px; }
.toolbar .cat-search-clear { top: 9px; }
