body.single-product {
    --fe-ink: #111111;
    --fe-ivory: #f7f5f0;
    --fe-paper: #fffdf8;
    --fe-line: #ddd8cf;
    --fe-muted: #4a4a4a;
    --fe-gold: #c6a87a;
    --fe-product-page-width: min(1360px, calc(100vw - 48px));
}

body.single-product .ast-woocommerce-container,
body.single-product div.product {
    color: var(--fe-ink);
}

body.single-product .site-content .ast-container,
body.single-product .ast-woocommerce-container,
body.single-product div.product,
body.single-product div.product .woocommerce-tabs,
body.single-product div.product .related.products,
body.single-product div.product .upsells.products,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
    max-width: var(--fe-product-page-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.single-product div.product {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.single-product .ast-woocommerce-container {
    width: 100%;
}

body.single-product div.product .product_title {
    color: var(--fe-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.02;
    text-transform: none;
}

body.single-product .fe-hidden-customize-heading {
    display: none !important;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
    color: #000000 !important;
    font-size: 27px !important;
    font-weight: 600 !important;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del,
body.single-product div.product .woocommerce-variation-price del {
    display: block !important;
    margin: 0 0 4px;
    color: #777777 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.2;
}

body.single-product div.product p.price del .amount,
body.single-product div.product span.price del .amount,
body.single-product div.product .woocommerce-variation-price del .amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins,
body.single-product div.product .woocommerce-variation-price ins,
body.single-product div.product .woocommerce-product-price ins,
body.single-product div.product p.price ins .amount,
body.single-product div.product span.price ins .amount,
body.single-product div.product .woocommerce-variation-price ins .amount {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none !important;
    color: #000000 !important;
    font-size: 27px !important;
    font-weight: 600 !important;
}

body.single-product div.product .woocommerce-product-gallery {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    order: 1;
}

body.single-product div.product .woocommerce-product-gallery img {
    object-fit: contain;
    background: #fff;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    order: 2;
    display: flex !important;
    gap: 12px;
    margin: 0 !important;
    padding: 14px !important;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

body.single-product div.product .woocommerce-product-gallery .fe-product-thumb-rail {
    display: none !important;
}

body.single-product div.product .woocommerce-product-gallery .fe-mobile-product-gallery-main {
    display: none;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 82px;
    width: 82px !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
    display: block;
    width: 82px !important;
    height: 82px !important;
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    object-fit: contain;
    padding: 6px;
    opacity: .72;
    transition: border-color .18s ease, opacity .18s ease, transform .18s ease;
}

body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img.is-active,
body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img:hover {
    border-color: var(--fe-gold);
    opacity: 1;
    transform: translateY(-1px);
}

body.single-product div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

body.single-product div.product .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

body.single-product .fe-variation-select--has-swatches {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.single-product .fe-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 4px 0 10px;
}

body.single-product .fe-variation-swatch {
    width: 38px;
    height: 38px;
    border: 1px solid var(--fe-line);
    border-radius: 999px;
    background: #fff;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 2px #fff;
    cursor: pointer;
    padding: 0;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.single-product .fe-variation-swatch:hover,
body.single-product .fe-variation-swatch.is-active {
    border-color: var(--fe-ink);
    box-shadow: inset 0 0 0 2px #fff, 0 8px 18px rgba(17, 17, 17, .12);
    transform: translateY(-1px);
}

body.single-product .fe-variation-swatches--tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
    width: 100%;
    margin: 8px 0 14px;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch {
    width: 100%;
    min-width: 0;
    height: 46px;
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: none;
    color: var(--fe-ink);
    padding: 0 14px;
    position: relative;
    transform: none;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(10px, .76vw, 12px);
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.1;
    text-transform: uppercase;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch:hover,
body.single-product .fe-variation-swatches--tabs .fe-variation-swatch.is-active {
    background: #fffdf8;
    border-color: var(--fe-ink);
    box-shadow: inset 0 0 0 1px var(--fe-ink);
    color: var(--fe-ink);
    transform: none;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch.is-disabled,
body.single-product .fe-variation-swatches--tabs .fe-variation-swatch:disabled {
    background: #f7f5f0;
    border-color: var(--fe-line);
    box-shadow: none;
    color: var(--fe-muted);
    cursor: not-allowed;
    opacity: .4;
    transform: none;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch.is-disabled::after,
body.single-product .fe-variation-swatches--tabs .fe-variation-swatch:disabled::after {
    display: none;
}

body.single-product div.product form.cart .quantity {
    display: inline-flex !important;
    order: 1;
    min-height: 48px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: #fff;
    float: none !important;
}

body.single-product div.product form.cart .quantity input.qty {
    width: 42px;
    min-height: 42px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fe-ink);
    font-size: 16px;
    font-weight: 600;
    padding: 0 !important;
    text-align: center;
}

body.single-product div.product form.cart .quantity .fe-qty-step {
    width: 36px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: var(--fe-ink);
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    padding: 0;
}

body.single-product div.product form.cart .quantity .fe-qty-step:hover {
    background: #f7f5f0;
}

body.single-product div.product .single_add_to_cart_button,
body.single-product div.product form.cart .button,
.fe-product-customize-button {
    min-height: 48px;
    border: 1px solid var(--fe-ink) !important;
    border-radius: 6px !important;
    background: var(--fe-ink) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    padding: 0 20px !important;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

body.single-product div.product .single_add_to_cart_button,
body.single-product div.product form.cart .button {
    flex: 1 1 0;
    order: 2;
    width: auto;
}

body.single-product div.product .single_add_to_cart_button.fe-add-to-cart--personalized {
    font-size: 11px;
    letter-spacing: .04em;
    overflow: hidden;
    padding-left: 16px !important;
    padding-right: 16px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.single-product div.product .single_add_to_cart_button:hover,
body.single-product div.product form.cart .button:hover,
.fe-product-customize-button:hover {
    border-color: var(--fe-gold) !important;
    background: var(--fe-gold) !important;
    color: var(--fe-ink) !important;
    transform: translateY(-1px);
}

.fe-product-customize-box {
    margin: 0 0 18px;
    border: 1px solid var(--fe-line);
    border-radius: 8px;
    background: var(--fe-paper);
    padding: 12px;
}

.fe-product-customize-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-color: var(--fe-gold) !important;
    background: transparent !important;
    color: var(--fe-ink) !important;
}

.fe-product-personalizer {
    margin-top: 14px;
    border-top: 1px solid var(--fe-line);
    padding-top: 14px;
}

.fe-product-personalizer[hidden] {
    display: none !important;
}

.fe-product-personalizer__intro {
    color: var(--fe-muted);
    font-size: 12px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.fe-product-personalizer__group {
    border: 0;
    margin: 0 0 14px;
    padding: 0;
}

.fe-product-personalizer__group legend,
.fe-product-personalizer__field label {
    display: block;
    color: var(--fe-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.fe-product-personalizer__choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fe-product-personalizer__choices label {
    cursor: pointer;
    margin: 0;
}

.fe-product-personalizer__choices input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fe-product-personalizer__choices span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fe-line);
    border-radius: 999px;
    background: #fff;
    color: var(--fe-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 16px;
    text-transform: uppercase;
}

.fe-product-personalizer__choices input:checked + span {
    border-color: var(--fe-gold);
    background: #f0e5d1;
    color: var(--fe-ink);
}

.fe-product-personalizer__field {
    margin-top: 12px;
}

.fe-product-personalizer__field[hidden] {
    display: none !important;
}

.fe-product-personalizer__field input[type="text"],
.fe-product-personalizer__field input[type="file"],
.fe-product-personalizer__field select,
.fe-product-personalizer__field textarea {
    width: 100%;
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: #fff;
    color: var(--fe-ink);
    font-size: 14px;
    line-height: 1.35;
    padding: 12px;
}

.fe-product-personalizer__field input[type="file"] {
    min-height: 46px;
    padding: 10px;
}

.fe-product-personalizer__field textarea {
    resize: vertical;
}

.fe-product-personalizer__field p {
    color: var(--fe-muted);
    font-size: 11px;
    line-height: 1.45;
    margin: 7px 0 0;
}

body.single-product .product_meta {
    border-top: 1px solid var(--fe-line);
    padding-top: 14px;
    color: var(--fe-muted);
    font-size: 13px;
}

body.single-product .woocommerce-tabs {
    max-width: 1180px;
    margin: clamp(28px, 5vw, 58px) auto 0;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: none !important;
}

body.single-product .fe-product-accordion-toggle {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: var(--fe-paper) !important;
    color: var(--fe-ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 18px;
    text-align: left;
    text-transform: uppercase;
}

body.single-product .fe-product-accordion-toggle:not(:first-of-type) {
    margin-top: 10px;
}

body.single-product .fe-product-accordion-toggle::after {
    content: "+";
    color: var(--fe-gold);
    font-size: 18px;
    font-weight: 500;
}

body.single-product .fe-product-accordion-toggle[aria-expanded="true"] {
    border-color: var(--fe-ink);
    background: var(--fe-ink) !important;
    color: #fff;
}

body.single-product .fe-product-accordion-toggle[aria-expanded="true"]::after {
    content: "-";
    color: #fff;
}

body.single-product .woocommerce-tabs .panel {
    border: 1px solid var(--fe-line);
    border-top: 0;
    background: var(--fe-paper);
    margin: 0 0 10px !important;
    padding: clamp(20px, 4vw, 38px) !important;
}

body.single-product .woocommerce-tabs .panel[hidden] {
    display: none !important;
}

body.single-product .related.products {
    max-width: 1180px;
    margin: clamp(34px, 6vw, 70px) auto 0;
}

body.single-product .related.products > h2 {
    color: var(--fe-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

body.single-product .related.products ul.products li.product .price {
    font-size: 15px !important;
    line-height: 1.25 !important;
}

body.single-product #power-coupons-drawer,
body.single-product .power-coupons-drawer,
body.single-product .power-coupons-drawer-trigger,
body.single-product .power-coupons-drawer-trigger-wrapper {
    display: none !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    body.single-product div.product .woocommerce-product-gallery {
        border-radius: 6px;
        position: relative;
    }

    body.single-product div.product .woocommerce-product-gallery.fe-mobile-gallery-stage-ready .flex-viewport,
    body.single-product div.product .woocommerce-product-gallery.fe-mobile-gallery-stage-ready .woocommerce-product-gallery__wrapper {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.single-product div.product .woocommerce-product-gallery .fe-mobile-product-gallery-main {
        display: flex;
        width: 100%;
        min-height: 0;
        align-items: center;
        justify-content: center;
        order: 1;
        border: 0;
        border-bottom: 1px solid var(--fe-line);
        background: #fff;
        cursor: pointer;
        padding: 0;
    }

    body.single-product div.product .woocommerce-product-gallery .fe-mobile-product-gallery-main img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
        background: #fff;
        opacity: 1 !important;
    }

    body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image:first-child img {
        width: 100%;
        max-height: 390px;
        object-fit: contain;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        pointer-events: auto;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs,
    body.single-product div.product .woocommerce-product-gallery .fe-product-thumb-rail {
        gap: 9px;
        padding: 10px !important;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        position: relative;
        scroll-snap-type: x proximity;
        touch-action: pan-x;
        z-index: 3;
        pointer-events: auto;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
        flex-basis: 68px;
        width: 68px !important;
        pointer-events: auto;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
        width: 68px !important;
        height: 68px !important;
        padding: 5px;
        pointer-events: auto;
        touch-action: manipulation;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar-thumb {
        background: rgba(198, 168, 122, .55);
        border-radius: 999px;
    }

    body.single-product div.product form.cart:not(.variations_form) {
        display: grid;
        grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
        gap: 8px;
        align-items: center;
    }

    body.single-product div.product form.cart.variations_form {
        display: block;
        margin-top: 14px;
    }

    body.single-product div.product form.cart.variations_form table.variations,
    body.single-product div.product form.cart.variations_form table.variations tbody,
    body.single-product div.product form.cart.variations_form table.variations tr,
    body.single-product div.product form.cart.variations_form table.variations th,
    body.single-product div.product form.cart.variations_form table.variations td {
        display: block;
        width: 100%;
    }

    body.single-product div.product form.cart.variations_form table.variations {
        margin: 0 0 12px !important;
        border: 0;
    }

    body.single-product div.product form.cart.variations_form table.variations tr {
        margin: 0 0 10px;
    }

    body.single-product div.product form.cart.variations_form table.variations label {
        display: none;
    }

    body.single-product div.product form.cart.variations_form table.variations select {
        width: 100%;
        min-height: 46px;
        border: 1px solid var(--fe-line);
        border-radius: 6px;
        background: #fff;
        color: var(--fe-ink);
        font-size: 14px;
        padding: 0 12px;
    }

    body.single-product div.product form.cart.variations_form .reset_variations {
        display: inline-block;
        margin-top: 6px;
        color: var(--fe-muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    body.single-product div.product .single_variation {
        margin: 14px 0 12px;
        padding-top: 10px;
        border-top: 1px solid var(--fe-line);
    }

    body.single-product div.product .woocommerce-variation-price .price,
    body.single-product div.product .single_variation .price {
        display: block;
        color: #000000 !important;
        font-size: 30px !important;
        font-weight: 700;
        line-height: 1.05;
    }

    body.single-product div.product .woocommerce-variation-availability,
    body.single-product div.product .stock {
        margin: 8px 0 0;
        color: var(--fe-muted);
        font-size: 13px;
        line-height: 1.55;
    }

    body.single-product div.product .woocommerce-variation-add-to-cart {
        display: grid !important;
        grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
        gap: 9px;
        align-items: center;
        margin-top: 12px;
        width: 100%;
        clear: both;
    }

    body.single-product div.product .woocommerce-variation-add-to-cart .quantity {
        margin: 0 !important;
        float: none !important;
        width: 100%;
    }

    body.single-product div.product .woocommerce-variation-add-to-cart .quantity input.qty,
    body.single-product div.product form.cart .quantity input.qty {
        width: 40px;
        min-height: 42px;
    }

    body.single-product div.product .single_add_to_cart_button,
    body.single-product div.product form.cart .button {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        min-width: 0;
        font-size: 11px;
        letter-spacing: .045em;
        line-height: 1.15 !important;
        padding: 0 12px !important;
        text-align: center;
        white-space: normal;
        word-break: normal;
        float: none !important;
    }

    body.single-product div.product .single_add_to_cart_button.fe-add-to-cart--personalized {
        font-size: 10px;
        letter-spacing: .03em;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.single-product .fe-variation-swatches {
        gap: 8px;
        margin-top: 8px;
    }

    body.single-product .fe-variation-swatch {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    body.single-product .fe-variation-swatches--tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    body.single-product .fe-variation-swatches--tabs .fe-variation-swatch {
        width: 100%;
        min-width: 0;
        height: 44px;
        padding: 0 10px;
    }

    body.single-product .fe-variation-swatches--tabs .fe-variation-swatch__label {
        font-size: 10px;
        letter-spacing: .06em;
    }

    .fe-product-customize-button {
        width: 100%;
    }

    body.single-product .fe-product-customize-box {
        margin-top: 16px;
        padding: 14px;
    }

    body.single-product .fe-product-personalizer__choices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.single-product .fe-product-personalizer__choices span {
        width: 100%;
        padding: 0 10px;
    }

    body.single-product .fe-product-customize-box p {
        font-size: 12px;
        line-height: 1.55;
    }

    body.single-product .fe-product-accordion-toggle {
        min-height: 48px;
        font-size: 12px;
        padding: 0 14px;
    }

    body.single-product .related.products {
        width: min(100% - 24px, 620px);
        overflow: hidden;
    }

    body.single-product .related.products ul.products {
        display: grid !important;
        grid-auto-columns: minmax(148px, 46vw);
        grid-auto-flow: column;
        grid-template-columns: none !important;
        gap: 18px !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 14px !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    body.single-product .related.products ul.products::before,
    body.single-product .related.products ul.products::after {
        display: none !important;
        content: none !important;
    }

    body.single-product .related.products ul.products li.product {
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        scroll-snap-align: start;
    }

    body.single-product .related.products ul.products li.product img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    body.single-product .related.products > h2 {
        font-size: 28px;
        line-height: 1.05;
        margin-bottom: 16px;
    }
}

/* FEDELE 2.6.191: final compact archive filter row. */
body.woocommerce-shop .woocommerce-products-header,
body.post-type-archive-product.woocommerce .woocommerce-products-header,
body.tax-product_cat.woocommerce .woocommerce-products-header,
body.tax-product_tag.woocommerce .woocommerce-products-header,
body.woocommerce-shop .woocommerce-notices-wrapper:empty,
body.post-type-archive-product.woocommerce .woocommerce-notices-wrapper:empty,
body.tax-product_cat.woocommerce .woocommerce-notices-wrapper:empty,
body.tax-product_tag.woocommerce .woocommerce-notices-wrapper:empty {
    display: none !important;
}

body.woocommerce-shop .fe-shop-color-filter,
body.post-type-archive-product.woocommerce .fe-shop-color-filter,
body.tax-product_cat.woocommerce .fe-shop-color-filter,
body.tax-product_tag.woocommerce .fe-shop-color-filter,
body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product.woocommerce .woocommerce-ordering,
body.tax-product_cat.woocommerce .woocommerce-ordering,
body.tax-product_tag.woocommerce .woocommerce-ordering {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 42px !important;
    margin: 0 10px 14px 0 !important;
    vertical-align: top !important;
}

body.woocommerce-shop .fe-shop-color-filter[open],
body.post-type-archive-product.woocommerce .fe-shop-color-filter[open],
body.tax-product_cat.woocommerce .fe-shop-color-filter[open],
body.tax-product_tag.woocommerce .fe-shop-color-filter[open] {
    display: inline-flex !important;
    position: relative !important;
}

body.woocommerce-shop .fe-shop-color-filter[open] .fe-shop-color-filter__list,
body.post-type-archive-product.woocommerce .fe-shop-color-filter[open] .fe-shop-color-filter__list,
body.tax-product_cat.woocommerce .fe-shop-color-filter[open] .fe-shop-color-filter__list,
body.tax-product_tag.woocommerce .fe-shop-color-filter[open] .fe-shop-color-filter__list {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 30 !important;
    min-width: min(88vw, 360px) !important;
    max-width: 88vw !important;
    padding: 10px !important;
    border: 1px solid rgba(221, 216, 207, .82) !important;
    border-radius: 8px !important;
    background: #fffdf8 !important;
    box-shadow: 0 18px 46px rgba(17, 17, 17, .08) !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.post-type-archive-product.woocommerce .woocommerce-ordering select,
body.tax-product_cat.woocommerce .woocommerce-ordering select,
body.tax-product_tag.woocommerce .woocommerce-ordering select,
body.woocommerce-shop .fe-shop-color-filter > summary,
body.post-type-archive-product.woocommerce .fe-shop-color-filter > summary,
body.tax-product_cat.woocommerce .fe-shop-color-filter > summary,
body.tax-product_tag.woocommerce .fe-shop-color-filter > summary {
    min-height: 42px !important;
    box-sizing: border-box !important;
}

body.woocommerce-shop ul.products,
body.post-type-archive-product.woocommerce ul.products,
body.tax-product_cat.woocommerce ul.products,
body.tax-product_tag.woocommerce ul.products {
    clear: both !important;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    body.woocommerce-shop .fe-shop-color-filter,
    body.post-type-archive-product.woocommerce .fe-shop-color-filter,
    body.tax-product_cat.woocommerce .fe-shop-color-filter,
    body.tax-product_tag.woocommerce .fe-shop-color-filter,
    body.woocommerce-shop .woocommerce-ordering,
    body.post-type-archive-product.woocommerce .woocommerce-ordering,
    body.tax-product_cat.woocommerce .woocommerce-ordering,
    body.tax-product_tag.woocommerce .woocommerce-ordering {
        width: calc(50% - 5px) !important;
        margin-right: 6px !important;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.post-type-archive-product.woocommerce .woocommerce-ordering,
    body.tax-product_cat.woocommerce .woocommerce-ordering,
    body.tax-product_tag.woocommerce .woocommerce-ordering {
        margin-right: 0 !important;
    }
}

/* FEDELE product refinement: solid desktop header and calmer one-line product titles. */
@media (min-width: 922px) {
    body.single-product .site-header,
    body.single-product .main-header-bar,
    body.single-product .ast-primary-header-bar,
    body.single-product .ast-builder-grid-row-container,
    body.single-product .ast-above-header-bar,
    body.single-product .ast-below-header-bar {
        background: #ffffff !important;
    }

    body.single-product .site-header {
        position: relative;
        z-index: 50;
    }

    body.single-product div.product .product_title {
        max-width: 100%;
        overflow: hidden;
        font-size: clamp(28px, 2.25vw, 38px) !important;
        line-height: 1.08 !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* FEDELE 2.6.191: shop/category archive controls. */
body.woocommerce-shop .site-content,
body.tax-product_cat .site-content {
    padding-top: 0 !important;
}

body.woocommerce-shop .site-content .ast-container,
body.tax-product_cat .site-content .ast-container {
    padding-top: clamp(16px, 2vw, 28px) !important;
}

body.woocommerce-shop .woocommerce-products-header,
body.tax-product_cat .woocommerce-products-header,
body.woocommerce-shop .woocommerce-notices-wrapper:empty,
body.tax-product_cat .woocommerce-notices-wrapper:empty {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

body.woocommerce-shop .fe-shop-color-filter,
body.tax-product_cat .fe-shop-color-filter,
body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering {
    display: inline-flex !important;
    vertical-align: top !important;
    align-items: center !important;
    min-height: 42px !important;
    margin: 0 10px 16px 0 !important;
}

body.woocommerce-shop .fe-shop-color-filter > summary,
body.tax-product_cat .fe-shop-color-filter > summary,
body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select {
    min-height: 42px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(221, 216, 207, .8) !important;
    border-radius: 6px !important;
    background: #fffdf8 !important;
    color: #111 !important;
    font-size: 12px !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.woocommerce-shop .fe-shop-color-filter[open],
body.tax-product_cat .fe-shop-color-filter[open] {
    display: block !important;
    max-width: 100% !important;
}

body.woocommerce-shop ul.products,
body.tax-product_cat ul.products {
    clear: both !important;
    padding-top: 4px !important;
}

body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count {
    float: none !important;
    width: 100% !important;
    margin: 26px 0 0 !important;
    color: #777 !important;
    font-size: 12px !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    body.woocommerce-shop .fe-shop-color-filter,
    body.tax-product_cat .fe-shop-color-filter,
    body.woocommerce-shop .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering {
        width: calc(50% - 6px) !important;
        margin: 0 6px 12px 0 !important;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.tax-product_cat .woocommerce-ordering {
        margin-right: 0 !important;
    }

    body.woocommerce-shop .woocommerce-ordering select,
    body.tax-product_cat .woocommerce-ordering select,
    body.woocommerce-shop .fe-shop-color-filter > summary,
    body.tax-product_cat .fe-shop-color-filter > summary {
        width: 100% !important;
        font-size: 10px !important;
        padding: 0 10px !important;
    }
}

/* FEDELE 2.6.193: remove archive spacing and keep the color filter inactive. */
body.woocommerce-shop #primary,
body.post-type-archive-product.woocommerce #primary,
body.tax-product_cat.woocommerce #primary,
body.tax-product_tag.woocommerce #primary,
body.archive.woocommerce #primary,
body.woocommerce-shop main#main,
body.post-type-archive-product.woocommerce main#main,
body.tax-product_cat.woocommerce main#main,
body.tax-product_tag.woocommerce main#main,
body.archive.woocommerce main#main,
body.woocommerce-shop .site-content,
body.post-type-archive-product.woocommerce .site-content,
body.tax-product_cat.woocommerce .site-content,
body.tax-product_tag.woocommerce .site-content,
body.archive.woocommerce .site-content,
body.woocommerce-shop .site-content .ast-container,
body.post-type-archive-product.woocommerce .site-content .ast-container,
body.tax-product_cat.woocommerce .site-content .ast-container,
body.tax-product_tag.woocommerce .site-content .ast-container,
body.archive.woocommerce .site-content .ast-container,
body.woocommerce-shop .ast-woocommerce-container,
body.post-type-archive-product.woocommerce .ast-woocommerce-container,
body.tax-product_cat.woocommerce .ast-woocommerce-container,
body.tax-product_tag.woocommerce .ast-woocommerce-container,
body.archive.woocommerce .ast-woocommerce-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .fe-shop-color-filter,
body.post-type-archive-product.woocommerce .fe-shop-color-filter,
body.tax-product_cat.woocommerce .fe-shop-color-filter,
body.tax-product_tag.woocommerce .fe-shop-color-filter,
body.archive.woocommerce .fe-shop-color-filter {
    display: none !important;
}

body.woocommerce-shop .woocommerce-ordering,
body.post-type-archive-product.woocommerce .woocommerce-ordering,
body.tax-product_cat.woocommerce .woocommerce-ordering,
body.tax-product_tag.woocommerce .woocommerce-ordering,
body.archive.woocommerce .woocommerce-ordering {
    margin-top: 0 !important;
}

/* FEDELE 2.6.196: compact single-product purchase area and variation tabs. */
body.single-product .woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
}

body.single-product div.product form.cart .quantity,
body.single-product div.product .woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

body.single-product div.product form.cart,
body.single-product div.product form.cart.variations_form,
body.single-product div.product form.cart:not(.variations_form),
body.single-product div.product .woocommerce-variation-add-to-cart {
    display: block !important;
    width: 100% !important;
}

body.single-product div.product .single_add_to_cart_button,
body.single-product div.product form.cart .button.single_add_to_cart_button,
body.single-product div.product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
}

body.single-product div.product .single_add_to_cart_button.fe-add-to-cart--personalized {
    font-size: 12px !important;
    letter-spacing: .12em !important;
}

body.single-product .fe-product-customize-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.single-product .fe-variation-swatches--tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 8px !important;
    border-radius: 7px !important;
}

body.single-product .fe-variation-swatches--tabs .fe-variation-swatch__label {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

@media (max-width: 767px) {
    body.single-product .fe-variation-swatches--tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 420px) {
    body.single-product .fe-variation-swatches--tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
