.itb-swatches-wrapper {
    margin: 8px 0 14px;
}
.product_meta{font-weight:normal !important}
.itb-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.itb-swatch .itb-swatch-image img{max-width:26px;display:inline-block}
.itb-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    line-height:26px;
    padding: 0;
    border: 1px solid #474040 !important;
    background: #fff !important;
    border-radius: 0px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.itb-swatch:hover {
    border-color: #222;
}

.itb-swatch.is-selected {
    border-color: orange !important;
    box-shadow: 0 0 0 1px #07a82a inset;
}

.itb-swatch.is-unavailable {
    opacity: 0.15;
    border-style: dashed;
}

.itb-swatch.is-unavailable::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: #777;
    transform: rotate(-18deg);
}

.itb-swatch-image,
.itb-swatch-color {
    display: block;
    width: 26px;
    height: 26px;
}

.itb-swatch-image img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: cover;
}

.itb-swatch-text {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.variations td.value .itb-original-select {
    display: none !important;
}

#itb-custom-variation-gallery {
    float: left;
    width: 48%;
    margin-bottom: 2em;
    clear: none;
}

.itb-custom-gallery {
    display: block;
    width: 100%;
}

.itb-custom-gallery__main {
    width: 100%;
    margin-bottom: 14px;
}

.itb-custom-gallery__main-inner {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itb-custom-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.itb-custom-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.single-product button.itb-custom-gallery__thumb,
.single-product .itb-custom-gallery .itb-custom-gallery__thumb {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: transform 0.2s ease;
}

.single-product .itb-custom-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.single-product .itb-custom-gallery__thumb.is-active,
.single-product .itb-custom-gallery__thumb:focus,
.single-product .itb-custom-gallery__thumb:focus-visible,
.single-product .itb-custom-gallery__thumb:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.single-product .itb-custom-gallery__thumb:hover {
    transform: translateY(-1px);
}

.itb-custom-gallery__empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}

.single-product .woocommerce-product-gallery {
    display: none !important;
}

/* garante alinhamento com o summary */
.single-product div.product::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 767px) {
    #itb-custom-variation-gallery,
    .woocommerce div.product div.summary,
    .woocommerce #content div.product div.summary,
    .woocommerce-page div.product div.summary,
    .woocommerce-page #content div.product div.summary {
        float: none;
        width: 100%;
    }

    #itb-custom-variation-gallery {
        margin-bottom: 20px;
    }

    .itb-custom-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
}