/* ==========================================================================
   PRODUCT CARD (Shared Component)
   Used across Home, Products, Categories, Search, Profile & Wishlists
   ========================================================================== */

.home-pro-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
}

.home-pro-item:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12); */
    border-color: #cbd5e1;
}

.home-pro-thumb {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #ffffff;
    border-radius: 4px;
}

.home-pro-thumb>a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.home-pro-thumb img {
    transition: transform 0.35s ease;
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    display: block;
}

.home-pro-item:hover .home-pro-thumb img {
    transform: scale(1.06);
}

.home-pro-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    background: var(--color-5, #e50308);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(229, 3, 8, 0.35);
    letter-spacing: 0.2px;
    pointer-events: none;
    user-select: none;
}

.home-pro-sold-out-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background-color 0.25s ease;
}

.home-pro-item:hover .home-pro-sold-out-overlay {
    background-color: rgba(0, 0, 0, 0.52);
}

.home-pro-sold-out-badge {
    background: var(--color-5, #e50308);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1.2;
}

.home-pro-item.is-out-of-stock .home-pro-thumb img {
    filter: grayscale(40%);
    opacity: 0.85;
}

.home-pro-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.38;
    color: #1f2937;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-pro-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-pro-title a:hover {
    color: var(--color-3, #0e6938);
}

.home-pro-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.home-pro-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 2px;
    min-width: 0;
}

.home-pro-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-5, #e50308);
    letter-spacing: -0.2px;
    white-space: nowrap;
    line-height: 1.2;
}

.home-pro-old-price {
    font-size: 12.5px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
    white-space: nowrap;
    line-height: 1.2;
}

.home-pro-cart-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: var(--color-5, #e50308);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 0 2px 4px rgba(229, 3, 8, 0.25);
    padding: 0;
    text-decoration: none;
}

.home-pro-cart-btn:hover {
    background-color: #c62828;
    color: #ffffff;
    text-decoration: none;
}

.home-pro-cart-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 370px) {
    .home-pro-item {
        padding: 8px;
    }
}