/* FONOMAX Base 5.9.19 - shop and blog layout repair */

/* Primary navigation dropdowns */
@media (min-width: 901px) {
    .fx-menu > .menu-item-has-children {
        position: relative;
    }

    .fx-menu > .menu-item-has-children > .sub-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        z-index: 90;
        display: none;
        min-width: 215px;
        margin: 0;
        padding: 8px 0;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 14px 30px rgba(17, 24, 39, .14);
        list-style: none;
    }

    .fx-menu > .menu-item-has-children:hover > .sub-menu,
    .fx-menu > .menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }

    .fx-menu > .menu-item-has-children > a::after {
        content: "⌄";
        display: inline-block;
        margin-left: 6px;
        font-size: 12px;
        vertical-align: 1px;
    }

    .fx-menu .sub-menu li {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .fx-menu .sub-menu a,
    .fx-menu .sub-menu a:hover,
    .fx-menu .sub-menu .current-menu-item > a {
        display: block;
        margin: 0;
        padding: 10px 16px !important;
        border: 0 !important;
        color: #202020;
        line-height: 1.35;
        white-space: nowrap;
    }

    .fx-menu .sub-menu a:hover {
        background: #f7f8fa;
        color: #111;
    }
}

@media (max-width: 900px) {
    .fx-nav.is-open .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 0;
        padding: 4px 0 4px 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        list-style: none;
    }

    .fx-nav.is-open .sub-menu li {
        list-style: none;
    }

    .fx-nav.is-open .sub-menu a,
    .fx-nav.is-open .sub-menu a:hover {
        padding: 10px 14px !important;
        border: 0 !important;
    }
}

/* Shop archive */
.fx-shop-page {
    padding: 28px 0 76px;
    background: #f7f8fa;
}

.fx-shop-page > .fx-container,
.fx-blog-page > .fx-container {
    width: min(1500px, calc(100% - 7vw));
    max-width: 1500px;
    min-width: 0;
}

.fx-shop-heading {
    margin-bottom: 24px;
}

.fx-shop-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.03;
    letter-spacing: -.055em;
}

.fx-shop-heading p {
    margin: 0 0 12px;
    color: #596473;
    font-size: 17px;
}

.fx-credit-from {
    display: inline-block;
    color: #e11d3f;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fx-shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0 0 20px;
}

.fx-shop-toolbar form {
    display: flex;
    margin-left: auto;
}

.fx-shop-toolbar select,
.fx-filter-toggle {
    min-height: 42px;
    border: 1px solid #d9dee4;
    border-radius: 8px;
    background: #fff;
    color: #18202b;
    font: inherit;
    font-weight: 600;
    padding: 8px 12px;
}

.fx-filter-toggle {
    display: none;
    cursor: pointer;
}

.fx-shop-toolbar > span {
    color: #596473;
    white-space: nowrap;
}

.fx-shop-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    min-width: 0;
}

.fx-filters {
    position: sticky;
    top: 90px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e3e7eb;
    border-radius: 16px;
    background: #fff;
}

.fx-filters h2 {
    margin: 0 0 22px;
    font-size: 24px;
}

.fx-filters h3 {
    margin: 20px 0 10px;
    font-size: 16px;
}

.fx-filters label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 7px 0;
    color: #4e5967;
    font-size: 14px;
    line-height: 1.35;
}

.fx-filters input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 3px;
}

.fx-filters .fx-button[type="submit"] {
    display: inline-flex;
    width: 100%;
    margin-top: 20px;
}

.fx-shop-products {
    min-width: 0;
}

.fx-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    min-width: 0;
}

.fx-shop-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e3e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.fx-shop-card__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f8f9fa;
    overflow: hidden;
}

.fx-shop-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fx-shop-card__image > span {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #18202b;
    font-size: 20px;
    line-height: 1;
}

.fx-shop-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.fx-shop-card h2 a {
    overflow-wrap: anywhere;
}

.fx-shop-card small {
    min-height: 20px;
    color: #697482;
}

.fx-shop-card strong {
    display: block;
    margin: 8px 0 16px;
    color: #ed1d32;
    font-size: 18px;
}

.fx-shop-card .fx-button {
    align-self: flex-start;
    margin-top: auto;
}

.fx-no-products {
    grid-column: 1 / -1;
    padding: 30px;
    border-radius: 14px;
    background: #fff;
}

/* Blog archive */
.fx-blog-page {
    min-height: 62vh;
    padding: 28px 0 76px;
}

.fx-blog-page .fx-page-heading {
    max-width: none;
    margin: 0 auto 30px;
    text-align: center;
}

.fx-blog-page .fx-page-heading h1 {
    margin: 0 0 10px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -.06em;
}

.fx-blog-page .fx-page-heading > p {
    margin: 0 auto 18px;
    color: #596473;
    font-size: 17px;
}

.fx-blog-search {
    display: flex;
    width: min(100%, 380px);
    margin: 0 auto 14px;
    gap: 6px;
}

.fx-blog-search input {
    min-width: 0;
    flex: 1 1 auto;
    min-height: 38px;
    border: 1px solid #d9dee4;
    border-radius: 7px;
    background: #fff;
    padding: 8px 10px;
    font: inherit;
}

.fx-blog-search button {
    width: 42px;
    border: 1px solid #d9dee4;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

.fx-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fx-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid #d9dee4;
    border-radius: 999px;
    background: #fff;
    color: #596473;
    font-size: 13px;
    font-weight: 700;
}

.fx-chips a.is-active {
    border-color: #ffd21a;
    background: #ffd21a;
    color: #111;
}

.fx-feature-post {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    background: #17191c;
    color: #fff;
    overflow: hidden;
}

.fx-feature-post__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 4vw, 56px);
}

.fx-feature-post__copy > span {
    color: #ffd21a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fx-feature-post__copy h2 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.fx-feature-post__copy p {
    max-width: 560px;
    margin: 0 0 22px;
    color: #cbd0d6;
}

.fx-feature-post__image {
    min-width: 0;
    min-height: 360px;
    background: linear-gradient(135deg, #f4f5f6, #dfe4e9);
    overflow: hidden;
}

.fx-feature-post__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.fx-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
    margin-top: 28px;
}

.fx-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e3e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.fx-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px #17202c14;
}

.fx-post-card > img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.fx-post-card > div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 20px;
}

.fx-post-card__cat {
    display: inline-block;
    color: #e11d3f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fx-post-card h3 {
    margin: 8px 0;
    font-size: 21px;
    line-height: 1.15;
}

.fx-post-card p {
    margin: 0 0 16px;
    color: #596473;
}

.fx-post-card .fx-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .fx-shop-grid,
    .fx-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fx-shop-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-filter-toggle {
        display: inline-flex;
        align-items: center;
    }

    .fx-filters {
        position: static;
        display: none;
    }

    .fx-filters.is-open {
        display: block;
    }

    .fx-feature-post {
        grid-template-columns: minmax(0, 1fr);
    }

    .fx-feature-post__image {
        min-height: 280px;
    }

    .fx-feature-post__image img {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .fx-shop-page > .fx-container,
    .fx-blog-page > .fx-container {
        width: min(100% - 24px, 1500px);
    }

    .fx-shop-toolbar {
        flex-wrap: wrap;
    }

    .fx-shop-toolbar form {
        width: 100%;
        margin-left: 0;
    }

    .fx-shop-toolbar select {
        width: 100%;
    }

    .fx-shop-grid,
    .fx-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fx-shop-card {
        padding: 10px;
    }

    .fx-shop-card h2 {
        font-size: 14px;
    }

    .fx-shop-card strong {
        font-size: 16px;
    }

    .fx-shop-card .fx-button {
        width: 100%;
        padding: 10px 8px;
        font-size: 12px;
    }

    .fx-post-card > img {
        height: 140px;
    }

    .fx-post-card > div {
        padding: 14px;
    }

    .fx-post-card h3 {
        font-size: 16px;
    }

    .fx-post-card p {
        display: none;
    }
}
