.attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attribute-value-btn {
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.attribute-value-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.attribute-value-btn.active {
    color: white;
    border-color: var(--bs-secondary-color);
}

.attribute-value-btn.active:hover {
    background-color: var(--bs-body-color);
}

.attribute-value-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.attribute-value-btn.disabled:hover {
    background-color: #f8f9fa;
    transform: none;
}

.price-display .card {
    border-left: 4px solid #0d6efd;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-selector input[type="number"] {
    text-align: center;
    font-weight: 500;
}

.quantity-selector .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.quantity-selector .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-selector.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.quantity-selector.disabled input[type="number"] {
    background-color: #e9ecef;
    color: #6c757d;
}

.quantity-selector.disabled .btn {
    opacity: 0.5;
    cursor: not-allowed;
}

#quantityWarning {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .quantity-selector {
        gap: 4px;
    }

    .quantity-selector .btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .quantity-selector input[type="number"] {
        width: 50px;
        font-size: 14px;
    }
}

.image-preview-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding-left: 13px;
}

.image-preview-btn:hover {
    background-color: #fff;
    width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-preview-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.preview-btn-text {
    opacity: 0;
    white-space: nowrap;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: opacity 0.2s ease;
}

.image-preview-btn:hover .preview-btn-text {
    opacity: 1;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
    padding: 20px;
    user-select: none;
}

.image-modal-nav:hover {
    color: #0d6efd;
}

.image-modal-prev {
    left: 20px;
}

.image-modal-next {
    right: 20px;
}

.image-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    z-index: 10000;
}

.attribute-status-warning {
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

.attribute-status-warning.warning-no-selection {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.attribute-status-warning.warning-no-match {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.attribute-status-warning i {
    margin-right: 8px;
}

.toast-container {
    z-index: 10600 !important;
}

#errorModal {
    z-index: 10601 !important;
}

.modal-backdrop {
    z-index: 10600 !important;
}
