/* =========================================================
   WooCommerce pritaikymas tamsiai Healas PC temai.
   Kraunama PO woocommerce-general — perrašo tik tai, kas reikalinga
   krepšeliui, atsiskaitymui, pranešimams ir paskyrai.
   ========================================================= */

/* ---------------- Bendra ---------------- */
.woocommerce, .woocommerce-page{ color:var(--text); }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error{
  background:var(--surface); color:var(--text);
  border:1px solid var(--line-bright); border-top:3px solid var(--accent);
  border-radius:var(--radius); padding:16px 18px; margin:0 0 22px; list-style:none;
}
.woocommerce .woocommerce-message{ border-top-color:var(--ok); }
.woocommerce .woocommerce-error{ border-top-color:var(--bad); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before{ display:none; }
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a{ color:var(--accent); }

/* ---------------- Mygtukai ---------------- */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt{
  background:var(--copper); color:var(--on-copper);
  font-family:"IBM Plex Mono",monospace; font-weight:600; font-size:13px;
  letter-spacing:.02em; text-transform:none;
  padding:12px 20px; border-radius:var(--radius); border:1px solid var(--copper);
  line-height:1.2; text-shadow:none;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover{
  background:var(--copper-hover); border-color:var(--copper-hover); color:var(--on-copper);
}
.woocommerce a.button.wc-backward{
  background:transparent; color:var(--text); border-color:var(--line-bright);
}
.woocommerce a.button.wc-backward:hover{ border-color:var(--copper); color:var(--copper); background:transparent; }
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled]{
  background:var(--surface-3); color:var(--text-faint); border-color:var(--line);
}

/* ---------------- Lentelės (krepšelis, užsakymas) ---------------- */
.woocommerce table.shop_table{
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); border-collapse:collapse; color:var(--text);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  border-top:1px solid var(--line); padding:14px 12px; color:var(--text-dim);
}
.woocommerce table.shop_table th{
  color:var(--text-faint); font-family:"IBM Plex Mono",monospace;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase; font-weight:600;
}
.woocommerce table.shop_table td.product-name a{ color:var(--text); text-decoration:none; font-weight:600; }
.woocommerce table.shop_table td.product-name a:hover{ color:var(--copper); }
.woocommerce table.shop_table .amount,
.woocommerce .woocommerce-Price-amount{
  color:var(--copper); font-family:"IBM Plex Mono",monospace; font-weight:600; white-space:nowrap;
}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td{ color:var(--text); }
.woocommerce table.shop_table_responsive tr td::before{ color:var(--text-faint); }
.woocommerce a.remove{
  color:var(--text-faint) !important; font-weight:400; line-height:1;
}
.woocommerce a.remove:hover{ background:none !important; color:var(--bad) !important; }

/* ---------------- Formos ---------------- */
.woocommerce form .form-row label,
.woocommerce-page form .form-row label{ color:var(--text-dim); font-size:13px; margin-bottom:6px; }
.woocommerce form .form-row .required{ color:var(--bad); text-decoration:none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single,
.woocommerce-page .select2-container .select2-selection--single{
  background:var(--surface-2); border:1px solid var(--line-bright); border-radius:2px;
  color:var(--text); font-family:"IBM Plex Sans",sans-serif; font-size:15px;
  padding:11px 13px; height:auto; line-height:1.4;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{ border-color:var(--copper); outline:none; }
.woocommerce .select2-dropdown,
.woocommerce-page .select2-dropdown{ background:var(--surface-2); border-color:var(--line-bright); color:var(--text); }
.woocommerce .select2-results__option--highlighted{ background:var(--accent-soft) !important; color:var(--text) !important; }
.woocommerce .quantity .qty{
  background:var(--surface-2); border:1px solid var(--line-bright); border-radius:2px;
  color:var(--text); padding:8px; width:70px;
}

/* ---------------- Krepšelio suvestinė ir atsiskaitymas ---------------- */
.woocommerce .cart-collaterals .cart_totals > h2,
.woocommerce-checkout h3, .woocommerce-checkout h2,
.woocommerce-account h2, .woocommerce-account h3{
  font-family:"Rajdhani",sans-serif; text-transform:uppercase; color:var(--text);
}
.woocommerce .cart_totals table.shop_table,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-payment{
  background:var(--surface); border:1px solid var(--line-bright); border-radius:var(--radius);
}
.woocommerce-checkout #payment{ background:transparent; border-radius:var(--radius); }
.woocommerce-checkout #payment ul.payment_methods{
  border-bottom:1px solid var(--line); padding:16px; margin:0;
}
.woocommerce-checkout #payment ul.payment_methods li{ background:transparent; }
.woocommerce-checkout #payment ul.payment_methods label{ color:var(--text); font-size:14.5px; }
.woocommerce-checkout #payment div.payment_box{
  background:var(--surface-2); color:var(--text-dim); border-radius:2px; font-size:13.5px;
}
.woocommerce-checkout #payment div.payment_box::before{ border-bottom-color:var(--surface-2); }
.woocommerce-checkout #payment div.form-row{ padding:16px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper{ color:var(--text-dim); font-size:13px; }
.woocommerce-checkout .woocommerce-privacy-policy-text p{ color:var(--text-faint); font-size:12.5px; }

/* ---------------- Užsakymo patvirtinimas ir paskyra ---------------- */
.woocommerce ul.order_details{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; margin:0 0 26px; list-style:none; display:flex; flex-wrap:wrap; gap:24px;
}
.woocommerce ul.order_details li{
  border:none; margin:0; padding:0; float:none;
  font-size:12px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.06em;
}
.woocommerce ul.order_details li strong{
  display:block; margin-top:5px; font-size:16px; color:var(--text);
  text-transform:none; letter-spacing:0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none; padding:0; }
.woocommerce-account .woocommerce-MyAccount-navigation a{ color:var(--text-dim); text-decoration:none; }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{ color:var(--copper); }

/* ---------------- Smulkmenos ---------------- */
.woocommerce .woocommerce-breadcrumb{ display:none; }  /* naudojame savo breadcrumb */
.woocommerce nav.woocommerce-pagination ul{ border-color:var(--line); }
.woocommerce nav.woocommerce-pagination ul li{ border-color:var(--line); }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{ color:var(--text-dim); }
.woocommerce nav.woocommerce-pagination ul li span.current{ background:var(--surface-3); color:var(--text); }
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select{ color:var(--text-dim); }
.woocommerce .blockUI.blockOverlay::before{ border-top-color:var(--copper); }

/* Mobiliesiems */
@media (max-width:680px){
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td{ padding:11px 8px; font-size:13.5px; }
  .woocommerce ul.order_details{ flex-direction:column; gap:14px; padding:16px; }
  .woocommerce #respond input#submit,
  .woocommerce a.button, .woocommerce button.button, .woocommerce input.button{
    width:100%; text-align:center;
  }
}

/* ---------------- Krepšelio prekės nuotrauka ---------------- */
/* WooCommerce numatytoji miniatiūra krepšelyje per maža — padidiname. */
.woocommerce table.shop_table td.product-thumbnail{ width:84px; }
.woocommerce table.shop_table td.product-thumbnail img{
  width:64px; height:64px; object-fit:cover;
  border:1px solid var(--line-bright); border-radius:2px; display:block;
}
@media (max-width:680px){
  .woocommerce table.shop_table td.product-thumbnail img{ width:52px; height:52px; }
}

/* =========================================================
   DIDELIS KATALOGAS — puslapiavimas ir rusiavimas.
   Reikalinga nuo tada, kai i parduotuve atkeliavo ~1400 komponentu.
   ========================================================= */
.woocommerce nav.woocommerce-pagination{ margin-top:38px; }
.woocommerce nav.woocommerce-pagination ul{
  border:none; margin:0; padding:0;
  display:flex; gap:7px; flex-wrap:wrap; justify-content:center;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:none; margin:0; overflow:visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width:38px; height:38px; padding:0 11px;
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line-bright); border-radius:var(--radius);
  background:var(--surface); color:var(--text-dim);
  font-family:"IBM Plex Mono",monospace; font-size:13px; text-decoration:none;
}
.woocommerce nav.woocommerce-pagination ul li a:hover{
  border-color:var(--copper); color:var(--copper); background:var(--surface);
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--copper); border-color:var(--copper);
  color:var(--on-copper); font-weight:600;
}

/* Rusiavimo juosta virs tinklelio */
.catalog-bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; flex-wrap:wrap; margin-bottom:22px;
  padding-bottom:16px; border-bottom:1px solid var(--line);
}
.catalog-bar .rezultatai{
  font-family:"IBM Plex Mono",monospace; font-size:11.5px;
  letter-spacing:.07em; text-transform:uppercase; color:var(--text-faint);
}
.catalog-bar form{ margin:0; }
.catalog-bar select,
.woocommerce .woocommerce-ordering select{
  background:var(--surface); color:var(--text);
  border:1px solid var(--line-bright); border-radius:var(--radius);
  padding:9px 12px; font-size:13.5px; font-family:inherit;
}
.catalog-bar select:focus{ border-color:var(--copper); outline:none; }

@media (max-width:520px){
  .catalog-bar{ flex-direction:column; align-items:stretch; }
  .catalog-bar select{ width:100%; }
}

/* Nuolaidos kodo laukelis buvo likes su numatytuoju baltu WooCommerce fonu */
.woocommerce .coupon .input-text,
.woocommerce-cart .coupon input[type="text"],
#coupon_code,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce table.cart td.actions .input-text{
  background:var(--surface-2) !important;
  color:var(--text) !important;
  border:1px solid var(--line-bright) !important;
  border-radius:var(--radius);
  padding:10px 12px;
}
.woocommerce .coupon .input-text::placeholder,
#coupon_code::placeholder{ color:var(--text-faint); }
.woocommerce .coupon .input-text:focus,
#coupon_code:focus{ border-color:var(--copper) !important; outline:none; }
