/* RINKO design v3 "less theme" layer (2026-10-14). Loaded after design-v2.css; everything is scoped to html.rk-v3, which an
   inline head script sets only for browsers that opened ?rkv3=1 (preview) — or for everyone once RINKO_DESIGN_V3_LIVE is true.
   Goals: one type scale (no half-pixel steps), three text greys instead of eight, terracotta only on actions, quieter
   product cards (price right under the title, no floating white discs), no WoodMart tells (menu icons, product prev/next,
   heavy round arrows), subcategories as a compact chip row. */

html.rk-v3 body.rk-v2 {
  --rk3-ink: #16212b;
  --rk3-text: #46505a;
  --rk3-muted: #6b7580;      /* 4.6:1 on #f9f9f8 */
  --rk3-line: #e5e3de;
  --rk3-tile: #f2f1ee;
  --rk3-r: 10px;
  --rk3-fs-xs: 12px; --rk3-fs-sm: 13px; --rk3-fs-md: 14px; --rk3-fs-base: 15px; --rk3-fs-lg: 16px;
}

/* ---------- Type ---------- */
html.rk-v3 body.rk-v2 { color: var(--rk3-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.rk-v3 body.rk-v2 .price, html.rk-v3 body.rk-v2 .amount, html.rk-v3 body.rk-v2 .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
html.rk-v3 body.rk-v2 h1, html.rk-v3 body.rk-v2 .product_title, html.rk-v3 body.rk-v2 .wd-el-title, html.rk-v3 body.rk-v2 .page-title { letter-spacing: -0.012em !important; }
html.rk-v3 body.rk-v2 .elementor-widget-text-editor p, html.rk-v3 body.rk-v2 .rk-lead, html.rk-v3 body.rk-v2 .term-description p,
html.rk-v3 body.rk-v2 .page .entry-content p { line-height: 1.6 !important; }
/* PDP delivery list was the only "Lexend Deca" text on the site */
html.rk-v3 body.rk-v2 .wd-list .wd-list-content, html.rk-v3 body.rk-v2 .wd-list .wd-list-content * { font-family: var(--wd-text-font, "Inter-local", system-ui, sans-serif) !important; }
html.rk-v3 body.rk-v2 .wd-list .wd-list-content { font-size: var(--rk3-fs-md) !important; font-weight: 500 !important; color: var(--rk3-ink) !important; }
/* Eyebrows: quiet grey with modest tracking; terracotta stays for buttons and prices on sale */
html.rk-v3 body.rk-v2 .rk-eye, html.rk-v3 body.rk-v2 .rk-pdp-eye, html.rk-v3 body.rk-v2 .rk-keys dt, html.rk-v3 body.rk-v2 .rk-toc-label, html.rk-v3 body.rk-v2 .rf-label {
  color: var(--rk3-muted) !important; letter-spacing: .08em !important; font-size: 11px !important; font-weight: 600 !important; }
html.rk-v3 body.rk-v2 .rh-eye { letter-spacing: .08em !important; }
html.rk-v3 body.rk-v2 .rk-pdp-eye:hover { color: var(--rk3-ink) !important; }

/* ---------- Header ---------- */
html.rk-v3 body.rk-v2 .wd-nav-header .wd-nav-img { display: none !important; }        /* clip-art icons before menu items */
html.rk-v3 body.rk-v2 .wd-nav-header > li > a { font-size: var(--rk3-fs-md) !important; font-weight: 500 !important; color: var(--rk3-ink) !important; }
html.rk-v3 body.rk-v2 .wd-nav-header > li + li { border-left: 0 !important; }
html.rk-v3 body.rk-v2 .wd-nav-header > li + li::before { display: none !important; }
html.rk-v3 body.rk-v2 .free-shipping-banner { font-size: var(--rk3-fs-sm) !important; font-weight: 500 !important; letter-spacing: 0 !important; }

/* ---------- Product cards (grids and carousels) ---------- */
html.rk-v3 body.rk-v2 .wd-product .product-element-top,
html.rk-v3 body.rk-v2 .wd-product .product-image-link { border-radius: var(--rk3-r) !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom { display: flex !important; flex-direction: column; padding: 12px 2px 4px !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom > .wd-entities-title { order: 1; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom > .star-rating,
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom > .wd-star-rating { order: 2; margin: 6px 0 0 !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom > .price { order: 3; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom > .wd-product-stock { order: 4; }
html.rk-v3 body.rk-v2 .wd-product .wd-entities-title { margin: 0 !important; font-size: var(--rk3-fs-md) !important; font-weight: 500 !important; line-height: 1.38 !important; color: var(--rk3-ink) !important; }
html.rk-v3 body.rk-v2 .wd-product .wd-entities-title a { color: inherit !important; }
/* colour name on its own quiet line under the title */
html.rk-v3 body.rk-v2 .wd-product .wd-entities-title .rk-tc { display: flex !important; width: fit-content; margin: 3px 0 0 !important; font-size: var(--rk3-fs-xs) !important; color: var(--rk3-muted) !important; }
/* price directly under the title */
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price { margin-top: 8px !important; font-size: var(--rk3-fs-lg) !important; font-weight: 650 !important; color: var(--rk3-ink) !important; gap: 0 6px !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price ins { color: #b42f27 !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price del { font-size: var(--rk3-fs-sm) !important; color: var(--rk3-muted) !important; font-weight: 400 !important; }
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price .woocommerce-price-suffix { display: inline !important; width: auto !important; margin: 0 !important; font-size: 11px !important; color: var(--rk3-muted) !important; font-weight: 400 !important; }
/* stock + delivery: one small grey line with a coloured dot, no truck icon */
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock { margin: 6px 0 0 !important; font-size: var(--rk3-fs-xs) !important; font-weight: 400 !important; line-height: 16px !important; flex-wrap: nowrap !important; white-space: nowrap; }
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock.in-stock { color: var(--rk3-muted) !important; }
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock.in-stock::before { width: 6px !important; height: 6px !important; margin-right: 6px !important; background: #1c7a45 !important; }
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock.in-stock::after { flex-basis: auto !important; margin: 0 0 0 7px !important; padding-left: 7px !important; border-left: 1px solid var(--rk3-line) !important; background-image: none !important; color: var(--rk3-muted) !important; font-size: var(--rk3-fs-xs) !important; }
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock.rk-low-stock { color: #8a5a00 !important; font-weight: 500 !important; }
/* wishlist: a plain icon, no white disc */
html.rk-v3 body.rk-v2 .wd-product .wd-buttons { top: 6px !important; right: 6px !important; }
html.rk-v3 body.rk-v2 .wd-product .wd-buttons .wd-action-btn > a { width: 32px !important; height: 32px !important; background: transparent !important; box-shadow: none !important; }
html.rk-v3 body.rk-v2 .wd-product .wd-buttons .wd-action-btn > a .wd-action-icon { color: var(--rk3-ink) !important; }
/* phones: the quick-add bag becomes a small square with a hairline instead of a floating white circle */
@media (max-width: 1024px) {
  html.rk-v3 body.rk-v2 .wd-product .product-element-top .wd-add-btn { left: auto !important; right: 8px !important; bottom: 8px !important; }
  html.rk-v3 body.rk-v2 .wd-product .product-element-top .wd-add-btn > a { width: 32px !important; height: 32px !important; min-height: 32px !important; border-radius: 8px !important; background: rgba(255, 255, 255, .9) !important; box-shadow: 0 0 0 1px rgba(22, 33, 43, .08) !important; }
  html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price { font-size: var(--rk3-fs-base) !important; }
  html.rk-v3 body.rk-v2 .wd-product .wd-entities-title { font-size: var(--rk3-fs-md) !important; }
}
/* desktop hover pill: smaller, same radius system */
@media (min-width: 1025px) {
  html.rk-v3 body.rk-v2 .wd-product .product-element-top .wd-add-btn-replace > a { min-height: 40px !important; border-radius: 8px !important; font-size: var(--rk3-fs-md) !important; box-shadow: none !important; }
}

/* ---------- Carousels ---------- */
html.rk-v3 body.rk-v2 .wd-nav-arrows .wd-btn-arrow, html.rk-v3 body.rk-v2 .wd-nav-arrows .wd-arrow-inner {
  box-shadow: none !important; }
html.rk-v3 body.rk-v2 :not(.wd-gallery-images):not(.wd-gallery-thumb) > .wd-carousel-inner > .wd-nav-arrows .wd-arrow-inner {
  width: 36px !important; height: 36px !important; border: 1px solid var(--rk3-line) !important; background: #fff !important; }

/* ---------- Category pages: subcategories as a chip row ---------- */
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-cat-thumb,
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-cat-count { display: none !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-nav-arrows { display: none !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel { overflow-x: auto !important; scrollbar-width: none; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel::-webkit-scrollbar { display: none; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel-wrap { display: flex !important; flex-wrap: nowrap; gap: 8px; transform: none !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel-item { flex: 0 0 auto !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .category-grid-item,
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-cat-inner { margin: 0 !important; padding: 0 !important; background: none !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-cat-content { position: static !important; padding: 0 !important; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-entities-title {
  margin: 0 !important; padding: 8px 14px; border: 1px solid var(--rk3-line); border-radius: 999px; background: #fff;
  font-size: var(--rk3-fs-sm) !important; font-weight: 500 !important; line-height: 18px !important; color: var(--rk3-ink) !important; white-space: nowrap; }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .category-grid-item:hover .wd-entities-title { border-color: var(--rk3-ink); }
html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .category-grid-item .wd-cat-inner > a { position: absolute; inset: 0; }

/* ---------- Product page ---------- */
html.rk-v3 body.rk-v2.single-product .wd-products-nav { display: none !important; }   /* prev / grid / next product icons */
html.rk-v3 body.rk-v2.single-product .woocommerce-product-gallery .wd-carousel-item,
html.rk-v3 body.rk-v2.single-product .woocommerce-product-gallery__image,
html.rk-v3 body.rk-v2.single-product .wd-gallery-images,
html.rk-v3 body.rk-v2.single-product .wd-gallery-thumb .wd-carousel-item { border-radius: var(--rk3-r) !important; }
html.rk-v3 body.rk-v2.single-product .rk-quick-id-shortcode, html.rk-v3 body.rk-v2.single-product [class*="quick-id"] { font-size: var(--rk3-fs-xs) !important; color: var(--rk3-muted) !important; }
html.rk-v3 body.rk-v2.single-product [class*="quick-id"] strong { font-weight: 500 !important; }
@media (max-width: 1024px) {
  /* "Pirkti dabar" as the quieter outline button on phones too (desktop already is); "Į krepšelį" stays the one solid CTA */
  html.rk-v3 body.rk-v2.single-product form.cart .wd-buy-now-btn { background: #fff !important; color: var(--rk3-ink) !important; border: 1px solid var(--rk3-ink) !important; box-shadow: none !important; }
}
html.rk-v3 body.rk-v2.single-product form.cart .single_add_to_cart_button { box-shadow: none !important; }

/* ---------- Phone bottom toolbar: lighter ---------- */
html.rk-v3 body.rk-v2 .wd-toolbar { box-shadow: none !important; border-top: 1px solid var(--rk3-line) !important; }
html.rk-v3 body.rk-v2 .wd-toolbar .wd-toolbar-label { font-weight: 500 !important; color: var(--rk3-text) !important; } /* sizes stay from v2 (the account label is swapped to "Paskyra" via font-size 0 + ::after) */

/* fixes after the first preview: older phone rules stacked "su PVM", a blur halo behind the heart, dot spacing */
html.rk-v3 body.rk-v2 .wd-product .product-element-bottom .price .woocommerce-price-suffix { flex-basis: auto !important; }
html.rk-v3 body.rk-v2 .wd-product .wd-buttons .wd-action-btn > a { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.rk-v3 body.rk-v2 .wd-product p.wd-product-stock { justify-content: flex-start !important; gap: 0 !important; padding: 0 !important; text-indent: 0 !important; }

/* desktop: subcategory chips wrap onto lines (a sideways scroll row is awkward with a mouse) */
@media (min-width: 1025px) {
  html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel-wrap { flex-wrap: wrap !important; }
  html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel { overflow: visible !important; }
  html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products::after, html.rk-v3 body.rk-v2.tax-product_cat .wd-cats.products .wd-carousel-inner::after { display: none !important; }
}
