.product-category.col>.col-inner {
    border-radius: 20px;
    overflow: hidden;
}

.product-category.col>.col-inner .box-text.text-center {
    padding: 20px;
    background-color: #21323b;
    color: #fff;
}

.product-category.col>.col-inner h5.header-title {
    color: #fff;
}

.product-category .box-image img {
    aspect-ratio: 2 / 1.3;
    object-fit: cover;
}

/* =========================================================
   SMAX — Product Loop Card Redesign
   ========================================================= */
.product-small .col-inner {
    border-radius: 38px;
    background-color: rgba(241, 242, 244, .3019607843);
    overflow: hidden;
}

/*
.product-small .col-inner:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}
*/
/* --- Hide "View basket" link after AJAX add-to-cart --- */
.product-small .added_to_cart,
.new-button-add .added_to_cart {
    display: none !important;
}

/* Remove Flatsome default box styles that conflict */
.product-small .product-small.box {
    background: transparent;
    background: #e3e8ec;
    background-color: rgba(241, 242, 244, .3019607843);
    border: none;
    box-shadow: none;
}

.archive .product-small .product-small.box {
    background: #e3e8ec;
    background: linear-gradient(180deg, rgba(203, 213, 218, 1) 0%, rgba(203, 213, 218, 0.8) 15%, rgba(203, 213, 218, 0.2) 100%);
}

/* ---- Image area ---- */
.product-small .box-image {
    border-radius: 12px 12px 0 0;
}

.product-small .box-image .image-zoom>a {
    padding: 3vw;
}

.product-small .box-image img {
    mix-blend-mode: multiply;
}

/* ---- Text area ---- */
.product-small .box-text {
    padding: 0 20px 20px !important;
    height: auto !important;
}

/* Category label */
.product-small .product-cat a,
.product-small .product-category-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    font-weight: 500;
}

/* Product title */
.product-small .product-title,
.product-small .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2px 0 8px;
    line-height: 1.3;
}

/* ---- Price + Swatches row ---- */
.price-swatches-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 30px;
}

.loop-swatches-col {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Override Flatsome loop swatch defaults inside our flex row */
.loop-swatches-col .ux-swatches.ux-swatches-in-loop {
    width: auto;
    margin: 0;
    gap: 6px;
}

/* Style Flatsome variation swatches (ml, size, etc.) inside price row */
.loop-swatches-col .ux-swatch {
    background: #dee6e9 !important;
    border: 2px solid transparent !important;
    color: #748894 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 99px;
}

.loop-swatches-col .ux-swatch:hover {
    background: #c8d6db !important;
}

.loop-swatches-col .ux-swatch.selected,
.loop-swatches-col .ux-swatch.active {
    background: #748894 !important;
    color: #dee6e9 !important;
    border-color: #748894 !important;
}

.loop-swatches-col .ux-swatch.out-of-stock,
.loop-swatches-col .ux-swatch.disabled {
    opacity: 0.38;
    cursor: default;
    text-decoration: line-through;
}

/* Price */
.price-swatches-row .price-wrapper {
    text-align: right;
    height: auto !important;
}

.price-swatches-row .price-wrapper .price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.price-swatches-row .price-wrapper .price ins {
    text-decoration: none;
}

.price-swatches-row .price-wrapper .price del {
    font-size: 13px;
    color: #aaa;
    font-weight: 400;
}

.price-swatches-row .price-wrapper .bef {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-right: 2px;
}

/* ---- pa_color swatches під назвою ---- */
.smax-color-swatches {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 4px 0 8px;
    position: absolute;
    top: -45px;
}

.smax-color-swatch-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smax-color-swatch-label {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.smax-color-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--smax-border);
    transition: border-color 0.15s, transform 0.15s;
    cursor: default;
    flex-shrink: 0;
}

.smax-color-swatch--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.smax-color-swatch--text {
    background: var(--smax-secondary-light, #dee6e9);
    color: var(--smax-secondary, #748894);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.smax-color-swatch:hover {
    border-color: var(--smax-secondary, #748894);
    transform: scale(1.1);
}

/* ---- Bottom row: Qty + Button ---- */
.new-button-add {
    padding: 0;
}

.new-button-add .loop-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.new-button-add .loop-add-row .add-to-cart-button {
    flex: 1 1 auto;
}

.new-button-add .loop-add-row .button {
    margin: 0 !important;
    width: 100%;
}

/* Quantity controls */
.new-button-add .loop-qty-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #d5d5d5;
    border-radius: 99px;
}

.new-button-add .ux-quantity.form-flat input {
    min-height: 2.3rem !important;
}


/* Add to cart button */
.new-button-add .add_to_cart_button {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px !important;
    border-radius: 50px !important;
    background: linear-gradient(121.88deg, #f0be78 -4.48%, #c58347 36.98%, #5f3f22 76.8%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.new-button-add .add_to_cart_button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #fff !important;
}

.new-button-add .add_to_cart_button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.new-button-add .add_to_cart_button.added {
    background: linear-gradient(121.88deg, #f0be78 -4.48%, #c58347 36.98%, #5f3f22 76.8%) !important;
}

@media (max-width: 849px) {
    .product-category.col>.col-inner .box-text.text-center {
        padding: 10px;
    }
}