/* Wspólna paleta i typografia witryny Koszyk Stolarza. */
:root {
    --ks-ink: #292a24;
    --ks-muted: #585b51;
    --ks-accent: #80472e;
    --ks-accent-dark: #63361f;
    --ks-line: #ddd9ce;
    --ks-paper: #fffefb;
    --ks-tint: #f5f2ea;
    --ks-canvas: #f5f3ed;
    --ks-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --ks-sans: Inter, "Segoe UI", Arial, sans-serif;
}

#layout-error {
    background: var(--ks-paper);
    color: var(--ks-ink);
    font-family: var(--ks-sans);
}

#layout-error :is(h1, h2) {
    font-family: var(--ks-serif);
    font-weight: 500;
}

body .tv-main-div {
    color: var(--ks-ink);
    background-color: var(--ks-canvas);
    font-family: var(--ks-sans);
    letter-spacing: normal;
}

.tv-main-div #wrapper {
    background-color: var(--ks-canvas);
}

/* Nagłówek, wyszukiwarka i okruszki. */
.tv-main-div #header,
#header .tvcmsdesktop-top-second {
    background-color: var(--ks-paper);
    border-bottom-color: var(--ks-line);
}

#header .tvcmsheader-search input.tvcmssearch-words,
#header #tvcmsmobile-search input[type="text"] {
    background-color: var(--ks-tint);
    color: var(--ks-ink);
    border-color: var(--ks-line);
    border-radius: .4rem;
    font-family: var(--ks-sans);
    letter-spacing: normal;
}

#header .tvcmsheader-search input.tvcmssearch-words::placeholder,
#header #tvcmsmobile-search input[type="text"]::placeholder {
    color: var(--ks-muted);
    opacity: 1;
}

#header :is(.tvcmssearch-dropdown, .tv-account-dropdown, .tv-menu-horizontal .menu-dropdown) {
    border-color: var(--ks-line);
    border-bottom: 2px solid var(--ks-accent);
    background-color: var(--ks-paper);
    box-shadow: 0 .6rem 1.6rem rgb(56 42 31 / 12%);
}

@media (min-width: 992px) {
    #header .tvcms-header-menu-offer-wrapper {
        background-color: var(--ks-accent-dark);
    }

    #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a {
        color: #fffefb;
        font-family: var(--ks-sans);
        letter-spacing: normal;
        text-transform: none;
        text-shadow: none;
    }

    #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a:is(:hover, :focus-visible) {
        text-decoration: underline;
        text-underline-offset: .26em;
    }

    #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a:focus-visible {
        outline: 2px solid var(--ks-paper);
        outline-offset: -3px;
    }
}

#wrapper .breadcrumb,
#wrapper .breadcrumb ol {
    background-color: transparent;
    letter-spacing: normal;
}

#wrapper .breadcrumb li a,
#wrapper .breadcrumb li a span {
    color: var(--ks-muted);
}

#wrapper .breadcrumb li a:hover,
#wrapper .breadcrumb li a:hover span {
    color: var(--ks-accent);
    text-decoration: underline;
    text-underline-offset: .2em;
}

/* Tytuły modułów, strony kategorii i podstrony redakcyjne. */
#index .tvcms-main-title .tvmain-title :is(h2, h3),
#wrapper .tv-all-page-main-title,
#wrapper .tvpage-header-title,
#wrapper .form-title h1,
#wrapper .page-cms :is(h1, h2),
#wrapper .blog_post_content_top .tvcmsblog-post-title {
    color: var(--ks-ink);
    font-family: var(--ks-serif);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.16;
    text-transform: none;
}

#index .tvcms-main-title .tvmain-title :is(h2, h3),
#wrapper .tv-all-page-main-title,
#wrapper .tvpage-header-title {
    font-size: clamp(1.56rem, 1.1rem + 1.7vw, 2.6rem);
}

#index .tvtab-title-wrapper .tvtabs-products li {
    border-color: transparent;
    background-color: transparent;
}

#index .tvtab-title-wrapper .tvtabs-products li span {
    color: var(--ks-muted);
    font-family: var(--ks-sans);
    font-weight: 550;
    letter-spacing: normal;
    text-transform: none;
}

#index .tvtab-title-wrapper .tvtabs-products li:is(.active, :hover, :focus-within) {
    border-bottom-color: var(--ks-accent);
    box-shadow: inset 0 -1px var(--ks-accent);
}

#index .tvtab-title-wrapper .tvtabs-products li:is(.active, :hover, :focus-within) span {
    color: var(--ks-accent);
}

/* Te same karty występują w karuzelach i na listach odświeżanych przez AJAX. */
#wrapper .product-miniature .tvproduct-wrapper {
    background-color: var(--ks-paper);
    border: 1px solid var(--ks-line);
    border-radius: .65rem;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

#wrapper .product-miniature .tvproduct-wrapper:is(:hover, :focus-within) {
    border-color: #bba58f;
    box-shadow: 0 .22rem .65rem rgb(56 42 31 / 8%);
}

#wrapper .product-miniature .tvproduct-name a .product-title,
#wrapper .product-miniature .tvproduct-name a {
    color: var(--ks-ink);
    font-family: var(--ks-sans);
    letter-spacing: normal;
    text-transform: none;
}

#wrapper .product-miniature .tvproduct-name a:is(:hover, :focus-visible),
#wrapper .product-miniature .tvproduct-name a:is(:hover, :focus-visible) .product-title {
    color: var(--ks-accent);
}

#wrapper .product-miniature .tvproduct-cart-btn button.add-to-cart:not(:disabled):not(.disabled) {
    background-color: var(--ks-accent);
    color: white;
    border-radius: .35rem;
}

#wrapper .product-miniature .tvproduct-cart-btn button.add-to-cart:not(:disabled):not(.disabled):hover {
    background-color: var(--ks-accent-dark);
}

#wrapper :is(.tv-category-block-wrapper, .tv-sub-category-inner, .tvcms-all-pagination,
              #js-product-list-top.products-selection, #search_filters, .tvblog-clickable-card) {
    background-color: var(--ks-paper);
    border: 1px solid var(--ks-line);
    border-radius: .65rem;
    box-shadow: none;
}

#wrapper .tv-sub-category-inner .category-name,
#wrapper #search_filters .facet .facet-title {
    font-family: var(--ks-sans);
    color: var(--ks-ink);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

#wrapper .tv-sub-category-inner:hover .category-name,
#wrapper #search_filters .facet-label:hover a {
    color: var(--ks-accent);
}

#wrapper .tvcms-all-pagination .page-list .current > a {
    color: white;
    background-color: var(--ks-accent);
    border-color: var(--ks-accent);
    border-radius: .35rem;
}

/* Konto, redakcja i kontakt. Pola ze zgłoszonym błędem zachowują oznaczenia formularza. */
.tv-main-div #wrapper :is(.page-cms, .contact-form, .tv-sub-pages-inner-content, .page-content.card) {
    color: var(--ks-ink);
    background-color: var(--ks-paper);
    border-color: var(--ks-line);
    border-radius: .65rem;
    box-shadow: none;
}

#wrapper .page-cms,
#wrapper .category-additional-description,
#wrapper .blog_post_content .post_content {
    line-height: 1.65;
}

body:is(#authentication, #registration, #identity, #address, #contact, #password)
    #content .form-group:not(.has-error):not(.has-success) .form-control:not([aria-invalid="true"]):not(.is-invalid) {
    border-color: var(--ks-line);
    border-radius: .35rem;
}

body:is(#authentication, #registration, #identity, #address, #contact, #password)
    #content .form-footer .btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--ks-accent);
    border-color: var(--ks-accent);
    border-radius: .35rem;
    color: white;
}

#my-account #content .links .link-item {
    background-color: var(--ks-paper);
    border: 1px solid var(--ks-line);
    border-radius: .65rem;
    color: var(--ks-ink);
    box-shadow: none;
}

#my-account #content .links a:is(:focus-visible, :hover) .link-item {
    border-color: var(--ks-accent);
    color: var(--ks-accent);
}

/* Pozostawiamy własne tła zdjęciowe stopki, jeśli skonfigurowano je w panelu. */
#footer .footer-container:not([style*="background-image"]) {
    background-color: var(--ks-tint);
    border-top: 1px solid var(--ks-line);
    box-shadow: none;
}

#footer .footer-container:not([style*="background-image"]) :is(.tvfooter-title, .tvnewsletter-title) {
    color: var(--ks-ink);
    font-family: var(--ks-serif);
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

#footer .footer-container:not([style*="background-image"]) :is(.tvfooter-account-link, #block_myaccount_infos,
    .tvfooter-category-block, #footer_sub_menu_store_info) a {
    color: var(--ks-muted);
    letter-spacing: normal;
}

#footer .footer-container:not([style*="background-image"]) :is(.tvfooter-account-link, #block_myaccount_infos,
    .tvfooter-category-block, #footer_sub_menu_store_info) a:is(:hover, :focus-visible) {
    text-decoration: underline;
    text-underline-offset: .2em;
    color: var(--ks-accent-dark);
}

#footer .tvfooter-copy-payment-icon-wrapper {
    border-top-color: var(--ks-line);
}

.tv-main-div :where(a, button, input, select, textarea, [tabindex="0"]):focus-visible {
    outline: 2px solid var(--ks-accent);
    outline-offset: 2px;
}

/* Shared by the six product-page layouts in the Electron theme. */
body#product .tvproduct-page-wrapper {
  --ks-product-ink: #292a24;
  --ks-product-muted: #585b51;
  --ks-product-accent: #80472e;
  --ks-product-line: #ddd9ce;
  --ks-product-paper: #fffefb;
}

body#product .tvproduct-page-wrapper .tvprduct-image-info-wrapper {
  background: var(--ks-product-paper);
  border: 1px solid var(--ks-product-line);
  border-radius: .75rem;
  box-shadow: none;
}

body#product .tv-product-page-content {
  color: var(--ks-product-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
}

body#product .tv-product-page-content .tvproduct-title-brandimage {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 1rem;
  padding: 0;
  margin-block-end: 1rem;
}

body#product .tvproduct-title-brandimage h1 {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--ks-product-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.75rem, 2.6vw, 2.85rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-transform: none;
  overflow-wrap: anywhere;
}

body#product .tvproduct-title-brandimage .tvcms-product-brand-logo {
  flex: none;
  margin: 0;
}

body#product .tvproduct-title-brandimage .tvcms-product-brand-logo:empty {
  display: none;
}

body#product .tvproduct-title-brandimage .tvproduct-brand {
  position: static;
  display: block;
}

body#product .tvproduct-title-brandimage .tvproduct-brand img {
  display: block;
  width: clamp(4.5rem, 8vw, 7rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body#product .tv-product-page-content .product-prices .current-price .price {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

body#product .tv-product-page-content .product-price:not(.has-discount) .current-price .price {
  color: var(--ks-product-ink);
}

body#product .tv-product-page-content .tvproduct-page-decs,
body#product .tv-product-page-content .tvproduct-page-decs p {
  color: var(--ks-product-ink);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: normal;
  overflow-wrap: break-word;
}

body#product .tv-product-page-content .product-actions .control-label {
  color: var(--ks-product-muted);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

body#product .tv-product-page-content .product-variants select,
body#product .tv-product-page-content .product-variants .radio-label {
  max-width: 100%;
  color: var(--ks-product-ink);
  border-color: var(--ks-product-line);
  border-radius: .35rem;
}

body#product .tv-product-page-content .product-variants .input-radio:checked + .radio-label {
  background: #f5f2ea;
  border-color: var(--ks-product-accent);
  color: var(--ks-product-accent);
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart {
  min-height: 44px;
  max-width: 100%;
  height: auto;
  padding: .75rem 1.35rem;
  border: 1px solid var(--ks-product-accent);
  border-radius: .35rem;
  background: var(--ks-product-accent);
  color: white;
  box-shadow: none;
  white-space: normal;
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart span {
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart::after {
  content: none;
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart:not(:disabled):not(.disabled):hover {
  background: #653620;
  border-color: #653620;
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart:is(:disabled, .disabled) {
  background: #eceae2;
  color: var(--ks-product-muted);
  border-color: var(--ks-product-line);
  opacity: 1;
}

body#product .tv-product-page-content :is(.add-to-cart, .form-control-select, #quantity_wanted):focus-visible,
body#product .tv-product-page-content .product-variants :is(.input-radio, .input-color):focus-visible + span {
  outline: 2px solid var(--ks-product-accent);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  body#product .tv-product-page-content .tvproduct-title-brandimage {
    flex-direction: column;
    gap: .65rem;
  }
}

/* Both the image/price panel and the tabs belong to the same product content column. */
body#product #main > .page-footer,
body#product #main > .page-footer > :is(.ks-impra, .tvproduct-description-tab) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
}

body#product #main > .page-footer {
  padding-inline: 0;
}

/* The Impra presentation already supplies its own colors, panels and navigation. */
#product .page-footer > .tvproduct-description-tab {
  --ks-tabs-ink: #292a24;
  --ks-tabs-muted: #585b51;
  --ks-tabs-accent: #80472e;
  --ks-tabs-line: #ddd9ce;
  --ks-tabs-paper: #fffefb;
  margin-block: clamp(1.5rem, 4vw, 3rem);
  padding: 0;
  color: var(--ks-tabs-ink);
  background: var(--ks-tabs-paper);
  border: 1px solid var(--ks-tabs-line);
  border-radius: .75rem;
  box-shadow: none;
  font: 400 1rem/1.6 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-align: start;
}

#product .tvproduct-description-tab > .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 1.6rem;
  margin: 0;
  padding: 0 clamp(1rem, 4vw, 2.75rem);
  border: 0;
  border-bottom: 1px solid var(--ks-tabs-line);
  text-align: start;
  list-style: none;
}

#product .tvproduct-description-tab > .nav-tabs::before,
#product .tvproduct-description-tab > .nav-tabs::after {
  display: none;
}

#product .tvproduct-description-tab > .nav-tabs > li {
  display: flex;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#product .tvproduct-description-tab > .nav-tabs > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1.15rem 0 1rem;
  color: var(--ks-tabs-muted);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  font: 400 .98rem/1.35 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
  text-align: start;
  text-decoration: none;
  text-transform: none;
  overflow-wrap: anywhere;
}

#product .tvproduct-description-tab > .nav-tabs > li > a:hover,
#product .tvproduct-description-tab > .nav-tabs > li > a:focus-visible {
  color: var(--ks-tabs-accent);
}

#product .tvproduct-description-tab > .nav-tabs > li > a.active {
  color: var(--ks-tabs-accent);
  border-bottom: 3px solid var(--ks-tabs-accent);
  font-weight: 650;
}

#product .tvproduct-description-tab :is(a, summary, button):focus-visible {
  outline: 2px solid var(--ks-tabs-accent);
  outline-offset: -2px;
}

#product .tvproduct-description-tab > #tab-content {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  background: transparent;
  border: 0;
  border-radius: 0;
}

#product .tvproduct-description-tab > #tab-content > .tab-pane {
  min-width: 0;
  padding: 0;
  overflow-wrap: anywhere;
}

#product .tvproduct-description-tab .cms-description,
#product .ks-impra .ksi-copy {
  max-width: 100%;
  overflow-x: auto;
}

#product :is(.tvproduct-description-tab .tab-pane, .ks-impra .ksi-copy) :is(img, video, iframe) {
  max-width: 100%;
}

#product :is(.tvproduct-description-tab .tab-pane, .ks-impra .ksi-copy) :is(img, video) {
  height: auto;
}

#product .tvproduct-description-tab .tab-pane :is(h2, h3) {
  margin: 1.35em 0 .55em;
  color: var(--ks-tabs-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-transform: none;
}

#product .tvproduct-description-tab .tab-pane h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

#product .tvproduct-description-tab .tab-pane h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

#product .tvproduct-description-tab .tab-pane :is(h2, h3):first-child {
  margin-top: 0;
}

#product .tvproduct-description-tab .tab-pane p {
  color: inherit;
  line-height: 1.6;
  letter-spacing: normal;
}

#product .tvproduct-description-tab .tab-pane .product-features {
  padding: 0;
}

#product .tvproduct-description-tab .product-features > dl.data-sheet {
  display: grid;
  grid-template-columns: minmax(0, 37%) minmax(0, 1fr);
  margin: 0;
}

#product .tvproduct-description-tab dl.data-sheet > :is(dt.name, dd.value) {
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: .65rem 0;
  color: var(--ks-tabs-ink);
  border: 0;
  border-bottom: 1px solid var(--ks-tabs-line);
  background: transparent;
  font: inherit;
  text-align: start;
  text-transform: none;
}

#product .tvproduct-description-tab dl.data-sheet > dt.name {
  padding-inline-end: 1rem;
  color: var(--ks-tabs-muted);
}

#product .tvproduct-description-tab dl.data-sheet > dd.value {
  font-weight: 550;
}

#product .tvproduct-description-tab .attachment h4 a {
  color: var(--ks-tabs-ink);
}

#product .tvproduct-description-tab .attachment > a {
  display: inline-block;
  margin: .25rem 0 .75rem;
  padding: .55rem 1rem;
  color: var(--ks-tabs-accent);
  border: 1px solid var(--ks-tabs-accent);
  border-radius: .35rem;
  font-weight: 600;
  text-decoration: none;
}

#product .tvproduct-description-tab .attachment > a:hover {
  background: var(--ks-tabs-accent);
  color: #fff;
}

@media (max-width: 42rem) {
  #product .tvproduct-description-tab > .nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 .9rem;
    padding: .35rem 1rem 0;
  }

  #product .tvproduct-description-tab > .nav-tabs > li > a {
    padding: .7rem 0 .55rem;
    font-size: .91rem;
  }
}

/* Koszyk, zamówienie standardowe i jednostronicowy formularz The Checkout. */
body#cart .cart-grid .cart-container,
body#cart .cart-grid .cart-summary,
body#checkout #js-checkout-summary,
body#checkout .tvcheckout-process-left .checkout-step,
body#order-confirmation #main .card {
  background-color: var(--ks-paper);
  border: 1px solid var(--ks-line);
  border-radius: .75rem;
  box-shadow: none;
}

body#cart .cart-container h1,
body#checkout .tvcheckout-process-left .checkout-step .step-title,
body#order-confirmation #main .card-title {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

body#checkout .tvcheckout-process-left .checkout-step.-current {
  border-color: var(--ks-accent);
}

body#cart .cart-grid .cart-item,
body#cart .cart-summary .cart-detailed-totals,
body#checkout #js-checkout-summary .cart-summary-totals {
  border-color: var(--ks-line);
}

body#cart .cart-summary .cart-total,
body#checkout #js-checkout-summary .cart-total {
  color: var(--ks-ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

body#cart .cart-grid .cart-item .product-title h6 {
  color: var(--ks-ink);
  text-transform: none;
  letter-spacing: normal;
}

body#cart .cart-detailed-actions .tvprocess-to-checkout,
body#checkout .checkout-step button.continue:not(:disabled):not(.disabled),
body#checkout #payment-confirmation button:is(.tvall-inner-btn, .btn-primary):not(:disabled):not(.disabled),
body #tc-checkout #confirm_order:not(:disabled):not(.disabled),
body #tc-checkout .step-continue:not(:disabled):not(.disabled) {
  background-color: var(--ks-accent);
  border: 1px solid var(--ks-accent);
  border-radius: .35rem;
  color: white;
  box-shadow: none;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}

body#cart .cart-detailed-actions .tvprocess-to-checkout:hover,
body#checkout .checkout-step button.continue:not(:disabled):not(.disabled):hover,
body#checkout #payment-confirmation button:is(.tvall-inner-btn, .btn-primary):not(:disabled):not(.disabled):hover,
body #tc-checkout #confirm_order:not(:disabled):not(.disabled):hover,
body #tc-checkout .step-continue:not(:disabled):not(.disabled):hover {
  background-color: var(--ks-accent-dark);
  border-color: var(--ks-accent-dark);
  color: white;
}

body#cart .cart-detailed-actions .tvprocess-to-checkout::after,
body#checkout .checkout-step button.continue.tvall-inner-btn::after,
body#checkout #payment-confirmation .tvall-inner-btn::after {
  content: none;
}

body#cart .cart-detailed-actions button:disabled,
body#checkout .checkout-step button.continue:is(:disabled, .disabled),
body#checkout #payment-confirmation button:is(:disabled, .disabled),
body#checkout #tc-checkout :is(#confirm_order, .step-continue):is(:disabled, .disabled) {
  --tc_blue: var(--ks-tint);
  --tc_blue_hov: var(--ks-tint);
  --tc_white: var(--ks-muted);
  background-color: var(--ks-tint);
  border-radius: .35rem;
  color: var(--ks-muted);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

body#checkout #tc-checkout :is(#confirm_order, .step-continue):is(:disabled, .disabled) {
  cursor: not-allowed !important;
}

body#cart .cart-detailed-actions button:disabled span,
body#checkout .checkout-step button:is(:disabled, .disabled) span,
body#checkout #tc-checkout :is(#confirm_order, .step-continue):is(:disabled, .disabled) span {
  color: inherit;
}

/* Zmienne modułu pozostawiają osobne kolory walidacji i statusu dostawy. */
#tc-checkout {
  --tc_white: var(--ks-paper);
  --tc_black: var(--ks-ink);
  --tc_black_85: var(--ks-ink);
  --tc_black_60: var(--ks-muted);
  --tc_light: var(--ks-line);
  --tc_light2: var(--ks-tint);
  --tc_light3: var(--ks-paper);
  --tc_light4: var(--ks-line);
  --tc_blue: var(--ks-accent);
  --tc_blue_hov: var(--ks-accent-dark);
}

body#checkout #tc-checkout .checkout-block.main-block > .inner-area,
body #tc-checkout .checkout-block.main-block > .inner-area {
  background-color: var(--ks-paper);
  border: 1px solid var(--ks-line);
  border-radius: .75rem;
  padding: clamp(.8rem, 1.8vw, 1.5rem);
  box-shadow: none;
}

body#checkout #tc-checkout .checkout-block .block-header,
body #tc-checkout .checkout-block .block-header {
  color: var(--ks-ink);
  font: 500 clamp(1.25rem, 2.1vw, 1.7rem)/1.2 var(--ks-serif);
  text-transform: none;
  letter-spacing: -.025em;
  border-bottom: 1px solid var(--ks-line);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
}

body#checkout #tc-checkout .checkout-block .block-header strong {
  font-weight: inherit;
}

/* Wyższy kontrast obramowania kontrolek niż linii oddzielających sekcje. */
#tc-checkout :is(.form-control, .promo-input, .addresses-selection select),
#tc-checkout .custom-checkbox input + span {
  --tc_light: #827d73;
}

body#checkout .checkout-step .form-group:not(.has-error):not(.has-danger):not(.has-success)
  .form-control:not(.form-control-danger):not(.is-invalid):not([aria-invalid="true"]):not(:user-invalid) {
  border-color: #827d73;
}

body#checkout .checkout-step .form-group:is(.has-error, .has-danger) .form-control,
body#checkout .checkout-step .form-control:is(.form-control-danger, .is-invalid, [aria-invalid="true"], :user-invalid) {
  border-color: #a94442;
}

body#cart .cart-grid :focus-visible,
body#checkout .checkout-step :focus-visible,
body#checkout #tc-checkout .custom-checkbox input:focus-visible + span {
  outline: 2px solid var(--ks-accent);
  outline-offset: 2px;
}

/* Moduł wyłącza obrys m.in. na odnośnikach i polu ilości. */
body#checkout #tc-checkout #thecheckout-cart-summary .cart-line-product-quantity:focus-visible,
body#checkout #tc-checkout .checkout-block :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--ks-accent) !important;
  outline-offset: 2px;
}

/* Koszyk Stolarza – jasny dąb. Odcienie drewna pochodzą z logotypu. */
:root {
  --ks-ink: #302a26;
  --ks-muted: #66584d;
  --ks-accent: #704a33;
  --ks-accent-dark: #593b2a;
  --ks-wood: #946345;
  --ks-wood-soft: #ba9276;
  --ks-line: #d9cbbb;
  --ks-paper: #fffdf9;
  --ks-tint: #f2e8db;
  --ks-canvas: #f8f5ef;
  --ks-serif: Georgia, "Times New Roman", serif;
  --ks-mono: "Courier New", Courier, monospace;
  --ks-radius: 5px;
  --ks-scale: repeating-linear-gradient(90deg, var(--ks-wood-soft) 0 1px, transparent 1px 12px);
}

/* Podziałka na krawędzi belki. Środkowy pas z logo zachowuje jasne podłoże. */
#header :is(.tvcmsdesktop-top-header, .tvcmsmobile-top-wrapper) {
  background-color: var(--ks-tint);
}

#header .tvheader-nav-offer-text :is(p, a, i) {
  color: var(--ks-ink);
}

#header .tvcmsdesktop-top-second,
#header :is(.tvcmsmobile-header-menu-offer-text, .tvcmsmobile-header-search-logo-wrapper) {
  background-color: var(--ks-paper);
}

#header .tvcmsheader-search input.tvcmssearch-words,
#header #tvcmsmobile-search input[type="text"] {
  border: 1px solid #908174;
  border-radius: var(--ks-radius);
  background-color: var(--ks-paper);
}

@media (min-width: 992px) {
  #header .tvcms-header-menu-offer-wrapper {
    background: var(--ks-scale) left bottom / 100% 2px no-repeat var(--ks-tint);
    border-bottom: 1px solid var(--ks-line);
  }

  #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a {
    color: var(--ks-ink);
    font-family: var(--ks-sans);
    font-size: .92rem;
    font-weight: 550;
    letter-spacing: .004em;
  }

  #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a > span:not(.menu-subtitle) {
    color: inherit;
    font-family: inherit;
  }

  #header .tvcms-header-menu-offer-wrapper .tv-menu-horizontal ul.menu-content > li.level-1 > a:is(:hover, :focus-visible) {
    color: var(--ks-accent-dark);
    outline-color: var(--ks-accent);
  }
}

@media (max-width: 991px) {
  #header .tvcmsmobile-header-menu-offer-text {
    border-bottom: 1px solid var(--ks-wood-soft);
  }
  #header .tvmobile-slidebar {
    border-top: 2px solid var(--ks-wood-soft);
    background-color: var(--ks-paper);
  }
}

/* Podpisy pod zdjęciami i tytuły działów. */
#index .tvcms-main-slider .tvmain-slider-content-wrapper {
  background: var(--ks-tint);
  border-top: 1px solid var(--ks-line);
}

#index .tvmain-slider-content-wrapper .tvmain-slider-title {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-weight: 500;
  font-size: clamp(.9rem, .6rem + .55vw, 1.2rem);
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: none;
}

#index .tvmain-slider-content-wrapper .tvmain-slider-info :is(p, a),
#index .tvmain-slider-content-wrapper .active .tvmain-slider-title {
  color: var(--ks-accent);
}

#index .tvmain-slider-content-inner.active::after {
  height: 2px;
  background-color: var(--ks-wood);
}

#index .tvcms-main-title .tvmain-title :is(h2, h3),
#wrapper .tv-all-page-main-title,
#wrapper .tvpage-header-title,
#wrapper .form-title h1,
#wrapper .page-cms :is(h1, h2),
#wrapper .blog_post_content_top .tvcmsblog-post-title,
#layout-error :is(h1, h2) {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-weight: 500;
  letter-spacing: -.025em;
}

#index .tvcms-main-title .tvmain-title :is(h2, h3),
#wrapper .tv-all-page-main-title,
#wrapper .tvpage-header-title {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.8rem);
}

#index .tvcms-main-title .tvmain-sub-title h4,
#index .tvtab-title-wrapper .tvtabs-products li span,
#wrapper #search_filters .facet .facet-title,
#wrapper .tv-sub-category-inner .category-name,
#index .tvcategory-slider-title .tvcategory-slider-info-box {
  color: var(--ks-accent);
  font-family: var(--ks-sans);
  font-weight: 550;
  letter-spacing: .014em;
}

#index .tvcategory-slider-title .tvcategory-slider-info-box {
  background-color: var(--ks-tint);
  border-top: 1px solid var(--ks-line);
  padding: .65em .35em;
  line-height: 1.3;
}

#index .tvcategory-slider-title:is(:focus-visible, :hover) .tvcategory-slider-info-box {
  color: var(--ks-accent-dark);
  background-color: var(--ks-tint);
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Karty mają prostokątny obrys. Ceny promocyjne i kolory wariantów pochodzą z katalogu. */
#wrapper .product-miniature .tvproduct-wrapper,
#wrapper :is(.tv-category-block-wrapper, .tv-sub-category-inner, .tvcms-all-pagination,
    #js-product-list-top.products-selection, #search_filters, .tvblog-clickable-card),
.tv-main-div #wrapper :is(.page-cms, .contact-form, .tv-sub-pages-inner-content, .page-content.card),
#my-account #content .links .link-item {
  border-radius: var(--ks-radius);
}

#wrapper .product-miniature .tvproduct-wrapper:is(:hover, :focus-within) {
  border-color: var(--ks-wood-soft);
  box-shadow: 0 2px 9px rgb(112 74 51 / 8%);
}

#wrapper .product-miniature .tvproduct-name a,
#wrapper .product-miniature .tvproduct-name a .product-title {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-size: clamp(1rem, .95rem + .18vw, 1.18rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.018em;
}

#wrapper .product-miniature .tvproduct-cart-btn button.add-to-cart:not(:disabled):not(.disabled),
#wrapper .tvcms-all-pagination .page-list .current > a {
  border-radius: var(--ks-radius);
}

.tv-main-div #wrapper #search_filters,
.tv-main-div #wrapper .page-cms {
  border-top: 2px solid var(--ks-wood-soft);
}

/* Obie odmiany strony produktu korzystają z tej samej palety. */
body#product .tvproduct-page-wrapper {
  --ks-product-ink: var(--ks-ink);
  --ks-product-muted: var(--ks-muted);
  --ks-product-accent: var(--ks-accent);
  --ks-product-line: var(--ks-line);
  --ks-product-paper: var(--ks-paper);
}

#product .page-footer > .tvproduct-description-tab {
  --ks-tabs-ink: var(--ks-ink);
  --ks-tabs-muted: var(--ks-muted);
  --ks-tabs-accent: var(--ks-accent);
  --ks-tabs-line: var(--ks-line);
  --ks-tabs-paper: var(--ks-paper);
}

#product .page-footer > .ks-impra {
  --ksi-ink: var(--ks-ink);
  --ksi-muted: var(--ks-muted);
  --ksi-accent: var(--ks-accent);
  --ksi-line: var(--ks-line);
  --ksi-paper: var(--ks-paper);
  --ksi-tint: var(--ks-tint);
}

body#product .tvproduct-page-wrapper .tvprduct-image-info-wrapper {
  border-top: 2px solid var(--ks-wood-soft);
  border-radius: var(--ks-radius);
}

body#product .tvproduct-title-brandimage h1,
#product .ks-impra :is(.ksi-title, .ksi-panel-title),
#product .ks-impra .ksi-panels h2,
#product .tvproduct-description-tab .tab-pane :is(h2, h3) {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-weight: 500;
  letter-spacing: -.025em;
}

body#product .tv-product-page-content .product-prices .current-price .price,
#product .ks-impra .ksi-metrics dd {
  font-family: var(--ks-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

body#product .tv-product-page-content .product-variants .input-radio:checked + .radio-label {
  background-color: var(--ks-tint);
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart {
  border-radius: var(--ks-radius);
}

body#product .tvproduct-page-wrapper .product-actions .product-add-to-cart .add-to-cart:not(:disabled):not(.disabled):hover {
  background: var(--ks-accent-dark);
  border-color: var(--ks-accent-dark);
}

#product .ks-impra .ksi-brand {
  display: flex;
  align-items: center;
  gap: .7em;
  font-family: var(--ks-mono);
  font-weight: 500;
}

#product .ks-impra .ksi-brand::before {
  content: "";
  flex: 0 0 2.3em;
  height: .52em;
  background: var(--ks-scale) left bottom / 100% 100% no-repeat;
  border-bottom: 1px solid var(--ks-wood-soft);
}

#product .ks-impra .ksi-card,
#product .ks-impra .ksi-metrics,
#product .page-footer > .tvproduct-description-tab {
  border-radius: var(--ks-radius);
}

#product .ks-impra .ksi-nav,
#product .tvproduct-description-tab > .nav-tabs {
  border-radius: 2px 2px 0 0;
  border-bottom: 1px solid var(--ks-line);
  /* Arkusz katalogu wymusza background:none!important na każdym ul. */
  background-color: var(--ks-tint) !important;
}

#product .ks-impra .ksi-nav a,
#product .tvproduct-description-tab > .nav-tabs > li > a {
  color: var(--ks-muted);
  font-family: var(--ks-sans);
  font-weight: 500;
  font-size: clamp(.9rem, .84rem + .22vw, 1rem);
  letter-spacing: normal;
}

#product .ks-impra .ksi-nav a:is(:hover, :focus-visible, [aria-selected="true"]),
#product .tvproduct-description-tab > .nav-tabs > li > a:is(:hover, :focus-visible, .active) {
  color: var(--ks-accent);
  border-bottom-color: var(--ks-wood);
  font-weight: 600;
}

#product .ks-impra .ksi-nav a:is(:hover, :focus-visible),
#product .tvproduct-description-tab > .nav-tabs > li > a:is(:hover, :focus-visible) {
  color: var(--ks-accent-dark);
  text-decoration: underline;
  text-underline-offset: .2em;
}

#product .ks-impra .ksi-nav a:focus-visible,
#product .tvproduct-description-tab > .nav-tabs > li > a:focus-visible {
  outline-color: var(--ks-accent);
}

#product .ks-impra .ksi-metrics {
  border-inline-start: 2px solid var(--ks-wood-soft);
}

/* Koszyk, tradycyjne zamówienie i The Checkout. */
body#cart .cart-grid :is(.cart-container, .cart-summary),
body#checkout #js-checkout-summary,
body#checkout .tvcheckout-process-left .checkout-step,
body#order-confirmation #main .card,
body#checkout #tc-checkout .checkout-block.main-block > .inner-area,
body #tc-checkout .checkout-block.main-block > .inner-area {
  border-radius: var(--ks-radius);
  border-top: 2px solid var(--ks-wood-soft);
}

body#checkout .tvcheckout-process-left .checkout-step.-current {
  border-top-color: var(--ks-wood);
}

body#cart .cart-container h1,
body#checkout .tvcheckout-process-left .checkout-step .step-title,
body#order-confirmation #main .card-title,
body#checkout #tc-checkout .checkout-block .block-header,
body #tc-checkout .checkout-block .block-header {
  color: var(--ks-ink);
  font-family: var(--ks-serif);
  font-weight: 500;
}

body#cart .cart-summary .cart-total,
body#checkout #js-checkout-summary .cart-total {
  font-family: var(--ks-sans);
}

#footer .footer-container:not([style*="background-image"]) {
  border-top: 1px solid var(--ks-wood-soft);
}

#footer .footer-container:not([style*="background-image"]) :is(.tvfooter-title, .tvnewsletter-title) {
  color: var(--ks-ink);
  font-weight: 500;
}

/* Otwarcie strony głównej. Kompozycja korzysta z rzeczywistej fotografii
   poradnika i miniatur działów katalogu. */
#index #wrapper .ksp-home {
  --ksp-ink: #302a25;
  --ksp-walnut: #704a33;
  --ksp-line: #d9ccba;
  box-sizing: border-box;
  width: calc(100% - clamp(2rem, 6vw, 6rem));
  max-width: 86rem;
  margin: clamp(.25rem, .7vw, .8rem) auto clamp(2.8rem, 6vw, 6rem);
  color: var(--ksp-ink);
  text-align: left;
}

#index .ksp-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 3px;
  background: #f1e8d9;
}

#index .ksp-hero-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: clamp(21rem, 34vw, 31rem);
  padding: clamp(1.8rem, 4.1vw, 4.5rem);
  container-type: inline-size;
}

/* Zarys słojów drewna widoczny tylko na jasnym panelu tekstowym. */
#index .ksp-hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 24rem 15rem at 108% 124%, transparent 55%, #cfbd9e 55.2%, transparent 55.6%),
    radial-gradient(ellipse 26rem 17rem at 110% 124%, transparent 57%, #cfbd9e 57.2%, transparent 57.6%),
    radial-gradient(ellipse 28rem 19rem at 111% 125%, transparent 59%, #cfbd9e 59.2%, transparent 59.6%),
    radial-gradient(ellipse 30rem 21rem at 112% 126%, transparent 61%, #cfbd9e 61.2%, transparent 61.6%);
  opacity: .64;
}

#index .ksp-hero-copy h1 {
  margin: 0;
  padding: 0;
  color: var(--ksp-ink);
  font: 400 clamp(2.45rem, 5vw, 5.5rem)/.95 Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 17cqi, 5.5rem);
  letter-spacing: -.062em;
  text-align: left;
  text-transform: none;
}

#index .ksp-hero-copy h1 em {
  display: block;
  color: var(--ksp-walnut);
  font: italic 400 1.08em/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.057em;
}

#index .ksp-hero-copy p {
  max-width: 33ch;
  margin: clamp(1.1rem, 1.8vw, 1.7rem) 0 0;
  color: #51463b;
  font: 400 clamp(.94rem, 1.1vw, 1.06rem)/1.55 var(--ks-sans, "Segoe UI", Arial, sans-serif);
  letter-spacing: normal;
}

#index .ksp-hero .ksp-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 46px;
  max-width: 100%;
  margin-top: clamp(1.2rem, 2.1vw, 2.1rem);
  padding: .72rem 1.18rem;
  box-sizing: border-box;
  border: 1px solid #704a33;
  border-radius: 3px;
  color: #fffaf4;
  background: #704a33;
  font: 600 .95rem/1.35 var(--ks-sans, "Segoe UI", Arial, sans-serif);
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
}

#index .ksp-hero .ksp-hero-link:hover {
  border-color: #513421;
  background: #513421;
}

#index .ksp-home .ksp-arrow {
  display: inline-block;
  flex: 0 0 1.05rem;
  position: relative;
  width: 1.05rem;
  height: 1px;
  border: 0;
  background: currentColor;
}

#index .ksp-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: .42rem;
  height: .42rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

#index .ksp-hero .ksp-hero-photo {
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 31rem;
  object-fit: cover;
  object-position: 50% 47%;
}

#index .ksp-home .ksp-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(.8rem, 1.5vw, 1.4rem);
  padding: 0;
  border-bottom: 1px solid var(--ksp-line);
  background: none;
}

#index .ksp-categories a {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 1.4vw, 1.25rem);
  position: relative;
  min-width: 0;
  min-height: 4.5rem;
  padding: .7rem clamp(.65rem, 1.7vw, 1.5rem);
  box-sizing: border-box;
  color: var(--ksp-ink);
  font: 400 clamp(1.1rem, 1.72vw, 1.65rem)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  text-transform: none;
  text-decoration: none;
}

#index .ksp-categories a:first-child { padding-left: 0; }
#index .ksp-categories a:last-child { padding-right: .25rem; }

#index .ksp-categories a + a::before {
  content: "";
  position: absolute;
  inset: 22% auto 22% 0;
  border-left: 1px solid var(--ksp-line);
}

#index .ksp-categories img {
  width: clamp(2.6rem, 4.65vw, 4.1rem);
  height: auto;
  flex: none;
  mix-blend-mode: multiply;
}

#index .ksp-categories img[hidden] { display: none; }
#index .ksp-categories .ksp-arrow { margin-left: auto; color: var(--ksp-walnut); }
#index .ksp-categories a:hover span { text-decoration: underline; text-underline-offset: .22em; }
#index .ksp-home a:focus-visible { outline: 2px solid #704a33; outline-offset: 3px; }
#index .ksp-categories a:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: no-preference) {
  #index .ksp-home .ksp-arrow { transition: transform .18s ease; }
  #index .ksp-home a:hover .ksp-arrow { transform: translateX(3px); }
}

@media (max-width: 780px) {
  #index #wrapper .ksp-home { width: calc(100% - 2rem); }
  #index .ksp-categories a { padding-inline: .65rem; }
  #index .ksp-categories img { width: 2.5rem; }
  #index .ksp-categories .ksp-arrow { flex-basis: .7rem; }
}

@media (max-width: 620px) {
  #index #wrapper .ksp-home { width: 100%; margin-top: 0; }
  #index .ksp-hero { grid-template-columns: minmax(0, 1fr); }
  #index .ksp-hero-copy { min-height: 0; padding: 1.7rem 1.4rem 1.55rem; }
  #index .ksp-hero-copy::after {
    opacity: .38;
    mask-image: linear-gradient(120deg, transparent 55%, black 100%);
  }
  #index .ksp-hero-copy h1 { font-size: clamp(2.6rem, 10.5vw, 3.5rem); }
  #index .ksp-hero-copy h1 em { display: inline; font-size: 1em; }
  #index .ksp-hero-copy p { margin-top: .85rem; }
  #index .ksp-hero .ksp-hero-link { margin-top: 1rem; }
  #index .ksp-hero .ksp-hero-photo { height: clamp(10rem, 42vw, 16rem); object-position: 50% 43%; }
  #index .ksp-home .ksp-categories { grid-template-columns: 1fr; margin-top: .45rem; }
  #index .ksp-categories a,
  #index .ksp-categories a:first-child,
  #index .ksp-categories a:last-child { gap: .85rem; min-height: 3.65rem; padding: .3rem .55rem .3rem 0; }
  #index .ksp-categories a + a { border-top: 1px solid var(--ksp-line); }
  #index .ksp-categories a + a::before { content: none; }
  #index .ksp-categories img { width: 2.85rem; }
}

/* Karta katalogowa: jasne pole zdjęcia i osobna kolumna informacji. */
body#product .tvproduct-page-wrapper .tvprduct-image-info-wrapper {
  border: 1px solid var(--ks-line);
  border-radius: 8px;
  background-color: #fff;
}

body#product .tvproduct-page-wrapper .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0;
}

body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5)::before,
body#product .tvprduct-image-info-wrapper:is(.product-1,.product-2,.product-4,.product-5)::after {
  display: none;
}

body#product .tvprduct-image-info-wrapper > .col-md-6:is(.tv-product-page-image,.tv-product-page-content) {
  box-sizing: border-box;
  min-width: 0;
}

body#product .tvprduct-image-info-wrapper > .col-md-6.tv-product-page-image {
  padding: clamp(.9rem, 2.1vw, 2rem);
  margin: 0;
}

body#product .tvprduct-image-info-wrapper:not(.product-6) > .col-md-6.tv-product-page-content {
  padding: clamp(1.25rem, 2.8vw, 3rem);
  background: var(--ks-paper);
  border-radius: 0 7px 7px 0;
}

body#product .tv-product-page-content .tvproduct-title-brandimage {
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.4rem;
  margin-bottom: clamp(.85rem, 1.6vw, 1.4rem);
}

body#product .tvproduct-title-brandimage h1 {
  flex: 1 1 15rem;
  font-size: clamp(1.85rem, 1.15rem + 1.6vw, 3.05rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.036em;
  text-wrap: pretty;
}

body#product .tvproduct-title-brandimage .tvproduct-brand img {
  width: clamp(3.8rem, 5vw, 5.5rem);
}

body#product .tv-product-page-content .tvproduct-page-decs {
  margin-block: 1.15rem;
  padding-block: 0;
  border: 0;
}

body#product .tv-product-page-content .tvproduct-page-decs p {
  max-width: 63ch;
  line-height: 1.65;
}

body#product .tv-product-page-content .product-actions {
  margin-block-start: 1rem;
  padding-block-start: 1.15rem;
  border-top: 1px solid var(--ks-line);
}

body#product .tv-product-page-image .product-images .thumb.selected {
  outline: 2px solid var(--ks-accent);
  outline-offset: -2px;
}

@media (min-width: 992px) {
  body#product .tvprduct-image-info-wrapper > .col-md-6.tv-product-page-image {
    width: 55%;
    flex: 0 0 55%;
  }
  body#product .tvprduct-image-info-wrapper:not(.product-6) > .col-md-6.tv-product-page-content {
    width: 45%;
    flex: 0 0 45%;
    border-inline-start: 1px solid var(--ks-line);
  }
}

@media (max-width: 991px) {
  body#product .tvprduct-image-info-wrapper > .col-md-6.tv-product-page-image,
  body#product .tvprduct-image-info-wrapper:not(.product-6) > .col-md-6.tv-product-page-content {
    width: 100%;
    flex: 0 0 100%;
  }
  body#product .tvprduct-image-info-wrapper:not(.product-6) > .col-md-6.tv-product-page-content {
    border-radius: 0 0 7px 7px;
    border-top: 1px solid var(--ks-line);
  }
}

@media (max-width: 575px) {
  body#product .tv-product-page-content .tvproduct-title-brandimage {
    flex-direction: row;
  }
  body#product .tvproduct-title-brandimage h1 {
    flex-basis: 13rem;
  }
}

/* Produkt i dział informacji mają wspólną oś. W rozkładzie desktopowym
   liczby są widoczne obok opisu, bez przewijania do kolejnej sekcji. */
#product .page-footer > .ks-impra {
  margin-block: clamp(1.75rem, 4vw, 4.2rem);
}

#product .ks-impra .ksi-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin: 0 0 1.1rem;
}

#product .ks-impra .ksi-head .ksi-brand {
  margin: 0;
  font-size: .76rem;
}

#product .ks-impra .ksi-head .ksi-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
}

#product .ks-impra .ksi-head .ksi-variant {
  margin: 0 0 0 auto;
  font-size: .96rem;
}

#product .ks-impra .ksi-card,
#product .page-footer > .tvproduct-description-tab {
  border-radius: 7px;
}

#product .ks-impra .ksi-metrics {
  border: 0;
  border-inline-start: 2px solid var(--ks-wood-soft);
  background-color: var(--ks-tint);
}

@media (min-width: 850px) {
  #product .ks-impra .ksi-panels > #description:not([hidden]):has(> .ksi-metrics) {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, .75fr);
    gap: 0 clamp(1.5rem, 6vw, 6rem);
    align-items: start;
  }
  #product .ks-impra .ksi-panels > #description > :not(.ksi-metrics) {
    grid-column: 1;
  }
  #product .ks-impra .ksi-panels > #description > .ksi-metrics {
    display: grid;
    grid-column: 2;
    grid-row: 1 / span 3;
    grid-auto-flow: row;
    gap: .9rem;
    margin: 0;
    padding: 1.25rem 1.45rem;
  }
  #product .ks-impra .ksi-panels > #description .ksi-metrics > div {
    padding: 0;
    border: 0;
  }
  #product .ks-impra .ksi-panels > #description .ksi-metrics > div + div {
    padding-block-start: .85rem;
    border-top: 1px solid var(--ks-line);
  }
  #product .ks-impra .ksi-metrics dd {
    color: var(--ks-accent-dark);
    font: 400 clamp(1.4rem, 2.4vw, 2.35rem)/1.18 var(--ks-serif);
    font-variant-numeric: lining-nums tabular-nums;
  }
  #product .ks-impra .ksi-panels > #description > details[open] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  #product .ks-impra .ksi-head .ksi-variant {
    flex-basis: 100%;
    margin-inline-start: 0;
  }
}

/* Nawigacja po podkategoriach wykorzystuje zdjęcia i adresy z katalogu. */
body#category #wrapper .tv-category-main-div {
  padding: clamp(1rem, 2.2vw, 2rem);
  border: 1px solid var(--ks-line);
  border-radius: 7px;
  box-shadow: none;
  background: var(--ks-paper);
}

body#category .tv-sub-category-title-wrapper .tv-sub-category-title {
  margin: 0 0 .9rem;
  color: var(--ks-ink);
  font: 400 clamp(1.45rem, 2.6vw, 2rem)/1.16 var(--ks-serif);
  text-transform: none;
}

body#category .tv-category-main-div .tvcategory-name-image {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: .55rem;
  max-height: none;
  overflow: visible;
  cursor: auto;
}

body#category .tvcategory-name-image > .tv-sub-category-wrapper {
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
}

body#category #wrapper .tvcategory-name-image .tv-sub-category-inner {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: center;
  gap: .8rem;
  height: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--ks-line);
  background: #fff;
}

body#category #wrapper .tvcategory-name-image .tv-sub-category-inner:is(:hover,:focus-within) {
  border-color: var(--ks-wood);
  background: #faf5ed;
}

body#category .tv-sub-category-inner .tv-category-image img {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

body#category .tv-sub-category-inner .tvcategory-name {
  min-width: 0;
  margin: 0;
  text-align: start;
}

body#category #wrapper .tv-sub-category-inner .category-name {
  color: var(--ks-ink);
  font-size: .96rem;
  overflow-wrap: break-word;
}

body#category .tv-sub-category-inner .category-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

@media (min-width: 340px) and (max-width: 575px) {
  body#category .tv-category-main-div .tvcategory-name-image {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
  body#category #wrapper .tvcategory-name-image .tv-sub-category-inner {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: .45rem;
    min-height: 46px;
    padding: .4rem;
  }
  body#category .tv-sub-category-inner .tv-category-image img {
    width: 1.8rem;
    height: 1.8rem;
  }
  body#category #wrapper .tv-sub-category-inner .category-name {
    display: block;
    font-size: .85rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

body#category #js-product-list-top.products-selection {
  border-block: 1px solid var(--ks-line);
  box-shadow: none;
}

#wrapper .product-miniature .tvproduct-wrapper:is(.grid,.grid-2) {
  background-color: #fff;
  border-color: var(--ks-line);
  box-shadow: none;
}

#wrapper .product-miniature .tvproduct-wrapper:is(.grid,.grid-2) .tvproduct-name {
  text-align: start;
}

#wrapper .product-miniature .tvproduct-wrapper:is(.grid,.grid-2) .tvproduct-name .product-title {
  margin-block: .3rem;
  line-height: 1.3;
  text-wrap: pretty;
}
