/* Quantity Selector in Product Card */
.hq-cart-controls {
    margin-top: auto;
    width: 100%;
}

.hq-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--hq-accent);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    height: 28px;
}

.hq-qty-decrease,
.hq-qty-increase {
    background: white;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--hq-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hq-qty-decrease:hover,
.hq-qty-increase:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.hq-qty-decrease:active,
.hq-qty-increase:active {
    transform: scale(0.95);
}

.hq-qty-display {
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--hq-primary);
}

/* List View Styles */
.hq-product-list {
    padding: 15px;
}

.hq-list-item {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: relative;
    min-height: 120px;
}

.hq-list-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hq-list-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hq-list-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    /* Enable truncation in flex item */
}

.hq-list-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: var(--hq-text);
    display: -webkit-box;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 20px;
    width: 100%;
    padding-right: 40px;
    /* Space for wishlist icon */
}

.hq-list-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--hq-text);
    margin-top: 4px;
}

.hq-list-delivery {
    font-size: 11px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    /* Prevent wrapping */
    max-width: 60%;
    /* Avoid overlapping Add to Cart */
    overflow: hidden;
    text-overflow: ellipsis;
}

.hq-list-seller {
    font-size: 10px;
    color: var(--hq-text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    /* Prevent wrapping */
    max-width: 60%;
    /* Avoid overlapping Add to Cart */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions Container - Removed from flow */
.hq-list-item .hq-list-actions {
    position: static;
}

/* Wishlist - Absolute Top Right (LIST VIEW ONLY) */
.hq-list-item .hq-list-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

/* Cart Controls - Absolute Bottom Right (LIST VIEW ONLY) */
.hq-list-item .hq-cart-controls[data-product-id] {
    position: absolute;
    bottom: 1px;
    right: 12px;
    width: auto;
    max-width: 120px;
    z-index: 5;
    margin-top: 8px;
    /* Add spacing from content above */
}

.hq-list-add-btn {
    background: var(--hq-accent);
    color: var(--hq-primary);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hq-list-add-btn:hover {
    background: #ffb300;
}

.hq-view-all-link {
    text-decoration: none;
    color: var(--hq-primary);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hq-view-all-link:hover {
    color: #0d47a1;
}