/*
Theme Name: HeadRehvid-2025
Theme URI: 
Author: Hundikuu Agentuur
Author URI: 
Description: headrehvid.ee alamteema WP vaiketeemapaketile.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: headrehvid-2025
Tags: 
*/
:root {
    --woo-image-height: 240px;
    --box-shadow-standard: 0 4px 6px rgba(0, 0, 0, 0.1);
    --woo-box-shadow-standard: 0 2px 4px 1px rgba(0, 0, 0, 0.25);
    --woo-box-shadow-hover: 0 4px 8px 2px rgba(0, 0, 0, 0.35);
    --standard-transition: all 0.3s ease-in-out;
    --standard-border-radius: 10px;
    --inner-border-radius: 6px;
    --filter-width: 180px;
    --hr-linear-gradient: linear-gradient(90deg, #F62D2D 0%, #FB4631 100%);
}

/* Global Styles and Rules */

.wp-block-navigation-item__content:focus, .wp-block-navigation-item__label:focus {
    outline: none;
}
 
.hnd-block-column {
    border-radius: var(--standard-border-radius);
    box-shadow: var(--box-shadow-standard);
    background-color: var(--wp--preset--color--base);
    padding: 15px;
}

.hnd-sidenav a {
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--medium);
    font-style: normal;
    font-weight: 600;
}

.hnd-sidenav a:hover {
    text-decoration: underline;
}

.gform_required_legend {
    display: none !important;
}

.wp-block-image figcaption {
    display: none !important;
}


.hnd-default-button a.wp-block-button__link.wp-element-button {
    border-radius: 10px;
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 500;
    background: var(--hr-linear-gradient);
    box-shadow: var(--woo-box-shadow-standard);
    transition: var(--standard-transition);
}

.hnd-default-button a.wp-block-button__link.wp-element-button:hover {
    box-shadow: var(--woo-box-shadow-hover);
    transform: translate(0px, -2px);
    transition: var(--standard-transition);
}

/* Header styles */
.wp-block-navigation-item__label {

    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}

.hnd-header {
    box-shadow: var(--box-shadow-standard) !important;
    background-color: var(--wp--preset--color--base) !important;
}

/* Footer styles */
.footer-menu.wp-block-navigation .wp-block-navigation-item__label {
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--preset--font-family--inter);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;

}

.footer-menu.wp-block-navigation {
    gap: 1rem;
}

footer.wp-block-template-part {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Avaleht */

.hnd-slider {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.hnd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hnd-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.hnd-slider .banner-txt-column {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-around;
}

.hnd-slider .banner-txt-column h2 {
    margin-top: 20px
}


.hnd-catlink-banner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.hnd-catlink-banner img.wp-block-cover__image-background {
    transition: transform .5s ease;
}

.hnd-catlink-banner:hover img.wp-block-cover__image-background {
    transform: scale(1.06);
}

.hnd-catlink-banner .wp-block-cover__background {
    background-color: transparent !important;
}

.hnd-catlink-banner .wp-block-cover__inner-container,
.hnd-catlink-banner .banner-link-wrapper {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.hnd-catlink-banner .banner-inner-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hnd-catlink-banner .hnd-banner-inner-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
}

.hnd-catlink-banner h2 {
    width: 100%;
    padding: 30px 0px;
    background-color: #00000091;
    color: white !important;
    backdrop-filter: blur(5px);
}

.avaleht-kasu {
    padding: 20px;
    border-radius: var(--standard-border-radius);
    box-shadow: var(--box-shadow-standard);
    border: 1px solid #e5e7eb;
    background-color: var(--wp--preset--color--base);
}

.avaleht-postitused li {
    border-radius: var(--standard-border-radius);
    box-shadow: var(--box-shadow-standard);
    border: 1px solid #e5e7eb;
    background-color: var(--wp--preset--color--base);
    transition: var(--standard-transition);
}

.avaleht-postitused li a:hover {
    text-decoration: none;
}

.avaleht-postitused li:hover {
    box-shadow: var(--woo-box-shadow-hover);
    transform: translate(0px, -4px);
    transition: var(--standard-transition);
}

/* Rehvikalkulaatori */

.hnd-btn-info {
	color: #ef384a !important;
	border: 2px solid #ef384a !important;
	background: transparent;
	transition-duration: 0.3s;
	line-height: 2.6em !important;
	font-size: 14px !important;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--karla);
	display: inline-block;
	cursor: pointer;
	text-transform: uppercase;
    padding: 1px 20px !important;
}

.rehvikalkulaator {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	padding: 0.5em;
	margin-bottom: 1em;
}
#tyre-size-calculator select,
#tyre-size-calculator input {
	display: table-cell;
	position: relative;
	z-index: 2;
	float: left;
	margin-bottom: 0;
	min-width: 5em;
	appearance: none;
	padding-right: 10px;
	box-shadow: none;
	padding-left: 13px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 3px;
	height: 37px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #575757;
	border: 1px solid #c9c9c9;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.form-control {
	box-shadow: none;
	padding-left: 13px;
	padding-right: 13px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 3px;
	display: block;
	width: 100%;
	height: 37px;
	padding: 5px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #000;
	background-color: #fff;
	background-image: none;
	border: 1px solid #c9c9c9;
	border-radius: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

#tyre-size-calculator .strong,
#tyre-size-calculator .strong select {
	font-weight: 600 !important;
	color: #000 !important;
}

.input-group {
	display: -ms-flexbox;
	display: flex !important;
	-ms-flex-align: center;
	align-items: center;
}

#tyre-size-calculator option {
	display: table-cell;
	position: relative;
	z-index: 2;
	float: left;
	margin-bottom: 0;
	appearance: none;
	padding-right: 30px;
	box-shadow: none;
	padding-left: 13px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 3px;
	height: 37px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #000;
	border: 1px solid #c9c9c9;
	transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

#tyre-size-calculator .separator {
	float: left;
	height: 37px;
	font-size: 16px;
	line-height: 1.6;
	color: #838383;
	padding: 5px 8px;
}

.input-group .input-group-addon {
	width: auto;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	height: 37px;
}

.input-group-addon:last-child {
	border-left: 0;
}

.input-group-addon {
	padding: 5px 20px;
	font-size: 16px;
	font-weight: normal;
	line-height: 1;
	color: #000;
	text-align: center;
	background-color: #eee;
	border: 1px solid #c9c9c9;
	border-radius: 0;
}

.input-group-addon {
	width: 1%;
	white-space: nowrap;
	vertical-align: middle;
}

#tyre-size-calculator label {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	color: #000;
}

#tyre-size-calculator .button {
	margin-bottom: 1em;
	padding: 5px 35px !important;
}

/* Woo kataloog */
.wc-block-catalog-sorting select {
    padding: 8px 6px;
    border-radius: var(--standard-border-radius);
    border: 1px solid #d8d8d8;
    color: var(--wp--preset--color--accent-3);
}


.woocommerce-result-count {
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1rem;
    color: var(--wp--preset--color--accent-3);
    margin-bottom: 15px;
}

.hnd-padination {
    margin: 28px 0 40px;
    gap: 10px;
}

.hnd-padination .wp-block-query-pagination-numbers {
    display: flex;
    gap: 8px;
}

.hnd-padination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    color: #222;
    border: 1px solid #d8d8d8;
    transition: var(--standard-transition);
}

.hnd-padination .page-numbers:hover {
    background: #f6f6f6;
    border-color: var(--wp--preset--color--accent-4);
    box-shadow: var(--woo-box-shadow-standard);
    transition: var(--standard-transition);
}

.hnd-padination .page-numbers.current {
    background: linear-gradient(90deg, #ff5833, #ff4730);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--woo-box-shadow-standard);
    transition: var(--standard-transition);
}

.hnd-padination .page-numbers.dots {
    border: none;
    background: transparent;
    padding: 0 5px;
}

.hnd-padination .wp-block-query-pagination-next,
.hnd-padination .wp-block-query-pagination-previous {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    background: #ff4c36;
    background: linear-gradient(90deg, #ff5833, #ff4730);
    color: #fff;
    transition: var(--standard-transition);
}

.hnd-padination .wp-block-query-pagination-next:hover,
.hnd-padination .wp-block-query-pagination-previous:hover {
    box-shadow: var(--woo-box-shadow-standard);
    transition: var(--standard-transition);
}

.wc-block-grid__product-image:focus,
.wc-block-grid__product-image a:focus,
.wc-block-grid__product-image div:focus .wc-block-catalog-sorting select:focus {
    outline: none;
}

.wc-block-catalog-sorting select:open {
    border-color: var(--wp--preset--color--accent-3);
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom: 1px solid transparent !important;
}

.hnd-woo-tooted-grid .wc-block-product {
    background-color: white;
    border-radius: var(--standard-border-radius);
    box-shadow: var(--woo-box-shadow-standard);
    position: relative;
    transition: var(--standard-transition);
}

.hnd-woo-tooted-grid .wc-block-product:hover {
    box-shadow: var(--woo-box-shadow-hover);
    transform: translate(0px, -4px);
    transition: var(--standard-transition);
}

.hnd-woo-tooted-grid .wc-block-product .wc-block-components-product-image {
    height: var(--woo-image-height);
    margin-top: 60px;
    margin-bottom: 0px;
}

.hnd-woo-tooted-grid .wc-block-product .wc-block-components-product-image a {
    height: var(--woo-image-height);
}

.wc-block-grid__product-image img {
    object-fit: contain !important;
    height: var(--woo-image-height) !important;
    max-width: 100% !important;
}

.hnd-toode-nimi h2,
.hnd-toode-nimi h3,
.hnd-toode-nimi p {
    text-align: center;
    margin: 5px auto;
    font-family: var(--wp--preset--font-family--inter);
}

.hnd-toode-nimi .hnd-nimi-tootja {
    color: var(--wp--preset--color--accent-3);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hnd-toode-nimi .hnd-muster {
    color: var(--wp--preset--color--custom-heading);
    font-size: 1.25rem;
    text-transform: capitalize;
}

.hnd-toode-nimi .hnd-attr.hnd-indeks {

    text-transform: uppercase;
    font-weight: 500;
    color: var(--wp--preset--color--accent-3);
    font-size: 1.125rem;
}

.hnd-toode-nimi .hnd-tyyp {
    font-size: 1rem;
}

.hnd-woo-tooted-grid .wc-block-product .hnd-bundle-price {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    text-align: right;
    flex-direction: column;
}

.hnd-woo-tooted-grid .wc-block-product .wp-block-woocommerce-product-price {
    position: absolute;
    top: 10px;
    left: 10px;
}

.hnd-woo-tooted-grid .wc-block-components-product-price {
    display: flex;
    text-align: left;
    flex-direction: column;
}

.wc-block-components-product-price,
.hnd-bundle-value {
    font-size: 1.25rem !important;
    line-height: 1.4rem !important;
    font-family: var(--wp--preset--font-family--inter);
}

.hnd-bundle-label {
    font-size: 1rem;
    color: var(--wp--preset--color--custom-heading);
    font-weight: 500;
}

ins .woocommerce-Price-amount.amount {
    font-weight: 700;
    color: var(--wp--preset--color--accent-5);
}

del .woocommerce-Price-amount.amount {
    color: var(--wp--preset--color--accent-3);
    font-weight: 400;
}

.hnd-bundle-value .woocommerce-Price-amount.amount {
    font-weight: 700;
    color: var(--wp--preset--color--accent-2);
}

.hnd-product-stock {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-direction: row;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.3rem;
    margin: 10px auto !important;
    font-weight: 400;
    margin: 5px auto !important;
    font-family: var(--wp--preset--font-family--inter);
}

.hnd-stock-qty.eesti.express {
    color: var(--wp--preset--color--accent-2);
    font-weight: 500 !important;

}

.hnd-stock-qty.eesti {
    color: var(--wp--preset--color--accent-2);

}

.hnd-stock-qty.tarnija {
    color: #c47a00;

}

.hnd-bundle-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.hnd-woo-tooted-grid .wp-block-button.wc-block-components-product-button {
    padding: 0px 10px !important;
    display: block !important;
}

.wc-block-components-product-button__button.add_to_cart_button {
    border-radius: 10px !important;
}

.hnd-woo-tooted-grid .wc-block-components-product-button__button.add_to_cart_button {
    transition: var(--standard-transition);
    background-image: var(--wp--preset--gradient--custom-button) !important;
}

.hnd-woo-tooted-grid .wc-block-components-product-button__button.add_to_cart_button:hover {
    box-shadow: var(--woo-box-shadow-standard);
    transform: translate(0px, -2px);
    transition: var(--standard-transition);
}

.wc-block-components-product-button__button.add_to_cart_button span {
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1.125rem !important;
    text-transform: uppercase;
    font-weight: 500;
}

.hnd-woo-tooted-grid .added_to_cart.wc_forward {
    display: none !important;
}



/* Filter Anything Pro filterite stiilid */

.hnd-filter-widget {
    border-radius: var(--standard-border-radius);
    box-shadow: var(--box-shadow-standard);
    background-color: var(--wp--preset--color--base);
    padding: 25px 15px !important;
}

.hnd-filter-widget .wpc-filters-widget-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    max-width: 1340px !important;
}

.hnd-filter-widget .wpc-filters-widget-wrapper .wpc-filters-section {

    margin-bottom: 5px;
    width: var(--filter-width);
    margin-right: 15px;
}

.hnd-filter-widget .wpc-filters-widget-wrapper .wpc-filters-section.wpc-filter-layout-submit-button {
    width: auto !important;
    margin-right: 0px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.wpc-filter-layout-submit-button p {
    display: none !important;
}

.wpc-edit-filter-set {
    display: none !important;
}

.hnd-filter-widget div.wpc-filters-widget-containers-wrapper>p {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.hnd-filter-widget a.wpc-filters-submit-button {
    padding: 10px 16px !important;
    background-image: var(--wp--preset--gradient--custom-button) !important;
    word-break: keep-all !important;
    border-radius: var(--standard-border-radius) !important;
    font-family: var(--wp--preset--font-family--inter);
    text-transform: uppercase;
    border: 1px solid transparent !important;
    width: auto;
}

.wpc-filters-reset-button {
    padding: 0px !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--wp--preset--color--accent-3);
    font-weight: 300 !important;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 1rem;
    display: inline !important;
}

.wpc-filters-widget-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: block;
    width: 100%;
    height: 42px;
    line-height: 42px;
    padding: 14px 38px 0 14px;
    /* space for fake arrow */
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    background-color: #fff;
    font-family: "Inter", "Roboto", sans-serif;
    font-size: 15px;
    color: #222;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.wpc-filters-widget-select:focus {
    outline: none;
    border-color: #00a63e;
}

.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    clip: rect(0 0 0 0) !important;
    overflow: hidden !important;
    border: 0 !important;
}

.hnd-filter-widget .select2-search {
    display: none !important;
}

.hnd-filter-widget .select2-results>.select2-results__options {
    max-height: 320px !important;
}

.hnd-filter-widget .select2-results__option {
    padding: .4rem 0.8rem;
}


/* Woocommerce tooteleht */
.mustriinfo-article {
    position: relative;
    overflow: hidden;
    transition: max-height .35s ease;
    max-height: 120px;
}

.mustriinfo-article.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.mustriinfo-article.is-expanded::after {
    opacity: 0;
}

.read-more {
    margin-top: 12px;
}

.mustriinfo-article.is-expanded::after {
    display: none !important;
}

.read-more {
    margin-top: 14px;
    text-align: left;
}

.loerohkem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    font-family: Inter, Roboto, sans-serif;
    background: #f3f4f6;
    color: #111827;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.loerohkem:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}


.loerohkem:active {
    transform: translateY(0);
    box-shadow: none;
}

.loerohkem::after {
    content: "▾";
    font-size: 14px;
    opacity: 0.7;
}

.loerohkem.is-expanded::after {
    content: "▴";
    opacity: 0.7;
}

.loerohkem:focus {
    outline: none;
}

.tarnijainfo {
    display: none;
    padding: 10px;
    background-color: white;
    border-radius: var(--inner-border-radius);
    border: 1px solid var(--wp--preset--color--accent-4);
}

.hnd-woo-tooted-columns {
    border: 1px solid #e0e0e0;
}

.alignwide.ladu {
    height: calc(100% - 20px);
    background-color: #f8f9fa;
    border-radius: var(--inner-border-radius);
    border: 1px solid #e0e0e0;
    padding: 10px;
}

.tootekirjeldus.sildiga {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.eu_rehvisilt {
    height: 323px !important;
}

.eu-silt {
    display: flex;
    justify-content: flex-end;
}

.tootekirjeldus.sildita {
    grid-template-columns: 1fr;
}

.tootekirjeldus.sildita .eu-silt {
    display: none !important;
}

.hnd-product-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hnd-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    cursor: pointer;
    color: #00a63e;
    border-radius: 50%;
    position: relative;
    font-style: normal;
}

.hnd-tooltip-icon:hover:after {
    content: attr(data-tip);
    white-space: pre-line;
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    width: 260px;
    max-width: 80vw;
    z-index: 50;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hnd-tooltip-icon:hover:before {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #333;
}

.hnd-product-block .hnd-prices {
    margin-top: 3rem;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.hnd-product-block hnd-regular .woocommerce-Price-amount.amount {
    font-size: 1.6rem;
    color: var(--wp--preset--color--accent-3);
    font-weight: 400;
    text-decoration: line-through;
}

.hnd-product-block hnd-sale .woocommerce-Price-amount.amount {
    font-size: 2rem;
    color: var(--wp--preset--color--accent-5);
    font-weight: 500;
}

.hnd-product-block .hnd-bundle {
    width: 100%;
    text-align: center;
}

.hnd-product-block .hnd-bundle-label {
    font-size: 1.2rem;
    font-family: var(--wp--preset--font-family--inter);
    color: var(--wp--preset--color--accent-3);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hnd-product-block .hnd-bundle-value .woocommerce-Price-amount.amount {
    font-size: 1.375rem;
    color: var(--wp--preset--color--custom-text);
    font-weight: 500;
}

.hnd-product-block p.hnd-stock-in, .hnd-product-block p.hnd-delivery {
    text-align: center;
    font-size: 1.1rem;
    font-family: var(--wp--preset--font-family--inter);
    color: var(--wp--preset--color--accent-2);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
}

.hnd-product-block p.hnd-delivery {
    margin-top: -6px;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
     text-align: center;
    font-size: 0.8rem;
    font-family: var(--wp--preset--font-family--inter);
    color: var(--wp--preset--color--accent-3);
    font-weight: 400;
}

.hnd-stock:has(.hnd-delivery) p.hnd-stock-in {
    margin-bottom: 0px !important;
}

.hnd-product-block .hnd-tooltip-icon {
    display: inline-flex;
    align-items: center;
}

.hnd-info-icon {
    display: block;
    margin-top: -1px;
}

.hnd-addtocart .stock.in-stock {
    display: none !important;
}


.hnd-qty-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
}

.hnd-qty-wrapper input.qty {
    width: 60px;
    text-align: center;
    border: none !important;
    height: 100%;
    font-size: 16px;
    font-family: Inter, Roboto, sans-serif;
}

.hnd-qty-minus,
.hnd-qty-plus {
    width: 42px;
    height: 42px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.hnd-qty-minus:hover,
.hnd-qty-plus:hover {
    background: #e5e7eb;
}

.hnd-addtocart {
    text-align: center;
}

.hnd-addtocart .cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hnd-addtocart .quantity {
    margin: 0;
}

.hnd-addtocart .hnd-qty-wrapper {
    margin: 0 auto;
}

.hnd-addtocart .single_add_to_cart_button {
    width: 75%;
    max-width: 320px;
    display: inline-flex;
    justify-content: center;
    border-radius: var(--standard-border-radius);
    background-image: var(--hr-linear-gradient);
    transition: var(--standard-transition);
    font-family: var(--wp--preset--font-family--inter);
    text-transform: uppercase;
}

.hnd-addtocart .single_add_to_cart_button:hover,
.hnd-addtocart .single_add_to_cart_button:focus {
    box-shadow: var(--woo-box-shadow-standard);
    transform: translate(0px, -2px);
    transition: var(--standard-transition);
}

.hnd-btn-info.tooteleht-lisainfo {
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--wp--preset--font-family--inter);
    color: var(--wp--preset--color--accent-5);
    padding: 16px 36px;
    border: 2px solid var(--wp--preset--color--accent-5);
    border-radius: var(--standard-border-radius);
    background-color: transparent;
    transition: var(--standard-transition);
    cursor: pointer;
}

.lisainfonupp-div {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

.hnd-btn-info.tooteleht-lisainfo:hover {
    background-color: var(--wp--preset--color--accent-5);
    color: #fff;
    box-shadow: var(--woo-box-shadow-standard);
    transform: translate(0px, -2px);
    transition: var(--standard-transition);
}

.hnd-qty-wrapper input[type="number"]::-webkit-inner-spin-button,
.hnd-qty-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hnd-qty-wrapper input[type="number"] {
    -moz-appearance: textfield;

}

.hnd-qty-wrapper input[type=number] {
    appearance: textfield;
}

.hnd-qty-wrapper input[type=number]:focus {
    outline: none;
}

/* Tabeli stiilid */
figure.hnd-attributes-wrap {
    margin: 28px 0;
    border: 1px solid #e5e7eb;
    border-radius: var(--inner-border-radius);
}

figure.hnd-attributes-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--wp--preset--font-family--inter);
    font-size: 15px;
    color: #1f2937;
}

figure.hnd-attributes-wrap table th,
figure.hnd-attributes-wrap table td {
    border: none;
    vertical-align: middle;
    padding: 12px 16px;
}

figure.hnd-attributes-wrap table p {
    margin: 0 !important;
    margin: 0 !important;
}

figure.hnd-attributes-wrap table tr:nth-child(odd) {
    background: #ffffff;
}

figure.hnd-attributes-wrap table tr:nth-child(even) {
    background: #f7f8fa;
}

figure.hnd-attributes-wrap table tr:hover {
    background: #eef1f5;
    transition: var(--standard-transition);
}

figure.hnd-attributes-wrap table th {
    width: 35%;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2rem !important;
}


figure.hnd-attributes-wrap table td {
    color: var(--wp--preset--color--accent-3);
    font-weight: 400;
}

figure.hnd-attributes-wrap table td a,
figure.hnd-attributes-wrap table td span {
    text-decoration: none;
}

figure.hnd-attributes-wrap table tr:first-child th {
    border-top-left-radius: var(--inner-border-radius);
}

figure.hnd-attributes-wrap table tr:first-child td {
    border-top-right-radius: var(--inner-border-radius);
}


.tootetekst {
    width: 100%;
}

table.tootekaart {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;

    font-family: "Inter", "Roboto", sans-serif;
    overflow: hidden;
    background: #ffffff;
    font-size: 15px;
}

table.tootekaart th {
    width: 35%;
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

table.tootekaart td {
    padding: 12px 18px;
    color: #374151;
    font-weight: 400;
    border-bottom: 1px solid #e5e7eb;
}

table.tootekaart tr:last-child th,
table.tootekaart tr:last-child td {
    border-bottom: none;
}

table.tootekaart tr:hover td,
table.tootekaart tr:hover th {
    background: #eef1f5;
}

table.tootekaart tr:nth-child(1) th,
table.tootekaart tr:nth-child(1) td {
    background: #f3f4f6;
    font-weight: 600;
}

/* Konto leht */

.woocommerce-account main .woocommerce {
    max-width: 1340px !important; 
}
.woocommerce-MyAccount-content {
    border: 1px solid #e5e7eb;
    border-radius: var(--inner-border-radius);
    padding: 15px 5px;
    background-color: var(--wp--preset--color--base);
}

/* Kassa leht */
.wc-business-fields-container {
    padding: 5px 10px !important;
    border: 1px solid #d1d5db;
    border-radius: var(--standard-border-radius);
    background-color: transparent !important;
}

.wp-block-woocommerce-order-confirmation-additional-information .woocommerce-bacs-bank-details {
    border: 1px solid #e5e7eb;
    border-radius: var(--inner-border-radius);
    padding: 15px;
    background-color: var(--wp--preset--color--base);
}

.woocommerce-bacs-bank-details::after {
    content: "NB! Tellimust hakatakse töötlema peale arve laekumist. Pangaülekande tegemisel palun märkida selgitusse tellimuse number. Aitäh!";
    display: block;
    clear: both;
}

.wc-business-fields-container #billing_company{
    background-color: #fff;
    border: 1px solid hsla(0, 0%, 7%, .8);
    border-radius: 4px;
    box-sizing: border-box;
    color: #2b2d2f;
    font-family: inherit;
    font-size: 1em;
    height: 3.125em;
    line-height: 1em;
    margin: 0;
    min-height: 0;
    padding: 1em .5em;
    width: 100%;
}


@media screen and (min-width: 641px) {
    .hnd-header {
        transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    }

    .hnd-header.scrolled {
        box-shadow: var(--woo-box-shadow-standard) !important;
        position: sticky;
        top: 0;
        z-index: 9998;
    }

    body.admin-bar .hnd-header.scrolled {
        top: 32px;
    }

    .hnd-filter-widget {
        transition: var(--standard-transition) !important;
    }

    .hnd-filter-widget.stuck {
        transition: var(--standard-transition) !important;
        position: sticky;
        top: 81px;
        box-shadow: var(--woo-box-shadow-standard) !important;
        z-index: 9999;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    body.admin-bar .hnd-filter-widget.stuck {
        top: 113px;
    }

    .hnd-filter-widget.stuck .wpc-filter-header {
        display: none !important;

    }

    .hnd-filter-widget.stuck .wpc-filters-widget-wrapper .wpc-filters-section.wpc-filter-layout-submit-button {
        margin-top: 0px;
        transition: var(--standard-transition) !important;
    }

    /* Filter Anything Pro */
    .hnd-filter-widget a.wpc-filters-submit-button {
        width: auto !important;
        text-align: center;
    }

    .hnd-filter-widget .wpc-filters-widget-wrapper .wpc-filters-section.wpc-filter-layout-submit-button {

        margin-top: 28px;
    }
}

@media screen and (min-width: 641px) and (max-width: 900px) {

    /* Woo kataloog */
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: 1fr 1fr;
    }

    /* Filter Anything Pro */
    .hnd-filter-widget .wpc-filters-widget-wrapper {
        flex-wrap: wrap;
    }

}

@media screen and (min-width: 901px) and (max-width: 1200px) {

    /* Woo kataloog */
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Filter Anything Pro */
    .hnd-filter-widget .wpc-filters-widget-wrapper {
        flex-wrap: wrap;
    }

}

@media screen and (min-width: 1201px) and (max-width: 1340px) {

    /* Filter Anything Pro */
    .hnd-filter-widget .wpc-filters-widget-wrapper {
        flex-wrap: nowrap;
    }

    .hnd-filter-widget .wpc-filters-section,
    .hnd-filter-widget .select2.select2-container.select2-container--default {
        width: 160px !important;

    }

}

@media screen and (min-width: 1341px) {

    .woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 24%;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 70%;
    padding: 10px 20px;
}

.woocommerce-MyAccount-content {
    border: 1px solid #e5e7eb;
    border-radius: var(--inner-border-radius);
    padding: 25px !important;
    background-color: var(--wp--preset--color--base);
}

}

@media screen and (max-width: 640px) {

    /* Avaleht */
    .hnd-home_cat-columns-wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Footer */
    .hnd-footer-links-wrapper>div {
        width: 45% !important;

    }

    main.rehviinfo-main {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    /* Woo kataloog */
    .wc-block-product-template__responsive.columns-4 {
        grid-template-columns: 1fr;
    }

    .alignwide.hnd-kataloog-row {
        display: flex;
        flex-direction: column;
        align-content: flex-start;
        flex-wrap: wrap;
    }

    /* Filter Anything Pro */
    .hnd-filter-widget .wpc-filters-widget-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .hnd-filter-widget .wpc-filters-widget-wrapper .wpc-filters-section {
        width: 100% !important;
        margin-right: 0px;
        margin-bottom: 10px;
    }

    .hnd-filter-widget .wpc-filters-widget-wrapper .wpc-filters-section.wpc-filter-layout-submit-button {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
    }

    .hnd-filter-widget a.wpc-filters-submit-button {
        width: 100% !important;
        text-align: center;
    }

    .select2.select2-container.select2-container--default {
        width: 100% !important;
    }

    .widget-title.wpc-filter-title {
        display: none !important;
    }

    /* Woo tootelehed */
    main.hnd-woo-tootelehesisu {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .hnd_extrapadding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .tootekirjeldus.sildiga {
        grid-template-columns: 1fr;
    }

    .eu_rehvisilt {
        height: auto !important;
        width: 100%;
    }

    .tootekaart td,
    .tootekaart th {
        padding: 5px;
    }

    .tootekaart td:empty {
        display: none;
    }

    figure.hnd-attributes-wrap table th,
    figure.hnd-attributes-wrap table td {
        display: block;
        width: auto;
        padding: 8px 14px;
    }

    figure.hnd-attributes-wrap table th {
        font-size: 14px;
        opacity: 0.8;
        padding-bottom: 2px;
    }

    figure.hnd-attributes-wrap table tr {
        padding: 6px 0;
    }

    table.tootekaart th,
    table.tootekaart td {
        display: block;
        width: 100%;
        border-bottom: none;
    }

    table.tootekaart tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 8px 0;
    }

    table.tootekaart tr:last-child {
        border-bottom: none;
    }

    table.tootekaart th {
        background: transparent;
        padding-bottom: 2px;
        opacity: 0.75;
    }

	.modal-dialog {
		width: 85% !important;
	}
	#gform_1_validation_container {
		display: none;
	}

	.finder-form .tootja .twf-title,
	.finder-form .hooaeg .twf-title,
	.finder-form .soiduk .twf-title {
		display: none;
	}
    /* Rehvikalkulaator */
     #tyre-size-calculator input {
		width: 85%;
	}
	#tyre-size-calculator .input-group-addon {
		width: 15%;
	}
}



.tarnekirjeldus {
    display: block;
    margin-top: 6px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.hnd-woo-tooted-columns .wp-block-post-featured-image img {
    object-fit: contain !important;
    max-height: 323px !important;
}

.hnd-tootja-info {
    display: flex;
    justify-content: space-between;;
}

.hnd-tootja-images {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: row;
}

.hnd-tootja-image {
    max-width: 180px;
}


.hnd-tooltip-content {
	visibility: hidden;
	position: absolute;
	bottom: 100%;
	transform: translateX(-25%);
	padding: 5px;
	background-color: rgba(0, 0, 0, 0.8);
	color: #fff;
	border-radius: 5px;
	font-size: 14px;
	white-space: nowrap; 
}

.hnd-tootja-image:hover .hnd-tooltip-content {
	visibility: visible;
}

.hnd-tootja-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hnd-tootja-info p.rating-label {
    margin-top: 5px;
}

.hnd-tootja-rating .star-rating span, .hnd-tootja-rating .star-rating span:before {
    color: #ffb400 !important;
}

.hnd-tootja-rating .woocommerce .star-rating::before {
    color: #ffb400;
}


.modal {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1050; /* Ensure modal is on top of other content */
	overflow: hidden !important; /* Hide scrollbars */
}

.modal-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30%;
	padding: 1em;
	background-color: #fefefe;
	border-radius: 5px;
}

.modal-open {
	overflow: hidden !important;
}

.modal-header .close {
	position: absolute;
	right: 1em;
	top: 0.5em;
	color: #000;
	font-size: 1em;
}
.modal-title {
	line-height: 12px;
	margin-top: 5px;
	margin-bottom: 10px;
	font-size: 1.5em;
}


@media screen and (max-width: 600px) {
	
}