/*
Theme Name: SIMFI Мебель
Template: woodmart
Version: 1.0.1
Description: Каталог фабрик SIMFI. Оформление в стиле SIMFI Гардеробные.
Text Domain: simfi-furniture
*/

body {
    --simfi-ink: #232d25;
    --simfi-green: #314b3b;
    --simfi-muted: #526354;
    --simfi-line: #d6dace;
    --simfi-paper: #faf9f5;
    --simfi-sand: #e9e3d6;
    --wd-primary-color: #314b3b;
    --wd-text-color: #384339;
    --wd-title-color: #232d25;
    --wd-text-font: "Segoe UI", Arial, sans-serif;
    --wd-title-font: Georgia, "Times New Roman", serif;
    --wd-entities-title-font: "Segoe UI", Arial, sans-serif;
    --wd-title-font-weight: 400;
    color: var(--simfi-ink);
    background: var(--simfi-paper);
}

.whb-header .whb-general-header,
.wd-page-content.main-page-wrapper,
.wd-footer.footer-container {
    background: var(--simfi-paper);
}

.home .wd-sidebar-opener {
    display: none;
}

.whb-header .whb-general-header,
.wd-footer {
    border-color: var(--simfi-line);
}

.woodmart-archive-shop .title-size-default,
.woodmart-archive-shop .page-title {
    color: var(--simfi-ink);
    background: var(--simfi-sand);
}

.woodmart-archive-shop .wd-shop-tools .wd-breadcrumbs,
.woodmart-archive-shop .wd-shop-tools .woocommerce-breadcrumb {
    color: var(--simfi-muted);
}

.woodmart-archive-shop .product-grid-item .product-image-link,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.woodmart-archive-shop .product-image-link img {
    aspect-ratio: 1;
    width: 100%;
    object-fit: contain;
}

.simfi-category-strip {
    background: #242a24;
}

.simfi-category-strip ul {
    display: flex;
    justify-content: center;
    gap: 0 clamp(14px, 4vw, 58px);
    margin: 0 auto;
    padding: 0 16px;
    list-style: none;
}

.simfi-category-strip a {
    display: flex;
    align-items: center;
    min-height: 47px;
    white-space: nowrap;
    font-size: .92rem;
    font-weight: 650;
    color: #fffdf7;
}

.simfi-category-strip a:is(:hover, :focus-visible, [aria-current]) {
    color: #f3c797;
}

.simfi-front {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 auto;
    padding: 0 2px 30px;
}

.simfi-hero {
    display: grid;
    grid-template-columns: .87fr 1.13fr;
    min-height: clamp(375px, 42vw, 570px);
    overflow: hidden;
    background: #eae9de;
    border-radius: 14px;
}

.simfi-hero-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(26px, 5vw, 74px);
}

.simfi-front :is(h1, h2) {
    margin: 0;
    color: var(--simfi-ink);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.simfi-hero h1 {
    font-size: clamp(44px, 6.1vw, 86px);
}

.simfi-hero p {
    max-width: 27em;
    margin: 18px 0 26px;
    color: var(--simfi-muted);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.5;
}

.simfi-hero-picture {
    position: relative;
    display: block;
    overflow: hidden;
    background: #d9d2c4;
}

.simfi-hero-picture img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.simfi-hero-picture span {
    position: absolute;
    right: 13px;
    bottom: 13px;
    padding: 6px 13px;
    border-radius: 22px;
    background: var(--simfi-paper);
    color: var(--simfi-ink);
    font-size: .84rem;
}

.simfi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 9px 21px;
    border: 1px solid var(--simfi-green);
    border-radius: 25px;
    background: var(--simfi-green);
    color: #fffdf7;
    font-weight: 650;
}

.simfi-button:hover {
    background: #1f3628;
    color: #fff;
}

.simfi-section {
    padding-top: clamp(31px, 5.1vw, 68px);
}

.simfi-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
}

.simfi-section h2 {
    font-size: clamp(31px, 4.25vw, 51px);
}

.simfi-section-heading a {
    text-decoration: underline;
    text-underline-offset: .3em;
}

.simfi-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 25px);
}

.simfi-tile {
    display: block;
    color: var(--simfi-ink);
    font-size: clamp(16px, 1.65vw, 22px);
    font-weight: 650;
}

.simfi-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 9px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.simfi-tile:hover,
.simfi-brand-link:hover {
    text-decoration: underline;
    text-underline-offset: .22em;
}

.simfi-brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.simfi-brand-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
    padding: 15px clamp(13px, 2.4vw, 30px);
    border: 1px solid var(--simfi-line);
    border-radius: 11px;
    background: #f0eee5;
    color: var(--simfi-green);
    font-size: clamp(16px, 2.15vw, 24px);
    font-weight: 650;
}

.simfi-brand-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.simfi-brand-nav a {
    padding: 5px 14px;
    border: 1px solid var(--simfi-line);
    border-radius: 22px;
    background: white;
    color: var(--simfi-ink);
}

.simfi-brand-nav a:is(:hover, [aria-current="page"]) {
    background: var(--simfi-green);
    color: white;
}

.simfi-front a:focus-visible,
.simfi-brand-nav a:focus-visible,
.simfi-category-strip a:focus-visible {
    outline: 2px solid #9c5938;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .simfi-category-strip ul {
        justify-content: flex-start;
        overflow: auto;
        scrollbar-width: thin;
    }

    .simfi-hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .simfi-hero-picture {
        aspect-ratio: 4 / 3;
    }

    .simfi-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
