/* Twoje nadpisania styli */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

html,
body,
button,
input,
select,
textarea,
.btn,
.nav-link,
.dropdown-item,
.product-title,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Open Sans', Arial, sans-serif !important;
}

body {
  background: #2e323b url('../img/bg-kdl.jpeg') center top / cover no-repeat fixed !important; /* use full-bleed image without grid */
}

#wrapper,
#content-wrapper,
.page-content {
  background-color: transparent !important;
}

#wrapper > .container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 252, 254, 0.96), rgba(244, 247, 251, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  box-shadow: 0 20px 36px rgba(9, 15, 25, 0.24);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

#wrapper > .container::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 159, 218, 0.2), rgba(0, 159, 218, 0));
  pointer-events: none;
}

#main h1,
#main .h1,
#main h2,
#main .h2,
#main h3,
#main .h3 {
  color: #202a35;
}

#wrapper .breadcrumb {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce4ee;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(12, 25, 40, 0.08);
  margin-bottom: 1rem;
}

#main .block-category,
#main .products-selection,
#main #search_filters_wrapper,
#main .cart-grid-body,
#main .cart-grid-right,
#main #content .checkout-step,
#product .images-container,
#product .product-information,
#product .tabs {
  background: #ffffff;
  border: 1px solid #dde5ef;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(14, 28, 44, 0.08);
}

#main .block-category,
#main .products-selection,
#main #search_filters_wrapper,
#main .cart-grid-body,
#main .cart-grid-right {
  padding: 1rem 1.1rem;
}

#product .images-container,
#product .product-information,
#product .tabs {
  padding: 1rem;
}

#main .products .product-miniature .thumbnail-container,
#product .featured-products .products .product-miniature .thumbnail-container,
#product .product-accessories .products .product-miniature .thumbnail-container {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(16, 30, 45, 0.09);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#main .products .product-miniature .thumbnail-container:hover,
#product .featured-products .products .product-miniature .thumbnail-container:hover,
#product .product-accessories .products .product-miniature .thumbnail-container:hover {
  transform: translateY(-3px);
  border-color: #c8d8ea;
  box-shadow: 0 12px 24px rgba(16, 30, 45, 0.15);
}

#main .products .product-miniature .product-description,
#product .featured-products .products .product-miniature .product-description,
#product .product-accessories .products .product-miniature .product-description {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid #edf2f7;
  padding: 0.95rem 1rem 1rem;
}

#main .products .product-miniature .product-title a,
#product .featured-products .products .product-miniature .product-title a,
#product .product-accessories .products .product-miniature .product-title a {
  color: #21303f;
  font-weight: 700;
}

/* Product miniatures: always show full title with wrapping */
#products .product-miniature .product-title,
.featured-products .product-miniature .product-title,
.product-accessories .product-miniature .product-title,
#products .product-miniature .product-title a,
.featured-products .product-miniature .product-title a,
.product-accessories .product-miniature .product-title a {
  display: block;
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#main .products .product-miniature .product-title a:hover,
#main .products .product-miniature .product-title a:focus,
#product .featured-products .products .product-miniature .product-title a:hover,
#product .featured-products .products .product-miniature .product-title a:focus,
#product .product-accessories .products .product-miniature .product-title a:hover,
#product .product-accessories .products .product-miniature .product-title a:focus {
  color: var(--kdl-brand-primary);
}

#main .products .product-miniature .price,
#product .featured-products .products .product-miniature .price,
#product .product-accessories .products .product-miniature .price {
  color: #0f7ea4;
  font-weight: 700;
}

#main .products .js-product,
#product .featured-products .products .js-product,
#product .product-accessories .products .js-product {
  display: flex;
  margin-bottom: 0.9rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

#main .products .js-product .product-miniature,
#product .featured-products .products .js-product .product-miniature,
#product .product-accessories .products .js-product .product-miniature {
  width: 100%;
  display: flex;
}

#main .products .product-miniature .thumbnail-container,
#product .featured-products .products .product-miniature .thumbnail-container,
#product .product-accessories .products .product-miniature .thumbnail-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#main .products .product-miniature .product-description,
#product .featured-products .products .product-miniature .product-description,
#product .product-accessories .products .product-miniature .product-description {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#main .products .product-miniature .product-price-and-shipping,
#product .featured-products .products .product-miniature .product-price-and-shipping,
#product .product-accessories .products .product-miniature .product-price-and-shipping {
  margin-top: auto;
}

#main .products .product-miniature .product-thumbnail,
#product .featured-products .products .product-miniature .product-thumbnail,
#product .product-accessories .products .product-miniature .product-thumbnail {
  height: auto;
}

#main .products .product-miniature .product-thumbnail img,
#product .featured-products .products .product-miniature .product-thumbnail img,
#product .product-accessories .products .product-miniature .product-thumbnail img {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

#product .product-cover {
  border-radius: 10px;
}

#product .images-container .product-images > li.thumb-container .thumb {
  border-radius: 8px;
}

#product .product-weee-notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #cce3f2;
  border-left: 4px solid #0f7ea4;
  border-radius: 8px;
  background: #f4fbff;
}

#product .product-weee-notice .h6 {
  margin-bottom: 0.5rem;
  color: #123a55;
}

#product .product-weee-notice p:last-child {
  margin-bottom: 0;
}

#product .product-information .current-price .current-price-value {
  color: #0f7ea4;
}

@media (max-width: 767px) {
  #wrapper > .container {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 22px rgba(9, 15, 25, 0.2);
  }

  #wrapper > .container::before {
    display: none;
  }

  #main .block-category,
  #main .products-selection,
  #main #search_filters_wrapper,
  #main .cart-grid-body,
  #main .cart-grid-right,
  #main #content .checkout-step,
  #product .images-container,
  #product .product-information,
  #product .tabs {
    padding: 0.85rem;
    border-radius: 10px;
  }
}

/* Footer: dark background to match the top surround */
#footer .footer-container {
  background: rgba(32, 36, 44, 0.9) !important; /* overlay to stay legible on the textured background */
  color: #f1f3f7;
}

#footer .footer-container a {
  color: #dce2eb;
}

#footer .kdl-footer-separator {
  display: inline-block;
  margin: 0 0.4rem;
  color: rgba(220, 226, 235, 0.75);
}

#footer .kdl-cookie-settings-link {
  font-weight: 700;
  text-decoration: underline;
}

#footer .footer-container .h3,
#footer .footer-container h3,
#footer .footer-container h4 {
  color: #ffffff;
}

#footer .footer-container .block-contact,
#footer .footer-container .links,
#footer .footer-container .links ul > li {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Header: dark overlay to match background */
#header,
#header .header-nav,
#header .header-top {
  background: rgba(18, 21, 28, 0.96) !important;
  color: #ffffff;
}

#header a,
#header .header-nav a,
#header .header-top a {
  color: #ffffff;
}

#header .header-nav .menu > li > a {
  color: #e9edf5;
  font-weight: 600;
}

#header .header-nav .menu > li > a:hover,
#header .header-nav .menu > li > a:focus {
  color: #ffffff;
}

#header .header-top .search-widget input[type="text"],
#header .header-top #search_widget form input[type="text"],
#search_widget form input[type="text"] {
  background: #1a1d25;
  color: #ffffff;
  border: 1px solid rgba(242, 76, 61, 0.38);
  border-radius: var(--kdl-control-radius);
  box-shadow: 0 0 0 1px rgba(242, 76, 61, 0.14);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#header .header-top .search-widget input[type="text"]::placeholder,
#header .header-top #search_widget form input[type="text"]::placeholder,
#search_widget form input[type="text"]::placeholder {
  color: #cfd5e0;
}

#header .header-top .search-widget input[type="text"]:focus,
#header .header-top #search_widget form input[type="text"]:focus,
#search_widget form input[type="text"]:focus {
  background: #1f2430;
  border-color: rgba(242, 76, 61, 0.95);
  box-shadow: 0 0 0 3px rgba(242, 76, 61, 0.24);
}

#search_widget form i.search,
#search_widget form i.clear {
  color: rgba(255, 255, 255, 0.9);
}

.ui-autocomplete.searchbar-autocomplete {
  border: 1px solid rgba(242, 76, 61, 0.32);
  border-radius: var(--kdl-control-radius);
  box-shadow: 0 10px 20px rgba(16, 24, 34, 0.18);
  overflow: hidden;
}

.ui-autocomplete.searchbar-autocomplete li a:hover {
  background-color: rgba(242, 76, 61, 0.1);
}

#header .material-icons,
#header .shopping-cart .material-icons {
  color: #e9edf5;
}

/* Cart button: ensure strong contrast */
#header .cart-preview,
#header .shopping-cart {
  background: #f24c3d !important;
  color: #ffffff !important;
  border-radius: 6px;
}

#header .shopping-cart a,
#header .shopping-cart .material-icons {
  color: #ffffff !important;
}

#header .shopping-cart:hover,
#header .shopping-cart:focus {
  background: #d73f32 !important;
}

.product-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: #2b2b2b;
}

.product-meta-item .label {
  margin-right: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #6c757d;
}

.product-meta-item .value {
  font-weight: 700;
}

.product-manufacturer-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e9ef;
}

.product-manufacturer-footer__name {
  margin: 0;
  font-weight: 700;
}

.product-manufacturer-footer__note {
  margin: 0.4rem 0 0;
  font-weight: 600;
  color: #212529;
}

.product-manufacturer-footer__details {
  margin-top: 0.75rem;
  color: #212529;
  font-style: normal;
}

.product-manufacturer-footer__details div:last-child,
.product-manufacturer-footer__details p:last-child {
  margin-bottom: 0;
}

.product-manufacturer-footer__email {
  margin: 0.75rem 0 0;
}

.product-tabs-full {
  margin-top: 2rem;
}

.product-tabs-full .tabs {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.product-tabs-full .nav-tabs {
  margin-bottom: 1rem;
}

.product-tabs-full .tab-content {
  padding-top: 0.25rem;
}

/* Footer newsletter: visual refresh aligned with dark site shell */
#footer .block_newsletter {
  margin: 1.25rem auto 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 20, 27, 0.84), rgba(28, 34, 45, 0.92));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

#footer .block_newsletter #block-newsletter-label {
  margin: 0;
  padding-top: 0.4rem;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

#footer .block_newsletter .input-wrapper {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#footer .block_newsletter .input-wrapper:focus-within {
  border-color: rgba(242, 76, 61, 0.9);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(242, 76, 61, 0.24);
}

#footer .block_newsletter input[type="email"] {
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: #ffffff;
}

#footer .block_newsletter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

#footer .block_newsletter input[type="email"]:focus {
  outline: none;
}

#footer .block_newsletter .btn.btn-primary {
  min-width: 8.25rem;
  margin-left: 0.75rem;
  border-color: #f24c3d;
  border-radius: 999px;
  background: #f24c3d;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#footer .block_newsletter .btn.btn-primary:hover,
#footer .block_newsletter .btn.btn-primary:focus {
  border-color: #d73f32;
  background: #d73f32;
  transform: translateY(-1px);
}

#footer .block_newsletter .btn.btn-primary:active {
  transform: translateY(0);
}

#footer .block_newsletter .alert {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.45;
}

#footer .block_newsletter .alert-success {
  color: #f3fff6;
  background: linear-gradient(135deg, rgba(34, 118, 73, 0.88), rgba(52, 148, 96, 0.92));
  border-color: rgba(142, 228, 178, 0.42);
  box-shadow: 0 10px 20px rgba(14, 48, 30, 0.22);
}

#footer .block_newsletter .alert-danger {
  color: #fff5f4;
  background: linear-gradient(135deg, rgba(151, 51, 43, 0.9), rgba(192, 69, 58, 0.94));
  border-color: rgba(255, 196, 189, 0.42);
  box-shadow: 0 10px 20px rgba(62, 18, 15, 0.24);
}

#footer .block_newsletter .form-control-comment,
#footer .block_newsletter .block_newsletter_alert {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 767px) {
  #footer .block_newsletter {
    margin: 1rem auto 1.5rem;
    padding: 1rem;
  }

  #footer .block_newsletter #block-newsletter-label {
    margin-bottom: 0.75rem;
    padding-top: 0;
    font-size: 0.98rem;
  }

  #footer .block_newsletter .btn.btn-primary.hidden-sm-up {
    float: none !important;
    width: 100%;
    min-width: 0;
    margin: 0 0 0.65rem;
  }
}

/* Brand color overrides */
:root {
  --kdl-brand-primary: #009fda;
  --kdl-brand-primary-hover: #0088bb;
  --kdl-brand-primary-soft: #e6f6fc;
  --kdl-accent-red: #f24c3d;
  --kdl-accent-red-hover: #d73f32;
  --kdl-accent-red-soft: rgba(242, 76, 61, 0.24);
  --kdl-control-radius: 12px;
}

a,
.text-primary {
  color: var(--kdl-brand-primary);
}

a:hover,
a:focus,
.text-primary:hover,
.text-primary:focus {
  color: var(--kdl-brand-primary-hover);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: var(--kdl-brand-primary) !important;
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle {
  background-color: var(--kdl-brand-primary-hover) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background-color: var(--kdl-brand-primary) !important;
  border-color: transparent;
}

.product-add-to-cart .add-to-cart,
.product-add-to-cart .add-to-cart:focus,
.product-add-to-cart .add-to-cart:active {
  background-color: var(--kdl-brand-primary) !important;
  border-color: var(--kdl-brand-primary) !important;
}

.product-add-to-cart .add-to-cart:hover {
  background-color: var(--kdl-brand-primary-hover) !important;
  border-color: var(--kdl-brand-primary-hover) !important;
}

.badge-primary,
.bg-primary {
  background-color: var(--kdl-brand-primary) !important;
}

.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link:hover,
.product-tabs-full .nav-tabs .nav-link.active,
.product-tabs-full .nav-tabs .nav-link:hover {
  color: var(--kdl-brand-primary);
}

.pagination .current a,
.pagination .current span {
  background-color: var(--kdl-brand-primary);
  border-color: var(--kdl-brand-primary);
}

.custom-checkbox input[type="checkbox"] + span .checkbox-checked {
  color: var(--kdl-brand-primary);
}

#header .top-menu a:hover,
#header .top-menu a:focus,
#header .top-menu .sub-menu a:hover,
#header .top-menu .sub-menu a:focus,
#mobile_top_menu_wrapper .top-menu a:hover,
#mobile_top_menu_wrapper .top-menu a:focus {
  color: var(--kdl-brand-primary) !important;
}

#header .top-menu a[data-depth="0"]:hover,
#header .top-menu a[data-depth="0"]:focus,
#header .top-menu a[data-depth="1"]:hover,
#header .top-menu a[data-depth="1"]:focus,
#header .top-menu .sub-menu a.dropdown-item:hover,
#header .top-menu .sub-menu a.dropdown-item:focus {
  color: var(--kdl-brand-primary) !important;
}

#header .header-top .menu .current > a,
#header .header-top .menu .active > a {
  color: var(--kdl-brand-primary) !important;
}

/* Desktop top menu: readable and vertical first-level submenu items */
@media (min-width: 768px) {
  #_desktop_top_menu .top-menu[data-depth="0"] > li {
    position: relative;
  }

  #_desktop_top_menu .top-menu[data-depth="0"] > li > .sub-menu {
    left: 0;
    right: auto;
    width: 20rem;
    min-width: 20rem;
    max-width: min(26rem, calc(100vw - 2rem));
    margin-left: 0;
    padding: 0.55rem;
    border: 1px solid #d9e3ef;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(14, 28, 44, 0.14);
    overflow: visible;
  }

  #_desktop_top_menu .top-menu .sub-menu,
  #_desktop_top_menu .top-menu .sub-menu .top-menu,
  #_desktop_top_menu .top-menu .sub-menu .collapse {
    background-color: #ffffff;
  }

  #_desktop_top_menu .top-menu .sub-menu a,
  #_desktop_top_menu .top-menu .sub-menu a.dropdown-item {
    color: #2f3c48 !important;
    display: block;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] {
    display: block !important;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    position: relative;
    margin: 0;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li > a {
    position: relative;
    padding: 0.55rem 2rem 0.55rem 0.8rem;
    border-radius: 10px;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li > a.dropdown-submenu::after {
    content: "›";
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9cad;
    font-size: 1.1rem;
    line-height: 1;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li > .collapse {
    display: none !important;
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 20rem;
    max-width: min(26rem, calc(100vw - 24rem));
    max-height: min(70vh, 34rem);
    overflow: auto;
    padding: 0.55rem;
    border: 1px solid #d9e3ef;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(14, 28, 44, 0.14);
    z-index: 30;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li:hover > .collapse,
  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li:focus-within > .collapse {
    display: block !important;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="2"] {
    display: block !important;
    margin: 0;
    padding: 0;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="2"] > li {
    display: block !important;
    margin: 0;
    width: 100% !important;
  }

  #_desktop_top_menu .top-menu .sub-menu ul[data-depth="2"] > li > a {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }
}

.product-flags li.product-flag.new,
.product-flag.new,
.products .product-miniature .product-flag.new {
  background-color: var(--kdl-brand-primary) !important;
  color: #ffffff !important;
}

.product-flags li.product-flag,
.products .product-miniature .product-flag {
  border-color: var(--kdl-brand-primary) !important;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--kdl-accent-red) !important;
  box-shadow: 0 0 0 0.2rem rgba(242, 76, 61, 0.2) !important;
}

.custom-radio input[type="radio"]:checked + span,
.custom-checkbox input[type="checkbox"]:checked + span,
.radio-inline .custom-radio input[type="radio"]:checked + span {
  border-color: var(--kdl-brand-primary) !important;
}

.contact-form input[type="file"] {
  border: 1px solid #d1d9e0;
  border-radius: 4px;
  padding: 0.3rem;
  background: #ffffff;
  color: #495057;
}

.contact-form input[type="file"]::file-selector-button {
  background: var(--kdl-brand-primary);
  color: #ffffff;
  border: 1px solid var(--kdl-brand-primary);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  margin-right: 0.65rem;
  cursor: pointer;
}

.contact-form input[type="file"]:hover::file-selector-button {
  background: var(--kdl-brand-primary-hover);
  border-color: var(--kdl-brand-primary-hover);
}

.contact-form input[type="file"]::-webkit-file-upload-button {
  background: var(--kdl-brand-primary);
  color: #ffffff;
  border: 1px solid var(--kdl-brand-primary);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  margin-right: 0.65rem;
  cursor: pointer;
}

.contact-form input[type="file"]:hover::-webkit-file-upload-button {
  background: var(--kdl-brand-primary-hover);
  border-color: var(--kdl-brand-primary-hover);
}

.contact-hotline__number {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.contact-hotline__number:hover,
.contact-hotline__number:focus {
  color: var(--kdl-brand-primary);
}

.bootstrap-filestyle .btn,
.bootstrap-filestyle .btn-default,
.bootstrap-filestyle .group-span-filestyle label.btn {
  background: var(--kdl-brand-primary) !important;
  border-color: var(--kdl-brand-primary) !important;
  color: #ffffff !important;
}

.bootstrap-filestyle .btn:hover,
.bootstrap-filestyle .btn-default:hover,
.bootstrap-filestyle .group-span-filestyle label.btn:hover {
  background: var(--kdl-brand-primary-hover) !important;
  border-color: var(--kdl-brand-primary-hover) !important;
}

/* Unified controls: rounded corners + subtle red accent like newsletter */
button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.bootstrap-touchspin .btn,
.bootstrap-filestyle .btn,
.bootstrap-filestyle .btn-default,
.bootstrap-filestyle .group-span-filestyle label.btn,
#header .cart-preview,
#header .shopping-cart,
.product-tabs-full .tabs,
.page-index .page-home-left-column .block-categories,
.contact-form input[type="file"],
.contact-form input[type="file"]::file-selector-button,
.contact-form input[type="file"]::-webkit-file-upload-button {
  border-radius: var(--kdl-control-radius) !important;
}

.form-control,
.custom-select,
.select-title,
.bootstrap-touchspin input.form-control,
#quantity_wanted,
.js-cart-line-product-quantity {
  border-radius: var(--kdl-control-radius) !important;
  border-color: var(--kdl-accent-red-soft);
}

.input-group .form-control,
.input-group .input-group-btn > .btn,
.bootstrap-touchspin .input-group-btn-vertical > .btn.bootstrap-touchspin-up,
.bootstrap-touchspin .input-group-btn-vertical > .btn.bootstrap-touchspin-down {
  border-radius: var(--kdl-control-radius) !important;
}

.btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.bootstrap-touchspin .btn {
  box-shadow: 0 0 0 1px rgba(242, 76, 61, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
.bootstrap-touchspin .btn:hover,
.bootstrap-touchspin .btn:focus {
  box-shadow: 0 0 0 2px rgba(242, 76, 61, 0.28), 0 8px 16px rgba(242, 76, 61, 0.14);
}

/* Homepage left categories layout */
.page-index .page-home-layout {
  margin-right: -15px;
  margin-left: -15px;
}

.page-index .page-home-left-column {
  margin-bottom: 1rem;
}

.page-index .page-home-left-column .block-categories {
  background: #ffffff;
  border: 1px solid #e5eaef;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}

.page-index .page-home-left-column .category-top-menu > li > a {
  color: #212529;
  font-weight: 700;
}

.page-index .page-home-left-column .category-sub-menu a {
  color: #2f3c48;
}

.page-index .page-home-left-column .category-sub-menu a:hover,
.page-index .page-home-left-column .category-sub-menu a:focus {
  color: var(--kdl-brand-primary);
}

.page-index .home-main-content > .block-categories,
.page-index .home-main-content .featured-products .block-categories {
  display: none;
}

.page-index .home-main-content #carousel {
  margin-bottom: 0.75rem;
}

.page-index .home-main-content .featured-products .products-section-title {
  margin-top: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 767px) {
  .page-index .page-home-left-column {
    order: 1;
  }

  .page-index .home-main-content {
    order: 2;
  }
}

/* Product card top: typography and global breadcrumb refresh */
#product #main .product-container {
  margin-top: 0.9rem;
}

#product .product-meta-top {
  margin-top: 0.55rem;
  gap: 0.65rem 0.85rem;
}

#product .product-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  background: linear-gradient(180deg, #f6f9fd, #eef3f9);
  border: 1px solid #d8e2ee;
  border-radius: 999px;
}

#product .product-meta-item .label {
  margin-right: 0;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #5f7387;
}

#product .product-meta-item .value,
#product .product-meta-item .value a {
  font-size: 0.88rem;
  line-height: 1.15;
  font-weight: 700;
  color: #213246;
  text-decoration: none;
}

#product .product-meta-item .value a:hover,
#product .product-meta-item .value a:focus {
  color: var(--kdl-brand-primary);
  text-decoration: none;
}

#wrapper .breadcrumb {
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0 0 1rem;
  padding: 0;
}

#wrapper .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#wrapper .breadcrumb li {
  position: relative;
  margin: 0;
  padding: 0;
}

#wrapper .breadcrumb li::before,
#wrapper .breadcrumb li::after {
  content: none !important;
}

#wrapper .breadcrumb li > a,
#wrapper .breadcrumb li > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  max-width: 100%;
  padding: 0.4rem 0.9rem;
  border: 1px solid #d0dce9;
  border-radius: 6px;
  background: #eef4fa;
  color: #2a3c4d;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}

#wrapper .breadcrumb li > a {
  padding-right: 1.1rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#wrapper .breadcrumb li > a::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -14px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 14px solid #d0dce9;
}

#wrapper .breadcrumb li > a::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 13px solid #eef4fa;
}

#wrapper .breadcrumb li:last-child > span {
  background: #e3edf8;
  border-color: #c6d7ea;
  color: #1f3143;
}

#wrapper .breadcrumb li > a:hover,
#wrapper .breadcrumb li > a:focus {
  background: #e2edf8;
  border-color: #bdcfe3;
  color: #1c3147;
  text-decoration: none;
}

#wrapper .breadcrumb li > a:hover::after,
#wrapper .breadcrumb li > a:focus::after {
  border-left-color: #e2edf8;
}

@media (max-width: 767px) {
  #product #main .product-container {
    margin-top: 0.65rem;
  }

  #product .product-meta-item {
    padding: 0.38rem 0.62rem;
  }

  #product .product-meta-item .label {
    font-size: 0.66rem;
  }

  #product .product-meta-item .value,
  #product .product-meta-item .value a {
    font-size: 0.83rem;
  }

  #wrapper .breadcrumb ol {
    gap: 0.35rem;
  }

  #wrapper .breadcrumb li {
    width: 100%;
  }

  #wrapper .breadcrumb li > a,
  #wrapper .breadcrumb li > span {
    width: 100%;
    border-radius: 6px;
  }

  #wrapper .breadcrumb li > a::before,
  #wrapper .breadcrumb li > a::after {
    display: none;
  }
}

/* Left sidebar refresh + easier category toggles */
#left-column .block-categories,
#left-column #search_filters_brands,
#left-column #search_filters_wrapper {
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  border: 1px solid #d9e3ef;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(14, 28, 44, 0.08);
  margin-bottom: 1rem;
}

#left-column #search_filters_wrapper:empty {
  display: none;
}

#left-column .block-categories {
  padding: 0.8rem 0.9rem;
}

#left-column .block-categories .category-top-menu,
#left-column .block-categories .category-sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#left-column .block-categories .category-top-menu > li > a.text-uppercase.h6 {
  display: block;
  margin-bottom: 0.45rem;
  color: #223447;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
}

#left-column .block-categories .category-sub-menu li {
  margin: 0.14rem 0;
}

#left-column .block-categories .category-item-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#left-column .block-categories .category-sub-menu li > .category-item-row > a {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  color: #2b3d4f;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"]) {
  padding-left: 0;
}

.block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"])::before,
.block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"]):before {
  content: none;
  margin-right: 0;
}

#left-column .block-categories .category-sub-menu li > .category-item-row > a:hover,
#left-column .block-categories .category-sub-menu li > .category-item-row > a:focus {
  background: #eaf2fb;
  color: #1f3348;
  text-decoration: none;
}

#left-column .block-categories .category-sub-menu li[data-depth="1"] > .category-item-row > a {
  padding-left: 0.85rem;
}

#left-column .block-categories .category-sub-menu li[data-depth="2"] > .category-item-row > a {
  padding-left: 1.2rem;
}

#left-column .block-categories .category-children {
  display: none;
}

#left-column .block-categories .category-children[hidden] {
  display: none !important;
}

#left-column .block-categories .category-children.is-open {
  display: block;
}

#left-column .block-categories .category-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a9cad;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

#left-column .block-categories .category-toggle:hover,
#left-column .block-categories .category-toggle:focus {
  background: rgba(0, 159, 218, 0.08);
  color: #1f3347;
  outline: none;
}

#left-column .block-categories .category-toggle .material-icons {
  font-size: 0.95rem;
  line-height: 1;
}

#left-column .block-categories .category-toggle[aria-expanded="true"] {
  color: #1f3347;
  transform: rotate(90deg);
}

#left-column #search_filters_wrapper {
  padding: 0.8rem 0.9rem;
}

#left-column #search_filters {
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

#left-column #search_filters > .h6.hidden-sm-down {
  margin-bottom: 0.55rem;
  color: #23384d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

#left-column #search_filters .clear-all-wrapper {
  margin-bottom: 0.65rem;
}

#left-column #search_filters .clear-all-wrapper .btn {
  width: 100%;
  border-radius: 10px;
}

#left-column #search_filters .facet {
  border-top: 1px solid #e4ecf5;
  padding: 0.72rem 0;
}

#left-column #search_filters .facet:first-child {
  border-top: 0;
}

#left-column #search_filters .facet ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#left-column #search_filters .facet ul > li {
  margin: 0.14rem 0;
  padding: 0;
  border: 0;
}

#left-column #search_filters .facet .h6,
#left-column #search_filters_brands .facet .h6 {
  color: #23384d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

#left-column #search_filters .facet .facet-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.48rem 0.55rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

#left-column #search_filters .facet .facet-label .custom-checkbox,
#left-column #search_filters .facet .facet-label .custom-radio {
  top: 0;
  margin-top: 0.1rem;
}

#left-column #search_filters .facet .facet-label a {
  width: auto;
  white-space: normal;
  line-height: 1.2;
  text-decoration: none;
}

#left-column #search_filters .facet .facet-label:hover {
  background: #eaf2fb;
}

#left-column #search_filters .facet .facet-label.active {
  background: var(--kdl-brand-primary-soft);
}

#left-column #search_filters .facet-label a,
#left-column #search_filters_brands .facet-label a {
  color: #2b3d4f;
  font-weight: 600;
}

#left-column #search_filters .facet-label a:hover,
#left-column #search_filters_brands .facet-label a:hover {
  color: var(--kdl-brand-primary);
}

/* Mobile: larger and easier taps for collapsible category/menu arrows */
@media (max-width: 767px) {
  #mobile_top_menu_wrapper,
  #mobile_top_menu_wrapper .top-menu .sub-menu {
    background: #ffffff;
  }

  #mobile_top_menu_wrapper .top-menu a,
  #mobile_top_menu_wrapper .top-menu .sub-menu a {
    color: #232323 !important;
  }

  #left-column .block-categories .category-sub-menu li[data-depth="0"] > .category-item-row > a {
    min-height: 2.55rem;
    display: flex;
    align-items: center;
  }

  #left-column .block-categories .category-toggle {
    width: 1.75rem;
    height: 1.75rem;
  }

  #mobile_top_menu_wrapper .top-menu a.dropdown-item {
    display: block;
    padding: 0.8rem 3.5rem 0.8rem 0.95rem;
  }

  #mobile_top_menu_wrapper .top-menu .collapse-icons .material-icons {
    font-size: 1.35rem;
    line-height: 1;
  }

}

/* Mobile footer: force stable layout (always expanded sections) */
@media (max-width: 767px) {
  /* Fixed background on mobile can cause visible scroll jitter. */
  body {
    background-attachment: scroll !important;
  }

  #footer .footer-container {
    overflow-anchor: none;
  }

  /* Disable accordion headers on mobile to remove collapse-driven jumps. */
  #footer .footer-container .links .title,
  #footer #block_myaccount_infos .title {
    display: none !important;
  }

  /* Show desktop headers on mobile so section labels remain visible. */
  #footer .footer-container .links .wrapper > .h3.hidden-sm-down,
  #footer #block_myaccount_infos .myaccount-title.hidden-sm-down {
    display: block !important;
    margin: 0;
    padding: 0.625rem;
    background: rgba(18, 21, 28, 0.94);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  #footer #block_myaccount_infos .myaccount-title.hidden-sm-down a {
    color: #ffffff;
  }

  /* Keep all footer lists permanently visible on mobile. */
  #footer .footer-container .links ul,
  #footer #block_myaccount_infos .account-list {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
    background: rgba(18, 21, 28, 0.94);
  }

  #footer .footer-container .links ul > li,
  #footer #block_myaccount_infos .account-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  #footer .footer-container .links ul > li a,
  #footer #block_myaccount_infos .account-list > li a {
    color: #f1f3f7;
  }

  #footer .footer-container .links ul > li a:hover,
  #footer .footer-container .links ul > li a:focus,
  #footer #block_myaccount_infos .account-list > li a:hover,
  #footer #block_myaccount_infos .account-list > li a:focus {
    color: #ffffff;
  }
}

body.kdl-cookie-lock {
  overflow: hidden;
}

.kdl-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, 0.66);
}

.kdl-cookie-consent__panel {
  width: min(640px, 100%);
  border-radius: 14px;
  border: 1px solid #d7e3ef;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(12, 25, 40, 0.3);
  padding: 1.25rem;
}

.kdl-cookie-consent__title {
  margin: 0;
  font-size: 1.35rem;
  color: #1f3347;
}

.kdl-cookie-consent__description {
  margin: 0.7rem 0 1rem;
  color: #30485d;
  line-height: 1.5;
}

.kdl-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.kdl-cookie-consent__btn {
  min-height: 2.5rem;
  font-weight: 700;
  flex: 1 1 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.kdl-cookie-consent__btn-secondary {
  font-weight: 400;
}

.kdl-cookie-consent .btn.btn-primary {
  color: #ffffff !important;
}

.kdl-cookie-consent .btn.btn-outline-secondary {
  color: #1f3347 !important;
  background: #ffffff !important;
  border-color: #d3dde8 !important;
}

.kdl-cookie-consent .btn.btn-outline-secondary:hover,
.kdl-cookie-consent .btn.btn-outline-secondary:focus {
  color: #163247 !important;
  background: #f1f7fd !important;
  border-color: #bfd0e0 !important;
}

.kdl-cookie-consent__settings {
  margin-top: 1rem;
  border-top: 1px solid #dfe7f1;
  padding-top: 1rem;
}

.kdl-cookie-consent__setting-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #f7fbff;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.8rem;
}

.kdl-cookie-consent__setting-text {
  display: block;
  flex: 1 1 auto;
}

.kdl-cookie-consent__setting-label {
  display: block;
  color: #1f3347;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.kdl-cookie-consent__setting-hint {
  display: block;
  color: #3e576e;
  line-height: 1.4;
}

.kdl-cookie-consent__switch {
  flex: 0 0 9.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.kdl-cookie-consent__switch input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}

.kdl-cookie-consent__switch input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.kdl-cookie-consent__always-on {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #d8eaf8;
  color: #1a4563;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kdl-cookie-consent__btn-save {
  min-height: 2.5rem;
}

@media (max-width: 767px) {
  .kdl-cookie-consent__panel {
    padding: 1rem;
    border-radius: 11px;
  }

  .kdl-cookie-consent__title {
    font-size: 1.15rem;
  }

  .kdl-cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kdl-cookie-consent__actions .kdl-cookie-consent__btn,
  .kdl-cookie-consent__btn-save {
    width: 100%;
    text-align: center;
  }

  .kdl-cookie-consent__setting-row {
    gap: 0.65rem;
  }
}

.blockcart .cart-products .product-attributes {
  display: block;
  margin: 0.25rem 0;
  color: #6c757d;
  font-size: 0.8125rem;
}

.blockcart .cart-products .product-attribute {
  display: block;
}

/* Category page: hide duplicated subcategory tiles, navigation remains in left column */
#category #subcategories {
  display: none;
}

/* CMS 3/5: keep legal page styling in theme CSS so BO editing cannot strip it with inline <style>. */
.cms-delivery,
.cms-legal,
.cms-returns {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px;
  color: #1f2933;
  font-size: 16px;
  line-height: 1.75;
}

.cms-delivery h3,
.cms-legal h3 {
  margin: 0 0 8px;
  color: #0f172a;
  line-height: 1.4;
  text-align: center;
}

.cms-delivery > p,
.cms-delivery p,
.cms-legal > p,
.cms-legal p,
.cms-returns p {
  margin: 0 0 14px;
}

.cms-delivery h4,
.cms-legal h4,
.cms-returns h4 {
  margin: 30px 0 12px;
  padding: 10px 14px;
  background: #f3f6f8;
  border-left: 4px solid #0b6bcb;
  color: #0f172a;
  font-size: 1.06rem;
  line-height: 1.45;
}

.cms-delivery h5,
.cms-legal h5,
.cms-returns h5 {
  margin: 18px 0 10px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.45;
}

.cms-delivery ul,
.cms-delivery ol,
.cms-legal ol,
.cms-legal ul,
.cms-returns ol,
.cms-returns ul {
  margin: 0 0 18px;
  padding: 0;
}

.cms-delivery ul {
  list-style: none;
}

.cms-delivery li,
.cms-legal li,
.cms-returns li {
  margin: 0 0 12px;
}

.cms-delivery li {
  padding: 12px 14px;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  background: #f8fbff;
}

.cms-legal li,
.cms-returns li {
  padding-left: 4px;
}

.cms-delivery li > ol,
.cms-delivery li > ul,
.cms-legal li > ol,
.cms-legal li > ul,
.cms-returns li > ol,
.cms-returns li > ul {
  margin-top: 8px;
}

.cms-delivery strong,
.cms-legal strong,
.cms-returns strong {
  color: #0f172a;
}

.cms-delivery small {
  display: inline-block;
  margin-top: 4px;
  color: #475569;
  font-size: 0.92rem;
}

.cms-delivery a,
.cms-returns a {
  color: #0b6bcb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cms-legal .cms-annex {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid #dbe5ee;
  background: #f8fbff;
  border-radius: 8px;
}

.cms-legal .cms-annex h4,
.cms-returns .cms-note h4,
.cms-returns .cms-note h5 {
  margin-top: 0;
}

.cms-legal .dots-line {
  display: inline-block;
  width: 36ch;
  max-width: 100%;
  min-height: 1.1em;
  margin-left: 6px;
  border-bottom: 1px dotted #4b5563;
  vertical-align: bottom;
}

.cms-returns .cms-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid #f3caca;
  background: #fff8f8;
  border-radius: 8px;
}

.cms-delivery .cms-delivery-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid #f3caca;
  background: #fff8f8;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .cms-delivery,
  .cms-legal,
  .cms-returns {
    padding: 20px 14px;
    font-size: 15px;
    line-height: 1.65;
  }

  .cms-delivery h4,
  .cms-legal h4,
  .cms-returns h4 {
    margin-top: 24px;
    padding: 9px 12px;
    font-size: 1rem;
  }

  .cms-delivery li,
  .cms-delivery .cms-delivery-note,
  .cms-legal .cms-annex,
  .cms-returns .cms-note {
    padding: 12px;
  }

  .cms-legal .dots-line {
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}
