@font-face {
    font-family: "Figaro Lobster";
    src: url("fonts/lobster-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Figaro Lobster";
    src: url("fonts/lobster-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.afm-menu,
body.afm-config-page {
    --afm-ink: #28231d;
    --afm-muted: #61584f;
    --afm-title: #9b5600;
    --afm-price: #c30000;
    --afm-accent: #ff6a00;
    --afm-accent-hover: #ff3700;
    --afm-button-text: #211206;
    --afm-button-radius: 4px;
    --afm-dialog-bg: #fff;
    --afm-field-bg: #fff;
    --afm-field-border: #bfb4a6;
    --afm-field-radius: 5px;
    --afm-line: #e8ded2;
    --afm-title-font: "Figaro Lobster", Lobster, Georgia, serif;
    color: var(--afm-ink);
    font-family: "PT Sans", Arial, sans-serif;
    line-height: 1.4;
}

.afm-menu {
    --afm-card-bg: #fff;
    --afm-card-border: #f0e9e0;
    --afm-card-radius: 6px;
    --afm-image-ratio: 1 / 1;
    --afm-grid-gap: 12px;
    --afm-filter-active: #ffe4cc;
    --afm-filter-active-text: #512900;
    --afm-dialog-header-bg: #fff7ed;
    --afm-dialog-title: var(--afm-title);
    --afm-dialog-width: 500px;
    --afm-dialog-radius: 12px;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    font-weight: 400;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
}

.afm-menu *,
.afm-config,
.afm-config * {
    box-sizing: border-box;
}

.afm-menu [hidden] {
    display: none !important;
}

.afm-menu :focus-visible,
.afm-config :focus-visible {
    outline: 2px solid #a74d00;
    outline-offset: 3px;
}

.afm-columns-1 { --afm-columns: 1; }
.afm-columns-2 { --afm-columns: 2; }
.afm-columns-3 { --afm-columns: 3; }
.afm-columns-4 { --afm-columns: 4; }
.afm-columns-5 { --afm-columns: 5; }
.afm-columns-6 { --afm-columns: 6; }

.afm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 15px;
}

.afm-menu .afm-filters button {
    max-width: 100%;
    min-height: 40px;
    padding: 6px 13px;
    border: 1px solid var(--afm-line);
    border-radius: var(--afm-button-radius);
    background: #fff;
    color: var(--afm-ink);
    font: 600 15px/1.2 "PT Sans", Arial, sans-serif;
    white-space: normal;
    cursor: pointer;
}

.afm-menu .afm-filters button:hover {
    border-color: var(--afm-accent);
}

.afm-menu .afm-filters button[aria-pressed="true"] {
    border-color: var(--afm-accent);
    background: var(--afm-filter-active);
    color: var(--afm-filter-active-text);
}

.afm-grid {
    display: grid;
    grid-template-columns: repeat(var(--afm-columns), minmax(0, 1fr));
    row-gap: var(--afm-grid-gap);
    column-gap: min(var(--afm-grid-gap), 4%);
    align-items: stretch;
}

.afm-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--afm-card-border);
    border-radius: var(--afm-card-radius);
    background: var(--afm-card-bg);
    text-align: center;
}

.afm-menu .afm-image {
    display: grid;
    place-items: center;
    aspect-ratio: var(--afm-image-ratio);
    padding: clamp(4px, 1vw, 12px);
    overflow: hidden;
    border-radius: var(--afm-card-radius) var(--afm-card-radius) 0 0;
}

.afm-menu .afm-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
}

.afm-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 5px clamp(7px, 1.15vw, 15px) 13px;
}

.afm-menu .afm-card h3 {
    margin: 0;
    color: var(--afm-title);
    font: 400 clamp(18px, 2vw, 23px)/1.19 var(--afm-title-font);
    overflow-wrap: anywhere;
}

.afm-menu .afm-card h3 a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.afm-menu .afm-card h3 a:hover {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.afm-card-actions {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    margin-top: auto;
}

.afm-menu .afm-price,
.afm-config .afm-config-product .summary .afm-config-price {
    min-width: 0;
    color: var(--afm-price);
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
}

.afm-menu .afm-price .amount,
.afm-config .afm-config-product .afm-config-price .amount {
    color: inherit;
    font: inherit;
}

.afm-menu .afm-price del,
.afm-config .afm-config-product .afm-config-price del {
    color: var(--afm-muted);
    font-size: 0.82em;
    font-weight: 400;
}

.afm-menu .afm-price ins,
.afm-config .afm-config-product .afm-config-price ins {
    background: transparent;
    text-decoration: none;
}

.afm-menu .afm-card a.afm-button,
.afm-config a.afm-button,
body.afm-config-page .afm-config .afm-config-product form.cart button.single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: var(--afm-button-radius);
    background: var(--afm-accent);
    color: var(--afm-button-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.afm-menu .afm-card a.afm-button:hover,
.afm-config a.afm-button:hover,
body.afm-config-page .afm-config .afm-config-product form.cart button.single_add_to_cart_button:hover {
    background: var(--afm-accent-hover);
    color: var(--afm-button-text);
}

.afm-menu .afm-card a.afm-button {
    width: 100%;
    max-width: 224px;
}

.afm-menu .afm-card a.afm-secondary {
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px var(--afm-line);
}

.afm-unavailable {
    color: var(--afm-muted);
    font-size: 14px;
}

.afm-dialog-open {
    overflow: hidden;
}

.afm-menu dialog.afm-dialog:not([open]) {
    display: none;
}

.afm-menu dialog.afm-dialog[open] {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: min(var(--afm-dialog-width), calc(100% - 22px));
    height: min(var(--afm-dialog-height, 208px), calc(100% - 22px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--afm-line);
    border-radius: var(--afm-dialog-radius);
    background: var(--afm-dialog-bg);
    color: var(--afm-ink);
    box-shadow: 0 20px 70px rgb(35 22 12 / 27%);
}

.afm-menu dialog.afm-dialog::backdrop {
    background: rgb(26 16 9 / 53%);
}

.afm-dialog-header {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    max-height: min(34vh, 160px);
    padding: 10px 13px 10px 17px;
    overflow-y: auto;
    border-bottom: 1px solid var(--afm-line);
    background: var(--afm-dialog-header-bg);
}

.afm-menu .afm-dialog-header h2 {
    min-width: 0;
    margin: 0;
    color: var(--afm-dialog-title);
    font: 400 clamp(21px, 4.5vw, 26px)/1.17 var(--afm-title-font);
    overflow-wrap: anywhere;
}

.afm-menu button.afm-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--afm-line);
    border-radius: var(--afm-button-radius);
    background: #fff;
    color: var(--afm-ink);
    font: 400 24px/1 Arial, sans-serif;
    cursor: pointer;
}

.afm-menu button.afm-close:hover {
    border-color: var(--afm-accent);
    background: #fff7ed;
}

.afm-dialog-content {
    position: relative;
    flex: 1;
    min-height: 0;
}

.afm-menu .afm-dialog-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    background: var(--afm-dialog-bg);
}

.afm-wait {
    padding: 18px;
}

.afm-menu .afm-wait a,
.afm-menu .afm-toast a {
    color: #944207;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.afm-toast {
    position: fixed;
    right: 14px;
    bottom: max(15px, env(safe-area-inset-bottom));
    z-index: 100000;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 12px;
    width: min(350px, calc(100vw - 28px));
    padding: 11px 12px 11px 15px;
    border: 1px solid var(--afm-line);
    border-radius: var(--afm-dialog-radius);
    background: var(--afm-dialog-bg);
    box-shadow: 0 10px 35px rgb(37 21 6 / 18%);
    font-size: 15px;
}

.afm-toast [role="status"] {
    font-weight: 700;
}

.afm-toast a {
    grid-column: 1;
}

.afm-toast .afm-close {
    grid-column: 2;
    grid-row: 1 / span 2;
}

body.afm-config-page {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: var(--afm-dialog-bg);
}

body.afm-config-page #wpadminbar,
body.afm-config-page .xt_woofc-wrapper,
body.afm-config-page #xt_woofc,
body.afm-config-page .lwpcngNotice,
body.afm-config-page #cookie-law-info-bar,
body.afm-config-page #cookie-law-info-again {
    display: none !important;
}

body.afm-config-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.afm-config {
    width: 100%;
    min-width: 0;
    padding: 14px clamp(11px, 4.6vw, 20px) 17px;
    color: var(--afm-ink);
    font-size: 15px;
    line-height: 1.38;
    white-space: normal;
    overflow-wrap: anywhere;
}

.afm-config .afm-config-product,
.afm-config .afm-config-product .summary.entry-summary {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.afm-config .afm-config-product .summary .afm-config-price {
    margin: 0 0 9px;
}

.afm-config .afm-description {
    margin: 0 0 12px;
    color: var(--afm-muted);
    line-height: 1.4;
}

.afm-config .afm-description p:last-child {
    margin-bottom: 0;
}

.afm-config img {
    max-width: 100%;
    height: auto;
}

body.afm-config-page .afm-config .afm-config-product form.cart {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.afm-config .afm-config-product form.cart .single-button-wrapper,
.afm-config .afm-config-product form.cart .action-buttons,
.afm-config .afm-config-product form.cart .buttons-box {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.afm-config .afm-config-product form.cart .group-buttons,
.afm-config .afm-config-product form.cart .buy_now_button {
    display: none;
}

.afm-config form.cart .variations {
    width: 100%;
    table-layout: fixed;
}

.afm-config form.cart .variations th,
.afm-config form.cart .variations td {
    display: block;
    width: 100%;
    padding: 0 0 6px;
    text-align: left;
    white-space: normal;
}

.afm-config .afm-config-product form.cart label,
.afm-config .afm-config-product form.cart .tm-epo-element-label,
.afm-config .afm-config-product form.cart .tm-error {
    max-width: 100%;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.afm-config .afm-config-product form.cart .tm-epo-element-label {
    margin-top: 2px;
    color: var(--afm-ink);
    font-size: 16px;
}

.afm-config .afm-config-product form.cart .tm-epo-required {
    margin-inline-end: 3px;
}

body.afm-config-page .afm-config .afm-config-product form.cart select,
body.afm-config-page .afm-config .afm-config-product form.cart input[type="number"],
body.afm-config-page .afm-config .afm-config-product form.cart input[type="text"],
body.afm-config-page .afm-config .afm-config-product form.cart input[type="email"],
body.afm-config-page .afm-config .afm-config-product form.cart textarea {
    min-width: 0;
    max-width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--afm-field-border);
    border-radius: var(--afm-field-radius);
    background-color: var(--afm-field-bg);
    color: var(--afm-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.25;
}

.afm-config .afm-config-product form.cart select,
.afm-config .afm-config-product form.cart textarea {
    width: 100%;
}

.afm-config .afm-config-product form.cart select {
    appearance: auto;
    background-image: none;
    text-overflow: ellipsis;
}

.afm-config .afm-config-product form.cart select option {
    white-space: normal;
}

.afm-config .afm-config-product .tc-extra-product-options,
.afm-config .afm-config-product .tc-totals-form {
    --tcgap: 6px;
    min-width: 0;
    max-width: 100%;
}

.afm-config .afm-config-product .tc-extra-product-options .tc-col,
.afm-config .afm-config-product .tc-extra-product-options .tc-cell,
.afm-config .afm-config-product .tc-extra-product-options .tmcp-field-wrap {
    min-width: 0;
}

.afm-config .afm-config-product .tm-extra-product-options-select .tmcp-field-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    max-width: 100%;
}

.afm-config .afm-config-product .tm-extra-product-options-select .tm-epo-field-label {
    flex: 1 1 190px;
    min-width: 0;
    margin: 0;
}

.afm-config .afm-config-product .tm-extra-product-options-select .tc-price {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    white-space: normal;
}

.afm-config .afm-config-product .tc-epo-totals {
    padding: 3px 0;
}

.afm-config .afm-config-product .tc-epo-totals dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0 0 4px;
    padding: 8px 0;
    border-block: 1px solid var(--afm-line);
}

.afm-config .afm-config-product .tc-epo-totals dt {
    font-weight: 700;
}

.afm-config .afm-config-product .tc-epo-totals dd {
    min-width: 0;
    margin: 0;
    text-align: end;
}

.afm-config .afm-config-product .tc-epo-totals .final,
.afm-config .afm-config-product .tc-epo-totals .final .amount {
    color: var(--afm-price);
}

body.afm-config-page .afm-config .afm-config-product form.cart .quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    float: none;
    gap: 7px 10px;
    width: auto;
    max-width: 100%;
    margin: 8px 0 10px;
}

body.afm-config-page .afm-config .afm-config-product form.cart .quantity:has(input[type="hidden"].qty) {
    display: none;
}

body.afm-config-page .afm-config .afm-config-product form.cart .quantity label {
    position: static !important;
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    color: var(--afm-ink);
    font-size: 15px;
    font-weight: 700;
}

.afm-config .afm-config-product form.cart .quantity label.label:has(~ .qty-box label[for]) {
    display: none;
}

.afm-config .afm-config-product form.cart .quantity .qty-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    max-width: 100%;
    padding: 0;
    border: 0;
}

.afm-config .afm-config-product form.cart .qty-box :is(.increase, .decrease) {
    display: none;
}

body.afm-config-page .afm-config .afm-config-product form.cart .quantity input.qty {
    width: 79px;
    text-align: center;
}

body.afm-config-page .afm-config .afm-config-product form.cart button.single_add_to_cart_button {
    width: 100%;
}

body.afm-config-page .afm-config .afm-config-product form.cart button.single_add_to_cart_button::before {
    content: none;
}

.afm-config form.cart button.single_add_to_cart_button.disabled,
.afm-config form.cart button.single_add_to_cart_button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.afm-config .stock.in-stock {
    display: none;
}

.afm-config .woocommerce-error,
.afm-config .woocommerce-message,
.afm-config .woocommerce-info {
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 5px;
    background: #fff0e8;
    color: #862b0c;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.afm-config .woocommerce-error::before,
.afm-config .woocommerce-message::before,
.afm-config .woocommerce-info::before {
    content: none;
}

.afm-config .woocommerce-error li {
    padding: 0;
}

.afm-config .woocommerce-error a {
    float: none;
    color: inherit;
}

.afm-config .afm-confirmation {
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .afm-menu { --afm-columns: 2; }
}

@media (max-width: 350px) {
    .afm-menu { --afm-columns: 1; }
}
