/* Product Card */
.ho-product-card {
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-border-color);
    border-radius: var(--ho-border-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.ho-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ho-shadow);
    border-color: var(--ho-primary);
}
.ho-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.ho-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ho-card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--ho-text-body);
}
.ho-card-desc {
    font-size: 0.9rem;
    color: var(--ho-text-muted);
    margin-bottom: 15px;
    flex: 1;
}
.ho-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.ho-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ho-text-body);
}
.ho-add-btn {
    background: var(--ho-btn-bg, #ff4757) !important;
    border: none;
    color: var(--ho-btn-text);
    padding: var(--ho-btn-padding-y) var(--ho-btn-padding-x);
    border-radius: var(--ho-btn-radius);
    cursor: pointer;
    font-weight: var(--ho-btn-font-weight);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ho-add-btn:hover, .ho-product-card:hover .ho-add-btn {
    background: color-mix(in srgb, var(--ho-btn-bg), black 10%);
    color: var(--ho-btn-text);
}
.ho-add-btn:hover {
    background: color-mix(in srgb, var(--ho-btn-bg), black 15%); /* Slightly darker on direct hover */
}

/* Card Dynamic Qty Control */
.ho-add-wrapper {
    display: inline-block;
}

/* Unified Card Quantity Controls */
.ho-card-qty-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--ho-bg-card);
    border: 1px solid var(--ho-primary);
    border-radius: 30px;
    padding: 2px 4px;
    width: 100%;
    box-sizing: border-box;
    min-width: 110px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.ho-card-qty-btn {
    background: var(--ho-primary) !important;
    color: var(--ho-on-primary, #ffffff) !important;
    border: none !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    transition: opacity 0.2s;
}
.ho-card-qty-btn:hover {
    background: color-mix(in srgb, var(--ho-primary), black 10%) !important;
    opacity: 1;
}
.ho-card-qty-val {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 10px;
    color: var(--ho-text-body);
    flex-grow: 1;
    text-align: center;
}

/* Ensure button sizing consistency in wrapper */
.ho-add-wrapper .ho-add-btn {
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

/* Discount Features */
.ho-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ho-old-price {
    text-decoration: line-through;
    color: var(--ho-text-muted);
    margin-right: 5px;
    font-weight: normal;
    font-size: 0.9em;
}

.ho-new-price {
    color: #e74c3c;
    font-weight: bold;
}
