/* Product Short List Block - Product Card Styles */

.product-short-list-block__item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-short-list-block__card {
    overflow: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: var(--aspect-ratio, 0.846) !important;
    height: auto;
    color: var(--wp--preset--color--dark-900, #1a1a1a);
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    border-radius: 12px;
    background-color: var(--wp--preset--color--white);
}

.product-short-list-block__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--wp--preset--color--primary-500, #0073aa);
}

.product-short-list-block__image-link {
    display: block;
    width: 100%;
    text-decoration: none;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.product-short-list-block__image {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--neutral-100);
}

.product-short-list-block__image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Protection from WooCommerce styles */
.woocommerce .product-short-list-block__image img,
.woocommerce-page .product-short-list-block__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-short-list-block__image-placeholder {
    opacity: 0.6;
    filter: grayscale(20%);
}

.product-short-list-block__card:hover .product-short-list-block__image-placeholder {
    opacity: 0.8;
}

/* Badges */
.product-short-list-block__badge {
    position: absolute;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--wp--preset--font-family--sen);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.product-short-list-block__marker {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    width: 100%;
    background-color: var(--wp--preset--color--primary-500, #0073aa);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    box-sizing: border-box;
    transform: translate(40%, 25%) rotate(45deg);
    transform-origin: center;
}

.product-short-list-block__marker.hot-marker {
    background-color: var(--wp--preset--color--success-600);
    color: var(--wp--preset--color--dark-900);
}

.product-short-list-block__marker.top-marker {
    background-color: var(--wp--preset--color--primary-500);
    color: var(--wp--preset--color--dark-900);
}

.product-short-list-block__marker.sale-marker {
    background-color: var(--wp--preset--color--danger-900);
    color: var(--wp--preset--color--neutral-000);
}

.product-short-list-block__marker-text {
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(14px, calc((12 / 1440) * 100vw), 22px);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-short-list-block__badge--new {
    background-color: var(--wp--preset--color--primary-500, #0073aa);
    color: var(--wp--preset--color--neutral-000, #ffffff);
}

.product-short-list-block__badge--hot {
    top: 0;
    right: 0;
    color: var(--wp--preset--color--neutral-000, #FFFFFF);
    padding: 8px 24px;
    border-radius: 0 12px 0 0;
    transform: rotate(0deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 15;
}

.product-short-list-block__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.product-short-list-block__info-box {
    box-sizing: border-box;
}

.product-short-list-block__country-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--wp--preset--font-family--sen);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, calc((16 / 1440) * 100vw), 16px);
    line-height: 22.09px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: var(--wp--preset--color--dark);
    margin-top: 11px;
    padding-bottom: 11px;
    border-bottom: 0.55px solid rgba(185, 186, 255, 0.4);
    max-width: 250px;
    min-width: 0;
    overflow: hidden;
    cursor: context-menu;
}

.product-short-list-block__country {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-short-list-block__country-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.product-short-list-block__country-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-short-list-block__country-name {
    font-family: var(--wp--preset--font-family--sen);
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, calc((16 / 1440) * 100vw), 16px);
    line-height: 22.09px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: var(--wp--preset--color--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.product-short-list-block__title-box {
    min-height: calc(1.2em * 2);
    display: flex;
    align-items: flex-start;
}

.product-short-list-block__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(12px, calc((16 / 1440) * 100vw), 16px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--wp--preset--color--dark-900, #1a1a1a);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-short-list-block__info-box:first-child .product-short-list-block__title {
    margin: 11px 0 0 0;
}

.product-short-list-block__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-short-list-block__title a:hover {
    color: var(--wp--preset--color--primary-500, #0073aa);
}

.product-short-list-block__price {
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(12px, calc((16 / 1440) * 100vw), 16px);
    font-weight: 500;
    color: var(--wp--preset--color--darken);
}

.product-short-list-block__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.product-short-list-block__wishlist-wrapper {
    flex-shrink: 0;
}

.product-short-list-block__wishlist-wrapper .yith-add-to-wishlist-button-block {
    margin: 0 !important;
}

.product-short-list-block__wishlist-wrapper .yith-wcwl-add-to-wishlist {
    margin: 0;
}

.product-short-list-block__wishlist-wrapper a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto;
}

.product-short-list-block__wishlist-wrapper a.add_to_wishlist {
    cursor: pointer;
}

.product-short-list-block__wishlist-wrapper .yith-wcwl-add-to-wishlist-button__label,
.product-short-list-block__wishlist-wrapper span:not(.yith-wcwl-icon):not(svg) {
    display: none !important;
}

.product-short-list-block__wishlist-wrapper img,
.product-short-list-block__wishlist-wrapper svg {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-short-list-block__wishlist {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    border: none;
}

.product-short-list-block__wishlist .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
}

.product-short-list-block__wishlist svg,
.product-short-list-block__wishlist .yith-wcwl-icon {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--wp--preset--color--primary-500);
    transition: all 0.3s ease;
}

.product-short-list-block__wishlist svg path {
    fill: transparent;
    stroke: var(--wp--preset--color--primary-500);
}

.product-short-list-block__wishlist.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-short-list-block__wishlist.added svg path,
.product-short-list-block__wishlist.in-wishlist svg path {
    fill: var(--wp--preset--color--primary-500);
    stroke: var(--wp--preset--color--primary-500);
}

/* Cart Button Styles */
.product-short-list-block__cart-button {
    max-width: 160px;
    padding: 12px 20px;
    font-size: clamp(12px, calc((16 / 1440) * 100vw), 16px);
    font-family: var(--wp--preset--font-family--sen);
    font-weight: 400;
    line-height: 1.2;
    color: var(--wp--preset--color--dark-900);
    background: var(--wp--preset--color--primary-500);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 100px;
    flex: 1;
}

.product-short-list-block__cart-button .cart-button-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.product-short-list-block__cart-button:hover {
    background: var(--wp--preset--color--primary-500);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(23, 228, 249, 0.3);
    opacity: 0.9;
}

.product-short-list-block__cart-button.in-cart {
    background: var(--wp--preset--color--primary-500);
    color: var(--wp--preset--color--dark-900);
}

.product-short-list-block__cart-button.in-cart:hover {
    background: var(--wp--preset--color--primary-500);
    box-shadow: 0 2px 8px rgba(23, 228, 249, 0.3);
    opacity: 0.9;
}

.product-short-list-block__cart-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.product-short-list-block__cart-button.loading .cart-button-text::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

.product-short-list-block__cart-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--wp--preset--color--neutral-100);
    color: var(--wp--preset--color--dark-600, #666);
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.product-short-list-block__more {
    padding: 12px 20px;
    background-color: var(--wp--preset--color--primary-500);
    color: var(--wp--preset--color--dark-900);
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--wp--preset--font-family--sen);
    font-size: clamp(14px, calc((16 / 1440) * 100vw), 16px);
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
}

