/*
Theme Name: METALVIS Theme
Theme URI: https://metalvis.bg
Author: DenysYa
Author URI: https://metalvis.bg
Description: Custom WordPress theme for METALVIS
Version: 1.0.0
Text Domain: metalvis-theme
*/

:root {
    --color-primary: #00c7ff;
    --color-white: #fff;
    --color-secondary: #0082cb;
    --color-text: #222;
    --color-bg: #fff;

    --container-width: 1360px;
    --container-padding: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}



/* =========================================
   HEADER
========================================= */

:root {
    --color-primary: #00c7ff;
    --color-secondary: #0082cb;
    --color-white: #ffffff;
    --color-text: #1c2733;
    --color-muted: #687481;
    --color-border: #d9e3ea;
    --color-bg-soft: #f5f9fc;

    --container-width: 1360px;
    --container-padding: 20px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --transition: 0.25s ease;
    --shadow-soft: 0 10px 30px rgba(19, 54, 84, 0.08);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/* TOPBAR */
.header-topbar {
    background: #ecedef;
    color: var(--color-muted);
    font-size: 12px;
}

.header-topbar__inner {
    min-height: 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.header-topbar__text,
.header-topbar__promo {
    margin: 0;
}

.header-topbar__promo {
    font-weight: 700;
    text-align: center;
}

.header-topbar__account {
    justify-self: end;
    font-weight: 700;
}

.header-topbar__account:hover {
    opacity: 0.8;
}

/* STICKY WRAP */
.header-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    transition: box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
    will-change: box-shadow;
}

.header-sticky-wrap.is-scrolled {
    box-shadow: 0 8px 24px rgba(16, 31, 47, 0.10);
}

.header-sticky-placeholder {
    display: none !important;
}

/* MAIN HEADER */
.header-main {
    background-color: var(--color-white);
}

.header-main__inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: 180px minmax(320px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

/* LOGO */
.header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-brand__link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.header-brand__text {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
}

.custom-logo-link,
.custom-logo {
    display: block;
}

.custom-logo {
    max-height: 56px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* SEARCH */
.header-search {
    width: 100%;
    min-width: 0;
}

.header-search__form {
    display: flex;
    align-items: stretch;
    width: 100%;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.header-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 22px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
}

.header-search__input::placeholder {
    color: var(--color-muted);
}

.header-search__button {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 0 24px;
    border: none;
    cursor: pointer;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color var(--transition);
}

.header-search__button:hover {
    background-color: var(--color-secondary);
}

/* TOOLS */
.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 6px;
    white-space: nowrap;
}

.header-phone__label {
    font-size: 12px;
    line-height: 1.2;
    color: var(--color-muted);
}

.header-phone__value {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-secondary);
}

.header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.header-action:hover {
    border-color: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-1px);
}

.header-action--cart {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}

.header-action--cart:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.header-action__icon {
    font-size: 16px;
    line-height: 1;
}

.header-action__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding-inline: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.header-action--wishlist:not(.has-items) .header-action__count {
    display: none;
}

/* BURGER */
.header-burger {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
}

.header-burger:hover {
    border-color: var(--color-primary);
    background: #f4fbfe;
}

.header-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background-color: var(--color-secondary);
}

/* NAV */
.header-nav {
    background-color: #0082cb;
    border-top: 1px solid #e7ebef;
    border-bottom: 1px solid #e7ebef;
}

.main-nav {
    width: 100%;
}

.main-nav__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 70px;
    min-height: 58px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav__list > li {
    margin: 0;
    padding: 0;
}

.main-nav__list > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.main-nav__list > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

.main-nav__list > li > a:hover {
    color: var(--color-primary);
}

.main-nav__list > li > a:hover::after,
.main-nav__list > li.current-menu-item > a::after,
.main-nav__list > li.current-menu-parent > a::after {
    width: 100%;
}

/* MOBILE MENU */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1098;
    background: rgba(12, 18, 24, 0.52);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, calc(100vw - 24px));
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1099;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -12px 0 36px rgba(16, 31, 47, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 18px;
    border-bottom: 1px solid #e7ebef;
}

.mobile-menu__title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2b36;
}

.mobile-menu__close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6f7a83;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu__search {
    margin-bottom: 18px;
}

.mobile-menu__search-form {
    display: flex;
    border: 1px solid #d8e2ec;
    background: #fff;
    overflow: hidden;
}

.mobile-menu__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: none;
    outline: none;
    font-size: 14px;
}

.mobile-menu__search-button {
    min-width: 92px;
    border: none;
    background: #00c7ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu__search-button:hover {
    background: #0082cb;
}

.mobile-menu__nav {
    margin-bottom: 20px;
}

.mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__list > li {
    border-bottom: 1px solid #edf2f6;
}

.mobile-menu__list > li > a {
	display: block;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2b36;
}

.mobile-menu__list > li > a:hover {
    color: #0082cb;
}

.mobile-menu__actions {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e7ebef;
}

.mobile-menu__action,
.mobile-menu__phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d8e2ec;
    background: #fff;
    color: #1f2b36;
    font-size: 14px;
    font-weight: 700;
}

.mobile-menu__phone {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
}

.mobile-menu__phone-label {
    font-size: 12px;
    color: #6f7a83;
    font-weight: 400;
}

.mobile-menu__phone-value {
    color: #0082cb;
    font-size: 16px;
    font-weight: 700;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Mobile menu catalog button */
.mobile-menu__catalog-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-bottom: 18px;
    padding: 0 14px;
    background: #00c7ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    border: 1px solid #00c7ff;
}

.mobile-menu__catalog-button:hover {
    background: #0082cb;
    border-color: #0082cb;
    color: #fff;
}

/* Mobile menu account link */
.mobile-menu__account {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d8e2ec;
    background: #fff;
    color: #1f2b36;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.mobile-menu__account:hover {
    border-color: #00c7ff;
    color: #0082cb;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
    .header-main__inner {
        grid-template-columns: 150px minmax(0, 1fr) auto;
        gap: 18px;
    }

    .custom-logo {
        max-height: 50px;
        max-width: 150px;
    }

    .header-phone {
        display: none;
    }

    .header-action__text {
        display: none;
    }

    .header-action {
        width: 50px;
        min-width: 50px;
        padding: 0;
    }

    .header-tools {
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .header-topbar__inner {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .header-topbar__promo {
        display: none;
    }

    .header-main {
        padding: 12px 0;
    }

    .header-main__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        min-height: auto;
    }

    .header-brand {
        min-width: 0;
    }

    .header-brand__link {
        max-width: 100%;
    }

    .custom-logo {
        max-height: 48px;
        max-width: 150px;
        width: auto;
        height: auto;
    }

    .header-search {
        display: none;
    }

    .header-nav {
        display: none;
    }

    .header-tools {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-action {
        width: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .header-action__icon {
        font-size: 15px;
    }

    .header-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 46px;
        min-width: 46px;
        height: 46px;
        flex-shrink: 0;
    }

    .mobile-menu {
        width: min(360px, calc(100vw - 16px));
        height: 100dvh;
        max-height: 100dvh;
    }

    .mobile-menu__body {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

@media (max-width: 767px) {
    .container {
        padding-inline: 16px;
    }

    .header-topbar {
        display: none;
    }

    .header-main {
        padding: 10px 0;
    }

    .header-main__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .custom-logo {
        max-height: 44px;
        max-width: 130px;
    }

    .header-tools {
        gap: 6px;
    }

    .header-action {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .header-action__count {
        top: -4px;
        right: -4px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .header-burger {
        width: 44px;
        min-width: 44px;
        height: 44px;
        margin-left: 12px;
        transform: translateX(0);
    }

    .header-burger span {
        width: 18px;
    }

    .mobile-menu {
        width: calc(100vw - 12px);
    }
    
        .mobile-menu__catalog-button {
        min-height: 44px;
        margin-bottom: 16px;
        font-size: 16px;

	    }

    .mobile-menu__header {
        min-height: 60px;
        padding: 0 16px;
    }

    .mobile-menu__body {
        padding: 14px;
    }

    .mobile-menu__search-input {
        height: 44px;
        font-size: 14px;
    }

    .mobile-menu__search-button {
        min-width: 86px;
        font-size: 14px;
    }

}

@media (max-width: 575px) {
    .header-main {
        padding: 8px 0;
    }

    .custom-logo {
        max-height: 40px;
        max-width: 120px;
    }

    .header-tools {
        gap: 5px;
    }

    .header-action,
    .header-burger {
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        transform: translateX(0);

    }

    .mobile-menu {
        width: 100vw;
    }
}


/* =========================================================
   CATALOG PAGE — CATEGORIES REDESIGN
========================================================= */

.metalvis-catalog-page {
    padding: 24px 0 64px;
    background: #fff;
}

.metalvis-catalog-header {
    margin-bottom: 28px;
    padding: 16px 21px;
    border: 1px solid #e4ebf1;
    background: linear-gradient(180deg, #f8fbfd 0%, #f2f7fb 100%);
}

.metalvis-catalog-page .woocommerce-breadcrumb {
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #6f7a83;
}

.metalvis-catalog-page .woocommerce-breadcrumb a {
    color: #0082cb;
    text-decoration: none;
}

.metalvis-catalog-page .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

.metalvis-catalog-page .woocommerce-products-header__title,
.metalvis-catalog-page .page-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 32px;
    line-height: 1.12;
    font-weight: 700;
    color: #1f2b36;
}

.metalvis-catalog-page .term-description,
.metalvis-catalog-page .woocommerce-products-header__description {
    margin-top: 14px;
    max-width: 820px;
    color: #5f6d78;
    font-size: 16px;
    line-height: 1.75;
}

.metalvis-catalog-page .woocommerce-notices-wrapper:empty {
    display: none;
}

/* =========================================================
   CATEGORY GRID
========================================================= */
.metalvis-catalog-page ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.metalvis-catalog-page ul.products::before,
.metalvis-catalog-page ul.products::after {
    display: none !important;
    content: none !important;
}

.metalvis-catalog-page ul.products li.product-category {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

/* =========================================================
   CATEGORY CARD
========================================================= */
.metalvis-catalog-card {
    min-width: 0;
}

.metalvis-catalog-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    height: 100%;
    padding: 22px;
    border: 1px solid #e6edf2;
    background: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 41, 61, 0.04);
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.metalvis-catalog-card__inner:hover {
    border-color: #cfe2ee;
    box-shadow: 0 14px 36px rgba(15, 41, 61, 0.08);
    transform: translateY(-4px);
}

.metalvis-catalog-card__title {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 58%;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2b36;
}

.metalvis-catalog-card__footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 18px;
}

.metalvis-catalog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0082cb;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.metalvis-catalog-card__link-text {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metalvis-catalog-card__arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.metalvis-catalog-card__inner:hover .metalvis-catalog-card__link {
    color: #00a6da;
}

.metalvis-catalog-card__inner:hover .metalvis-catalog-card__arrow {
    transform: translateX(4px);
}

.metalvis-catalog-card__image-wrap {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 52%;
    height: 66%;
    pointer-events: none;
}

.metalvis-catalog-card__image-wrap img,
.metalvis-catalog-card__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

/* hide default WooCommerce title styles */
.metalvis-catalog-page .product-category .woocommerce-loop-category__title {
    margin: 0;
    padding: 0;
}

.metalvis-catalog-page .product-category .count {
    display: none;
}

/* =========================================================
   RESULT COUNT / ORDERING
========================================================= */
.metalvis-catalog-page .woocommerce-result-count,
.metalvis-catalog-page .woocommerce-ordering,
.metalvis-catalog-page .woocommerce-notices-wrapper {
    display: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1199px) {
    .metalvis-catalog-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .metalvis-catalog-card__inner {
        min-height: 230px;
        padding: 18px;
    }

    .metalvis-catalog-card__title {
        font-size: 18px;
        max-width: 56%;
    }
}

@media (max-width: 991px) {
    .metalvis-catalog-page .woocommerce-products-header__title,
    .metalvis-catalog-page .page-title {
        font-size: 30px;
    }

    .metalvis-catalog-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metalvis-catalog-card__inner {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    .metalvis-catalog-page {
        padding: 16px 0 40px;
    }

    .metalvis-catalog-header {
        margin-bottom: 20px;
        padding: 20px 18px;
    }

    .metalvis-catalog-page .woocommerce-breadcrumb {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .metalvis-catalog-page .woocommerce-products-header__title,
    .metalvis-catalog-page .page-title {
        font-size: 24px;
    }

    .metalvis-catalog-page .term-description,
    .metalvis-catalog-page .woocommerce-products-header__description {
        font-size: 14px;
        line-height: 1.7;
    }

    .metalvis-catalog-page ul.products {
        gap: 12px;
    }

    .metalvis-catalog-card__inner {
        min-height: 190px;
        padding: 14px;
    }

    .metalvis-catalog-card__title {
        max-width: 58%;
        font-size: 15px;
    }

    .metalvis-catalog-card__link {
        font-size: 12px;
    }

    .metalvis-catalog-card__image-wrap {
        right: 10px;
        bottom: 10px;
        width: 50%;
        height: 58%;
    }
}

@media (max-width: 479px) {
    .metalvis-catalog-page ul.products {
        grid-template-columns: 1fr;
    }

    .metalvis-catalog-card__inner {
        min-height: 200px;
    }

    .metalvis-catalog-card__title {
        max-width: 52%;
    }

    .metalvis-catalog-card__image-wrap {
        width: 46%;
        height: 56%;
    }
}



/* =========================
   FOOTER
========================= */

.site-footer{
    color:#fff;
    background:#1f2935;
}

.site-footer__top{
    position:relative;
    border-top:3px solid #00c7ff;
    padding:54px 0 42px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%),
        #1f2935;
}

.site-footer__grid{
    display:grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
    gap:56px;
    align-items:start;
}

.site-footer__logo{
    display:inline-flex;
    align-items:center;
    margin-bottom:18px;
}

.site-footer__brand .custom-logo{
    max-width:170px;
    max-height:56px;
    width:auto;
    height:auto;
    object-fit:contain;
}

.site-footer__logo-text{
    font-size:28px;
    font-weight:700;
    letter-spacing:.04em;
    color:#fff;
}

.site-footer__desc{
    max-width:320px;
    margin:0;
    color:rgba(255,255,255,0.72);
    font-size:15px;
    line-height:2.75;
}

.site-footer__title{
    margin:0 0 18px;
    font-size:16px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#00c7ff;
}

.footer-menu{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap:12px 28px;
}

.footer-menu li{
    margin:0;
    padding:0;
}

.footer-menu a{
    color:#ffffff;
    font-size:15px;
    line-height:1.5;
    opacity:.88;
}

.footer-menu a:hover{
    color:#00c7ff;
    opacity:1;
}

.site-footer__list{
    margin:0 0 24px;
    padding:0;
    list-style:none;
    display:grid;
    gap:12px;
}

.site-footer__list li{
    margin:0;
    color:rgba(255,255,255,0.82);
    font-size:15px;
    line-height:1.6;
}

.site-footer__list a{
    color:#fff;
}

.site-footer__list a:hover{
    color:#00c7ff;
}

.site-footer__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 20px;
    border:1px solid #00c7ff;
    background:transparent;
    color:#fff;
    font-size:14px;
    font-weight:700;
    letter-spacing:.03em;
}

.site-footer__btn:hover{
    background:#00c7ff;
    color:#0f1a24;
}

.site-footer__bottom{
    border-top:1px solid rgba(255,255,255,0.08);
    background:#18212b;
}

.site-footer__bottom-inner{
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:10px 0;
}

.site-footer__bottom-inner p{
    margin:0;
    color:rgba(255,255,255,0.58);
    font-size:13px;
}

.site-footer__bottom-links{
    display:flex;
    flex-wrap:wrap;
    gap:12px 24px;
}

.site-footer__bottom-links a{
    color:rgba(255,255,255,0.58);
    font-size:13px;
}

.site-footer__bottom-links a:hover{
    color:#00c7ff;
}

@media (max-width: 991px){
    .site-footer__grid{
        grid-template-columns:1fr;
        gap:32px;
    }

    .footer-menu{
        grid-template-columns:1fr 1fr;
    }

    .site-footer__desc{
        max-width:100%;
    }

    .site-footer__bottom-inner{
        flex-direction:column;
        align-items: center;
    }
}

@media (max-width: 767px){

    .site-footer__top{
        padding: 20px 0 25px;
    }

    .footer-menu{
        grid-template-columns:1fr;
    }

    .site-footer__btn{
        width:100%;
    }
}


/* =========================
   YITH WISHLIST — CLEAN FINAL
========================= */

/* base wrapper */
.new-product-card__wishlist,
.most-bought-card__wishlist{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    line-height: 1;
}

.new-product-card__wishlist *,
.most-bought-card__wishlist *{
    box-sizing: border-box;
}

/* plugin outer wrapper */
.new-product-card__wishlist .yith-add-to-wishlist-button-block,
.most-bought-card__wishlist .yith-add-to-wishlist-button-block{
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

/* actual plugin button */
.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button{
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dce4eb !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #8a97a3 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none !important;
    cursor: pointer;
    overflow: hidden;
    transition:
        border-color .2s ease,
        color .2s ease,
        background-color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

/* hide plugin text */
.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button__label,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button__label{
    display: none !important;
}

/* icon wrapper */
.new-product-card__wishlist .yith-wcwl-icon-svg__wrapper,
.most-bought-card__wishlist .yith-wcwl-icon-svg__wrapper{
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    flex: 0 0 18px;
    z-index: 1;
}

/* small icon background circle */
.new-product-card__wishlist .yith-wcwl-icon-svg__wrapper::before,
.most-bought-card__wishlist .yith-wcwl-icon-svg__wrapper::before{
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: transparent;
    transition: background-color .2s ease, transform .2s ease;
    z-index: -1;
}

/* svg icon */
.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button svg,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button svg{
    display: block;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
    transition: stroke .2s ease, fill .2s ease, transform .2s ease;
}

/* hover */
.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button:hover,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button:hover{
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
    background: #fff !important;
    transform: translateY(-1px);
}

.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon-svg__wrapper::before,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon-svg__wrapper::before{
    background: rgba(0,130,203,.08);
}

/* active state via wrapper class */
.new-product-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button,
.most-bought-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button{
    border-color: #0082cb !important;
    color: #0082cb !important;
    background: #fff !important;
}

.new-product-card__wishlist.is-wishlist-active .yith-wcwl-icon-svg__wrapper::before,
.most-bought-card__wishlist.is-wishlist-active .yith-wcwl-icon-svg__wrapper::before{
    background: #0082cb !important;
}

.new-product-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button svg,
.most-bought-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button svg{
    stroke: #ffffff !important;
    fill: rgba(255,255,255,.18) !important;
}

/* active hover */
.new-product-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button:hover,
.most-bought-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button:hover{
    border-color: #006eac !important;
    color: #006eac !important;
    background: #fff !important;
}

.new-product-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon-svg__wrapper::before,
.most-bought-card__wishlist.is-wishlist-active .yith-wcwl-add-to-wishlist-button:hover .yith-wcwl-icon-svg__wrapper::before{
    background: #006eac !important;
}

/* loading */
.new-product-card__wishlist .yith-wcwl-add-to-wishlist-button.is-loading,
.most-bought-card__wishlist .yith-wcwl-add-to-wishlist-button.is-loading{
    opacity: .72 !important;
    pointer-events: none;
}

/* =========================
   YITH NOTICE / TOAST
========================= */

.woocommerce-message,
.woocommerce-info,
.yith-wcwl-notice,
.yith-wcwl-message,
.yith-wcwl-add-to-wishlist-response,
.yith-add-to-wishlist-message,
.yith-wcwl-notification,
.yith-wcwl-notifications,
.yith-wcwl-popup-message,
.yith-wcwl-toast,
.yith-wcwl-toast-message{
    position: relative !important;
    margin: 14px 0 !important;
    padding: 14px 16px 14px 44px !important;
    border: 1px solid rgba(0,130,203,.18) !important;
    border-left: 4px solid #0082cb !important;
    border-radius: 8px !important;
    background: #f4fbff !important;
    color: #1f2b36 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-shadow: 0 10px 24px rgba(0,130,203,.06) !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.yith-wcwl-notice::before,
.yith-wcwl-message::before,
.yith-wcwl-add-to-wishlist-response::before,
.yith-add-to-wishlist-message::before,
.yith-wcwl-notification::before,
.yith-wcwl-popup-message::before,
.yith-wcwl-toast::before,
.yith-wcwl-toast-message::before{
    content: "✓";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0082cb;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.woocommerce-message a,
.woocommerce-info a,
.yith-wcwl-notice a,
.yith-wcwl-message a,
.yith-wcwl-add-to-wishlist-response a,
.yith-add-to-wishlist-message a,
.yith-wcwl-notification a,
.yith-wcwl-popup-message a,
.yith-wcwl-toast a,
.yith-wcwl-toast-message a{
    color: #0082cb !important;
    font-weight: 700;
    text-decoration: none;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover,
.yith-wcwl-notice a:hover,
.yith-wcwl-message a:hover,
.yith-wcwl-add-to-wishlist-response a:hover,
.yith-add-to-wishlist-message a:hover,
.yith-wcwl-notification a:hover,
.yith-wcwl-popup-message a:hover,
.yith-wcwl-toast a:hover,
.yith-wcwl-toast-message a:hover{
    text-decoration: underline;
}



/* =========================================================
   SHOP CATALOG PAGE — ROOT PRODUCT CATEGORIES
========================================================= */
.metalvis-catalog-page {
    padding: 20px 0 56px;
    background: #fff;
}

.metalvis-catalog-page .woocommerce-breadcrumb {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #6f7a83;
}

.metalvis-catalog-page .woocommerce-breadcrumb a {
    color: #0082cb;
    text-decoration: none;
}

.metalvis-catalog-page .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

.metalvis-catalog-header {
    margin-bottom: 24px;
}

.metalvis-catalog-header .woocommerce-products-header__title,
.metalvis-catalog-header .page-title {
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #e7ebef;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2b36;
}

.metalvis-catalog-page .term-description,
.metalvis-catalog-page .woocommerce-products-header__description,
.metalvis-catalog-page .page-description {
    margin-top: 14px;
    max-width: 900px;
    color: #5f6d78;
    font-size: 15px;
    line-height: 1.7;
}

.metalvis-catalog-page .woocommerce-notices-wrapper:empty {
    display: none;
}

/* =========================================================
   CATEGORIES GRID
========================================================= */
.metalvis-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}

.metalvis-catalog-card {
    min-width: 0;
}

.metalvis-catalog-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 340px;
    padding: 14px;
    border: 1px solid #e3e8ee;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.metalvis-catalog-card__inner:hover {
    border-color: rgba(0,130,203,.22);
    box-shadow: 0 10px 24px rgba(0, 130, 203, 0.08);
    transform: translateY(-1px);
}

.metalvis-catalog-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    min-height: 170px;
    margin-bottom: 14px;
    padding: 10px;
    text-decoration: none;
    overflow: hidden;
    box-sizing: border-box;
    background: #fff;
}

.metalvis-catalog-card__image-link img,
.metalvis-catalog-card__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 140px !important;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
}

.metalvis-catalog-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.metalvis-catalog-card__title {
    margin: 0 0 10px;
    min-height: calc(1.35em * 3);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2b36;
    word-break: break-word;
}

.metalvis-catalog-card__title a {
    color: inherit;
    text-decoration: none;
}

.metalvis-catalog-card__title a:hover {
    color: #0082cb;
}

.metalvis-catalog-card__description {
    color: #5f6d78;
    font-size: 14px;
    line-height: 1.6;
    min-height: calc(1.6em * 3);
    overflow: hidden;
}

.metalvis-catalog-card__bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e7ebef;
}

.metalvis-catalog-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 0 14px;
    background: #00c7ff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease;
}

.metalvis-catalog-card__button:hover {
    background: #0082cb;
    color: #fff;
    transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1399px) {
    .metalvis-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .metalvis-catalog-header .woocommerce-products-header__title,
    .metalvis-catalog-header .page-title {
        font-size: 28px;
    }

    .metalvis-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .metalvis-catalog-card__inner {
        min-height: 320px;
    }
}

@media (max-width: 991px) {
    .metalvis-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .metalvis-catalog-page {
        padding: 16px 0 40px;
    }

    .metalvis-catalog-header .woocommerce-products-header__title,
    .metalvis-catalog-header .page-title {
        font-size: 24px;
        padding-bottom: 14px;
    }

    .metalvis-catalog-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .metalvis-catalog-card__inner {
        min-height: 0;
    }

    .metalvis-catalog-card__image-link {
        height: 180px;
        min-height: 180px;
    }

    .metalvis-catalog-card__title {
        min-height: 0;
        font-size: 15px;
    }

    .metalvis-catalog-card__description {
        min-height: 0;
    }
}


/* Вспливаюче вікно кошика */

.metalvis-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10020;
    width: min(420px, calc(100vw - 24px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.metalvis-cart-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.metalvis-cart-toast__inner {
    position: relative;
    padding: 18px;
    border: 1px solid #d8e2ec;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 31, 47, 0.18);
}

.metalvis-cart-toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #6f7a83;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.metalvis-cart-toast__close:hover {
    color: #1f2b36;
}

.metalvis-cart-toast__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #16804b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.metalvis-cart-toast__title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1f2b36;
}

.metalvis-cart-toast__text {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #46535d;
}

.metalvis-cart-toast__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.metalvis-cart-toast__button {
    min-height: 42px;
    padding: 0 16px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, color .2s ease;
}

.metalvis-cart-toast__button--primary {
    background: #00c7ff;
    color: #fff;
}

.metalvis-cart-toast__button--primary:hover {
    background: #0082cb;
    color: #fff;
    transform: translateY(-1px);
}

.metalvis-cart-toast__button--secondary {
    background: #eef5fa;
    color: #1f2b36;
}

.metalvis-cart-toast__button--secondary:hover {
    background: #dfeaf3;
    color: #1f2b36;
}

.single-product .single_add_to_cart_button.loading,
.single-product button.single_add_to_cart_button.loading {
    opacity: .75;
    pointer-events: none;
}

/* Single product add-to-cart loading without Woo spinner */
.single-product .single_add_to_cart_button.loading,
.single-product button.single_add_to_cart_button.loading,
.metalvis-buy-panel__actions .single_add_to_cart_button.loading,
.metalvis-buy-panel__actions .button.single_add_to_cart_button.loading {
    opacity: 0.78;
    cursor: wait;
    pointer-events: none;
}

/* hide default Woo spinner / pseudo elements */
.single-product .single_add_to_cart_button.loading::after,
.single-product button.single_add_to_cart_button.loading::after,
.metalvis-buy-panel__actions .single_add_to_cart_button.loading::after,
.metalvis-buy-panel__actions .button.single_add_to_cart_button.loading::after,
.single-product .single_add_to_cart_button::after,
.single-product button.single_add_to_cart_button::after {
    display: none !important;
    content: none !important;
}

/* keep button text stable */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
    position: relative;
}

@media (max-width: 767px) {
    .metalvis-cart-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .metalvis-cart-toast__inner {
        padding: 16px;
    }

    .metalvis-cart-toast__actions {
        flex-direction: column;
    }

    .metalvis-cart-toast__button {
        width: 100%;
    }
}


/* Кнопка "Нагору" */

.metalvis-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d8e2ec;
    background: #00c7ff;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 130, 203, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease,
        background-color .2s ease,
        border-color .2s ease;
}

.metalvis-scroll-top:hover {
    background: #0082cb;
    border-color: #0082cb;
    transform: translateY(8px);
}

.metalvis-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .metalvis-scroll-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}



/* =========================================
   SEARCH RESULTS PAGE
========================================= */
.search-results-page {
    padding: 20px 0 56px;
    background: #fff;
}

.search-results-page__header {
    margin-bottom: 24px;
}

.search-results-page__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #0082cb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-results-page__title {
    margin: 0 0 18px;
    color: #1f2b36;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.search-results-page__title span {
    color: #0082cb;
}

.search-results-page__form-wrap {
    max-width: 720px;
}

.search-results-page__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.search-results-page__input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d8e2ec;
    background: #fff;
    font-size: 15px;
    color: #1f2b36;
}

.search-results-page__input:focus {
    outline: none;
    border-color: #0082cb;
}

.search-results-page__button {
    min-height: 48px;
    padding: 0 22px;
    border: none;
    background: #00c7ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.search-results-page__button:hover {
    background: #0082cb;
    transform: translateY(-1px);
}

.search-results-page__count {
    margin-bottom: 18px;
    color: #66737d;
    font-size: 14px;
}

.search-results-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.search-product-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 410px;
    padding: 14px;
    border: 1px solid #e3e8ee;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-product-card__inner:hover {
    border-color: rgba(0,130,203,.22);
    box-shadow: 0 10px 24px rgba(0,130,203,.08);
    transform: translateY(-1px);
}

.search-product-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    min-height: 150px;
    margin-bottom: 12px;
    padding: 8px;
    text-decoration: none;
    overflow: hidden;
}

.search-product-card__image-link img,
.search-product-card__image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 110px !important;
    object-fit: contain;
    margin: 0 auto;
}

.search-product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.search-product-card__title {
    display: -webkit-box;
    margin-bottom: 10px;
    min-height: calc(1.35em * 3);
    color: #1f2b36;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.search-product-card__title:hover {
    color: #0082cb;
}

.search-product-card__sku-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
    color: #7a8791;
    font-size: 12px;
    line-height: 1.4;
}

.search-product-card__sku-label {
    color: #8a97a3;
    flex-shrink: 0;
}

.search-product-card__sku {
    color: #55636f;
    min-width: 0;
    overflow-wrap: anywhere;
}

.search-product-card__stock {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.search-product-card__stock.is-in-stock {
    color: #20b26b;
}

.search-product-card__stock.is-out-of-stock {
    color: #9aa5ae;
}

.search-product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: 14px;
}

.search-product-card__price {
    color: #1f2b36;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 700;
}

.search-product-card__price--sale {
    color: #df1c41;
}

.search-product-card__price--empty {
    color: #7d8a95;
    font-size: 15px;
    font-weight: 600;
}

.search-product-card__old-price {
    color: #8b97a1;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: line-through;
}

.search-product-card__bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e7ebef;
}

.search-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    width: 100%;
    padding: 0 14px;
    background: #00c7ff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color .2s ease, transform .2s ease;
}

.search-product-card__button:hover {
    background: #0082cb;
    color: #fff;
    transform: translateY(-1px);
}

.search-results-page__empty {
    padding: 36px 24px;
    border: 1px solid #e3e8ee;
    background: #fafcfd;
}

.search-results-page__empty-title {
    margin: 0 0 10px;
    font-size: 24px;
    color: #1f2b36;
}

.search-results-page__empty-text {
    margin: 0;
    color: #66737d;
    font-size: 15px;
    line-height: 1.6;
}

.navigation.pagination {
    margin-top: 28px;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8e2ec;
    background: #fff;
    color: #1f2b36;
    text-decoration: none;
}

.navigation.pagination .page-numbers.current {
    background: #0082cb;
    border-color: #0082cb;
    color: #fff;
}

@media (max-width: 1199px) {
    .search-results-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .search-results-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .search-results-page {
        padding: 16px 0 40px;
    }

    .search-results-page__title {
        font-size: 24px;
    }

    .search-results-page__form {
        grid-template-columns: 1fr;
    }

    .search-results-page__grid {
        grid-template-columns: 1fr;
    }

    .search-product-card__inner {
        min-height: 0;
    }
}



/* =========================================
   MY ACCOUNT PAGE
========================================= */
.metalvis-account-page .woocommerce {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 20px 56px;
}

.metalvis-account-page .woocommerce::after,
.metalvis-account-page .woocommerce::before {
    content: "";
    display: table;
    clear: both;
}

.metalvis-account-page .woocommerce-notices-wrapper {
    margin-bottom: 18px;
}

.metalvis-account-page .woocommerce-message,
.metalvis-account-page .woocommerce-info,
.metalvis-account-page .woocommerce-error {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #d8e2ec;
    background: #f8fbfd;
    color: #1f2b36;
    list-style: none;
}

.metalvis-account-page .woocommerce-error {
    border-color: #f0c7c7;
    background: #fff7f7;
    color: #a53b3b;
}

.metalvis-account-page .woocommerce-message {
    border-color: #cde6d6;
    background: #f3fbf6;
    color: #16784a;
}

.metalvis-account-page .woocommerce-info {
    border-color: #d8e2ec;
    background: #f8fbfd;
    color: #1f2b36;
}

/* login/register before auth */
.metalvis-account-page .woocommerce-account .woocommerce,
.metalvis-account-page .woocommerce form.login,
.metalvis-account-page .woocommerce form.register {
    margin: 0;
}

.metalvis-account-page .woocommerce-account .u-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.metalvis-account-page .woocommerce-account .u-column1,
.metalvis-account-page .woocommerce-account .u-column2 {
    float: none;
    width: auto;
    margin: 0;
}

.metalvis-account-page .woocommerce form.login,
.metalvis-account-page .woocommerce form.register {
    padding: 24px;
    border: 1px solid #d8e2ec;
    background: #fff;
}

.metalvis-account-page .woocommerce form.login > h2,
.metalvis-account-page .woocommerce form.register > h2 {
    margin: 0 0 18px;
    color: #0082cb;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.metalvis-account-page .woocommerce form .form-row {
    margin-bottom: 16px;
}

.metalvis-account-page .woocommerce form label {
    display: block;
    margin-bottom: 6px;
    color: #1f2b36;
    font-size: 14px;
    font-weight: 700;
}

.metalvis-account-page .woocommerce form .input-text,
.metalvis-account-page .woocommerce form input[type="text"],
.metalvis-account-page .woocommerce form input[type="email"],
.metalvis-account-page .woocommerce form input[type="password"],
.metalvis-account-page .woocommerce form input[type="tel"] {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d8e2ec;
    background: #fff;
    font-size: 15px;
    color: #1f2b36;
    box-shadow: none;
}

.metalvis-account-page .woocommerce form .input-text:focus,
.metalvis-account-page .woocommerce form input:focus {
    outline: none;
    border-color: #0082cb;
}

.metalvis-account-page .woocommerce form .show-password-input {
    top: 50%;
    transform: translateY(-50%);
}

.metalvis-account-page .woocommerce form .button,
.metalvis-account-page .woocommerce button.button,
.metalvis-account-page .woocommerce a.button {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    background: #00c7ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 46px;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .2s ease, transform .2s ease;
}

.metalvis-account-page .woocommerce form .button:hover,
.metalvis-account-page .woocommerce button.button:hover,
.metalvis-account-page .woocommerce a.button:hover {
    background: #0082cb;
    color: #fff;
    transform: translateY(-1px);
}

.metalvis-account-page .woocommerce .lost_password {
    margin-top: 10px;
}

.metalvis-account-page .woocommerce .lost_password a {
    color: #0082cb;
    text-decoration: none;
}

.metalvis-account-page .woocommerce .lost_password a:hover {
    text-decoration: underline;
}

/* logged in layout */
.metalvis-account-page .woocommerce-MyAccount-navigation {
    float: left;
    width: 280px;
    margin-right: 28px;
}

.metalvis-account-page .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #d8e2ec;
    background: #fff;
}

.metalvis-account-page .woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid #e7ebef;
}

.metalvis-account-page .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.metalvis-account-page .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 14px 16px;
    color: #1f2b36;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color .2s ease, color .2s ease;
}

.metalvis-account-page .woocommerce-MyAccount-navigation a:hover {
    background: #f4fbfe;
    color: #0082cb;
}

.metalvis-account-page .woocommerce-MyAccount-navigation-link.is-active a {
    background: #0082cb;
    color: #fff;
}

.metalvis-account-page .woocommerce-MyAccount-content {
    overflow: hidden;
    min-width: 0;
    padding: 24px;
    border: 1px solid #d8e2ec;
    background: #fff;
}

.metalvis-account-page .woocommerce-MyAccount-content h2,
.metalvis-account-page .woocommerce-MyAccount-content h3 {
    margin-top: 0;
    color: #0082cb;
}

.metalvis-account-page .woocommerce-MyAccount-content p,
.metalvis-account-page .woocommerce-MyAccount-content li,
.metalvis-account-page .woocommerce-MyAccount-content address {
    color: #46535d;
    font-size: 15px;
    line-height: 1.7;
}

.metalvis-account-page .woocommerce-MyAccount-content a {
    color: #0082cb;
}

.metalvis-account-page .woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d8e2ec;
}

.metalvis-account-page .woocommerce-MyAccount-content table.shop_table th,
.metalvis-account-page .woocommerce-MyAccount-content table.shop_table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e7ebef;
    text-align: left;
}

.metalvis-account-page .woocommerce-MyAccount-content table.shop_table th {
    background: #f7fbfd;
    color: #66737d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.metalvis-account-page .woocommerce-MyAccount-content .addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.metalvis-account-page .woocommerce-Address {
    padding: 18px;
    border: 1px solid #d8e2ec;
    background: #fafcfd;
}

.metalvis-account-page .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metalvis-account-page .woocommerce-orders-table__cell-order-actions .button,
.metalvis-account-page .woocommerce-Address-title .edit {
    min-height: 38px;
    line-height: 38px;
    padding: 0 14px;
    background: #00c7ff;
    color: #fff;
    text-decoration: none;
}

.metalvis-account-page .woocommerce-orders-table__cell-order-actions .button:hover,
.metalvis-account-page .woocommerce-Address-title .edit:hover {
    background: #0082cb;
    color: #fff;
}

@media (max-width: 991px) {
    .metalvis-account-page .woocommerce-account .u-columns {
        grid-template-columns: 1fr;
    }

    .metalvis-account-page .woocommerce-MyAccount-navigation {
        float: none;
        width: 100%;
        margin: 0 0 18px;
    }

    .metalvis-account-page .woocommerce-MyAccount-content {
        overflow: visible;
    }

    .metalvis-account-page .woocommerce-MyAccount-content .addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .metalvis-account-page .woocommerce {
        padding: 16px 16px 40px;
    }

    .metalvis-account-page .woocommerce form.login,
    .metalvis-account-page .woocommerce form.register,
    .metalvis-account-page .woocommerce-MyAccount-content {
        padding: 16px;
    }

    .metalvis-account-page .woocommerce form.login > h2,
    .metalvis-account-page .woocommerce form.register > h2 {
        font-size: 24px;
    }
}