/* CARD */
.product-card-wrapper {
    position: relative;
    width: 300px;
    transition: transform 0.2s ease;
    
    --product-image-height: 180px
}

.product-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: white;
}

.product-card-wrapper:hover {
    transform: translateY(-4px);
}

/* IMAGE AREA */
.product-image {
    width: 100%;
    height: var(--product-image-height);
}

.image-wrapper {
    width: 100%;
    height: 100%;
}

/* IMAGE */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PLACEHOLDER */
.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    background: var(--fallback-color);
}

/* TAG ICONS */
.top-left-icons {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.tag-icon {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CART BADGE */
.cart-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: var(--bg-color);
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--bg-color);
    z-index: 10;
}


/* TYPE ICONS*/
.type-icon {
    --type-icon-width: 50px;

    position: absolute;
    bottom: calc(var(--product-image-height) + 5px);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    width: var(--type-icon-width);
    height: var(--type-icon-width);
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 👇 CENTER TITLE + DESCRIPTION BLOCK */
.product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* TITLE */
.product-title {
    font-size: var(--header-size-H2);
    margin: 0;
}

/* DESCRIPTION */
.product-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: var(--text-size-p2);
    line-height: 1.4;
    height: calc(1.4em * 2);
}

/* META*/
.product-meta {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: var(--text-size-p2);
    margin-top: 4px;
}

.weight {
    color: #555;
}

.price {
    font-weight: bold;
}