/* =============================================
   Cart Drawer — Cart Item Cards
   ============================================= */

.hd3-cart-drawer__item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    background: #fff;
    border-radius: 0;
}

.hd3-cart-drawer__item-img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f2;
}

.hd3-cart-drawer__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd3-cart-drawer__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 20px;
}

.hd3-cart-drawer__item-name {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd3-cart-drawer__item-name:hover {
    opacity: 0.7;
}

/* Variant / packaging pill */
.hd3-cart-drawer__item-variant {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.67rem;
    color: #4a6b4a;
    background: #edf4ec;
    border-radius: 4px;
    padding: 2px 7px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Bulk discount */
.hd3-cart-drawer__item-discount {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.67rem;
    color: #16a34a;
    letter-spacing: 0.2px;
}

/* Bottom row: qty + price */
.hd3-cart-drawer__item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    gap: 8px;
}

/* Price block */
.hd3-cart-drawer__item-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.hd3-cart-drawer__item-unit-price {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 0.2px;
}

.hd3-cart-drawer__item-total {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}

/* Quantity controls */
.hd3-cart-drawer__qty {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.hd3-cart-drawer__qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 300;
    transition: background 0.15s ease;
    padding: 0;
}

.hd3-cart-drawer__qty-btn:hover {
    background: #f5f5f5;
}

.hd3-cart-drawer__qty-val {
    width: 32px;
    text-align: center;
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    line-height: 28px;
}

/* Remove button */
.hd3-cart-drawer__remove {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 4px;
    transition: color 0.2s ease;
}

.hd3-cart-drawer__remove:hover {
    color: #1a1a1a;
}

.hd3-cart-drawer__remove svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* ── Responsive item image ── */
@media (min-width: 768px) {
    .hd3-cart-drawer__item-img {
        width: 80px;
        height: 80px;
    }
}
