/* Shared responsive storefront controls. */
.fc-beta .fc-beta-page.fc-favorites .goods[data-layout="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fc-beta .fc-beta-page.fc-favorites .goods[data-layout="grid"] > [data-favorite-card] {
    grid-column: auto;
    min-width: 0;
}
@media (min-width: 640px) {
    .fc-beta .fc-beta-page.fc-favorites .goods[data-layout="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .fc-beta .fc-beta-page.fc-favorites .goods[data-layout="grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fc-beta .fc-category-browse:has(> .fc-browse-directory) {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}
.fc-browse-directory { grid-column: 1 / -1; min-width: 0; }
.fc-browse-directory > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #ead8cf;
    border-radius: 8px;
    color: #753627;
    background: #fff7f1;
    list-style: none;
    cursor: pointer;
}
.fc-browse-directory > summary::-webkit-details-marker { display: none; }
.fc-browse-directory > summary:focus-visible { outline: 2px solid #9e3523; outline-offset: 2px; }
.fc-browse-directory > summary h1 { margin: 0; color: inherit; font-size: 18px; }
.fc-browse-directory > summary span { font-size: 14px; white-space: nowrap; }
.fc-browse-directory:not([open]) .fc-category-collapse-open,
.fc-browse-directory[open] .fc-category-collapse-closed,
.fc-browse-directory:not([open]) > .fc-browse-directory-body { display: none; }
.fc-browse-directory-body { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
    .fc-browse-directory-body { grid-template-columns: 204px minmax(0, 1fr); gap: 18px; }
}

.fc-site-search-field,
.freecall-logo-header .topbar .search.fc-site-search-field {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f5f5f5;
}
.fc-site-search-field input[name="k"],
.freecall-logo-header .topbar .search.fc-site-search-field input[name="k"] {
    flex: 1 1 0;
    order: 1;
    width: 0;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    color: #333;
    background: transparent;
    font-size: 14px;
}
.fc-site-search-field > .sign,
.freecall-logo-header .topbar .search.fc-site-search-field > .sign {
    position: static;
    order: 2;
    display: flex;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
}
.fc-site-search-field button.fc-site-search-submit,
.freecall-logo-header .topbar .search.fc-site-search-field button.fc-site-search-submit {
    position: static;
    order: 2;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: auto;
    min-width: 64px;
    height: auto;
    min-height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: #b4232a;
    font: 600 14px/1.2 system-ui, sans-serif;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
}
.fc-site-search-field button.fc-site-search-submit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
header.bar-nav form.fc-site-search-form { display: flex; align-items: center; gap: 0; padding-inline: 12px; }
header.bar-nav form.fc-site-search-form .fc-site-search-field { flex: 1; }

.fc-browse-footer {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
    width: min(100%, var(--fc-beta-max, 1080px));
    margin: 12px auto 0;
    padding: 10px 12px;
    border-top: 1px solid #eee0d7;
    background: #faf5f0;
}
.fc-browse-footer a { display: inline-flex; min-height: 44px; align-items: center; color: #753627; white-space: nowrap; }
.fc-browse-footer nav { display: grid; grid-template-columns: repeat(5, auto); gap: 4px 12px; }
.fc-browse-footer nav a { justify-content: center; font-size: 14px; }
