/* Стили для вишлиста */
.simba-wishlist {
    display: inline-block !important;
    margin-left: 20px;
}

.simba-heart-link {
    display: block;
    width: 44px;
    height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239b3213' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.simba-heart-link:hover {
    transform: scale(1.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237a2710' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* Стили для аккаунта */
.simba-account {
    display: inline-block !important;
    margin-left: 20px;
}

.simba-account-link {
    display: block;
    width: 44px;
    height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23223b4a' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.simba-account-link:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .simba-wishlist,
    .simba-account {
        margin-left: 15px;
    }
    
    .simba-heart-link,
    .simba-account-link {
        width: 40px;
        height: 40px;
        background-size: 22px 22px;
    }
}
/* Стили для кнопок количества товаров */
.quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #d5ead8 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    width: auto !important;
}

.quantity .qty,
.quantity input[type="number"] {
    background: #ffffff !important;
    border: none !important;
    color: #333333 !important;
    text-align: center !important;
    height: 40px !important;
    width: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity .minus,
.quantity .plus {
    background: #ffffff !important;
    border: none !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: normal !important;
    font-size: 18px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    padding-top: 1px !important;
}

.quantity .minus {
    border-right: 1px solid #d5ead8 !important;
}

.quantity .qty {
    border-left: 1px solid #d5ead8 !important;
    border-right: 1px solid #d5ead8 !important;
}

.quantity .plus {
    border-left: 1px solid #d5ead8 !important;
}

.quantity .minus:hover,
.quantity .plus:hover {
    background: #f8f8f8 !important;
}

.variations_button .quantity,
.cart .quantity,
.woocommerce-cart-form .quantity {
    border: 1px solid #d5ead8 !important;
}

@media (max-width: 768px) {
    .quantity .qty,
    .quantity input[type="number"] {
        height: 36px !important;
        width: 36px !important;
        line-height: 36px !important;
    }
    
    .quantity .minus,
    .quantity .plus {
        height: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        font-size: 16px !important;
    }
}

.quantity .qty:focus {
    outline: none !important;
    background: #f8f8f8 !important;
}
/* Исправление наезжания стрелки сортировки в Astra */
.woocommerce .woocommerce-ordering select {
    padding-right: 30px !important;
    background-position: calc(100% - 10px) center !important;
}

.woocommerce .woocommerce-ordering {
    position: relative;
}

/* Или альтернативное решение */
.woocommerce-ordering select {
    min-width: 180px !important;
    padding-right: 35px !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .woocommerce .woocommerce-ordering select {
        min-width: 160px !important;
        padding-right: 25px !important;
    }
}