/*!
Theme Name: Hyväkone 2025
Template: kadence
Text Domain: hyvakone
*/

/* MENU */
header {
    border-bottom: 1px solid #DAD8D2;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a {
    position: relative;
    padding: 22px 20px;
}
.main-navigation .primary-menu-container > ul > li.menu-item:last-child > a:after {
    display: none;
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
    width: auto;
    white-space: nowrap;
}
.main-navigation .sub-menu {
    padding: 20px 10px !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* MEGAMENU */
#masthead {
    position: relative;
    z-index: 1100;
    overflow: visible;
}
.site-bottom-header-wrap .site-header-row-container-inner {
    position: relative;
    height: 70px;
    background: transparent !important;
    overflow: visible;
    z-index: 99999;
}

.site-bottom-header-wrap .site-header-row-container-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--mega-header-height, 70px);
    background-color: #fff;
    pointer-events: none;
    z-index: 0;
    transition: height 220ms ease, background-color 220ms ease;
}

.site-bottom-header-wrap .site-header-row-container-inner.mega-menu-open::before {
    background-color: #d1d0ca;
}

.site-bottom-header-wrap .site-header-row-container-inner > * {
    position: relative;
    z-index: 1;
}

#site-navigation .primary-menu-container > .menu > .has-mega-promo {
    position: relative;
}

#site-navigation .primary-menu-container > .menu > .has-mega-promo > .mega-menu-submenu {
    position: absolute !important;
    top: 100% !important;
    left: var(--mega-panel-left, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: var(--mega-items-offset, 50%) max-content 1fr;
    grid-auto-rows: min-content;
    align-items: start;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px 0 !important;
    list-style: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: 9999;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 150ms ease, visibility 150ms ease;
    clip: auto !important;
    overflow: visible !important;
    transform-origin: top center !important;
    box-sizing: border-box !important;
}

#site-navigation .primary-menu-container > .menu > .has-mega-promo:hover > .mega-menu-submenu,
#site-navigation .primary-menu-container > .menu > .has-mega-promo:focus-within > .mega-menu-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#site-navigation .mega-menu-submenu > .mega-menu-promo {
    position: static !important;
    grid-column: 1;
    grid-row: 1 / span 100;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 40px !important;
    background: transparent !important;
    list-style: none;
    pointer-events: none;
}

#site-navigation .mega-menu-promo-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 40px;
}

#site-navigation .mega-menu-promo__image {
    flex: 0 0 280px;
    width: 280px;
}

#site-navigation .mega-menu-promo__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 280px;
    max-height: 280px;
    margin: 0;
    object-fit: contain;
}

#site-navigation .mega-menu-promo__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #111;
}

#site-navigation .mega-menu-promo__text > :first-child {
    margin-top: 0;
}

#site-navigation .mega-menu-promo__text > :last-child {
    margin-bottom: 0;
}

#site-navigation .mega-menu-promo__text p {
    margin-top: 0;
    margin-bottom: 0.75em;
}

#site-navigation .mega-menu-promo__text strong {
    font-weight: 700;
}

/* Promon sisältörakenne (ACF WYSIWYG) + linkki: koko kortti klikattava */
.mega-menu-promo .mega-promo-kicker {
    margin-bottom: 4px !important;
    color: #c91c1c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#site-navigation .mega-menu-promo__text h3,
#site-navigation .mega-menu-promo__text h4 {
    margin: 0 0 6px;
    color: #18364f;
    font-size: 22px;
    line-height: 1.2;
}

#site-navigation .mega-menu-promo__text ul {
    margin: 0 0 0.75em;
    padding-left: 1.1em;
    font-size: 16px;
    line-height: 1.45;
}

#site-navigation .mega-menu-promo__text .mega-promo-price {
    margin-bottom: 2px;
    color: #c91c1c;
    font-size: 20px;
}

#site-navigation .mega-menu-promo__text .mega-promo-small {
    font-size: 14px;
    color: #555;
}

#site-navigation .mega-menu-promo-content.has-link {
    position: relative;
}

#site-navigation .mega-menu-promo__link {
    display: inline-block;
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #c91c1c;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    pointer-events: auto;
    transition: background-color 150ms ease;
}

#site-navigation .mega-menu-promo__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

#site-navigation .mega-menu-promo-content.has-link:hover .mega-menu-promo__link,
#site-navigation .mega-menu-promo__link:focus-visible {
    background: #a51616;
}

#site-navigation .mega-menu-promo__link:focus-visible {
    outline: 2px solid #18364f;
    outline-offset: 2px;
}

#site-navigation .mega-menu-submenu > .menu-item {
    display: block !important;
    position: relative !important;
    grid-column: 2;
    float: none !important;
    width: max-content !important;
    min-width: 300px;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    transform: none !important;
}

#site-navigation .mega-menu-submenu > .menu-item > a {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 5px 20px !important;
    background: transparent !important;
    border: 0 !important;
    color: #18364f;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none !important;
}

#site-navigation .mega-menu-submenu > .menu-item > a:hover,
#site-navigation .mega-menu-submenu > .menu-item > a:focus {
    color: #c91c1c;
    background: transparent !important;
}

#site-navigation .mega-menu-promo-template {
    display: none !important;
}

#site-navigation .mega-menu-submenu > .current-menu-item > a,
#site-navigation .mega-menu-submenu > .current-menu-ancestor > a {
    color: #c91c1c;
}

@media (max-width: 1024px) {
    .site-bottom-header-wrap .site-header-row-container-inner::before {
        height: 70px !important;
    }

    .site-bottom-header-wrap .site-header-row-container-inner.mega-menu-open::before {
        background-color: #fff;
    }

    #site-navigation .primary-menu-container > .menu > .has-mega-promo > .mega-menu-submenu {
        position: static !important;
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    #site-navigation .mega-menu-submenu > .mega-menu-promo {
        display: none !important;
    }

    #site-navigation .mega-menu-submenu > .menu-item {
        width: 100% !important;
        min-width: 0;
        margin: 0 !important;
    }

    #site-navigation .mega-menu-submenu > .menu-item > a {
        white-space: normal;
    }
}

/* FONTS */
.single-content figure.wp-block-image {
    margin-bottom: 20px;
}
.single-content figure + h3 {
    margin-top: 0;
}

/* SEARCH */
#main-header .site-header-upper-wrap .site-header-main-section-left,
#main-header .site-header-upper-wrap .site-header-main-section-left .site-header-item,
#main-header .site-header-upper-wrap .site-header-main-section-left .header-html {
    width: 90%; 
}
#main-header .product-search-results-content a {
    color: #333;
    text-decoration: none;
}
#main-header .product-search-results-content .entry {
    box-shadow: none;
    border-radius: 0;
}
#main-header .product-search-results .entry span.title {
    font-size: 14px;
}
#main-header .product-search-results .entry span.description {
    font-size: 12px;
}

/* MENU CART */
.header-cart-button .header-cart-total {
    background: #ec1d23;
    color: #ffffff;
}

/* MOBILE */
#mobile-header .site-bottom-header-wrap .site-header-bottom-section-center,
#mobile-header .site-bottom-header-wrap .site-header-bottom-section-center .site-header-item,
#mobile-header .mobile-html {
    width: 100%;
}

/* GLOBAL */
strong {
    font-weight: 900;
}
th {
  text-align: left;
}
td, th {
  padding: 0;
}

/* BREADCRUMBS */

.kadence-breadcrumbs {
    width: 100%;
	max-width: var(--global-content-width);
    margin: 0 auto !important;
    padding: 10px var(--global-content-edge-padding);
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    color: #243F55;
}
.kadence-breadcrumbs a {
	text-decoration: none;
	color: #243F55;
}
/*
.kadence-breadcrumbs .kadence-bc-home span {
	display: none;
}
.kadence-breadcrumbs .kadence-bc-home:before {
	content: "";
	display: inline-block;
	height: 20px;
	width: 20px;
	background-image: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path style="fill:%23C4C4C4;" d="M32 19l-6-6v-9h-4v5l-6-6-16 16v1h4v10h10v-6h4v6h10v-10h4z"></path></svg>');
	background-repeat: no-repeat;
	background-size: contain;
	transform: translateY(4px);
}
.kadence-breadcrumbs .bc-delimiter {
	padding: 0 5px;
}
.single-product .kadence-breadcrumbs {
    margin-top: 0;
}
*/

/* WOOCOMMERCE CATEGORY LIST WIDGET */
#woocommerce_product_categories-2 h2 {
	display: none;
}
.product-categories .children .children .children a {
	padding-left: 40px;
}
ul.product-categories {
    border: 1px solid #243E55 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
ul.product-categories li.current-cat .children a,
ul.product-categories li.current-cat-parent .children a {
	background: #243e550d;
}
.product-categories {
	border-top: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
}
.product-categories ul {
	list-style: none;
	padding: 0 !important;
	margin: 0 !important;
}
.product-categories > li {
	border: 0 !important;
}
.product-categories li.valiotsikko {
	border:none;
	padding-top: 7px;
	padding-left: 10px;
}
.product-categories .cat-item a {
	background: #fff;
	display: block !important;
	padding: 5px 10px !important;
	border-bottom: 1px solid #ebebeb !important;
    line-height: 1.3em !important;
}
.product-categories > .cat-item a {
    padding: 10px 10px !important;
    text-align: left;
    text-decoration: none;
    color: #243F55;
}
.product-categories > .cat-item .children a {
    padding: 3px 10px !important;
    text-align: left;
}
ul.product-categories li.cat-item.current-cat > a {
    background: var(--global-palette1) !important;
    color: #fff;
    font-weight: 700 !important;
}
.product-categories .cat-item {
	margin-bottom: 0 !important;
}
.product-categories .current-cat > a,
.product-categories .current-cat-parent > a {
	background: #efefef;
}
.product-categories .current-cat-parent > a {
	font-weight: 700 !important;
	background: #e2e2e2;
	border-bottom: 1px solid #c9c9c9;
}
.product-categories .cat-item .children a:before {
	content: "» ";
}
.product-categories .children .children a {
    padding-left: 20px;
}
.woocommerce.widget_product_categories>ul li.cat-parent.sub-toggle-active>.kadence-cat-toggle-sub {
	background: none;
}
.woocommerce.widget_product_categories > ul li.current-cat-parent .kadence-cat-toggle-sub {
    color: var(--global-palette3) !important;
    height: 43px;
}
.woocommerce.widget_product_categories>ul li.current-cat .kadence-cat-toggle-sub {
	height: 43px;
	color: #fff !important;
    border: 0 !important;
}


/* PRODUCT SEARCH */
form.product-search-form {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
}
input.product-search-field {
    border-radius: 50px 0 0 50px !important;
    background-color: #fff !important;
    width: 35vw !important;
    max-width: 100%;
    transition: all 0.2s ease-in-out;
    height: 40px;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-left: 20px !important;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
}
form.product-search-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    margin: 0 0 0 4px !important;
    padding: 0 18px 0 16px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: #BD1D1E;
    color: #DAD8D2;
    font-size: 14px;
    font-weight: 700 !important;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    float: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
form.product-search-form button[type="submit"]:hover {
    background: #BD1D1E;
}
form.product-search-form button[type="submit"]::after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DAD8D2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
}
div.product-search-form span.product-search-field-clear {
    right: 40px !important;
}
.product-search-results-content {
    border: 1px solid #243e55;
    top: 18px;
}

/* WOOCOMMERCE ARCHIVE */
header.woocommerce-products-header {
    border: 0 !important;
}
.entry-hero-container-inner {
    background: none;
}
header.product-archive-title {
  display: grid !important;
  grid-template-columns: 333px 1fr;
  align-items: start !important;
  gap: 50px;
  padding-top: 50px;
  border: 0 !important;
}
header.product-archive-title .custom-archive-description {
    text-align: left;
}
body.woocommerce.archive #primary {
    background: #DAD8D2;
    padding-top: 100px;
    padding-bottom: 100px;
    margin-bottom: 0;
}

/* Mobiilivastavuus */
@media (max-width: 768px) {
  header.product-archive-title {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  header.product-archive-title > aside,
  header.product-archive-title > h1.page-title,
  header.product-archive-title > div.archive-description {
    grid-column: 1;
    grid-row: auto;
  }
}

/* WOOCOMMERCE GENERAL*/
.woocommerce .woocommerce-message, .woocommerce .woocommerce-error, .woocommerce .woocommerce-info {
    background-color: #243e55 !important;
    color: #ffffff !important;
}
/* ARCHIVE PRODUCT ITEM */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.woocommerce ul.products li.product .entry-content-wrap {
    background: transparent;
	margin: 20px 20px;
	padding: 15px;
    text-align: left;
    border-top: 1px solid #768695;
    border-bottom: 1px solid #768695;
    border-radius: 0;
}
.woocommerce ul.products li.product .entry-content-wrap h2 {
	font-weight: 700;
}
.woocommerce ul.products li.product a.woocommerce-loop-image-link {
	background: #fff;
}
.woocommerce ul.products li.product a.button {
    display: inline-block !important;
    width: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 16px !important;
    font-weight: 600;
}
.product-details .remaining {
    color: var(--global-palette3);
    font-size: 14px;
    margin-bottom: 8px;
}
.woocommerce ul.products li.product .price {
    color: var(--global-palette1);
    font-family: var(--global-font-family-heading);
    font-weight: 800;
    font-size: 28px;
}
.woocommerce ul.products .product-details .price del span {
    color: #595959;
    font-weight: 400;
}
.woocommerce ul.products .product-details .price .woocommerce-price-suffix {
    font-weight: 400;
    display: block;
    margin-top: -10px;
    color: #243e5569;
}
.woocommerce ul.products li.product .price .from {
    color: #595959;
}

/* SINGLE PRODUCT */
div:not(.hk-vat-breakdown) > .woocommerce-Price-amount bdi,
.single-product .summary .price > .woocommerce-Price-amount bdi,
.single-product .summary .price > ins .woocommerce-Price-amount bdi {
    font-weight: 700;
    font-family: var(--global-font-family-heading);
    font-size: 40px;
    color: var(--global-palette1);
}

/* VAT breakdown (veroton + ALV) */
.hk-vat-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 10px;
    padding: 0;
    color: #6b7a86;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    font-family: var(--global-font-family-body, inherit);
}
.hk-vat-breakdown__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em 0.75em;
}
.hk-vat-breakdown__label {
    color: #6b7a86;
}
.hk-vat-breakdown__value,
.hk-vat-breakdown .woocommerce-Price-amount,
.hk-vat-breakdown .woocommerce-Price-amount bdi,
.hk-vat-breakdown .woocommerce-Price-currencySymbol {
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    color: #243f55 !important;
    line-height: inherit !important;
}

.kadence-product-gallery-main {
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
}
.kadence-product-gallery-main.splide .splide__arrow--prev {
    left: 0 !important;
}
.kadence-product-gallery-main.splide .splide__arrow--next {
    right: 0 !important;
}
.kadence-product-gallery-thumbnails .kt-woo-gallery-thumbnail img,
.woocommerce .product .kadence-product-gallery-thumbnails .kt-woo-gallery-thumbnail img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 11;
    border: 1px solid #000;
    border-radius: 10px;
    overflow: hidden;
}
.kadence-product-gallery-thumbnails.splide.splide--nav>.splide__slider>.splide__track>.splide__list>.splide__slide.is-active {
    outline: initial;
    outline-offset: 0;
}
.kadence-product-gallery-thumbnails {
    max-width: calc(100% - 80px);
    margin: 15px auto !important;
}
.kadence-product-gallery-thumbnails.splide .splide__arrow--prev {
    left: -33px;
    opacity: 1;
    background: var(--global-palette1);
    color: white;
}
.kadence-product-gallery-thumbnails.splide .splide__arrow--next {
    right: -33px;
    opacity: 1;
    background: var(--global-palette1);
    color: white;
}
.kadence-product-gallery-thumbnails li.is-active {

}
.single-product h1.product_title {
    font-size: 45px;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 900;
}
.single-product .summary ul {
    margin: 0 0 1.5em 0.9em;
}
.single-product .summary ul li,
.single-product .summary ul li * {
    font-size: inherit !important;
}
.single-product .summary .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 14px;
    row-gap: 4px;
    font-size: 40px !important;
    color: #333 !important;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
}
.single-product .summary .price .hk-vat-breakdown {
    flex: 1 0 100%;
    width: 100%;
}
.single-product .summary .price ins {
    float: none;
    order: 2;
    text-decoration: none;
    background: transparent;
}
.single-product .summary .price del {
    float: none;
    order: 1;
    margin: 0;
    opacity: 1 !important;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #8a93a0;
}
.single-product .summary .price del,
.single-product .summary .price del span,
.single-product .summary .price del .woocommerce-Price-amount,
.single-product .summary .price del .woocommerce-Price-amount bdi,
.single-product .summary .price del .woocommerce-Price-currencySymbol {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #8a93a0 !important;
    font-family: inherit !important;
}
.single-product .summary .price > .woocommerce-Price-amount,
.single-product .summary .price > .woocommerce-Price-amount bdi,
.single-product .summary .price > .woocommerce-Price-currencySymbol,
.single-product .summary .price ins,
.single-product .summary .price ins span,
.single-product .summary .price ins .woocommerce-Price-amount,
.single-product .summary .price ins .woocommerce-Price-amount bdi,
.single-product .summary .price ins .woocommerce-Price-currencySymbol {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--global-palette1) !important;
    font-family: var(--global-font-family-heading) !important;
}
.single-product .summary .price .woocommerce-price-suffix {
    order: 3;
    flex: 1 0 100%;
    margin-top: 2px;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b7a86 !important;
    font-family: inherit !important;
    white-space: nowrap;
}
.woocommerce-price-suffix {
    font-size: 14px;
    color: #6b7a86;
    white-space: nowrap;
}
.single-product .single_add_to_cart_button {
	display: inline-block;
    position: relative;
    padding: 5px 15px 5px 30px !important;
    line-height: 1 !important;
    font-size: 13px;
    font-weight: 700;
    background: var(--global-palette1) !important;
    border-radius: 5px;
    color: #fff !important;
    transition: all 0.2s ease-in-out;
    box-shadow: rgba(0,0,0,0.1) 2px 2px 0
}
.single_add_to_cart_button:before {
    content: "\f174";
    font-family: "dashicons";
    position: absolute;
    left: 13px;
}
.product_meta {
    font-weight: 700;
}
.contactus {
    margin-bottom: 20px;
    border-bottom: #dbdbdb 1px solid !important;
    padding-bottom: 30px;
}
.contactus a {
    color: inherit;
    text-decoration: none;
}
.contactus a:hover {
    color: #E82E1E;
}
.contactus h1, .contactus h2, .contactus h3, .contactus h4 {
    margin-bottom: 10px;
}
.product-type-simple .woocommerce-product-details__short-description {
    margin-bottom: 30px;
}

.product-type-simple .woocommerce-product-details__short-description table,
.product-type-simple .woocommerce-product-details__short-description td {
    width: auto !important;
}
.product-type-simple .woocommerce-product-details__short-description td:first-child {
    font-weight: bold;
    padding-right: 10px;
}
.product-type-simple .woocommerce-product-details__short-description p {
    margin-bottom: 10px;
}

.product-type-simple .catalog-item .details-col-wrapper .price {
    margin-bottom: 0;
}

.product-type-simple .catalog-item .details-col-wrapper .stock {
    margin: -10px 0 30px 0 !important;
}

.product-type-simple .catalog-item .details-col-wrapper .product_meta {
    padding: 0;
    margin-top: 0px !important;
    border: none !important;
}

.cross_sell_links {
    margin-bottom: 20px;
    clear: both;
    float: none;
    padding-top: 20px;
}
.cross_sell_links a {
    display: block;
    background: #efefef;
    padding: 5px;
    margin-bottom: 2px;
}
.cross_sell_links img {
    max-width: 35px;
    margin-right: 5px;
}

.wc-force-sells {
    margin-top: 30px;
    border: 1px solid #e23815;
    border-radius: 5px;
    padding: 10px;
    background: #e72e1e;
    color: #fff;
}
.wc-force-sells ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wc-force-sells > p {
    margin: 0 0 5px 0 !important;
    font-weight: bold;
}
.wc-force-sells ul li {
    padding:0;
    line-height:1;
    font-size:13px;
}
.wc-force-sells ul li:before {
    content: "";
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: 1px solid #000;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid #000;
    background-color: var(--global-palette8);
    border-radius: 10px 10px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: .5em 2em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: var(--global-palette1);
    border-bottom: unset;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--global-palette8);
}

/* SINGLE PRODUCT GALLERY */
.kb-splide .splide__arrow {
    background: #fff;
    border: 0;
    border-radius: 3px !important;
    height: 2.6rem;
    width: 2.6rem;
    opacity: 0;
    color: #ec1d23;
}
.kadence-product-gallery-main.splide .splide__arrow--prev {
    left: -1.3rem;
}
.kadence-product-gallery-main.splide .splide__arrow--next {
    right: -1.3rem;
}
.kb-splide:hover .splide__arrow,
.kb-splide .splide__arrow:hover {
    opacity: 1 !important;
    background: #fff !important;
}

/* BUNDLE PRODUCTS */
h4.bundled_product_title {
    font-size: 14px;
    margin-bottom: 0;
}
table.bundled_products thead {
    display: none;
}
.bundled_product_excerpt.product_excerpt {
    display: none;
}
body.single-product table.bundled_products .stock {
    margin: 0 0 0 0 !important;
}
body.single-product .in-stock:before {
    content: "";
    background: url('data:image/svg+xml;utf8,<svg id="b" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 650 650"><g id="c"><path d="M325,0C145.51,0,0,145.51,0,325s145.51,325,325,325,325-145.51,325-325C649.79,145.59,504.41.21,325,0ZM479.79,268.09l-183.35,175c-9.68,9.21-24.89,9.21-34.57,0l-91.65-87.5c-9.98-9.56-10.32-25.4-.76-35.38,9.54-9.96,25.34-10.32,35.33-.8l74.37,71.02,166.06-158.52c10-9.53,25.84-9.15,35.37.85,9.51,9.98,9.15,25.79-.8,35.33h0Z" style="fill:%23333333; stroke-width:0px;"/></g></svg>');
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    transform: translateY(2px);
}
body.single-product .product .stock {
    font-size: 13px !important;
    color: #333 !important;
}
table.bundled_products td {
    margin-top: 15px;
    padding-top: 15px;
    border-top: #dbdbdb 1px solid !important;
}
.bundled_product_images {
	padding: 0 !important;
}
table.bundled_products td.bundled_item_qty_col .quantity .quantity_value {
    display: block;
    height: 40px;
    float: none;
    background: #efefef;
    border: none;
    border-radius: 5px;
    line-height: 38px;
    padding: 0 10px;
    color: #333;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    text-align: center !important;
    vertical-align: middle;
}
table.bundled_products .bundled_item_cart_details .woocommerce-variation-price {
  display: none;
}
table.bundled_products .reset_variations {
  display: none !important;
}



/* ON SALE STICKER */
.woocommerce .product .onsale {
    width: 106px;
    height: 106px;
    overflow: hidden;
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    right: initial !important;
    z-index: 1000;
    border-top-left-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 22px;
    cursor: pointer;
}
.woocommerce .product .onsale span {
    position: absolute;
    top: 7px;
    left: -5px;
    z-index: 100;
    width: 65px;
    text-align: center;
}
.woocommerce .product .onsale:after {
    content: "";
    width: 150px;
    height: 150px;
    background: var(--global-palette1);
    display: block;
    position: absolute;
    z-index: 10;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: -76px;
    left: -76px;
}

/* SHOPHEADER FILTERS */
#shopheader_filters {
	z-index:10;
	position:relative;
	display:-webkit-box;
	display:-webkit-flex;
	display:-ms-flexbox;
	display:flex;
	margin-bottom:28px;
	-webkit-flex-wrap:wrap;
	-ms-flex-wrap:wrap;
	flex-wrap:wrap;
}
#shopheader_filters .widgettitle {
    display: none;
}
#shopheader_filters .woocommerce-widget-layered-nav {
	width:15.666%;
	margin-right:1%;
	margin-bottom:1%;
}
#shopheader_filters .woocommerce-widget-layered-nav .title-default {
	display:none;
}
#shopheader_filters .woocommerce-widget-layered-nav .btn.dropdown-toggle {
	font-size:12px;
	padding:7px 8px;
}
#shopheader_filters .select2-container {
	width:100%!important;
	display:block;
}
#shopheader_filters .select2-container--default .select2-selection--single {
	position:relative;
	height:33px;
	min-height:33px;
	padding:0 30px 0 0;
	background:#fff;
	border:1px solid #60758a;
	border-radius:4px;
	box-sizing:border-box;
	outline:none;
}
#shopheader_filters .select2-container--default .select2-selection--single .select2-selection__rendered {
	height:31px;
	line-height:31px;
	padding-left:8px;
	padding-right:6px;
	margin:0;
	font-size:12px;
	font-weight:400;
	color:#304b67;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
#shopheader_filters .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color:#304b67;
}
#shopheader_filters .select2-container--default .select2-selection--single .select2-selection__arrow {
	position:absolute;
	top:-1px;
	right:-1px;
	width:30px;
	height:33px;
	background:#c7191e;
	border-radius:0 4px 4px 0;
	box-sizing:border-box;
}
#shopheader_filters .select2-container--default .select2-selection--single .select2-selection__arrow b {
	display:none;
}
#shopheader_filters .select2-container--default .select2-selection--single .select2-selection__arrow:after {
	content:"";
	position:absolute;
	width:8px;
	height:8px;
	top:9px;
	left:10px;
	border-right:3px solid #fff;
	border-bottom:3px solid #fff;
	transform:rotate(45deg);
	box-sizing:border-box;
}
#shopheader_filters .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after {
	top:13px;
	transform:rotate(225deg);
}
#shopheader_filters .select2-container--default .select2-selection--single:hover {
	border-color:#60758a;
}
#shopheader_filters .select2-container--default.select2-container--focus .select2-selection--single,
#shopheader_filters .select2-container--default.select2-container--open .select2-selection--single {
	border-color:#60758a;
	box-shadow:none;
}
#shopheader_filters .select2-container--default .select2-selection--single:hover .select2-selection__arrow {
	background:#c7191e;
}
#shopheader_filters ul li:before {
	content:"";
}
#shopheader_filters + .active-filters {
	margin-left:7px;
}
#shopheader_filters + .active-filters h3 {
	display:none;
}
body.post-type-archive-product #shopheader_filters {
	display:none;
}
@media all and (max-width:750px) {
	#shopheader_filters {
		display:block;
	}
	#shopheader_filters .woocommerce-widget-layered-nav {
		margin-bottom:10px;
		width:100%;
	}
}
.select2-container--default .select2-dropdown {
	border:1px solid #60758a;
	border-radius:4px;
	background:#fff;
	box-shadow:0 3px 8px rgba(0,0,0,.12);
	overflow:hidden;
}
.select2-container--default .select2-results {
	background:#fff;
}
.select2-container--default .select2-results__options {
	max-height:240px;
	overflow-y:auto;
}
.select2-container--default .select2-results__option {
	padding:7px 8px;
	font-size:12px;
	line-height:18px;
	color:#304b67;
	background:#fff;
	border-bottom:1px solid #e3e6e8;
}
.select2-container--default .select2-results__option:last-child {
	border-bottom:0;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
	background:#f1f3f5;
	color:#304b67;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background:#c7191e;
	color:#fff;
}
.select2-container--default .select2-results__option:hover {
	background:#c7191e;
	color:#fff;
}
.select2-container--default .select2-results__options::-webkit-scrollbar {
	width:8px;
}
.select2-container--default .select2-results__options::-webkit-scrollbar-track {
	background:#f1f1f1;
}
.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
	background:#60758a;
	border-radius:4px;
}
.select2-container--default .select2-results__options::-webkit-scrollbar-thumb:hover {
	background:#c7191e;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #243f55 !important;
    color: #fff;
}

/* SINGLE POST */
.single-post #primary article.single-entry {
    background: #fff;
    padding: 50px;
}
.single-post .custom-share-buttons svg {
    max-width: 30px;
}
.single-post .entry-related {
    background: #eaeaea;
}
.single-post .entry-related .entry-meta {
    display: none;
}


/* FOOTER */
.footer-contacts p {
    font-size: 25px;
    font-weight: 300;
}
.footer-contacts p strong {
    font-size: 16px;
}
.footer-contacts a {
    text-decoration: none;
}


/* Tuotetabien tyylit (Kysy lisää, Lisävarusteet, tabien sisältö, Tuotenostot) → lisäosa hk-product-tabs/assets/css/tabs.css */

/* TARJOUSPYYNTÖ MODAL (Gravity Forms #3) */
#tarjouspyynto {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}
#tarjouspyynto.is-open {
    display: flex;
}
body.hk-quote-modal-open {
    overflow: hidden;
}
#tarjouspyynto .hk-quote-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px 24px;
    box-sizing: border-box;
}
#tarjouspyynto .hk-quote-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #243f55;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
#tarjouspyynto .gform_wrapper {
    margin: 0 !important;
}
#tarjouspyynto .gform_heading {
    margin: 0 0 12px !important;
    padding: 0 !important;
}
#tarjouspyynto .gform_title,
#tarjouspyynto .gform_heading .gform_title {
    margin: 0;
    padding: 0;
    color: #BD1D1D;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
#tarjouspyynto .gform_description {
    display: none;
}
#tarjouspyynto .gform_wrapper,
#tarjouspyynto .gform-theme--framework,
#tarjouspyynto .gform_body,
#tarjouspyynto .gform_fields,
#tarjouspyynto .gform-body {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    row-gap: 0 !important;
}
#tarjouspyynto .gfield {
    margin: 0 0 8px !important;
    padding: 0 !important;
}
#tarjouspyynto .gfield_label,
#tarjouspyynto .gform-field-label {
    display: block;
    margin: 0 0 3px !important;
    padding: 0 !important;
    color: #243f55;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}
#tarjouspyynto .gfield_description {
    margin: 0 0 4px !important;
    padding: 0 !important;
    color: #6b6b6b;
    font-size: 12px;
    line-height: 1.3;
}
#tarjouspyynto .ginput_container {
    margin: 0 !important;
    padding: 0 !important;
}
#tarjouspyynto .ginput_container input[type="text"],
#tarjouspyynto .ginput_container input[type="email"],
#tarjouspyynto .ginput_container input[type="tel"],
#tarjouspyynto .ginput_container input[type="url"],
#tarjouspyynto .ginput_container input[type="number"],
#tarjouspyynto .ginput_container textarea,
#tarjouspyynto .ginput_container select {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border: 1px solid #8a8a8a !important;
    border-radius: 2px !important;
    background: #fff !important;
    color: #243f55 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}
/* Tuote (textarea): yksi rivi kuten muut kentät */
#tarjouspyynto #input_3_1,
#tarjouspyynto #field_3_1 textarea {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    resize: none;
    overflow: hidden;
}
/* Viesti: matala textarea */
#tarjouspyynto #input_3_7,
#tarjouspyynto #field_3_7 textarea,
#tarjouspyynto .ginput_container_textarea textarea:not(#input_3_1) {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 120px;
    resize: vertical;
}
/* Checkbox: Haluan rahoitustarjouksen tuotteesta */
#tarjouspyynto .gfield--type-checkbox,
#tarjouspyynto #field_3_8 {
    margin: 4px 0 10px !important;
    border: 0 !important;
    min-width: 0;
}
#tarjouspyynto .gfield--type-checkbox.hidden_label > legend,
#tarjouspyynto #field_3_8 > legend {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}
#tarjouspyynto .ginput_container_checkbox,
#tarjouspyynto .gfield_checkbox {
    margin: 0 !important;
    padding: 0 !important;
}
#tarjouspyynto .gchoice {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}
#tarjouspyynto .gfield-choice-input,
#tarjouspyynto .gchoice input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border: 1px solid #243f55 !important;
    border-radius: 2px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer;
    vertical-align: middle;
}
#tarjouspyynto .gfield-choice-input:checked,
#tarjouspyynto .gchoice input[type="checkbox"]:checked {
    background: #BD1D1D !important;
    border-color: #BD1D1D !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 10px !important;
}
#tarjouspyynto .gfield_checkbox label,
#tarjouspyynto .gfield--type-checkbox .gform-field-label--type-inline,
#tarjouspyynto .gchoice label {
    margin: 0 !important;
    padding: 0 !important;
    color: #243f55 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    cursor: pointer;
}
#tarjouspyynto .gform_footer,
#tarjouspyynto .gform_page_footer {
    margin: 10px 0 0 !important;
    padding: 0 !important;
}
#tarjouspyynto .gform_button,
#tarjouspyynto input[type="submit"].gform_button,
#tarjouspyynto #gform_submit_button_3 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #BD1D1D !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
}
#tarjouspyynto .gform_button:hover,
#tarjouspyynto input[type="submit"].gform_button:hover,
#tarjouspyynto #gform_submit_button_3:hover {
    background: #a51919 !important;
}
#tarjouspyynto .gform_validation_errors,
#tarjouspyynto .validation_message,
#tarjouspyynto .gfield_validation_message {
    color: #BD1D1D;
    margin: 4px 0 0 !important;
    font-size: 12px;
}
@media (max-width: 600px) {
    #tarjouspyynto .hk-quote-modal__dialog {
        padding: 20px 16px 18px;
    }
    #tarjouspyynto .gform_title,
    #tarjouspyynto .gform_heading .gform_title {
        font-size: 22px;
        padding-right: 32px;
    }
}


/* ==========================================================================
   TUOTTEET-SIVU JA TUOTEOSASTOT (Figma 149:52 ja 156:299) – inc/shop-layout.php
   ========================================================================== */

/* Hero */
.hk-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(320px, 30vw, 480px);
    overflow: hidden;
    background: #dad8d2;
}
.hk-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.hk-hero__overlay {
    position: absolute;
    inset: 0;
    background: #243e55;
    mix-blend-mode: multiply;
    opacity: .45;
}
.hk-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-bottom: clamp(32px, 4vw, 70px);
}
.hk-hero__title {
    max-width: 856px;
    margin: 0;
    color: #fff;
    font-family: var(--global-heading-font-family, "Work Sans"), sans-serif;
    font-size: clamp(40px, 4.2vw, 72px);
    font-weight: 700;
    line-height: 1.07;
}
.hk-breadcrumbs { text-align: left; }
.hk-breadcrumbs .kadence-breadcrumbs {
    padding-top: 30px;
    padding-left: 0;
    padding-right: 0;
    font-size: 18px;
}

/* Arkistot: ei vanhaa beigeä koko sisällölle eikä otsikkoaluetta */
body.woocommerce.archive.hk-shop-front #primary,
body.woocommerce.archive.hk-cat-page #primary {
    background: none;
    padding-top: 40px;
    padding-bottom: 0;
}
body.woocommerce.archive.hk-shop-front #primary { padding-bottom: 80px; }

/* Tuotteet-sivu: pyöreät osastokuvat 3 × 3 */
body.hk-shop-front ul.products {
    column-gap: clamp(24px, 3.5vw, 52px);
    row-gap: clamp(32px, 3vw, 48px);
}
body.hk-shop-front ul.products li.hk-cat-item--tile {
    background: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    text-align: center;
}
.hk-cat-item__link {
    display: block;
    color: #243e55;
    text-decoration: none;
}
.hk-cat-item--tile .hk-cat-item__media {
    display: block;
    aspect-ratio: 1;
}
.woocommerce ul.products li.product.hk-cat-item--tile .hk-cat-item__img,
.hk-cat-item--tile .hk-cat-item__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}
.hk-cat-item--tile .hk-cat-item__link:hover .hk-cat-item__img,
.hk-cat-item--tile .hk-cat-item__link:focus-visible .hk-cat-item__img {
    transform: scale(1.03);
}
.woocommerce ul.products li.product.hk-cat-item--tile .hk-cat-item__title,
.hk-cat-item--tile .hk-cat-item__title {
    margin: 20px 0 0;
    padding: 0;
    color: #243e55;
    font-family: var(--global-body-font-family, Roboto), sans-serif;
    font-size: var(--global-kb-font-size-md, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
}
/* Sama malli kuin etusivun osastoissa: BRÄNDI lihavoituna, osasto normaalina */
.hk-cat-item__brand {
    display: block;
    font-weight: 900;
    text-transform: uppercase;
}
.hk-cat-item__sub {
    display: block;
    font-weight: 400;
}

/* Osastosivu: intro */
.hk-cat-intro {
    position: relative;
    padding-bottom: 60px;
}
.hk-cat-intro__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 60px 0 24px;
}
.hk-cat-intro__logo {
    width: auto;
    max-width: 260px;
    max-height: 48px;
    object-fit: contain;
}
.hk-cat-intro__badge {
    width: 71px;
    height: 71px;
    margin-left: auto;
}
.hk-cat-intro__title {
    margin: 0 0 24px;
    color: #243e55;
    font-size: clamp(32px, 2.7vw, 46px);
    line-height: 1.2;
}
.hk-cat-intro__brand + .hk-cat-intro__title { margin-top: 0; }
.hk-cat-intro > .hk-cat-nav + .hk-cat-intro__title { margin-top: 60px; }
.hk-cat-intro__desc {
    max-width: 874px;
    color: #243e55;
    font-size: clamp(18px, 1.3vw, 22px);
    line-height: 1.45;
}
.hk-cat-intro__desc p { margin: 0 0 1em; }
.hk-cat-intro__desc > p:first-child { font-weight: 600; }
.hk-cat-intro__picks { margin-top: 48px; }

/* Avautuva Tuoteosastot-valikko ja lajittelu samaan tyyliin */
.hk-cat-nav {
    position: relative;
    z-index: 20;
    width: 340px;
    max-width: 100%;
}
.hk-select,
.woocommerce .woocommerce-ordering select {
    position: relative;
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 54px 0 12px;
    border: 1px solid #243e55;
    border-radius: 5px;
    background: #fff;
    color: #243e55;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
}
.hk-select { list-style: none; }
.hk-select::-webkit-details-marker { display: none; }
.hk-select::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    bottom: -1px;
    width: 42px;
    background: #bd1d1d url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="12" viewBox="0 0 20 12"><path d="M2 2l8 8 8-8" fill="none" stroke="%23dad8d2" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 16px 10px no-repeat;
    transition: transform .2s ease;
}
.hk-cat-nav[open] > .hk-select::after { transform: scaleY(-1); }
.hk-select:focus-visible { outline: 2px solid #bd1d1d; outline-offset: 2px; }
.woocommerce .woocommerce-ordering select {
    -webkit-appearance: none;
    appearance: none;
    min-width: 240px;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="12" viewBox="0 0 20 12"><path d="M2 2l8 8 8-8" fill="none" stroke="%23dad8d2" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') right 13px center / 16px 10px no-repeat,
        linear-gradient(#bd1d1d, #bd1d1d) right center / 42px 100% no-repeat,
        #fff;
}
.hk-cat-nav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: min(70vh, 760px);
    overflow-y: auto;
    border: 1px solid #243e55;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(36, 62, 85, .18);
}
.hk-cat-nav__list,
.hk-cat-nav__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}
.hk-cat-nav a {
    display: block;
    color: #243e55;
    text-decoration: none;
}
.hk-cat-nav__top + .hk-cat-nav__top { border-top: 1px solid #243e55; }
.hk-cat-nav__top > a {
    padding: 9px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.hk-cat-nav__sub { padding-bottom: 6px; }
.hk-cat-nav__sub a {
    padding: 4px 16px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}
.hk-cat-nav__sub--l2 a { padding-left: 28px; }
.hk-cat-nav__sub--l3 a { padding-left: 40px; }
.hk-cat-nav a:hover { color: #bd1d1d; }
.hk-cat-nav .is-current > a {
    background: #bd1d1d;
    color: #dad8d2;
    padding-top: 9px;
    padding-bottom: 9px;
}

/* Osastosivu: kortit beigellä täysleveällä taustalla */
.hk-cat-products {
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(48px, 6vw, 100px) 0;
    background: #dad8d2;
}
.hk-cat-products__inner {
    max-width: var(--global-content-width);
    margin: 0 auto;
    padding: 0 var(--global-content-edge-padding);
}
.hk-cat-products .woocommerce-result-count { color: #243e55; }
body.hk-cat-page ul.products {
    column-gap: clamp(24px, 4.5vw, 84px);
    row-gap: clamp(24px, 2.6vw, 45px);
}
body.hk-cat-page ul.products li.product { position: relative; }
.hk-cat-item--card .hk-cat-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 436 / 356;
    padding: 20px;
}
.woocommerce ul.products li.product.hk-cat-item--card .hk-cat-item__img,
.hk-cat-item--card .hk-cat-item__img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}
.woocommerce ul.products li.product.hk-cat-item--card .hk-cat-item__title,
.hk-cat-item--card .hk-cat-item__title {
    margin: 0 22px 32px;
    padding: 16px 0;
    border-top: 1px solid #768695;
    border-bottom: 1px solid #768695;
    color: #243e55;
    font-family: var(--global-heading-font-family, "Work Sans"), sans-serif;
    font-size: clamp(22px, 1.65vw, 28px);
    font-weight: 700;
    line-height: 1.07;
}
.hk-card-badge,
.woocommerce ul.products li.product .hk-card-badge,
.woocommerce ul.products li.product a img.hk-card-badge {
    margin: 0;
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 2;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .hk-breadcrumbs .kadence-breadcrumbs { text-align: left; font-size: 15px; padding-top: 16px; }
    body.hk-shop-front ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 28px;
    }
    .hk-cat-item--tile .hk-cat-item__title { margin-top: 10px; }
    .hk-cat-intro__brand { margin-top: 36px; }
    .hk-cat-intro__badge { width: 56px; height: 56px; }
    .woocommerce .woocommerce-ordering select { min-width: 0; width: 100%; }
    .hk-cat-nav__top > a { padding: 9px 14px; }
    .hk-cat-nav__sub a { padding-left: 14px; }
}

/* Etusivun hero: kaksi nappia (Katso tuotteet / Katso tarjoukset) */
.hk-hero-buttons { gap: 12px 16px; }
/* body-etuliite: Kadencen ".is-style-outline .wp-block-button__link:not(.has-text-color):visited"
   on spesifimpi (5 luokkaa) ja värittäisi vieraillun linkin palette-väriin. */
body .hk-hero-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
body .hk-hero-buttons .wp-block-button.is-style-outline > .wp-block-button__link:visited {
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
}
body .hk-hero-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
body .hk-hero-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
    background: #fff;
    color: #243e55;
}

/* Mobiilivalikko: megamenun promo kompaktina korttina alavalikon yläpuolella */
#mobile-drawer .mega-menu-promo {
    display: block;
    list-style: none;
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
}
#mobile-drawer .mega-menu-promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
}
#mobile-drawer .mega-menu-promo__image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
}
#mobile-drawer .mega-menu-promo__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#mobile-drawer .mega-menu-promo__text {
    min-width: 0;
    color: #243e55;
    font-size: 14px;
    line-height: 1.4;
}
#mobile-drawer .mega-menu-promo__text p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: inherit;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
#mobile-drawer .mega-menu-promo__text strong,
#mobile-drawer .mega-menu-promo__text h3,
#mobile-drawer .mega-menu-promo__text h4 {
    display: block;
    margin: 0 0 4px;
    color: #243e55;
    font-size: 15px;
    font-weight: 700;
}
#mobile-drawer .mega-menu-promo-template { display: none; }

/* Mobiilikortti: otsikko, hinta ja linkki – listat ja pienet tekstit pois */
#mobile-drawer .mega-menu-promo-content.has-link { position: relative; }
#mobile-drawer .mega-menu-promo__text ul,
#mobile-drawer .mega-menu-promo__text .mega-promo-small,
#mobile-drawer .mega-menu-promo__text .mega-promo-price ~ p:not(.mega-promo-small) { display: none; }
#mobile-drawer .mega-menu-promo__text .mega-promo-kicker {
    margin: 0 0 2px;
    font-size: 11px;
}
#mobile-drawer .mega-menu-promo__text .mega-promo-price { color: #c91c1c; }
#mobile-drawer .mega-menu-promo__text .mega-promo-price strong { display: inline; margin: 0; color: inherit; font-size: 14px; }
#mobile-drawer .mega-menu-promo__link {
    display: inline-block;
    margin-top: 6px;
    padding: 0 !important;
    border: 0 !important;
    color: #c91c1c !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}
#mobile-drawer .mega-menu-promo__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Etusivun hero-otsikko mobiilissa: ei katkeavia sanoja */
@media (max-width: 767px) {
    .home h1.wp-block-kadence-advancedheading {
        font-size: clamp(34px, 10.5vw, 46px) !important;
        line-height: 1.08 !important;
        overflow-wrap: normal;
        hyphens: manual;
    }
}

/* Ostoskori: kuponkinappi samaan tyyliin kuin muut napit.
   Kadencen oletus (palette7 tausta + palette5 teksti) on tässä paletissa sama #243e55 → teksti näkymätön. */
.woocommerce-cart table.cart .coupon .button:not(:hover),
.woocommerce-checkout table.cart .coupon .button:not(:hover),
#add_payment_method table.cart .coupon .button:not(:hover) {
    background: var(--global-palette-btn-bg, var(--global-palette1));
    color: var(--global-palette-btn, var(--global-palette8));
}

/* Ostoskori: "Päivitä ostoskori" pois käytöstä -tilassa (sama ongelma: palette7 + palette5 = #243e55). */
.woocommerce-cart table.cart td.actions .button:disabled,
.woocommerce-checkout table.cart td.actions .button:disabled,
#add_payment_method table.cart td.actions .button:disabled {
    background-color: var(--global-palette-btn-bg, var(--global-palette1));
    color: var(--global-palette-btn, var(--global-palette8));
}
