/* foobar, footer */

#foobar-address {
    background: var(--elem-dark-third);
    text-align: left;
    display: flex;
    flex-direction: column;
    font-style: normal;
}

#foobar-address figure {
    margin: 0;
    padding: 13px 80px 13px 0;
    display: flex;
    gap: 5px
}

#foobar-address figure:not(#foobar-address figure:first-child) {
    border-top: 1px solid;
    border-color: var(--elem-dark-primary)
}

#foobar-address svg,
#foobar-address img {
    padding-right: 5px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: 400ms;
    position: relative;
    top: 6px;
}

#foobar-address img {
    height: 32px;
    width: 32px;
    top: 0;
    border-radius: 100%;
}

#foobar-address p {
    display: inline;
    margin: 0;
}

.address-info {
    align-self: flex-end
}

#foobar_form {
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

#foobar_form textarea {
    /*max-height: 150px;*/
    height: 2.65em
}

#foobar-logo {
    padding-bottom: 35px
}

#foobar-logo svg g path {
    fill: var(--elem-dark-secondary)
}

/* Content page - Password */

#content-page-block_password-reset {
    width: 450px
}

#content-page-block_password-reset p {
    margin: 0 0 15px 0;
    font-size: 110%;
    font-weight: 500;
}

ul.password-change_requirements {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    padding-left: 0
}

/* Content page - Log In */

#log-in_form p {
    text-align: right;
    font-size: 80%;
    margin-bottom: 0;
}

/* Navbar - Search */

#navbar-block_search {
    position: relative;
    cursor: pointer
}

#navbar-block_search svg {
    margin-top: 3px;
    width: 32px;
    height: 32px;
}

/* Slideshow */

.slideshow-items {
    min-height: 500px;
    position: relative
}

.slideshow-item:not(.active) {
    position: absolute!important;
}

.slideshow-item {
    height: 95vh;
    display: none;
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.slideshow-item:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(80, 80, 80, 0.55);
}

.slideshow_text {
    position: absolute;
    background: transparent;
    padding: 25px;
    max-width: var(--max-width);
    top: 50%;
    left: 0;
    right: 0;
    margin: auto;
    transform: translateY(-50%);
}

.slideshow_text h1 {
    font-size: 50px;
    color: var(--theme);
    margin: 0;
}

.slideshow_text p {
    font-size: 145%;
    width: 50%;
}

/* Home - Categories block */

.homepage-section {
    border-top: 2px solid var(--elem-light-secondary);
    padding-top: 20px;
    display: flex;
}

.category_block {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 25px;
    row-gap: 75px;
}

.category_block_list {
    grid-template-columns: repeat(4, 1fr);
    display: grid;
    gap: 25px;
}

.category_item {
    text-align: center;
    cursor: pointer;
    transition: color 250ms ease-in-out
}

.category_item svg,
.category_item path,
.category_item circle {
    transition: fill 250ms ease-in-out, stroke 250ms ease-in-out;
}

.category_item_list {
    flex: 1 0 20%;
    cursor: auto!important;
}
.category_item a:hover,
.category_item a:hover svg:not(.fill-stroke),
.category_item a:hover svg:not(.fill-stroke) path,
.category_item a:hover svg:not(.fill-stroke) circle {
    fill: var(--theme)!important;
    color: var(--theme)
}

svg.fill-stroke path[d="M 0 512 L 512 512 L 512 0 L 0 0 Z "] {  /* SVG-Inject adds border with stroke-width: 1 and it border effect when hovering on elems which needs change stroke on hover */
    stroke-width: 0!important;
}

.category_item a:hover svg.fill-stroke svg,
.category_item a:hover svg.fill-stroke path,
.category_item a:hover svg.fill-stroke circle {
    stroke: var(--theme)!important;
    color: var(--theme)
}

.category_item p {
    margin: 0;
    padding: 10px 0 10px 0
}

.category_item_border {
    border: 1px solid var(--elem-dark-primary);
    border-radius: 8px;
    padding: 25px;
    transition: 300ms background ease-in-out, 300ms border-color ease-in-out;
}

.category_item_border:hover {
    border-color: var(--theme)
}

ul.category_item_subcategories {
    list-style-type: none;
    text-align: left;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

ul.category_item_subcategories li:not(:last-child) {
    border-bottom: 1px solid var(--elem-dark-secondary);
}

ul.category_item_subcategories li {
    padding-bottom: 10px;
}

.products_block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0
}

.products_block-small {
    grid-template-columns: repeat(6, 1fr);
    font-size: 90%
}

.product_item {
    position: relative;
    padding: 10px;
    border-radius: 15px;
    transition: box-shadow 300ms;
}

.product_item img {
    max-height: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product_item img.no-image {
    max-width: 128px;
    max-height: 128px;
    margin-left: auto;
    margin-right: auto;
}

.product_item:not(.product_placeholder):hover {
    -webkit-box-shadow: 0 0 35px -9px rgba(30, 30, 30, 1);
    -moz-box-shadow: 0 0 35px -9px rgba(30, 30, 30, 1);
    box-shadow: 0 0 35px -9px rgba(30, 30, 30, 1);
}

.product_item a {
    display: flex;
    flex-direction: column;
}
.product-title {
    display: flex;
    font-size: 15px;
    flex-direction: row-reverse;
    min-height: 20px;
    justify-content: space-between;
}

.product-title h3 {
    flex-grow: 0;
    width: 83%;
    margin: 0 auto 10px 0;
    overflow-wrap: anywhere
    /*flex-basis: 100%;*/
}

.product-new a {
    margin-top: -20px;
}

.product-new_label {
    padding: 5px 15px 5px 15px!important;
    font-size: 15px!important;
}

.product-new:before,
.product-new_label {
    background: #4faf4f;
    color: #fff;
    border-radius: 50px;
    padding: 0 8px 0 8px;
    display: block;
    width: max-content;
    line-height: 20px;
    text-align: center;
    height: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px
}

.product-new:before {
    content: attr(data-before);
    z-index: 50;
    position: relative;
    margin-left: auto;
    top: 8px;
    right: 6px;
}

.product_description {
    display: flex;
    padding: 10px 0 10px 0;
    gap: 10px;
    font-size: 95%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.product_description p {
    margin: 0;
    overflow-wrap: anywhere
}

.products-header_block {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.products-header_block > h2 {
    margin: 0
}

/* Product page */

.product-header {
    gap: 15px!important;
}

.product-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
}

.product-header a {
    transition: color 300ms;
}

.product-header a:hover {
    color: var(--theme)
}

.product-main_block {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    gap: 20px;
}

#product-images {
    width: 50%;
    transition: 300ms width;
}

#product-overview {
    flex: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#product-overview .product-overview_header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--elem-light-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-overview_header h2 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 0;
}

#product-overview_info {
    display: table;
}

#product-overview_info > div {
    display: table-row;
}

#product-overview_info dt,
#product-overview_info dd {
    display: table-cell;
    padding-bottom: 10px;

}

#product-overview_info dt:not(:first-child),
#product-overview_info dd:not(:first-child) {
    padding-top: 15px;
}
#product-overview_info dt:not(:last-child),
#product-overview_info dd:not(:last-child) {
    padding-bottom: 15px;

}

#product-overview_info dt {
    font-weight: 700;
    font-size: 110%
}

#product-overview_info dd {
    padding-left: 15px;
}

/* Offer page */

.offer_content-page {
    display: flex
}

/* Icons */

.jacket-icon {
    width: 218px;
    height: 140px;
}

.address-icon svg {
    transition: fill 300ms;
}

.address-icon-path path {
    transition: fill 300ms;
}

figure:hover .facebook_icon {
    fill: var(--facebook-color)!important;
}

figure:hover .phone_icon {
    fill: var(--phone-color)!important;
}

figure:hover .nip_icon path {
    fill: var(--nip-color)!important;
}

figure:hover .mail_icon {
    fill: var(--mail-color)!important;
}

figure:hover .location-mark_icon {
    fill: var(--location-color)!important;
}

.count-info {
    font-style: normal;
    padding-left: 5px;
    color: var(--elem-light-third)
}

.filters-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 5px;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--elem-dark-primary)
}

.filters-header h2 {
    margin: 0;
    padding-bottom: 1px;
}

.clear-filters-button {
    display: flex;
    align-items: center;
    border: 1px solid var(--elem-light-third);
    background: var(--elem-light-third);
    border-radius: 5px;
}

.clear-filters-button p {
    color: var(--background);
    margin: 0
}

.clear-filters-button:hover path {
    fill: var(--background)!important;
}

.filter-button {
    width: 100%;
}

.clear-filters-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px 0 2px!important;
}


.clear-filters-button svg {
    justify-self: flex-start;
}

/* Contact view */

#contact_items {
    row-gap: 60px;
    font-size: 18px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
}

figure.contact_icon {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure.contact_icon figcaption {
    padding-top: 15px
}

#searchbox {
    overflow-y: scroll;
    position: fixed;
    top: var(--nav-height);
    width: 100%;
    width: -webkit-fill-available;
    padding-bottom: 100px;
    left: 0;
    /*background: var(--elem-dark-third);*/
    background: rgb(40,40,40);
    background: linear-gradient(0deg, rgba(40,40,40,0.7861519607843137) 0%, rgba(40,40,40,0.9542191876750701) 70%, rgba(40,40,40,1) 100%);
    z-index: 101;
    height: 100vh
}

#searchbox::-webkit-scrollbar {
    width: 0
}

#search_label-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 0 10px 0;
}

.category-label {
    display: flex;
    align-items: center;
    border: 2px solid var(--background);
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 15px 5px 15px;
    color: var(--elem-light-third);
    cursor: pointer;
    transition: 200ms border-color;
}

.category-label:hover {
    border-color: var(--theme)
}

#search-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#search-header {
    position: sticky;
    top: 0;
    z-index: 102;
    padding-right: 40px;
    padding-left: 40px;
    transition: 300ms background ease, 300ms padding ease;
}

.search-header_onscroll {
    background-color: rgba(40, 40, 40, 0);
    background-image: linear-gradient(0deg, rgba(40, 40, 40, 0) 0%, rgba(40, 40, 40, 0.67) 30%, rgba(40, 40, 40, 0.86) 43%, rgba(40, 40, 40, 0.98) 75%, rgba(40, 40, 40, 1) 100%);
    padding-bottom: 45px;
}

.search-close_icon {
    cursor: pointer;
    position: relative;
    top: 1px
}

.search_icon {
    position: fixed;
    left: 52px;
    top: calc(var(--nav-height) + 28px);
    transition: 300ms top, 300ms left;
}

.search-close_icon path {
    transition: 300ms fill;
}

.search-close_icon:hover path {
    fill: var(--theme)
}

#search-results {
    padding-bottom: 100px;
    padding-right: 40px;
    padding-left: 40px;
    grid-template-columns: repeat(5, 1fr);
}

#search-results .product_item {
    transition: 300ms background;
}

#search-results .product_item:hover {
    background: var(--background)
}

.last-watched_block h2 {
    margin: 0
}

.no-products-info {
    justify-content: center;
    text-align: center;
    padding: 100px 0 100px 0;
    font-size: 20px;
    font-weight: 600
}

.counter {
    cursor: pointer;
    position: relative;
    display: none;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 22px;
    padding: 2px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 50%;
    background: var(--theme);
    color: var(--elem-dark-fourth);
}

.quotation-request_counter {
    margin-left: -24px
}

.quotation-request_button {
    display: block!important;
    white-space: nowrap;
    position: absolute;
    background-repeat: no-repeat;
    text-align: center;
    cursor: pointer;
}

.quotation-request_button_add {
    width: 32px;
    border-radius: 5px;
    line-height: 32px;
    height: 32px;
    margin-top: -5px;
    background-image: url('../img/svg/plus.svg');
    font-weight: 700;
    transition: 200ms background ease-in, 200ms width ease-in;
    max-width: 120px;
    font-size: 16px;
    color: transparent;
}

.expand-button {
    background: var(--theme);
    width: 150px;
    color: var(--elem-dark-fourth);
    transition: all 300ms;
}

@-webkit-keyframes expandline{
  0%   { width:   0%; }
  50%  { width:  50%; }
  100% { width: 100%; }
}

.product-new .quotation-request_button_delete {
    margin: -15px 0 0 5px
}

.quotation-request_button_delete {
    border-radius: 100px;
    width: 18px;
    height: 18px;
    padding: 1px;
    margin: 5px 0 0 5px;
    z-index: 98;
    background-color: #fff;
    background-image: url('../img/svg/cross-dark.svg');
    transition: 200ms background ease-in
}

.quotation-request_button_delete:hover {
    background-color: var(--elem-dark-font)
}

.quotation-request_no-data {
    display: grid;
    grid-template-columns: 30% 5% 30%;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px
}

.quotation-request_no-data .vertical-separator {
    height: fill-available;
    height: -webkit-fill-available;
    background: var(--elem-dark-primary);
    width: 3px;
}

.quotation-request_no-data > div:first-child {
    grid-column: span 3;
}

.quotation-request_no-data > p {
    font-size: 24px;
    font-weight: 700
}

.quotation-request_no-data .quotation-request_search-link {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center
}

.filter-block:not(:has(.filter-fields *)) {
    display: none
}

.sizes_block {
    display: flex;
    flex-wrap: wrap;
    row-gap: 5px;
}

#show-filter-menu {
    display: flex;
}

#show-filter-menu span {
    padding-left: 4px;
    font-weight: 400;
    font-size: 95%
}
