/* Form Components */

.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.catalogue-item {
    border: 1px solid var(--fluent-gray-40);
    border-radius: var(--fluent-radius-large);
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    position: relative;
    background: var(--fluent-white);
    box-shadow: var(--fluent-shadow-2);
}

.catalogue-item:hover {
    border-color: var(--fluent-black);
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-8);
}

.catalogue-item.selected {
    border-color: var(--fluent-black);
    background: var(--fluent-gray-20);
    box-shadow: var(--fluent-shadow-4);
}

.catalogue-item.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--fluent-success);
    color: var(--fluent-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
}

.catalogue-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--fluent-radius-medium);
    margin-bottom: 12px;
}

.catalogue-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--fluent-gray-90);
}

.catalogue-item .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--fluent-black);
    margin-bottom: 6px;
}

.catalogue-item .stock {
    font-size: 12px;
    color: var(--fluent-gray-70);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.catalogue-item .stock::before {
    content: '\f466';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--fluent-gray-60);
    background: var(--fluent-white);
    border-radius: var(--fluent-radius-medium);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.quantity-control button:hover {
    background: var(--fluent-black);
    color: var(--fluent-white);
    border-color: var(--fluent-black);
}

.quantity-control input {
    width: 45px;
    text-align: center;
    border: 1px solid var(--fluent-gray-60);
    border-radius: var(--fluent-radius-medium);
    padding: 4px;
    font-size: 14px;
    font-weight: 600;
}

.selected-items {
    margin-top: 30px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--fluent-white);
    border: 1px solid var(--fluent-gray-40);
    border-radius: var(--fluent-radius-medium);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.selected-item:hover {
    box-shadow: var(--fluent-shadow-2);
}

.selected-item-info {
    flex: 1;
}

.selected-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--fluent-gray-90);
}

.selected-item-info p {
    font-size: 13px;
    color: var(--fluent-gray-70);
}

.remove-item-btn {
    padding: 6px 12px;
    background: var(--fluent-error);
    color: var(--fluent-white);
    border: none;
    border-radius: var(--fluent-radius-medium);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-item-btn:hover {
    background: #a71d2a;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-4);
}

.remove-item-btn::before {
    content: '\f2ed';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.form-error {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
}

.form-success {
    color: var(--success);
    font-size: 14px;
    margin-top: 5px;
}
