/* assets/css/style.css */

input.quantity-input,
input.current-order-quantity {
    max-width: 70px;
}

.product-cell .product-code {
    letter-spacing: 0.05em;
}

.product-cell .product-name {
    font-size: 1rem;
    line-height: 1.2;
}

.product-badges .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.qty-control .qty-btn {
    line-height: 1;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.qty-control input {
    text-align: center;
    flex: 0 0 70px;
}

@media (max-width: 575.98px) {
    .table .product-cell {
        min-width: 0;
    }
    .qty-control { gap: 0.2rem; }
    .qty-control .qty-btn { width: 34px; height: 34px; }
    .qty-control input { flex: 0 0 52px; max-width: 52px; }
    .qty-cell { width: 1%; white-space: nowrap; }
}

#modalOtherImages img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    margin: 5px;
    cursor: pointer;
}

/* Favourite star: outline when off, filled when on, so the state never depends on colour alone */
.fav-toggle {
    color: inherit !important;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}
.fav-toggle:hover { text-decoration: none !important; }
.fav-star { font-size: 1.4rem; line-height: 1; color: #5f574b; }
.fav-star::before { content: '\2606'; }                 /* white star */
.fav-star.active { color: #8a5a00; }                      /* dark gold: 5.6:1 on white */
.fav-star.active::before { content: '\2605'; }          /* black star */

/* Keep buttons within card footer area */
.card .view-details { display: inline-block; }

/* Ensure title action buttons (e.g., favourite) don't expand or look boxed */
.card-title > button {
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Badge spacing within cards */
.card-body .badge + .badge { margin-left: 4px; }
